aws-cloudtrail
Skill by sickn33
Configure AWS CloudTrail for audit logging, including organization trails, event selectors, CloudWatch alerts and Athena log queries. Built for security teams handling compliance reviews and incident investigations.
Install aws-cloudtrail
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/aws-cloudtrail ~/.claude/skills/aws-cloudtrailRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/aws-cloudtrail ~/.gemini/antigravity-cli/skills/aws-cloudtrailAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an assistant AWS CLI commands and checklists for configuring AWS CloudTrail audit logging. It covers creating an organization trail with an S3 bucket for log storage, including encryption, versioning, public access blocking and lifecycle rules. It also covers advanced event selectors for management and data events, CloudWatch metric filters and alarms for sensitive activity, and Athena table definitions and queries for analysing logs.
The source says it is meant for compliance work such as SOC 2, HIPAA, PCI DSS or FedRAMP, security investigations and forensic analysis. It asks users to check permissions and export existing configuration before making changes, because put operations can replace settings. The snippets use placeholder names and account IDs and do not create dependencies such as KMS keys or IAM roles. It is published under the MIT license by a community contributor.
Written from the project's SKILL.md and checked against it.
What it can do
- Organization trail setupCreates a multi-region organization trail that writes logs to an S3 bucket.
- Audit bucket hardeningApplies bucket policy, public access block, versioning, encryption and lifecycle rules.
- Event selectorsConfigures advanced selectors for management, S3, Lambda and DynamoDB data events.
- CloudWatch alertsAdds metric filters and alarms for unauthorized calls, root usage and IAM or security group changes.
- Athena queriesDefines a CloudTrail table in Athena and provides queries for deletes, console logins and access key use.
What you need
- AWS account with organization management or delegated administrator permissions
- AWS CLI
- KMS key policy, CloudWatch log group and IAM role set up before use
- Budget review for paid data events, Lake and Athena scope
Try asking
- Set up an organization CloudTrail trail with encrypted S3 log storage
- Create CloudWatch alarms for root account usage and IAM policy changes
- Write an Athena query for console logins from unexpected IP addresses
Good to know
- Snippets use synthetic placeholder names, account IDs and ARNs.
- put-* operations can replace existing configuration, so export current settings first.
- Log-file validation detects changes but does not prevent deletion.
- Does not provision KMS keys, CloudWatch log groups or IAM roles.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/aws-cloudtrail/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md20 KB
Alternatives to aws-cloudtrail
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
aws-cloudtrail: common questions
Does this skill create the AWS dependencies for me?
No. The source says the snippets do not provision dependencies such as KMS keys, log groups or IAM roles, which must exist first.
Is log file validation enough to stop log deletion?
No. The source says log-file validation detects changes but does not prevent deletion, and versioning alone is not immutable retention.
Which compliance frameworks does this skill mention?
The source lists SOC 2, HIPAA, PCI DSS and FedRAMP as compliance requirements the logging setup may help meet.
How do I install aws-cloudtrail?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is aws-cloudtrail free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is aws-cloudtrail safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to aws-cloudtrail?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
