Skip to content

Commit

Permalink
Merge pull request #160 from splunk/ssa_build_improvements
Browse files Browse the repository at this point in the history
Improved SSA build process
  • Loading branch information
pyth0n1c authored Jun 7, 2024
2 parents 1f244c2 + bc2ef08 commit 1b7470c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contentctl/output/finding_report_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def writeFindingReport(detection : SSADetection) -> None:
detection.tags.risk_level = "Critical"

evidence_str = "{"
for i in range(len(detection.tags.observable)):
evidence_str = evidence_str + '"' + detection.tags.observable[i]["name"] + '": ' + detection.tags.observable[i]["name"].replace(".", "_")
if not i == (len(detection.tags.observable) - 1):
for i in range(len(detection.tags.required_fields)):
evidence_str = evidence_str + '"' + detection.tags.required_fields[i] + '": ' + detection.tags.required_fields[i].replace(".", "_")
if not i == (len(detection.tags.required_fields) - 1):
evidence_str = evidence_str + ', '

evidence_str = evidence_str + ', "sourceType": metadata.source_type, "source": metadata.source}'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "contentctl"
version = "4.0.3"
version = "4.0.4"
description = "Splunk Content Control Tool"
authors = ["STRT <[email protected]>"]
license = "Apache 2.0"
Expand Down

0 comments on commit 1b7470c

Please sign in to comment.