TL;DR: Exposed AWS configuration files can leak long-lived access keys, enabling privilege escalation, lateral movement and extortion, according to Oasis Security's analysis of a Unit 42-disclosed cloud campaign that targeted more than 110,000 domains and extracted over 90,000 unique variables. Secret exposure is only the entry point; unmanaged NHI context and standing privilege turn that exposure into operational compromise.
Editorial analysis by NHI Mgmt Group, based on content published by Oasis Security: “The Risks of Exposed AWS Configuration Files: How to implement comprehensive protection with Oasis”.
Key questions
Q: What breaks when AWS configuration files expose access keys?
A: When AWS configuration files expose access keys, the attacker inherits the workload’s identity and can often authenticate without triggering traditional login controls.
Q: Why do leaked AWS credentials often lead to privilege escalation?
A: Leaked AWS credentials lead to privilege escalation when they were issued with more permissions than the workload actually needs.
Q: What are the signs that cloud secret exposure is being exploited rather than merely discovered?
A: Signs of exploitation include rapid access after exposure, immediate key use from unexpected regions, unusual reconnaissance across related assets, and follow-on activity such as malware download, cryptomining, or credential probing.
Practitioner guidance
- Discover exposed configuration files continuously Scan repositories, object storage, build artefacts, and hosted assets for .env files and other configuration files that contain access keys, tokens, or certificates.
- Map each secret to a live owner Record which workload, service, or team depends on each secret so that you can revoke or replace it without losing application context.
- Right-size workload permissions Review whether exposed AWS credentials can create roles, attach policies, enumerate storage, or call adjacent services beyond their intended scope.
Bottom line: Exposed AWS configuration files can turn routine environment variables into live NHI access paths when keys, tokens, or certificates are left in plain text.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Exposed AWS configuration files are now an identity governance problem, not just a secret-sprawl problem. The file is only the container. The real issue is that the credential inside it often carries workload identity context that can be reused outside the application that created it. That means secret discovery, ownership mapping, and revocation are one control plane, not separate tasks. Practitioners need to treat exposed configuration files as governed identity objects, not inert text artifacts.
A few things that frame the scale:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
A question worth separating out:
Q: How should teams respond when an AWS secret is exposed in a configuration file?
A: Teams should revoke or rotate the secret only after mapping its owner and dependent services, then confirm that the replacement credential is in use before deleting the old one. If the secret is already privileged, teams should also review for role creation, policy changes, and adjacent-service abuse so containment matches the actual blast radius.
👉 Read our full editorial: Exposed AWS configuration files expose NHI access and lateral movement