-
Notifications
You must be signed in to change notification settings - Fork 587
[New] Command Line Obfuscation via Whitespace Padding #4860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Samirbous
commented
Jun 30, 2025
Rule: New - GuidelinesThese guidelines serve as a reminder set of considerations when proposing a new rule. Documentation and Context
Rule Metadata Checks
New BBR Rules
Testing and Validation
|
Starting the rule tests ... |
Starting the rule tests ... |
rules/windows/defense_evasion_whitespace_padding_command_line.toml
Outdated
Show resolved
Hide resolved
Starting the rule tests ... |
…l to defense_evasion_whitespace_padding_command_line.toml
Starting the rule tests ... |
severity = "medium" | ||
tags = [ | ||
"Domain: Endpoint", | ||
"OS: Windows", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"OS: Windows", | |
"OS: Windows", | |
"OS: macOS", | |
"OS: Linux", |
@@ -0,0 +1,128 @@ | |||
[metadata] | |||
creation_date = "2025/06/30" | |||
integration = ["endpoint", "system", "windows", "auditd_manager", "m365_defender", "crowdstrike"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s1 maybe? cc @w0rk3r
|
||
query = ''' | ||
FROM logs-* metadata _id, _version, _index | ||
| where event.category == "process" and event.type == "start" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| where event.category == "process" and event.type == "start" | |
| where event.category == "process" and ( | |
(host.os.type == "windows" and event.type == "start") or | |
(host.os.type == "macos" and event.type == "start" and event.action == "exec") or | |
(host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "start", "executed", "process_started") | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might help reduce FPs from the start by excluding forks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we need to use match
here instead because of the bug with using in
.
type = "esql" | ||
|
||
query = ''' | ||
FROM logs-* metadata _id, _version, _index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to limit the indexes here, logs-*
would probably be expensive as it will search for all integrations
This supersedes the old deprecated rule #2315 |