analyze_hook
Run static analysis and security rule engine on Hooks WASM bytecode to detect vulnerabilities and return SARIF-lite findings.
Instructions
THE MOAT: run the Hook static-analysis / security rule engine over a CreateCode WASM (+ optional SetHook params) and return SARIF-lite findings. The first Hooks-specific analyzer. Offline.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | ||
| grants | No | ||
| hookOn | No | ||
| wasmHex | No | ||
| namespace | No | ||
| parameters | No | ||
| wasmBase64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| valid | No | ||
| decoded | No | ||
| summary | No | ||
| findings | No |