performing-cloud-forensics-with-aws-cloudtrail

Reconstruct attacker activity from AWS CloudTrail logs to identify compromised credentials.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill performing-cloud-forensics-with-aws-cloudtrail
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performing-cloud-forensics-with-aws-cloudtrail
Source: https://github.com/YukiIto1999/ctf-sleuth/tree/main/.claude/skills/performing-cloud-forensics-with-aws-cloudtrail
Command: npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill performing-cloud-forensics-with-aws-cloudtrail

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Perform forensic investigation of AWS environments using CloudTrail logs to reconstruct attacker activity, identify compromised credentials, and analyze API call patterns.

Core Features & Use Cases

  • Reconstruct attacker timeline from CloudTrail events using LookupEvents and optional Athena queries.
  • Track compromised credentials via AccessKeyId, UserName, EventName patterns, and source IPs for attribution.
  • Generate forensic reports including persistence detection and inventory of suspicious API calls for incident response.

Quick Start

Run the forensics agent to scan CloudTrail logs and generate a forensic report.

Frequently Asked Questions about performing-cloud-forensics-with-aws-cloudtrail

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I investigate AWS CloudTrail logs for suspicious IAM changes?

You can investigate suspicious IAM changes by filtering AWS CloudTrail logs via LookupEvents using Username, AccessKeyId, and EventName to trace compromised credentials and reconstruct the attacker's timeline.

How does CloudTrail log analysis help identify compromised AWS credentials?

CloudTrail log analysis identifies compromised AWS credentials by tracking API call patterns, analyzing source IPs and user agents, and mapping unauthorized actions back to specific AccessKeyIds for incident attribution.

Can I use boto3 to automate CloudTrail incident response across multiple AWS accounts?

Yes, you can use boto3 to automate CloudTrail incident response across multiple AWS accounts by querying events, detecting unauthorized API calls, and analyzing S3 data access events for forensic investigations.

What is the best way to reconstruct an attacker timeline from CloudTrail events?

The best way to reconstruct an attacker timeline from CloudTrail events is to use LookupEvents and optional Athena queries to correlate EventName patterns, source IPs, and AccessKeyIds chronologically for forensic reporting.

Does this CloudTrail forensics approach detect unauthorized S3 data access events?

Yes, this CloudTrail forensics approach detects unauthorized S3 data access events by analyzing CloudTrail logs to identify suspicious data access patterns and tracking the source IP and user agent associated with the incident.

What are the limitations of using LookupEvents for AWS cloud forensics?

A limitation of using LookupEvents for AWS cloud forensics is that it only returns recent activity, meaning for deeper historical analysis of attacker patterns across multiple accounts, you must implement optional Athena queries against stored S3 logs.