Skip to content

new: Potential AWS or Google Cloud Credential File Access Via Linux Utility - #6556

Open
MartinChanca wants to merge 1 commit into
SigmaHQ:masterfrom
MartinChanca:new-rule-lnx-cloud-credential-file-access
Open

MartinChanca wants to merge 1 commit into
SigmaHQ:masterfrom
MartinChanca:new-rule-lnx-cloud-credential-file-access

Conversation

@MartinChanca

Copy link
Copy Markdown

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/credentials once 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:

type=EXECVE msg=audit(11/02/2026 18:40:23.957:329) : argc=2 a0=cat a1=/home/user/.aws/credentials
type=SYSCALL msg=audit(11/02/2026 18:40:23.957:329) : ... comm=cat exe=/usr/bin/cat ...

type=EXECVE msg=audit(11/02/2026 18:40:33.585:332) : argc=4 a0=tar a1=czf a2=/tmp/t.tgz a3=/home/user/.aws/credentials
type=SYSCALL msg=audit(11/02/2026 18:40:33.585:332) : ... comm=tar exe=/usr/bin/tar ...

cat ~/.aws/config and ls ~/.aws do 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

  • If your PR adds new rules, please consider following and applying these conventions

Checked with test_logsource.py, test_rules.py and sigma check using 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.

@github-actions github-actions Bot added Rules Review Needed The PR requires review Linux Pull request add/update linux related rules labels Nov 2, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

👉 Join our Discord server

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Linux Pull request add/update linux related rules Review Needed The PR requires review Rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant