aws --profile dev s3 ls

: Exfiltration of credentials to gain lateral movement within the AWS account. 🛡️ Recommended Mitigations

: Ensure the application process does not have read access to the /root/ directory or .aws folders.

Decode user input before validation to catch double-encoded strings like 3. AWS Specific Protection IMDSv2 Only: Force the use of Instance Metadata Service Version 2

So, the decoded path is: fetch-url-file:/:/root/.aws/config