-
Notifications
You must be signed in to change notification settings - Fork 601
[New Rule] File Creation with Curly Braces or Command Substitution #5219
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
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
|
file.name regex~ """.*\{[^\}]*,[^\}]*\}.*""" or | ||
file.name : "*$(*" |
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.
this looks like an expensive query - match on any file creation with regex or wildcards, can't you limit to some processes or file paths ? its OK to push expensive queries if there are no other alternatives and the scenario is so common (top TTPs)
Summary
This rule detects the creation of files with names containing curly braces "{}" or command substitution "$()". Such naming conventions are often used in scripts to dynamically generate file names or execute commands, which can be exploited by attackers for obfuscation or evasion techniques. The presence of these characters in file names may indicate an attempt to create files in a non-standard manner, potentially as part of a malicious activity.