vulnforge_verify_patch
Executes isolated Node.js vm canary sandbox verification of defensive patches against dual attack and benign functional payloads to prove exploit mitigation with zero regressions.
Instructions
Executes isolated Node.js vm canary sandbox verification of defensive patches against dual attack and benign functional payloads to prove exploit mitigation with zero regressions.
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": {
"originalCode": "<originalCode>",
"patchedCode": "<patchedCode>"
},
"name": "vulnforge_verify_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vulnType | No | Vulnerability type (SQL_INJECTION, DOM_XSS, SECURITY_HEADERS, GRAPHQL_INTROSPECTION, GRAPHQL_RESOLVER_AUTH, etc.). Auto-inferred if omitted. | |
| timeoutMs | No | Execution timeout in milliseconds (default: 2000) | |
| patchedCode | Yes | The synthesized defensive patched code snippet | |
| originalCode | Yes | The original vulnerable source code snippet | |
| attackPayload | No | Custom attack payload to verify containment against (optional) | |
| benignPayload | No | Custom benign functional payload to verify lack of regression (optional) |