-
Notifications
You must be signed in to change notification settings - Fork 612
[New Rule] AWS EC2 LOLBin Execution via SSM #5354
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
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
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
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
| Esql.aws_cloudtrail_first_event_ts | ||
| ) <= 5 | ||
| | SORT Esql.aws_cloudtrail_first_event_ts ASC | ||
| | KEEP Esql.*, Esql_priv.* |
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.
KEEP with a wildcard. Interesting.
Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com>
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
Samirbous
left a comment
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.
🔥 LGTM!
| type = "esql" | ||
|
|
||
| query = ''' | ||
| FROM logs-aws.cloudtrail*, logs-endpoint.* 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.
| FROM logs-aws.cloudtrail*, logs-endpoint.* METADATA _id, _version, _index | |
| FROM logs-aws.cloudtrail*, logs-endpoint.events.process-* METADATA _id, _version, _index |
| "ssh", | ||
| "scp", | ||
| "sftp", | ||
| "rsync" |
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.
optional - add sed systemctl and chmod
Fixes #5353
Pull Request
Issue link(s):
Summary - What I changed
Adds a high-fidelity AWS / Endpoint multi-domain correlation rule for abused AWS SSM document (AWS-RunShellScript) to EC2 instances for LOLBin / GTFOBin activity. Please see issue for more detail.
How To Test
Query can be tested in TRADE stack on date
October 18, 2025. Emulation was done via pAWS.Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist