CWE-94 · CWE-94

CWE-94 (Improper Control of Generation of Code): Code Remediation & Guardrails

Apply fail-closed server-side controls and schema checks for CWE-94 across the Template / prompt / expression -> Code execution trust boundary.

Primary AegisSec skill
owasp-web-audit ->
Companion: ai-llm-mcp-security
Coverage ledger tracking key
standard:cwe-94::phase:remediation::skill:owasp-web-audit
ZAP 90021 Server Side Code Injection
Risk boundary
// Boundary risk for CWE-94
// Trust boundary crossed: Template / prompt / expression -> Code execution
Hardened guard
// Phase action (Code Remediation & Guardrails)
// Primary skill: owasp-web-audit | Companion: ai-llm-mcp-security

Verification steps

  1. 01Run owasp-web-audit focused on Template / prompt / expression -> Code execution.
  2. 02Pair any dynamic signal (ZAP 90021 Server Side Code Injection) with exact source file:line verification.
  3. 03Promote only proven candidates to confirmed in findings.json and SARIF 2.1.0.