When an AI coder shipped
hardcoded secrets
AWS's Amazon Q was pitched as a secure, enterprise-grade coding assistant. Security researchers found it generating code with hardcoded credentials, SQL injection, path traversal, and weak cryptography — the exact flaws security teams spend their careers eliminating.
The assistant wrote code a junior would be fired for
In November 2023, AWS launched Amazon Q at re:Invent — a coding and business assistant marketed as "enterprise-grade" and security-aware, designed to write, refactor, and explain code inside the tools developers already use.
Within weeks, security researchers and developers stress-testing the assistant found it happily producing code that violated the most basic principles of secure engineering: passwords and API keys pasted directly into source, SQL queries built by string concatenation, MD5 hashing for passwords, and base64 used as if it were encryption.
These aren't edge cases. They're the items on every OWASP Top 10 list, the things static-analysis tools exist to catch, and the exact vulnerabilities that get companies breached. The assistant generated them by default, often without warning.
AWS subsequently published security guidance reminding enterprises that AI-generated code must be reviewed by humans before it ships — implicitly conceding that the model alone could not be trusted as a security authority.
What Amazon Q actually generated
What it cost
"AI-generated code can contain the same insecure patterns developers have been told to avoid for decades. Treat every suggestion as untrusted input until a human — and a scanner — have signed off."
— Security guidance issued following Amazon Q vulnerability reports
Three review criteria that would have caught this
Each criterion below maps to a real review task you can configure in the sample builder. A certified reviewer runs every AI-generated snippet against these before it reaches your codebase.
Scan for hardcoded secrets and credentials
Any password, API key, token, or connection string embedded in source is flagged. Secrets belong in a vault or environment — never in the code the model produces. The reviewer confirms every credential is externalized.
Check for OWASP Top 10 vulnerabilities
The generated code is run against injection, broken access control, and path-traversal checks. String-concatenated SQL, unsanitized file paths, and missing authorization are caught before merge — not after a breach.
Verify cryptographic implementations against standards
MD5, SHA-1, base64-as-encryption, and non-cryptographic RNGs are rejected. The reviewer confirms password hashing uses bcrypt/argon2, tokens use a CSPRNG, and encoding is never confused with encryption.
Paste any AI-generated code. See what gets flagged.
This is a simplified version of what our reviewers see. Paste a code snippet (yours or a model's output) and run the check. The criteria above are applied automatically.
Don't ship the model's first draft
Every AI-generated line is untrusted until reviewed. Put certified reviewers and scanners between your assistant and your production code. 50% off your first $10 — live in under 5 minutes.