Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions filters/audits/crowdstrike.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# CrowdStrike normalization and rule review

Preserve explicit SourceIp over LocalIP, normalize addresses/outcomes and correct alert grouping.

This draft targets UTMStack `v11`. It contains 1 filter changes
and 8 rule changes for this technology only. Review covered
1 filter configurations and 17 matching shipped rule files.
Unchanged rules are listed in the regression manifest; they are not duplicated in the diff.

## Contract and validation

- Compared exact standard names/types with go-sdk v1.1.31 and the supplied UTMStack dictionaries.
- Checked documented pipeline ordering, rename/move behavior, open vendor log fields,
event-side versus alert-side fields, and surviving fields used by affected rule predicates/history/grouping.
- Strict SDK configuration decoding and actual CEL compilation pass for this scope.
- 2 synthetic normalization cases pass, including SDK Event conversion and any
trigger predicate assertions recorded in the manifest.
- The scoped alerts module tests and `git diff --check` pass with the shared contract runner applied.

The shared alert-contract PR supplies the reusable Go runner for the manifest in
`plugins/alerts/testdata/filter-contracts/crowdstrike.json`. Apply that support before running `go test ./...` in `plugins/alerts`.

The changed rules also require the shared alert-grouping fix to resolve `lastEvent.*` values correctly at runtime.

The model starts from synthetic extraction results. It does not run complex grok,
JSON/KV/XML/CSV extraction, time conversion, dynamic plugins, historical OpenSearch
queries, or the closed EventProcessor. Raw vendor logs and resulting alerts must
still be checked in staging before rollout. No customer false-positive reduction
has been measured and no production rollout is included.



## References

