hexvero

v0.12.0
io.github.maximilianfeix/hexvero Checked 14 hours ago Published 1 month ago

Electron release diff for security review: what changed in IPC, contextBridge, windows and hosts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

hexvero_open Open target

Register a local file or directory for analysis. Returns its id, size, hash and detected format. Ids are stable per content.

ParameterTypeDescription
path *stringAbsolute or relative path

hexvero_list List targets

List targets opened in this session.

hexvero_close Close target

Release a target and its retained analysis.

ParameterTypeDescription
targetId *stringTarget id returned by hexvero_open

hexvero_analyze Analyze target

Run the built-in analyzer for the target's format (ELF/PE/Mach-O, Go, .NET, WASM, EVM, SQLite, plist, APK, ZIP, Electron ASAR, JavaScript apps, source maps, HAR). Returns a summary, findings with confidence, limitations, a compact overview and the collections available for paging. Large JavaScript apps are read in batches: when `complete` is false, `coverage` says how many files are unread and every list covers the scanned part only; call again with scan to read more.

ParameterTypeDescription
targetId *stringTarget id returned by hexvero_open
batchintegerJavaScript apps only: files per batch (default 5000)
detailstringoverview size: brief (default) lists only counts, full adds samples of every list
freshbooleanJavaScript apps only: discard the stored scan first; combines with scan
includearrayJavaScript apps only: read the unread files under these paths (prefix or * pattern)
scanstringJavaScript apps only: continue = read the next batch of unread files, all = read every unread file, fresh = discard the stored scan and start again

hexvero_collection Page a collection

Page through one named list from the analysis, e.g. symbols, imports, exports, sections, libraries, types, methods, pinvokes, selectors, instructions, tables, columns, requests, endpoints, permissions, components, modules, edges, ipcChannels, findings. Use hexvero_analyze to see which exist.

ParameterTypeDescription
collection *string
targetId *stringTarget id returned by hexvero_open
limitintegerItems per page (default 100)
maxBytesintegerHard upper bound for the serialized page in bytes (default 262144). A page reports next, bytes and, for an item cut to fit, itemTruncated + itemBytes
offsetintegerFirst item index (default 0)
textstringCase-insensitive substring filter on each item

hexvero_strings Strings

Printable ASCII (and optional UTF-16LE) strings with offsets and tags (url, path, email, ip, format, secret-ish, base64-ish).

ParameterTypeDescription
targetId *stringTarget id returned by hexvero_open
limitintegerItems per page (default 100)
maxBytesintegerHard upper bound for the serialized page in bytes (default 262144). A page reports next, bytes and, for an item cut to fit, itemTruncated + itemBytes
minLengthinteger
offsetintegerFirst item index (default 0)
tagstringOnly strings carrying this tag
textstringCase-insensitive substring filter on each item
utf16boolean

hexvero_bytes Read bytes

Read a bounded window (max 64 KiB) of the target as hex plus an ASCII gutter.

ParameterTypeDescription
length *integer
offset *integer
targetId *stringTarget id returned by hexvero_open

hexvero_export Export analysis

Write the complete analysis as JSON to a file and return its path and size. Use this instead of paging when you need everything.

ParameterTypeDescription
path *stringAbsolute destination file path; refused when the file exists
targetId *stringTarget id returned by hexvero_open
overwritebooleanReplace an existing file (default false)

hexvero_recover Recover sources

Write recoverable sources into a new directory: the modules of a webpack/Rspack/browserify/esbuild bundle (one file each plus hexvero-bundle.json with requires/exports), or the original files embedded in a source map (sourcesContent). No engine needed; nothing is executed.

ParameterTypeDescription
outputDir *stringAbsent or empty directory to write into
targetId *stringTarget id returned by hexvero_open

hexvero_unknowns Unknowns ledger

Record a material question the investigation could not answer (with what was already checked), list open or resolved unknowns, or resolve one. Unknowns are exported with the analysis so reports never silently drop them.

ParameterTypeDescription
action *string
checkedarrayrecord: collections, offsets or tools already examined
idstringresolve: the unknown's id
limitinteger
offsetinteger
questionstringrecord: the open question
resolutionstringresolve: what settled it, with evidence
statusstringlist: filter by status
targetIdstringTarget the question belongs to

hexvero_compare Compare collections

Diff one collection between two targets: added, removed, changed (with the fields that differ) and unchanged items, matched by key (auto-detected: name, channel, id, path, url, type+name … or pass key, a+b for composites). States completeness; unknown items are neither added nor removed. Each list pages on its own (list + offset). Without collection: counts per shared collection, to pick one.

ParameterTypeDescription
targetA *stringTarget id returned by hexvero_open
targetB *stringTarget id returned by hexvero_open
collectionstring
ignorearrayFields to exclude from change detection, in addition to the position rule
keystringItem field used as identity (default: name, then JSON)
limitintegerItems per list in this answer (default 50 added/removed, 25 changed)
liststringPage only this list; offset applies to it (each list has its own next)
offsetintegerWith list: that list's next
strictbooleanCount every difference. Default false: address fields of native symbols/sections that only moved are reported as relocated, with samples

hexvero_check Check release policy

Apply a release policy (inline JSON or file) to two builds, as `hexvero check`: status pass, fail or incomplete, and findings paged by offset. Reads a baseline, never writes one.

ParameterTypeDescription
targetA *stringTarget id returned by hexvero_open
targetB *stringTarget id returned by hexvero_open
baselinePathstringAbsolute path of a baseline file
formatstringDefault json
limitintegerFindings (default 100)
offsetintegerFirst finding (default 0)
policyobjectPolicy JSON object
policyPathstringOr: absolute path of a policy file

hexvero_sourcemap Resolve source map position

Map a generated line/column of a source map target back to its original source, line, column and name.

ParameterTypeDescription
column *integer
line *integer
targetId *stringTarget id returned by hexvero_open

hexvero_providers Providers

Detect optional external engines (radare2/rizin, Ghidra) and the operations each supports.

hexvero_provider_run Run provider operation

Run one engine operation on a target: functions, disassemble, decompile, strings, imports, xrefs (references to an address), callers, callees, callgraph or search (names + strings). Output is bounded and cached.

ParameterTypeDescription
operation *string
provider *string
targetId *stringTarget id returned by hexvero_open
addressstringFunction address or symbol for disassemble/decompile/xrefs/callers/callees
textstringNeedle for search
timeoutMsinteger

hexvero_call_graph Call graph

Bounded call-graph neighborhood around a function (callers, callees or both, by depth and node count), or the shortest call path from root to goal. One engine run per target, cached; levels state what was cut.

ParameterTypeDescription
provider *string
root *stringFunction name or address to start from
targetId *stringTarget id returned by hexvero_open
directionstringDefault callees
goalstringWith goal: shortest path root → goal in the given direction instead
maxDepthintegerHops from root (default 2)
maxNodesintegerDefault 150
timeoutMsinteger