plurigrid/asi/performing-cloud-forensics-with-aws-cloudtrail
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Perform forensic investigation of AWS environments using CloudTrail logs to reconstruct attacker activity, identify compromised credentials, and analyze API call patterns.
Install
npx vskill@latest install plurigrid/asi/performing-cloud-forensics-with-aws-cloudtrailSKILL.md
Performing Cloud Forensics with AWS CloudTrail
When to Use
- When investigating suspected AWS account compromise
- After detecting unauthorized API calls or credential exposure
- During incident response involving cloud infrastructure
- When analyzing S3 data exfiltration or IAM privilege escalation
- For post-incident forensic timeline reconstruction
Prerequisites
- AWS account with CloudTrail enabled (management and data events)
- IAM permissions for cloudtrail:LookupEvents, s3:GetObject, athena:StartQueryExecution
- boto3 Python SDK installed
- CloudTrail logs delivered to S3 with optional Athena table configured
- AWS CLI configured with appropriate credentials
Workflow
- Scope Investigation: Identify timeframe, affected accounts, and compromised credentials.
- Query CloudTrail: Use boto3 lookup_events or Athena to retrieve relevant API events.
- Filter by Indicators: Search for suspicious user agents, source IPs, and event names.
- Reconstruct Timeline: Build chronological sequence of attacker actions from API calls.
- Analyze Access Patterns: Identify data access, IAM changes, and resource modifications.
- Identify Persistence: Check for new IAM users, access keys, roles, or Lambda functions.
- Generate Report: Produce forensic timeline with findings and remediation steps.
Key Concepts
| Concept | Description | |
|---|---|---|
| LookupEvents | CloudTrail API to query management events (last 90 days) | |
| Athena Queries | SQL queries against CloudTrail logs in S3 for historical analysis | |
| User Agent Analysis | Identify tool signatures (AWS CLI, SDK, console, custom) | |
| AccessKeyId | Track activity by specific IAM access key | |
| EventName | AWS API action name (e.g., GetObject, CreateUser, AssumeRole) | |
| sourceIPAddress | Origin IP of API call for geolocation analysis |
Tools & Systems
| Tool | Purpose | |
|---|---|---|
| boto3 CloudTrail client | Programmatic CloudTrail event lookup | |
| AWS Athena | SQL-based analysis of CloudTrail S3 logs | |
| AWS CLI | Command-line CloudTrail queries | |
| jq | JSON processing for CloudTrail event parsing | |
| CloudTrail Lake | Advanced event data store with SQL query support |
Output Format
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/asi/skills/performing-cloud-forensics-with-aws-cloudtrail/SKILL.md
Popularity
- Repository stars
- 67
- Repository forks
- 12
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/plurigrid/asi/performing-cloud-forensics-with-aws-cloudtrail)