Agent skill

Performing Cloud Forensics With AWS Cloudtrail

by mukul975 in mukul975/Anthropic-Cybersecurity-Skills

Investigate AWS account compromise by querying CloudTrail with boto3's LookupEvents or AWS Athena SQL over S3-delivered logs, filtering on suspicious user agents, source IPs, and event names to…

Apache-2.0Auto-check passedSecurity

Install Performing Cloud Forensics With AWS Cloudtrail

skills CLI
$ npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-cloud-forensics-with-aws-cloudtrail -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mukul975/Anthropic-Cybersecurity-Skills performing-cloud-forensics-with-aws-cloudtrail --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/performing-cloud-forensics-with-aws-cloudtrail .claude/skills/performing-cloud-forensics-with-aws-cloudtrail && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
performing-cloud-forensics-with-aws-cloudtrail
GitHub stars
34k
Token cost
~845 tokens
SKILL.md length
272 words
Files
4 (incl. scripts, references)
Skills in repo
637
Repo updated
First seen
Licence
Apache-2.0

At a glance

Investigate AWS account compromise by querying CloudTrail with boto3's LookupEvents or AWS Athena SQL over S3-delivered logs, filtering on suspicious user agents, source IPs, and event names to…

  • Works in 7 steps: Scope Investigation: Identify timeframe,… → Query CloudTrail: Use boto3… → Filter by Indicators: Search for… → …
  • Tracing unauthorized API calls
  • SKILL.md covers When to Use, Prerequisites, Workflow and Key Concepts, plus 2 more sections
  • Runs Python scripts from its folder

What it does

Performing Cloud Forensics With AWS Cloudtrail is an agent skill from mukul975/Anthropic-Cybersecurity-Skills. Investigate AWS account compromise by querying CloudTrail with boto3's LookupEvents or AWS Athena SQL over S3-delivered logs, filtering on suspicious user agents, source IPs, and event names to reconstruct an attacker timeline. Use when tracing unauthorized API calls, S3 data exfiltration, IAM privilege escalation, or credential exposure, and building a forensic report of findings and remediation steps.

Its SKILL.md is about 850 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `references/api-reference.md` and `scripts/agent.py`).

It sits in Security, covering File uploads and storage, Red teaming and adversary simulation and Digital forensics. It works with Amazon Web Services and SQL. The repository describes itself as: 817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io…. The licence is Apache-2.0.

When your agent uses it

  • Tracing unauthorized API calls
  • S3 data exfiltration
  • IAM privilege escalation
  • Credential exposure

Example prompts

  • “/performing-cloud-forensics-with-aws-cloudtrail”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Scope Investigation: Identify timeframe, affected accounts, and compromised credentials.
  2. Query CloudTrail: Use boto3 lookup_events or Athena to retrieve relevant API events.
  3. Filter by Indicators: Search for suspicious user agents, source IPs, and event names.
  4. Reconstruct Timeline: Build chronological sequence of attacker actions from API calls.
  5. Analyze Access Patterns: Identify data access, IAM changes, and resource modifications.
  6. Identify Persistence: Check for new IAM users, access keys, roles, or Lambda functions.
  7. Generate Report: Produce forensic timeline with findings and remediation steps.

What it can do on your machine

Read from SKILL.md and the folder at commit 54a7988. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Performing Cloud Forensics With AWS Cloudtrail loads about 845 tokens when it runs, and up to ~1.7k if it reads all its reference files. Until then it costs about 113 tokens; SKILL.md has 272 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~113
When it runs · the whole SKILL.md, loaded when a task matches
~845
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from mukul975/Anthropic-Cybersecurity-Skills at commit 54a7988, republished under its Apache-2.0 licence (© mukul975). 272 words, ~845 tokens.

Download SKILL.mdSave it as .claude/skills/performing-cloud-forensics-with-aws-cloudtrail/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
performing-cloud-forensics-with-aws-cloudtrail
description
Investigate AWS account compromise by querying CloudTrail with boto3's LookupEvents or AWS Athena SQL over S3-delivered logs, filtering on suspicious user agents, source IPs, and event names to reconstruct an attacker timeline. Use when tracing unauthorized API calls, S3 data exfiltration, IAM privilege escalation, or credential exposure, and building a forensic report of findings and remediation steps.
domain
cybersecurity
subdomain
cloud-security
tags
cloud-security, aws, cloudtrail, forensics, incident-response, dfir, boto3, s3
version
1.0
author
mahipal
license
Apache-2.0
nist_csf
PR.IR-01, ID.AM-08, GV.SC-06, DE.CM-01
mitre_attack
T1078.004, T1530, T1537, T1580, T1003

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

  1. Scope Investigation: Identify timeframe, affected accounts, and compromised credentials.
  2. Query CloudTrail: Use boto3 lookup_events or Athena to retrieve relevant API events.
  3. Filter by Indicators: Search for suspicious user agents, source IPs, and event names.
  4. Reconstruct Timeline: Build chronological sequence of attacker actions from API calls.
  5. Analyze Access Patterns: Identify data access, IAM changes, and resource modifications.
  6. Identify Persistence: Check for new IAM users, access keys, roles, or Lambda functions.
  7. Generate Report: Produce forensic timeline with findings and remediation steps.

