splunk-soar-sdk 3.0.0__py3-none-any.whl → 3.1.0__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.
- soar_sdk/models/finding.py +54 -0
- {splunk_soar_sdk-3.0.0.dist-info → splunk_soar_sdk-3.1.0.dist-info}/METADATA +1 -1
- {splunk_soar_sdk-3.0.0.dist-info → splunk_soar_sdk-3.1.0.dist-info}/RECORD +6 -5
- {splunk_soar_sdk-3.0.0.dist-info → splunk_soar_sdk-3.1.0.dist-info}/WHEEL +0 -0
- {splunk_soar_sdk-3.0.0.dist-info → splunk_soar_sdk-3.1.0.dist-info}/entry_points.txt +0 -0
- {splunk_soar_sdk-3.0.0.dist-info → splunk_soar_sdk-3.1.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
from pydantic import BaseModel
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class DrilldownSearch(BaseModel):
|
|
6
|
+
"""Represents a drilldown search in a finding."""
|
|
7
|
+
|
|
8
|
+
name: str
|
|
9
|
+
search: str
|
|
10
|
+
earliest: str
|
|
11
|
+
latest: str
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DrilldownDashboard(BaseModel):
|
|
15
|
+
"""Represents a drilldown dashboard in a finding."""
|
|
16
|
+
|
|
17
|
+
dashboard: str
|
|
18
|
+
name: str
|
|
19
|
+
tokens: list[str] | None = None
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class Finding(BaseModel):
|
|
23
|
+
"""Represents a finding to be created during on_finding.
|
|
24
|
+
|
|
25
|
+
Findings are stored in ES and can be associated with SOAR containers/artifacts
|
|
26
|
+
for investigation workflow.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
class Config:
|
|
30
|
+
"""Pydantic config."""
|
|
31
|
+
|
|
32
|
+
extra = "forbid"
|
|
33
|
+
|
|
34
|
+
rule_title: str
|
|
35
|
+
rule_description: str
|
|
36
|
+
security_domain: str
|
|
37
|
+
risk_object: str
|
|
38
|
+
risk_object_type: str
|
|
39
|
+
risk_score: float
|
|
40
|
+
status: str | None = None
|
|
41
|
+
urgency: str | None = None
|
|
42
|
+
owner: str | None = None
|
|
43
|
+
disposition: str | None = None
|
|
44
|
+
drilldown_searches: list[DrilldownSearch] | None = None
|
|
45
|
+
drilldown_dashboards: list[DrilldownDashboard] | None = None
|
|
46
|
+
annotations: dict[str, list[str]] | None = None
|
|
47
|
+
risk_event_count: int | None = None
|
|
48
|
+
all_risk_objects: list[str] | None = None
|
|
49
|
+
source: list[str] | None = None
|
|
50
|
+
exclude_map_fields: list[str] | None = None
|
|
51
|
+
|
|
52
|
+
def to_dict(self) -> dict[str, Any]:
|
|
53
|
+
"""Convert the finding to a dictionary."""
|
|
54
|
+
return self.dict(exclude_none=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: splunk-soar-sdk
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: The official framework for developing and testing Splunk SOAR Apps
|
|
5
5
|
Project-URL: Homepage, https://github.com/phantomcyber/splunk-soar-sdk
|
|
6
6
|
Project-URL: Documentation, https://github.com/phantomcyber/splunk-soar-sdk
|
|
@@ -66,6 +66,7 @@ soar_sdk/meta/webhooks.py,sha256=E5pdoD9j7FDeM2DBTO2h9Yw6-5flzp-NfhM_M1oPAUU,121
|
|
|
66
66
|
soar_sdk/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
67
|
soar_sdk/models/artifact.py,sha256=OlYp150sf9sYvTz6tC7PaYV1qbBvQYrz1bXmC2xNj8Q,1086
|
|
68
68
|
soar_sdk/models/container.py,sha256=SYdDiyeUGm8dFpOdPl5BGVM1UO2onJsJCiax-1-hZGo,1492
|
|
69
|
+
soar_sdk/models/finding.py,sha256=Yhw4mOJLeZj7ylDgxbjJs9wm_xzK6Sbkr4r3XOtL0PM,1414
|
|
69
70
|
soar_sdk/models/vault_attachment.py,sha256=IQPX239OFClVfOKr9nHIu9Is55cXWBaOgM2lG5Lt-b4,1072
|
|
70
71
|
soar_sdk/models/view.py,sha256=frfbNdWfzc0XjiU3CY79zBJxvzUsgLdFmphVeZ6QqTc,777
|
|
71
72
|
soar_sdk/shims/phantom/action_result.py,sha256=yDiV2f3kt5G9UYejpe0JFeo651f3Uv-fTSoIlfg3DGg,1606
|
|
@@ -97,8 +98,8 @@ soar_sdk/views/components/pie_chart.py,sha256=LVTeHVJN6nf2vjUs9y7PDBhS0U1fKW750l
|
|
|
97
98
|
soar_sdk/webhooks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
98
99
|
soar_sdk/webhooks/models.py,sha256=PG9SDs5xXqtFndm5C8AsJOTYXU5v_UTY7SpYosWT_CA,4542
|
|
99
100
|
soar_sdk/webhooks/routing.py,sha256=MnzbnIDy2uG_5mJzsTeX-NsE6QYvzyqEGbHmEFj-DG8,6900
|
|
100
|
-
splunk_soar_sdk-3.
|
|
101
|
-
splunk_soar_sdk-3.
|
|
102
|
-
splunk_soar_sdk-3.
|
|
103
|
-
splunk_soar_sdk-3.
|
|
104
|
-
splunk_soar_sdk-3.
|
|
101
|
+
splunk_soar_sdk-3.1.0.dist-info/METADATA,sha256=AyJBAA3lbCNV4tHHtHb4ca7u4MCHj9_C2exQfMeydik,7334
|
|
102
|
+
splunk_soar_sdk-3.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
103
|
+
splunk_soar_sdk-3.1.0.dist-info/entry_points.txt,sha256=CgBjo2ZWpYNkt9TgvToL26h2Tg1yt8FbvYTb5NVgNuc,51
|
|
104
|
+
splunk_soar_sdk-3.1.0.dist-info/licenses/LICENSE,sha256=gNCGrGhrSQb1PUzBOByVUN1tvaliwLZfna-QU2r2hQ8,11345
|
|
105
|
+
splunk_soar_sdk-3.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|