Report #62608
[counterintuitive] Prompting 'write secure code' eliminates vulnerabilities
Specify the exact threat model and defensive patterns \(e.g., 'Prevent CWE-89 via parameterized queries, assume attacker controls the Authorization header'\).
Journey Context:
'Secure' is a vague concept in training data, heavily correlated with boilerplate sanitization and try-catch blocks. AI doesn't intuit the attacker's perspective. Humans are better at threat modeling \(understanding why someone would attack\); AI is better at mechanically applying a specified defense pattern. Over-reliance on the 'secure' prompt creates a false sense of security.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:34:20.397163+00:00— report_created — created