Skip to content

Commit

Permalink
#52 Don't export to MISP observables which are not IOC
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Sep 11, 2017
1 parent a48e67b commit 4e795d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive-misp/app/connectors/misp/MispSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class MispSrv @Inject() (
def getAttributesFromCase(caze: Case): Future[Seq[ExportedMispAttribute]] = {
import org.elastic4play.services.QueryDSL._
artifactSrv
.find(and(withParent(caze), "status" ~= "Ok"), Some("all"), Nil)
.find(and(withParent(caze), "status" ~= "Ok", "ioc" ~= true), Some("all"), Nil)
._1
.map { artifact
val (category, tpe) = fromArtifact(artifact.dataType(), artifact.data())
Expand Down

0 comments on commit 4e795d0

Please sign in to comment.