Key Concepts

ConceptDescription
LookupEventsCloudTrail API to query management events (last 90 days)
Athena QueriesSQL queries against CloudTrail logs in S3 for historical analysis
User Agent AnalysisIdentify tool signatures (AWS CLI, SDK, console, custom)
AccessKeyIdTrack activity by specific IAM access key
EventNameAWS API action name (e.g., GetObject, CreateUser, AssumeRole)
sourceIPAddressOrigin IP of API call for geolocation analysis

Tools & Systems

ToolPurpose
boto3 CloudTrail clientProgrammatic CloudTrail event lookup
AWS AthenaSQL-based analysis of CloudTrail S3 logs
AWS CLICommand-line CloudTrail queries
jqJSON processing for CloudTrail event parsing
CloudTrail LakeAdvanced event data store with SQL query support

Output Format

Forensic Report: AWS-IR-[DATE]-[SEQ]
Account: [AWS Account ID]
Timeframe: [Start] to [End]
Compromised Credentials: [Access Key IDs]
Suspicious Events: [Count]
Source IPs: [List of attacker IPs]
Actions Taken: [API calls by attacker]
Data Accessed: [S3 objects, secrets, etc.]
Persistence Mechanisms: [New users, keys, roles]

© mukul975, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in skills/performing-cloud-forensics-with-aws-cloudtrail of mukul975/Anthropic-Cybersecurity-Skills.

  • SKILL.md
  • LICENSE
  • references/api-reference.md
  • scripts/agent.py

Open the folder on GitHubat commit 54a7988

Compare with similar skills

Performing Cloud Forensics With AWS Cloudtrail next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Performing Cloud Forensics With AWS Cloudtrail compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Performing Cloud Forensics With AWS Cloudtrail this skillmukul975/Anthropic-Cybersecurity-Skills34k—~845Automated safety check: PassApache-2.0
Querying Data Lakeaws/agent-toolkit-for-aws2.8k—~1.9kAutomated safety check: PassApache-2.0
Querying AWS Cloudwatchaws/agent-toolkit-for-aws2.8k—~3.5kAutomated safety check: PassApache-2.0
Redshift Guideaws/agent-toolkit-for-aws2.8k—~2.6kAutomated safety check: PassApache-2.0
Querying AWS Sagemaker Catalogaws/agent-toolkit-for-aws2.8k—~2.6kAutomated safety check: PassApache-2.0
Investigating AWS Incidentstrilwu/secskills156—~4.8kAutomated safety check: PassMIT

