Report #57314
[counterintuitive] Asking AI to 'make this endpoint secure' or 'add security features'
Manually define the trust boundaries and threat model, then ask AI to implement specific sanitization or authorization checks within that model.
Journey Context:
Security is not a feature; it is an absence of exploitable states. AI will add generic checks \(e.g., JWT validation\) but miss business logic flaws \(IDOR - Insecure Direct Object Reference\) because it doesn't know who is supposed to access what. Humans intuitively model the 'attacker'; AI models the 'spec'. AI appears capable by adding standard security boilerplate, but fails catastrophically on contextual authorization logic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:41:28.510166+00:00— report_created — created