- [SDK schema](https://github.com/threatwinds/go-sdk/blob/v1.1.31/plugins/plugins.proto)
- [Filter steps](https://github.com/threatwinds/go-sdk/wiki/Filter-Steps-Reference)
- [Standard event schema](https://github.com/threatwinds/go-sdk/wiki/Standard-Event-Schema)
- [Rule implementation](https://github.com/threatwinds/go-sdk/wiki/Implementing-Rules)

`afterEvents`, empty noncapturing grok names, supported numeric strings, and custom
`log.*` fields are accepted. Existing textual protocol casing and vendor action names
are preserved unless a concrete consumer mismatch requires correction.
28 changes: 23 additions & 5 deletions filters/crowdstrike/crowdstrike.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,12 @@ pipeline:
from:
- log.event.LocalIP
to: origin.ip
where: '!exists("origin.ip")'

- rename:
from:
- log.event.LocalIP
to: log.eventLocalIP

- rename:
from:
Expand Down Expand Up @@ -680,8 +686,8 @@ pipeline:
function: string
params:
key: actionResult
value: "failed"
where: 'exists("log.eventSuccess") && oneOf("log.eventSuccess", [false, "false"])'
value: failure
where: exists("log.eventSuccess") && oneOf("log.eventSuccess", [false, "false"])
- add:
function: string
params:
Expand All @@ -692,8 +698,8 @@ pipeline:
function: string
params:
key: actionResult
value: "failed"
where: 'exists("statusCode") && greaterOrEqual("statusCode", 400)'
value: failure
where: exists("statusCode") && greaterOrEqual("statusCode", 400)

# .......................................................................#
# Normalizing request method and renaming to action
Expand Down Expand Up @@ -741,4 +747,16 @@ pipeline:
- log.statusCode
- log.event.UserIp
- log.event.Attributes.user_ip
- log.event.Attributes.action_target_name
- log.event.Attributes.action_target_name

# Keep addresses in IP fields and retain other source values under log.
- rename:
from:
- origin.ip
to: log.unparsedOriginIp
where: exists("origin.ip") && (!(inCIDR("origin.ip","0.0.0.0/0") || inCIDR("origin.ip","::/0")) || oneOf("origin.ip",["0.0.0.0","::"]))
- rename:
from:
- target.ip
to: log.unparsedTargetIp
where: exists("target.ip") && (!(inCIDR("target.ip","0.0.0.0/0") || inCIDR("target.ip","::/0")) || oneOf("target.ip",["0.0.0.0","::"]))
64 changes: 64 additions & 0 deletions plugins/alerts/testdata/filter-contracts/crowdstrike.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"technology": "CrowdStrike",
"filters": [
"filters/crowdstrike/crowdstrike.yml"
],
"rules": [
"rules/crowdstrike/critical_role_modification.yml",
"rules/crowdstrike/custom_indicator_of_compromise_(IoC)_detected.yml",
"rules/crowdstrike/deletion_or_deactivation_of_user_account.yml",
"rules/crowdstrike/endpoint_network_containment_action.yml",
"rules/crowdstrike/endpoint_or_XDR_detection_alert.yml",
"rules/crowdstrike/inhibit_system_recovery.yml",
"rules/crowdstrike/ip_whitelisting_modification.yml",
"rules/crowdstrike/major_incident_generated.yml",
"rules/crowdstrike/multiple_authentication_failures_(possible_brute_force_attack).yml",
"rules/crowdstrike/os_credential_dumping_activity.yml",
"rules/crowdstrike/real_time_response_rtr_session_execution.yml",
"rules/crowdstrike/security_defenses_impaired_or_policy_disabled.yml",
"rules/crowdstrike/security_policy_disabled_or_deleted.yml",
"rules/crowdstrike/suspicious_downloader_execution_linux_macos.yml",
"rules/crowdstrike/suspicious_encoded_powershell_execution.yml",
"rules/crowdstrike/suspicious_native_downloaders.yml",
"rules/crowdstrike/windows_event_log_clearing.yml"
],
"fixtures": [
{
"name": "CrowdStrike remote/local split",
"filter": "crowdstrike/crowdstrike.yml",
"input": {
"log": {
"event": {
"SourceIp": "198.51.100.10",
"LocalIP": "10.0.0.8"
}
}
},
"expected": {
"origin.ip": "198.51.100.10",
"log.eventLocalIP": "10.0.0.8"
},
"absent": [
"target.ip"
],
"rules": {}
},
{
"name": "Crowdstrike endpoint source fallback",
"filter": "crowdstrike/crowdstrike.yml",
"input": {
"log": {
"event": {
"LocalIP": "10.0.0.10"
}
}
},
"expected": {
"origin.ip": "10.0.0.10"
},
"absent": [
"target.ip"
]
}
]
}
4 changes: 2 additions & 2 deletions rules/crowdstrike/inhibit_system_recovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ where: >
exists("log.eventCommandLine") &&
regexMatch("log.eventCommandLine", "(?i).*(vssadmin.*delete shadows|wmic.*shadowcopy.*delete|bcdedit.*recoveryenabled.*no).*")
groupBy:
- origin.host
- origin.user
- adversary.host
- adversary.user
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ afterEvents:
operator: filter_term
value: 'false'
deduplicateBy:
- origin.ip
- adversary.ip
4 changes: 2 additions & 2 deletions rules/crowdstrike/os_credential_dumping_activity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ where: >
exists("log.eventCommandLine") &&
regexMatch("log.eventCommandLine", "(?i).*(procdump.*lsass|mimikatz|sekurlsa|lsass\\.dmp).*")
groupBy:
- origin.host
- origin.user
- adversary.host
- adversary.user
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ where: >
equals("log.eventPatternDispositionFlagsPolicyDisabled", true) ||
oneOf("log.eventPatternDispositionValue", [8192, 8208, 8320, 8704, 9216, 10240, 12304, 73728, 73744])
groupBy:
- origin.host
- adversary.host
- lastEvent.log.eventPatternDispositionDescription
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ where: >
exists("log.eventCommandLine") &&
regexMatch("log.eventCommandLine", "(?i).*(curl|wget).*http.*")
groupBy:
- origin.host
- adversary.host
- lastEvent.log.eventCommandLine
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ where: >
exists("log.eventCommandLine") &&
regexMatch("log.eventCommandLine", "(?i).*(powershell|pwsh).*-(e|en|enc|encodedcommand|ec)\\s+.*")
groupBy:
- origin.host
- adversary.host
- lastEvent.log.eventCommandLine
2 changes: 1 addition & 1 deletion rules/crowdstrike/suspicious_native_downloaders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ where: >
exists("log.eventCommandLine") &&
regexMatch("log.eventCommandLine", "(?i).*(certutil.*-urlcache|bitsadmin.*-transfer|curl.*http|wget.*http).*")
groupBy:
- origin.host
- adversary.host
- lastEvent.log.eventCommandLine
4 changes: 2 additions & 2 deletions rules/crowdstrike/windows_event_log_clearing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ where: >
exists("log.eventCommandLine") &&
regexMatch("log.eventCommandLine", "(?i).*(wevtutil\\s+cl.*|Clear-EventLog.*|Remove-EventLog.*).*")
groupBy:
- origin.host
- origin.user
- adversary.host
- adversary.user
Loading