Similar skills

  • Querying Data Lake

    aws/agent-toolkit-for-aws

    Official

    Execute and manage Athena SQL queries across default and federated catalogs (Glue, S3 Tables, Redshift).

    2.8k GitHub stars~1.9k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Querying AWS Cloudwatch

    aws/agent-toolkit-for-aws

    Official

    Runs SQL queries on CloudWatch Logs data exported as Apache Iceberg tables in S3 Tables.

    2.8k GitHub stars~3.5k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Redshift Guide

    aws/agent-toolkit-for-aws

    Official

    Amazon Redshift is NOT PostgreSQL — corrects PostgreSQL-derived LLM mistakes; covers Redshift-specific SQL, DDL, COPY/UNLOAD, system views, metadata discovery, and operational patterns.

    2.8k GitHub stars~2.6k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Querying AWS Sagemaker Catalog

    aws/agent-toolkit-for-aws

    Official

    Runs SQL analytics on SageMaker Catalog asset metadata tables exported as Apache Iceberg in S3 Tables.

    2.8k GitHub stars~2.6k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Investigate security incidents in Amazon Web Services -- reconstruct attacker activity from CloudTrail, VPC Flow Logs, and GuardDuty, anchor the investigation on the compromised principal (access…

    156 GitHub stars~4.8k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Rds Db2

    aws/agent-toolkit-for-aws

    Official

    Provisions, connects, migrates, and operates Amazon RDS for Db2.

    2.8k GitHub stars~6.9k tokensUpdated yesterday
    SecurityAuto-check passed

More from mukul975/Anthropic-Cybersecurity-Skills

All 637 skills in this repo
  • Campaign Attribution Evidence Analysis

    mukul975/Anthropic-Cybersecurity-Skills

    Weighs infrastructure, TTP, malware code and timing evidence with the Diamond Model and competing hypotheses to reach a confidence-rated attribution.

    34k GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Go Malware Analysis in Ghidra

    mukul975/Anthropic-Cybersecurity-Skills

    Walks through reverse engineering Go-compiled malware in Ghidra: parsing buildinfo and pclntab, recovering stripped function names and extracting dependencies.

    34k GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • LNK and Jump List Forensics

    mukul975/Anthropic-Cybersecurity-Skills

    Guides forensic analysis of Windows LNK shortcut files and Jump Lists with LECmd, JLECmd and manual parsing to show file access and program execution.

    34k GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Malware Persistence Analysis with Autoruns

    mukul975/Anthropic-Cybersecurity-Skills

    Hunts Windows malware persistence with Sysinternals Autoruns, covering run keys, services, scheduled tasks and drivers, with baseline comparison.

    34k GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • NTFS MFT Deleted File Recovery

    mukul975/Anthropic-Cybersecurity-Skills

    Guides a Windows forensic examination of the NTFS Master File Table to recover deleted-file evidence, build timelines and spot timestomping.

    34k GitHub stars~2.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Network Covert Channel Analysis

    mukul975/Anthropic-Cybersecurity-Skills

    Detects DNS tunneling, ICMP exfiltration and HTTP-based covert channels in packet captures and DNS logs when hunting for hidden command-and-control traffic.

    34k GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Performing Cloud Forensics With AWS Cloudtrail

What does Performing Cloud Forensics With AWS Cloudtrail do?

Investigate AWS account compromise by querying CloudTrail with boto3's LookupEvents or AWS Athena SQL over S3-delivered logs, filtering on suspicious user agents, source IPs, and event names to…. Performing Cloud Forensics With AWS Cloudtrail is an agent skill from mukul975/Anthropic-Cybersecurity-Skills. Investigate AWS account compromise by querying CloudTrail with boto3's LookupEvents or AWS Athena SQL over S3-delivered logs, filtering on suspicious user agents, source IPs, and event names to reconstruct an attacker timeline.

When should I use Performing Cloud Forensics With AWS Cloudtrail?

Performing Cloud Forensics With AWS Cloudtrail fits situations like: tracing unauthorized API calls; S3 data exfiltration; IAM privilege escalation; credential exposure.

How do I install Performing Cloud Forensics With AWS Cloudtrail in Claude Code?

Run `npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-cloud-forensics-with-aws-cloudtrail -a claude-code`. Or copy the skill folder (skills/performing-cloud-forensics-with-aws-cloudtrail in mukul975/Anthropic-Cybersecurity-Skills) into .claude/skills/performing-cloud-forensics-with-aws-cloudtrail in your project. Claude Code loads it when a task matches its description.

How do I install Performing Cloud Forensics With AWS Cloudtrail in Codex?

Run `npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-cloud-forensics-with-aws-cloudtrail -a codex`. Or copy the skill folder (skills/performing-cloud-forensics-with-aws-cloudtrail in mukul975/Anthropic-Cybersecurity-Skills) into .agents/skills/performing-cloud-forensics-with-aws-cloudtrail in your project. Codex loads it when a task matches its description.

Can I use Performing Cloud Forensics With AWS Cloudtrail in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-cloud-forensics-with-aws-cloudtrail -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/performing-cloud-forensics-with-aws-cloudtrail, .gemini/skills/performing-cloud-forensics-with-aws-cloudtrail, .github/skills/performing-cloud-forensics-with-aws-cloudtrail and .opencode/skills/performing-cloud-forensics-with-aws-cloudtrail in your project.

What does Performing Cloud Forensics With AWS Cloudtrail need to run?

Going by SKILL.md and its folder, Performing Cloud Forensics With AWS Cloudtrail needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Performing Cloud Forensics With AWS Cloudtrail access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Performing Cloud Forensics With AWS Cloudtrail safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Performing Cloud Forensics With AWS Cloudtrail use?

Performing Cloud Forensics With AWS Cloudtrail is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Performing Cloud Forensics With AWS Cloudtrail use?

About 845 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 811 tokens, read only when the agent opens those files.

What are the alternatives to Performing Cloud Forensics With AWS Cloudtrail?

Skills that share tags, products or a category with Performing Cloud Forensics With AWS Cloudtrail: Querying Data Lake (aws/agent-toolkit-for-aws, 2.8k stars), Querying AWS Cloudwatch (aws/agent-toolkit-for-aws, 2.8k stars), Redshift Guide (aws/agent-toolkit-for-aws, 2.8k stars) and Querying AWS Sagemaker Catalog (aws/agent-toolkit-for-aws, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Performing Cloud Forensics With AWS Cloudtrail?

mukul975 (a GitHub user) maintains it in mukul975/Anthropic-Cybersecurity-Skills, which has 33,922 GitHub stars. The repository holds 637 skills in this directory. The repository was last updated on August 31, 2026.

Source: mukul975/Anthropic-Cybersecurity-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.