GuardDuty raises `UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS` for an EKS node role
AdvancedTroubleshootingDAST, runtime detection and compliance scans
Answer
Likely causes → Temporary credentials from that node's instance profile are being used from an IP outside AWS. Something on the node, often a compromised pod reaching IMDS, stole them.
Diagnose →
aws guardduty get-findings --detector-id <id> --finding-ids <fid> | jq '.Findings[].Service.Action'
aws cloudtrail lookup-events --lookup-attributes AttributeKey=AccessKeyId,AttributeValue=<ASIA...>
Fix → Revoke active sessions for the role ("Revoke active sessions" adds an aws:TokenIssueTime deny). Isolate the node (cordon, quarantine security group) and keep it for forensics. Find the pod that reached IMDS, and review everything the stolen credentials did.
Prevent → IMDSv2 with hop limit 1, minimal node roles, IRSA or Pod Identity for workloads, and GuardDuty EKS protection with runtime monitoring enabled.
More on DAST, runtime detection and compliance scans
The ZAP baseline scan of your React SPA finishes in 40 seconds with only header warnings and no real findingsIntermediateThe authenticated ZAP full scan only ever tests the login page and `/logout`, and the report shows mostly `302` responsesIntermediate`zap-baseline.py` fails the pipeline with exit code 2 even though the report has no high-risk alertsBeginnerThe DAST job reports nothing, and its log shows mostly `403` and `429` responsesBeginnerAn active DAST scan against staging created 12,000 junk records and sent password-reset emails to real customer addresses copied from prodIntermediateNuclei runs in CI against staging and reports nothing for a known exposed `/.git/config`Beginner