Repository navigation
v0.1.0
First release of vgi-pe — static, read-only triage of executable binaries (Windows PE, Linux ELF, macOS Mach-O) as DuckDB SQL functions, backed by LIEF. Defensive malware-triage: the worker only reads and describes the bytes, it never executes the sample.
Install / run
- Container image (multi-arch amd64+arm64):
ghcr.io/query-farm/vgi-pe:0.1.0(also:latest,:edge). Serves HTTP (/health, default) orstdio. - Python:
pip install vgi_pe-0.1.0-py3-none-any.whl(sdist + wheel attached below), exposes thevgi-pe-workerconsole script.
INSTALL vgi FROM community; LOAD vgi;
ATTACH 'pe' (TYPE vgi, LOCATION 'vgi-pe-worker');
SELECT pe.binary_format('sample.exe'); -- 'PE'
SELECT pe.imphash('sample.exe'); -- import-hash for clustering
SELECT * FROM pe.sections('sample.exe') ORDER BY entropy DESC;Functions
Per-binary scalars (format, architecture, entry point, signing, PE build timestamp, imphash, whole-file entropy) and set-returning tables (sections, imports, exports, strings), each taking a VARCHAR path or a BLOB. Hostile/malformed input degrades to NULL / no rows.