Skip to content

Commit

Permalink
Filters format migration for OpenCTI 5.12 (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
evost authored Jun 12, 2024
1 parent 00565e5 commit ba1cfe3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions analyzers/OpenCTI/opencti.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,16 @@ def run(self):

# Get a list of reports containing this observable
reports = opencti["api_client"].report.list(
filters=[
{
"key": "objectContains",
filters={
"mode": "and",
"filters": [{
"key": "objects",
"values": [observable["id"]],
}
]
"operator": "eq",
"mode": "or",
},],
"filterGroups": [],
}
)

# Strip reports data for lighter output.
Expand Down

0 comments on commit ba1cfe3

Please sign in to comment.