Skip to content

Commit

Permalink
Merge branch 'repo_sync_2024_08_27' into public_main
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI User committed Aug 27, 2024
2 parents fd944fe + 5a717f7 commit d8d629c
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
DO NOT MANUALLY EDIT THIS FILE
THIS FILE IS AUTOMATICALLY GENERATED WITH resilient-sdk codegen
Generated with resilient-sdk v51.0.2.0.974
Generated with resilient-sdk v51.0.2.2.1096
-->

# Example: Microsoft Security Graph Alert Search
Expand All @@ -24,19 +24,17 @@ from datetime import datetime
search = "filter="
conjunction = False

# Assuming rule and artifact are predefined objects with the necessary properties

if rule.properties.microsoft_security_graph_query_start_datetime:
start = datetime.fromisoformat(rule.properties.microsoft_security_graph_query_start_datetime)
start_ts = start.isoformat()
start_filter = "createdDateTime%20ge%20{}".format(start_ts)
start_ts = int(rule.properties.microsoft_security_graph_query_start_datetime) / 1000
start = datetime.fromtimestamp(start_ts)
start_filter = "createdDateTime%20ge%20{}".format(start.isoformat())
search += start_filter
conjunction = True

if rule.properties.microsoft_security_graph_query_end_datetime:
end = datetime.fromisoformat(rule.properties.microsoft_security_graph_query_end_datetime)
end_ts = end.isoformat()
end_filter = "createdDateTime%20le%20{}".format(end_ts)
end_ts = int(rule.properties.microsoft_security_graph_query_end_datetime) / 1000
end = datetime.fromtimestamp(end_ts)
end_filter = "createdDateTime%20le%20{}".format(end.isoformat())
if conjunction:
search += "%20and%20"
search += end_filter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
DO NOT MANUALLY EDIT THIS FILE
THIS FILE IS AUTOMATICALLY GENERATED WITH resilient-sdk codegen
Generated with resilient-sdk v51.0.2.0.974
Generated with resilient-sdk v51.0.2.2.1096
-->

# Example: Microsoft Security Graph Get Alert Details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
DO NOT MANUALLY EDIT THIS FILE
THIS FILE IS AUTOMATICALLY GENERATED WITH resilient-sdk codegen
Generated with resilient-sdk v51.0.2.0.974
Generated with resilient-sdk v51.0.2.2.1096
-->

# Example: Microsoft Security Graph Resolve Alert
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
DO NOT MANUALLY EDIT THIS FILE
THIS FILE IS AUTOMATICALLY GENERATED WITH resilient-sdk codegen
Generated with resilient-sdk v51.0.2.0.974
Generated with resilient-sdk v51.0.2.2.1096
-->

# Example: Microsoft Security Graph Update Alert
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2024. All Rights Reserved.
# Generated with resilient-sdk v51.0.2.0.974
# Generated with resilient-sdk v51.0.2.2.1096

"""Generate the SOAR customizations required for fn_microsoft_security_graph"""

Expand Down

Large diffs are not rendered by default.

0 comments on commit d8d629c

Please sign in to comment.