howler-sentinel-plugin 0.2.0.dev104__py3-none-any.whl → 0.2.0.dev105__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: howler-sentinel-plugin
3
- Version: 0.2.0.dev104
3
+ Version: 0.2.0.dev105
4
4
  Summary: A howler plugin for integration with Microsoft's Sentinel API
5
5
  License: MIT
6
6
  Author: CCCS
@@ -1,5 +1,5 @@
1
1
  sentinel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- sentinel/actions/azure_emit_hash.py,sha256=MeprMe58pac2ntnDanadsPNjXKmIEBSPchT55XMGFWs,3557
2
+ sentinel/actions/azure_emit_hash.py,sha256=ES9u3iIkm18qcwVT7-f3r8K5d-haCnjSTC7cyOKxH7A,4000
3
3
  sentinel/actions/send_to_sentinel.py,sha256=s07DTPSVTSC4JwmUQe2q6W6MabfHtE43dmRj3nuE7EM,4021
4
4
  sentinel/actions/update_defender_xdr_alert.py,sha256=gXuVZfr7Ou0Lc6BuECmo18E8hfJPhUlM1VMKVCkofk4,6753
5
5
  sentinel/mapping/sentinel_incident.py,sha256=U7fIh8N4Jdr1A4z1E0jPRP28Ll0Cq7u9Q6292AnyRDI,9548
@@ -10,8 +10,8 @@ sentinel/odm/models/sentinel.py,sha256=XT3XdT92uoCV5vmY9dT1jmcxRyuu9vp1gE8AwZdKB
10
10
  sentinel/routes/__init__.py,sha256=JYmKRwIfEsiPos1XuMQ2mlGDbxk6TN_cVEM0K_RNze4,130
11
11
  sentinel/routes/ingest.py,sha256=_9OdOw_9nBJseKIBnmHDLjnqZ_bDdM4wfLpLrek4-ak,7018
12
12
  sentinel/utils/tenant_utils.py,sha256=nGOCbLzUx9OyATLAZ5UbW0WNao_1ioW4wL-htn2ltKU,1324
13
- howler_sentinel_plugin-0.2.0.dev104.dist-info/LICENSE,sha256=Wg2luVnxEkP2NSn11nh1US6W_nFFbICBAVTG9iG3t5M,1091
14
- howler_sentinel_plugin-0.2.0.dev104.dist-info/METADATA,sha256=ZLe75ogUfw2jpQnn5HFe-im3p0YJpzrg7_p7QjhinAE,749
15
- howler_sentinel_plugin-0.2.0.dev104.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
- howler_sentinel_plugin-0.2.0.dev104.dist-info/entry_points.txt,sha256=4IJyMY0V49s3Wp659ngN_7U8g66-czeKxI-_dNAFP5g,60
17
- howler_sentinel_plugin-0.2.0.dev104.dist-info/RECORD,,
13
+ howler_sentinel_plugin-0.2.0.dev105.dist-info/LICENSE,sha256=Wg2luVnxEkP2NSn11nh1US6W_nFFbICBAVTG9iG3t5M,1091
14
+ howler_sentinel_plugin-0.2.0.dev105.dist-info/METADATA,sha256=XI_GN5e_-qHwfo7SpRzuMC0WVEk9s8Ok3e5jcX5mG2o,749
15
+ howler_sentinel_plugin-0.2.0.dev105.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
+ howler_sentinel_plugin-0.2.0.dev105.dist-info/entry_points.txt,sha256=4IJyMY0V49s3Wp659ngN_7U8g66-czeKxI-_dNAFP5g,60
17
+ howler_sentinel_plugin-0.2.0.dev105.dist-info/RECORD,,
@@ -71,6 +71,14 @@ def execute(
71
71
  },
72
72
  timeout=5.0,
73
73
  )
74
+ report.append(
75
+ {
76
+ "query": f"howler.id:{hit.howler.id}",
77
+ "outcome": "success",
78
+ "title": "Webhook Triggered",
79
+ "message": f"Field {field} from alert {hit.howler.id} was successfully sent to url {url}.",
80
+ }
81
+ )
74
82
  except Exception:
75
83
  logger.exception("Exception on network call for alert %s", hit.howler.id)
76
84
  report.append(
@@ -109,6 +117,7 @@ def specification():
109
117
  {
110
118
  "args": {"url": [], "field": []},
111
119
  "options": {"field": [field for field in Hit.flat_fields().keys() if field.endswith("sha256")]},
120
+ "validation": {"warn": {"query": "-_exists_:$field"}},
112
121
  }
113
122
  ],
114
123
  "triggers": VALID_TRIGGERS,