Binary similarity scoring
binary_similarityCompare two binaries to compute data-derived similarity scores and verdicts using SHA-256 identity, prefix ratio, byte histograms, string Jaccard, and ELF section overlap.
Instructions
Compute real, data-derived similarity between two binaries: exact SHA-256 identity, identical-prefix ratio, byte-histogram cosine similarity, normalized string-set Jaccard similarity and ELF section-name overlap. An exact hash match is authoritative (combined score 1.0, verdict "identical"); otherwise a combined score and a verdict band are returned with an honest confidence. No metric is hallucinated.
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": {
"fileA": "<fileA>",
"fileB": "<fileB>"
},
"name": "binary_similarity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileA | Yes | First binary, inside the workspace. | |
| fileB | Yes | Second binary, inside the workspace. |