vulnforge_inject_patch
Synthesizes and automatically injects defensive patches into vulnerable code, converting raw queries to parameterized statements, adding headers, sanitizing DOM sinks, and optionally verifying via canary sandbox.
Instructions
Synthesizes and automatically injects defensive patches into vulnerable code, converting raw queries to parameterized statements, adding headers, sanitizing DOM sinks, and optionally verifying via canary sandbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Target filename (e.g. server.ts, db.ts) | |
| vaultType | No | Vault type override (optional) | |
| sourceCode | Yes | The vulnerable source code to remediate | |
| vaultFilePath | No | File path of vault configuration (optional) | |
| verifyInSandbox | No | When true, runs automated canary verification in isolated VM sandbox (default: true) | |
| vaultConfigContent | No | Vault configuration or KMS manifest content to audit (optional) |