mukul975/anthropic-cybersecurity-skills/detecting-s3-data-exfiltration-attempts
Claude Code and agent skill by mukul975/anthropic-cybersecurity-skills
- community
Checking that the SKILL.md file is still in the repository.
'Detecting data exfiltration attempts from AWS S3 buckets by analyzing
Install
npx vskill@latest install mukul975/anthropic-cybersecurity-skills/detecting-s3-data-exfiltration-attemptsSKILL.md
The same SKILL.md was published earlier as mukul975/anthropic-cybersecurity-skills/detecting-s3-data-exfiltration-attempts.
Detecting S3 Data Exfiltration Attempts
When to Use
- When GuardDuty detects anomalous S3 access patterns such as bulk downloads from unusual IPs
- When investigating suspected data breach involving S3-stored sensitive data
- When building detection rules for S3 data loss prevention monitoring
- When responding to Macie alerts about sensitive data being accessed or moved
- When compliance requires monitoring and logging of all access to classified data stores
Do not use for preventing data exfiltration (use S3 bucket policies, VPC endpoints, and SCPs), for data classification (use Amazon Macie discovery jobs), or for network-level exfiltration detection (use VPC Flow Logs with network analysis tools).
Prerequisites
- CloudTrail configured with S3 data event logging (
GetObject,PutObject,CopyObject) - GuardDuty enabled with S3 Protection feature activated
- Amazon Macie enabled for sensitive data discovery in target buckets
- CloudWatch Logs or Athena for querying CloudTrail logs at scale
- VPC endpoint policies configured for S3 access monitoring
Workflow
Step 1: Enable S3 Data Event Logging in CloudTrail
Configure CloudTrail to capture all S3 object-level operations for forensic analysis.
Step 2: Query CloudTrail for Anomalous S3 Access Patterns
Analyze CloudTrail logs for bulk download activity, unusual access times, and unfamiliar source IPs.
Step 3: Review GuardDuty S3 Findings
Check for GuardDuty S3-specific finding types that indicate exfiltration activity.
Step 4: Analyze Macie Findings for Sensitive Data Access
Review Macie findings to correlate data sensitivity with access anomalies.
Step 5: Build Automated Detection Rules
Create CloudWatch alarms and EventBridge rules for real-time exfiltration detection.
Step 6: Implement Preventive Controls
Deploy bucket policies and VPC endpoint policies to restrict data movement paths.
Key Concepts
| Term | Definition | |
|---|---|---|
| S3 Data Events | CloudTrail object-level logging that captures GetObject, PutObject, DeleteObject, and CopyObject API calls with request details | |
| GuardDuty S3 Protection | Threat detection feature analyzing CloudTrail S3 data events to identify anomalous access patterns and exfiltration attempts | |
| Amazon Macie | Data security service that discovers and classifies sensitive data in S3 and generates findings for data exposure risks | |
| VPC Endpoint Policy | Access control policy on an S3 VPC endpoint that restricts which buckets and actions can be accessed through the endpoint | |
| Data Exfiltration | Unauthorized transfer of data from an organization's S3 storage to an external location controlled by an attacker | |
| Anomalous Behavior Detection | Machine learning-based identification of S3 access patterns that deviate from established baselines for a principal |
Tools & Systems
- AWS CloudTrail: Audit logging of S3 object-level operations for forensic analysis and anomaly detection
- Amazon GuardDuty: ML-based threat detection with S3-specific finding types for exfiltration and unauthorized access
- Amazon Macie: Sensitive data discovery and classification for correlating access anomalies with data sensitivity
- Amazon Athena: SQL query engine for analyzing CloudTrail logs at scale to identify bulk download patterns
- CloudWatch Logs Insights: Real-time log analysis for building detection queries against CloudTrail data
Common Scenarios
Scenario: Compromised IAM Credentials Used for Bulk S3 Data Download
Context: GuardDuty reports an Exfiltration:S3/ObjectRead.Unusual finding indicating that a developer's access key is downloading thousands of objects from a sensitive data bucket at 3 AM from an IP address in a foreign country.
Approach:
- Immediately deactivate the compromised access key
- Query CloudTrail for all S3 actions by the compromised principal in the last 72 hours
- Identify which buckets and objects were accessed using Athena queries
- Cross-reference accessed objects with Macie classifications to assess data sensitivity
- Check for CopyObject calls to external accounts (cross-account exfiltration)
- Review how the credentials were compromised (TruffleHog scan, phishing investigation)
- Implement VPC endpoint policies to restrict future S3 access to approved network paths
Pitfalls: CloudTrail S3 data events can generate massive log volume. Use Athena with partitioned tables rather than CloudWatch Logs Insights for queries spanning more than 24 hours. GuardDuty baseline learning requires 7-14 days, so new accounts may generate false positives for normal access patterns.
Output Format
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/detecting-s3-data-exfiltration-attempts/SKILL.md
Popularity
- Repository stars
- 33,533
- Repository forks
- 4,067
- 7-day trend score
- 52
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 May 2026, 6 months ago.
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/mukul975/anthropic-cybersecurity-skills/detecting-s3-data-exfiltration-attempts)