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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sourceCode": "<sourceCode>"
},
"name": "vulnforge_inject_patch"
}
}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) |