Skip to content

Commit

Permalink
Adapt grapqhl for new objectLabel and killChainPhases syntax
Browse files Browse the repository at this point in the history
objectLabel, killChainPhases and objectMarking are no longer of the form
edges { node { … } }. See
OpenCTI-Platform/client-python@16c8fe1
for details.
  • Loading branch information
misje committed Feb 1, 2024
1 parent 0d7cd73 commit 02a3349
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions custom-opencti.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,7 @@ def query_opencti(alert, url, token):
'''
fragment Labels on StixCoreObject {
objectLabel {
edges {
node {
value
}
}
value
}
}
Expand Down Expand Up @@ -419,11 +415,7 @@ def query_opencti(alert, url, token):
pattern
...Labels
killChainPhases {
edges {
node {
kill_chain_name
}
}
kill_chain_name
}
}
Expand Down

0 comments on commit 02a3349

Please sign in to comment.