contentctl 5.5.11__py3-none-any.whl → 5.5.13__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.
- contentctl/objects/content_versioning_service.py +6 -10
- contentctl/output/templates/savedsearches_detections.j2 +4 -3
- {contentctl-5.5.11.dist-info → contentctl-5.5.13.dist-info}/METADATA +1 -1
- {contentctl-5.5.11.dist-info → contentctl-5.5.13.dist-info}/RECORD +7 -7
- {contentctl-5.5.11.dist-info → contentctl-5.5.13.dist-info}/WHEEL +0 -0
- {contentctl-5.5.11.dist-info → contentctl-5.5.13.dist-info}/entry_points.txt +0 -0
- {contentctl-5.5.11.dist-info → contentctl-5.5.13.dist-info}/licenses/LICENSE.md +0 -0
|
@@ -7,13 +7,7 @@ from functools import cached_property
|
|
|
7
7
|
from typing import Any, Callable
|
|
8
8
|
|
|
9
9
|
import splunklib.client as splunklib # type: ignore
|
|
10
|
-
from pydantic import
|
|
11
|
-
BaseModel,
|
|
12
|
-
Field,
|
|
13
|
-
PrivateAttr,
|
|
14
|
-
computed_field,
|
|
15
|
-
model_validator,
|
|
16
|
-
)
|
|
10
|
+
from pydantic import BaseModel, Field, PrivateAttr, computed_field, model_validator
|
|
17
11
|
from semantic_version import Version
|
|
18
12
|
from splunklib.binding import HTTPError, ResponseReader # type: ignore
|
|
19
13
|
from splunklib.data import Record # type: ignore
|
|
@@ -422,12 +416,14 @@ class ContentVersioningService(BaseModel):
|
|
|
422
416
|
if self.kvstore_content_versioning:
|
|
423
417
|
query = (
|
|
424
418
|
f"| inputlookup cms_content_lookup | search app_name={self.global_config.app.appid}"
|
|
425
|
-
|
|
419
|
+
"| fields content | spath input=content "
|
|
420
|
+
"| search action.correlationsearch.detection_type=ebd | fields content"
|
|
426
421
|
)
|
|
427
422
|
elif self.indexbased_content_versioning:
|
|
428
423
|
query = (
|
|
429
|
-
|
|
430
|
-
f'app_name="{self.global_config.app.appid}"
|
|
424
|
+
"search index=cms_main sourcetype=stash_common_detection_model "
|
|
425
|
+
f'app_name="{self.global_config.app.appid}" '
|
|
426
|
+
"action.correlationsearch.detection_type=ebd | fields _raw"
|
|
431
427
|
)
|
|
432
428
|
else:
|
|
433
429
|
if self.kvstore_content_versioning:
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
### {{app.label}} DETECTIONS ###
|
|
2
|
-
|
|
3
1
|
[default]
|
|
4
2
|
disabled = 1
|
|
5
3
|
description = "This search was removed in a previous release, or is otherwise not present."
|
|
6
4
|
search = | makeresults | eval text = "This search was removed in a previous release, or is otherwise not present."
|
|
7
5
|
|
|
6
|
+
### {{app.label}} DETECTIONS ###
|
|
7
|
+
|
|
8
|
+
|
|
8
9
|
{% for detection in objects %}
|
|
9
10
|
[{{ detection.get_conf_stanza_name(app) }}]
|
|
10
11
|
action.escu = 0
|
|
11
12
|
action.escu.enabled = 1
|
|
12
|
-
description = {{ detection.status_aware_description | escapeNewlines() }}
|
|
13
|
+
description = {{ detection.status_aware_description | escapeNewlines() }}
|
|
13
14
|
action.escu.mappings = {{ detection.mappings | tojson }}
|
|
14
15
|
action.escu.data_models = {{ detection.datamodel | tojson }}
|
|
15
16
|
action.escu.eli5 = {{ detection.status_aware_description | escapeNewlines() }}
|
|
@@ -44,7 +44,7 @@ contentctl/objects/baseline.py,sha256=EMcuz_9sVgOFh3YCj871GSAA6v3FIkRTf90-LAHq-J
|
|
|
44
44
|
contentctl/objects/baseline_tags.py,sha256=SkGlsfigaARss3itHOgWnKhRDEB6NX8bMhfovrBUmhk,1609
|
|
45
45
|
contentctl/objects/config.py,sha256=la0mUk1183ZD0gav7bGekhJxj4AOjn8hF5p7jwNqdhM,57938
|
|
46
46
|
contentctl/objects/constants.py,sha256=VwwQtJBGC_zb3ukjb3A7P0CwAlyhacWiXczwAW5Jiog,5466
|
|
47
|
-
contentctl/objects/content_versioning_service.py,sha256=
|
|
47
|
+
contentctl/objects/content_versioning_service.py,sha256=y7U71BzaSf49Tp45myV4RPTgjOcyXcBjgy7HEn3Flak,27488
|
|
48
48
|
contentctl/objects/correlation_search.py,sha256=cTFpdcBXmQ9AhOkNK2EK4xOafsIRktsJKNVy4e1WAns,51056
|
|
49
49
|
contentctl/objects/dashboard.py,sha256=wdNCIC1MExvpsB_EyPY9ZDo9Xu9V5WDI6wkunW0fTdk,4995
|
|
50
50
|
contentctl/objects/data_source.py,sha256=O58GArXVlflz3dCtVOn96Ubyi5_ekSC1N9LuveQNws4,2019
|
|
@@ -124,7 +124,7 @@ contentctl/output/templates/header.j2,sha256=3usV7jm1q6J-QNnQrZzII9cN0XEGQjg_eVK
|
|
|
124
124
|
contentctl/output/templates/macros.j2,sha256=SLcQQ5X7TZS8j-2qP06BTXqdIcnwoYqTAaBLX2Dge7Y,390
|
|
125
125
|
contentctl/output/templates/panel.j2,sha256=Cw_W6p-14n6UivVfpS75KKJiJ2VpdGsSBceYsUYe9gk,221
|
|
126
126
|
contentctl/output/templates/savedsearches_baselines.j2,sha256=WHZB4e0vmeym8832VxRmuUfDJ-YRYt6emcYaJrghI58,1709
|
|
127
|
-
contentctl/output/templates/savedsearches_detections.j2,sha256=
|
|
127
|
+
contentctl/output/templates/savedsearches_detections.j2,sha256=2QqPIPt8TNIpOfNCbJAaFHOqE-u2DyKSYaWywDDZK_g,5558
|
|
128
128
|
contentctl/output/templates/savedsearches_fbds.j2,sha256=iYjuEESKzSVyornnBfcR_JPafHHAlff_G2LeXQRGMzc,132
|
|
129
129
|
contentctl/output/templates/savedsearches_investigations.j2,sha256=KH2r8SgyAMiettSHypSbA2-1XmQ_8_8xzk3BkbZ1Re4,1196
|
|
130
130
|
contentctl/output/templates/server.conf.j2,sha256=sPZUkiuJNGm9R8rpjfRKyuAvmmQb0C4w9Q6hpmvmPeU,127
|
|
@@ -165,8 +165,8 @@ contentctl/templates/detections/web/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
|
165
165
|
contentctl/templates/macros/security_content_ctime.yml,sha256=Gg1YNllHVsX_YB716H1SJLWzxXZEfuJlnsgB2fuyoHU,159
|
|
166
166
|
contentctl/templates/macros/security_content_summariesonly.yml,sha256=9BYUxAl2E4Nwh8K19F3AJS8Ka7ceO6ZDBjFiO3l3LY0,162
|
|
167
167
|
contentctl/templates/stories/cobalt_strike.yml,sha256=uj8idtDNOAIqpZ9p8usQg6mop1CQkJ5TlB4Q7CJdTIE,3082
|
|
168
|
-
contentctl-5.5.
|
|
169
|
-
contentctl-5.5.
|
|
170
|
-
contentctl-5.5.
|
|
171
|
-
contentctl-5.5.
|
|
172
|
-
contentctl-5.5.
|
|
168
|
+
contentctl-5.5.13.dist-info/METADATA,sha256=cU0VqTKzYp-ncuQxHUWaJaQZqW8UKSDFIIWowEcqsaw,5144
|
|
169
|
+
contentctl-5.5.13.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
|
|
170
|
+
contentctl-5.5.13.dist-info/entry_points.txt,sha256=5bjZ2NkbQfSwK47uOnA77yCtjgXhvgxnmCQiynRF_-U,57
|
|
171
|
+
contentctl-5.5.13.dist-info/licenses/LICENSE.md,sha256=hQWUayRk-pAiOZbZnuy8djmoZkjKBx8MrCFpW-JiOgo,11344
|
|
172
|
+
contentctl-5.5.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|