Skip to content

Commit

Permalink
fix TheHive-Project#2058 add src tag to imported misp alerts
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Debergue <[email protected]>
  • Loading branch information
vdebergue committed Jun 10, 2021
1 parent 9eb14bc commit 168d776
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MispImportSrv @Inject() (
read = false,
follow = true,
organisationId = organisationId,
tags = event.tags.map(_.name),
tags = s"src:${event.orgc}" +: event.tags.map(_.name),
caseId = EntityId.empty
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class MispImportSrvTest(implicit ec: ExecutionContext) extends PlaySpecification
pap = 2,
read = false,
follow = true,
tags = Seq("TH-test", "TH-test-2"),
tags = Seq("src:ORGNAME", "TH-test", "TH-test-2"),
organisationId = alert.organisationId,
caseId = EntityId.empty
)
Expand All @@ -103,7 +103,7 @@ class MispImportSrvTest(implicit ec: ExecutionContext) extends PlaySpecification
val observables = app[Database]
.roTransaction { implicit graph =>
app[OrganisationSrv]
.get(EntityName("admin"))
.get(EntityName("cert"))
.alerts
.getBySourceId("misp", "ORGNAME", "1")
.observables
Expand Down

0 comments on commit 168d776

Please sign in to comment.