Skip to content

Commit

Permalink
Merge pull request #101 from splunk/bug_match_es_spelling
Browse files Browse the repository at this point in the history
Update constants.py
  • Loading branch information
pyth0n1c authored Feb 9, 2024
2 parents e854add + bdc28c4 commit 933aa33
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 142 deletions.
134 changes: 0 additions & 134 deletions contentctl/helper/constants.py

This file was deleted.

3 changes: 1 addition & 2 deletions contentctl/input/detection_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
from contentctl.enrichments.cve_enrichment import CveEnrichment
from contentctl.enrichments.splunk_app_enrichment import SplunkAppEnrichment
from contentctl.objects.config import ConfigDetectionConfiguration
from contentctl.helper.constants import *

from contentctl.objects.constants import ATTACK_TACTICS_KILLCHAIN_MAPPING

class DetectionBuilder():
security_content_obj : SecurityContentObject
Expand Down
1 change: 0 additions & 1 deletion contentctl/input/sigma_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from contentctl.input.yml_reader import YmlReader
from contentctl.objects.detection import Detection
from contentctl.objects.data_source import DataSource
from contentctl.helper.constants import *
from contentctl.objects.enums import *
from contentctl.helper.utils import Utils
from contentctl.input.backend_splunk_ba import SplunkBABackend
Expand Down
2 changes: 1 addition & 1 deletion contentctl/input/ssa_detection_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from contentctl.enrichments.cve_enrichment import CveEnrichment
from contentctl.enrichments.splunk_app_enrichment import SplunkAppEnrichment
from contentctl.objects.ssa_detection import SSADetection
from contentctl.helper.constants import *
from contentctl.objects.constants import ATTACK_TACTICS_KILLCHAIN_MAPPING


class SSADetectionBuilder():
Expand Down
8 changes: 4 additions & 4 deletions contentctl/objects/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"Discovery": "Exploitation",
"Lateral Movement": "Exploitation",
"Collection": "Exploitation",
"Command And Control": "Command And Control",
"Command And Control": "Command And Control",
"Command And Control": "Command and Control",
"Command And Control": "Command and Control",
"Exfiltration": "Actions on Objectives",
"Impact": "Actions on Objectives"
}
Expand Down Expand Up @@ -74,7 +74,7 @@
"Delivery": 3,
"Exploitation": 4,
"Installation": 5,
"Command And Control": 6,
"Command and Control": 6,
"Actions on Objectives": 7
}

Expand Down Expand Up @@ -132,4 +132,4 @@
"Command_and_Control": "TA0011",
"Exfiltration": "TA0010",
"Impact": "TA0040"
}
}

0 comments on commit 933aa33

Please sign in to comment.