aws-cloudtrail

Audit AWS account activity with CloudTrail.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "aws-cloudtrail" with this command: npx skills add bagelhole/devops-security-agent-skills/bagelhole-devops-security-agent-skills-aws-cloudtrail

AWS CloudTrail

Audit AWS account activity with CloudTrail.

Create Trail

Create organization trail

aws cloudtrail create-trail
--name org-audit-trail
--s3-bucket-name audit-logs-bucket
--is-organization-trail
--is-multi-region-trail
--enable-log-file-validation
--kms-key-id arn:aws:kms:...

Start logging

aws cloudtrail start-logging --name org-audit-trail

Event Selectors

Log all management and data events

aws cloudtrail put-event-selectors
--trail-name org-audit-trail
--event-selectors '[{ "ReadWriteType": "All", "IncludeManagementEvents": true, "DataResources": [{ "Type": "AWS::S3::Object", "Values": ["arn:aws:s3:::sensitive-bucket/"] }] }]'

CloudTrail Lake

-- Query events SELECT eventTime, userIdentity.userName, eventName, sourceIPAddress FROM cloudtrail_logs WHERE eventTime > '2024-01-01' AND eventName LIKE '%Delete%' ORDER BY eventTime DESC LIMIT 100

Best Practices

  • Organization-wide trails

  • Enable log file validation

  • Encrypt with KMS

  • CloudWatch Logs integration

  • Event alerting

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

sops-encryption

No summary provided by upstream source.

Repository SourceNeeds Review
Security

linux-administration

No summary provided by upstream source.

Repository SourceNeeds Review
Security

linux-hardening

No summary provided by upstream source.

Repository SourceNeeds Review