agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/aws-security/guardduty-triage/SKILL.md

guardduty-triage

Skill0 starsChanged 14 days agoMITView on GitHub

Triage Amazon GuardDuty findings (and correlated Security Hub/Detective data) — understand finding types (UnauthorizedAccess, CredentialAccess, Recon, CryptoCurrency, Exfiltration, Runtime, Malware Protection, Attack Sequence), validate with CloudTrail/VPC/DNS logs, and respond. Use when a GuardDuty finding fires or when tuning GuardDuty suppression rules.

The file

Files
SKILL.md

GuardDuty Triage

Get finding details

aws guardduty list-detectors
aws guardduty list-findings --detector-id <id> --finding-criteria '{"Criterion":{"severity":{"Gte":7}}}'
aws guardduty get-findings --detector-id <id> --finding-ids <fid> > finding.json
jq '.Findings[0] | {Type, Severity, Resource, Service: .Service | {Action, Evidence, Count, EventFirstSeen, EventLastSeen}}' finding.json

Finding type format: ThreatPurpose:ResourceTypeAffected/ThreatFamilyName.DetectionMechanism!Artifact, e.g. UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS.

High-priority types (examples)

FindingMeaningFirst checks
UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS / .InsideAWSEC2 role credentials used from another hostInstance compromise (SSRF/IMDSv1?); CloudTrail for that session key
CredentialAccess:IAMUser/AnomalousBehavior, Discovery:IAMUser/AnomalousBehaviorML-anomalous API useWho/where; cloudtrail-investigation
Stealth:IAMUser/CloudTrailLoggingDisabledTrail stoppedImmediate incident
Policy:IAMUser/RootCredentialUsageRoot usedVerify with owner
CryptoCurrency:EC2/BitcoinTool.B!DNSMining pool DNS from instanceInstance compromise
Backdoor:EC2/C&CActivity.B!DNSKnown C2 domain lookupIsolate instance
Execution:Runtime/*, PrivilegeEscalation:Runtime/*Runtime Monitoring on EC2/EKS/ECSProcess/container details in finding
Exfiltration:S3/AnomalousBehavior, Impact:S3/*Unusual S3 data access/deletionS3 data events, Macie for data sensitivity
AttackSequence:*GuardDuty-correlated multi-stage sequence (extended threat detection)Treat as incident

Finding type names change over time — consult the current finding types list.

Validate

Correlate with CloudTrail (API activity of the principal), VPC Flow Logs (connections), Route 53 Resolver logs (DNS), EKS audit logs; Amazon Detective graphs if enabled. Check if the source IP is your own scanner/pen test (document and suppress narrowly).

Respond

EC2: isolate by replacing security groups with an isolation SG (no inbound/outbound), snapshot EBS, capture memory if possible (forensic-imaging), detach/disable instance profile credentials (revoke role sessions). IAM: aws-credential-compromise. S3: block public access, review bucket policy.

Suppression

Suppression rules should match finding type + specific resource/IP (e.g., vulnerability scanner IP for Recon:EC2/Portscan), never entire finding types.

Related skills

cloudtrail-investigation, aws-credential-compromise, cloud-incident-response, alert-triage

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.