The string callback-url-file-3A-2F-2F-2Fhome-2F-2A-2F.aws-2Fcredentials is a URL-encoded payload typically used to exploit Server-Side Request Forgery (SSRF)
Strict Whitelisting: Only allow callbacks to specific, pre-approved domains (e.g., https://your-app.com).
Based on the analysis, we recommend the following:
To protect your application from this specific attack vector:
Use IAM Roles: Instead of storing static credentials in ~/.aws/credentials, use IAM Roles for EC2 or ECS Task Roles. This removes the physical file from the disk entirely.
Context and risk
Section 3: Mitigation strategies
: The URI scheme for accessing the server's local file system. /home/*/.aws/credentials