[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f11hr_feIwSdRM8BAlWz85MiJOFdCfeEoOp10SJz_A3E":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"517329d4-3efa-415e-b32d-69b27c92ac16","embedded-aws-keys-in-ai-prompts-led-to-cloud-storage-breaches","07727fe7-a8af-4cce-9921-776f8dffbff4","Embedded AWS Keys in AI Prompts Led to Cloud Storage Breaches","Developers inadvertently included live AWS access keys inside prompts submitted to third-party AI hosting providers, where those credentials were harvested by attackers and used within hours to enumerate S3 buckets and query AWS Secrets Manager. The core failure was treating AI prompt interfaces as trusted, private environments when in reality the provider receives and processes every token of input in plaintext. This highlights a dangerous gap in developer security awareness: secrets embedded in prompts are as exposed as secrets hardcoded in public repositories. Critically, neither encryption in transit nor data retention policies prevented theft at the moment of initial receipt, meaning technical controls alone cannot substitute for not sending secrets in the first place.","**Immediate actions:**\n- Rotate and revoke any AWS access keys that may have been included in AI prompts submitted to external providers.\n- Scan codebases, prompt templates, and AI tooling configurations using secrets-detection tools (e.g., truffleHog, AWS Macie) to identify exposed credentials.\n\n**Long-term improvements:**\n- Enforce a secrets management policy that prohibits embedding credentials, tokens, or keys in any user-facing input, including AI prompts, chat interfaces, or API calls to third parties.\n- Replace long-lived AWS access keys with short-lived, role-based credentials using IAM roles and instance profiles, minimising the blast radius if credentials are stolen.\n- Apply least-privilege IAM policies so that any stolen key has the minimum permissions needed, preventing broad enumeration of S3 buckets or Secrets Manager entries.\n\n**Detection measures:**\n- Enable AWS CloudTrail and configure alerts for anomalous API call volumes, especially ListBuckets, GetSecretValue, and GetParameter calls from unexpected sources or at unusual rates.\n- Integrate AWS IAM Access Analyzer and GuardDuty to detect credential abuse and unauthorized resource enumeration in near real-time.",[12,13,14,15,16],"CIS Control 3: Data Protection (v8)","CIS Control 5: Account Management (v8)","NIST SP 800-53 IA-5: Authenticator Management","NIST CSF 2.0 PR.AA-05: Access Permissions and Authorizations","NIS2 Article 21(2)(i)",{"NIS2 Article 21(2)(i)":18,"CIS Control 3: Data Protection (v8)":19,"CIS Control 5: Account Management (v8)":20,"NIST SP 800-53 IA-5: Authenticator Management":21,"NIST CSF 2.0 PR.AA-05: Access Permissions and Authorizations":22},"NIS2 Article 21(2)(i) covers human resources security, access control, and asset management, all of which were deficient here as developers lacked policy guidance preventing credential exposure through AI tooling.","CIS Control 3 requires identifying and protecting sensitive data assets; had credential data been classified as sensitive and controls applied to prevent its inclusion in external AI prompts, the keys would not have been exposed.","CIS Control 5 requires managing the lifecycle of credentials, including revoking unused or compromised keys; enforcing short-lived credentials and rapid revocation would have limited attackers' ability to exploit stolen AWS keys.","IA-5 governs the creation, distribution, and protection of authenticators such as API keys, and compliance would have prohibited embedding long-lived AWS access keys in externally transmitted prompts.","This category calls for managing access credentials with least privilege, which would have restricted what an attacker could do with stolen keys even after they were exfiltrated.","published","2026-11-25T08:20:58.294697+00:00","2026-11-25T08:20:58.274+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fcybersecuritynews.com\u002Fstolen-ai-prompt-data\u002F","hackers-use-stolen-ai-prompt-data-to-search-aws-cloud-storage-and-secret-managem-5543b1","Hackers Use Stolen AI Prompt Data to Search AWS Cloud Storage and Secret Management Services",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"1ec88fde-2d0f-4ed8-932a-33f5ccc0fdc7","Access Control","access-control","Excessive privileges, missing MFA, weak auth","#f97316",{"id":38,"name":39,"slug":40,"description":41,"color":42},"7261eb8f-acd4-4d93-a489-7fdd652ec0ea","Security Awareness","security-awareness","Phishing, social engineering, human error","#22c55e",[],[45,49,53],{"slug":46,"name":47,"problem":48},"secrets-management","Secrets management","API keys, tokens and passwords stop leaking from code, chat and configuration files.",{"slug":50,"name":51,"problem":52},"cloud-security-posture","Cloud security posture management (CSPM and CNAPP)","Misconfigured cloud storage and over-permissive roles get caught before they leak.",{"slug":54,"name":55,"problem":56},"ai-security","AI application security","Prompt injection, data leaks through AI tools and unapproved AI use get caught."]