Repository navigation
new: Potential AWS or Google Cloud Credential File Access Via Linux Utility - #6556
Open
MartinChanca wants to merge 1 commit into
Open
MartinChanca wants to merge 1 commit into
MartinChanca wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Welcome @TinchoLay 👋
It looks like this is your first pull request on the Sigma rules repository!
Please read the SigmaHQ conventions to ensure your contribution adheres to best practices and includes all the necessary elements for a successful review.
Also check CONTRIBUTING.md for more information on how to contribute to the Sigma rules repository, specifically proper testing and validation of your rules.
Thanks again, and welcome to the Sigma community! 😃
If you want to engage more with the community for official support, general discussions or announcements:
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
Adds a low-level Linux process_creation rule that detects common file-reading, copying and archiving tools (cat, cp, tar, curl and similar) run on the AWS shared credentials file or on the Google Cloud credential stores. I searched the repository for aws/credentials and gcloud paths before writing it and found no existing Linux rule for them.
The behavior comes from an SSH honeypot I run: a client logged in with a weak password and ran
cat ~/.aws/credentialsonce an hour. The rule is deliberately narrow (two cloud providers, a fixed tool list) so that it is easy to review. Credential-hunting patterns for API keys would be a separate rule.Changelog
new: Potential AWS or Google Cloud Credential File Access Via Linux Utility
Example Log Event
Tested on Ubuntu Server 24.04 with auditd 3.1.2 (execve rule). Image is the
exe=of the SYSCALL record and CommandLine is the joined EXECVE arguments of the same event:cat ~/.aws/configandls ~/.awsdo not match.docker run -v ~/.aws/credentials:...does not match because docker is not in the tool list.Fixed Issues
None.
SigmaHQ Rule Creation Conventions
Checked with
test_logsource.py,test_rules.pyandsigma checkusing the repository validation config (no issues), and on real auditd events. Known limits: a relative path (cd ~/.aws && cat credentials) is not matched, and I have not tested it with Sysmon for Linux. I used an AI assistant (Claude) to help draft and test the rule, and I ran and checked it myself.