High-performance binary audit engine in Rust (synchronous std::fs + SIMD memchr + checksec / Binary Hardening + structural analysis for ELF / PE / Mach-O / WebAssembly (.wasm) + Global & 64 KB Window Shannon Entropy + Heuristic Masked Secret Hunter + SARIF 2.1.0 export + CycloneDX 1.5 SBOM + PR Sticky Comments).
Designed to complete the compiled artifact certification stage within the GLASTOR® Core ecosystem, operating in direct synergy with glastor-core/specter, glastor-core/vortex, glastor-core/medusa, and glastor-core/nemesis.
| Stage | Repository | Role in the Supply Chain |
|---|---|---|
| 01 • SAST & IaC | glastor-core/nemesis |
Static application security testing (SAST), secret leak prevention, and GitHub Actions IaC posture audit. |
| 02 • API Contract | glastor-core/specter |
Zero-compiler polyglot AST differ (< 5 ms), public API surface cryptographic fingerprinting, and SemVer Trojan Breaking Change protection. |
| 03 • Pre-Build DAG | glastor-core/vortex |
AST impact blast-radius analysis, mathematical LPT test suite sharding, and multi-OS compilation pipeline. |
| 04 • Artifact Gate | glastor-core/byte-gauge |
SIMD binary certification (ELF/PE/Mach-O/Wasm), checksec, localized 64 KB window Shannon entropy, SARIF 2.1.0, and CycloneDX 1.5 SBOM. |
| 05 • Edge Runtime | glastor-core/medusa |
Resilient Zero-Trust edge API gateway with circuit-breaker capabilities to execute certified native binaries and Wasm modules. |
-
🌐 Native Multi-Format Inspection (
ELF+PE/PE32++Mach-O+WebAssembly .wasm):- Inspects native executables via
goblinand WebAssembly (.wasmv1) modules using a zero-dependency nativeuLEB128section decoder (Code (Bytecode),Data (Static Memory),Import,Export, and unstrippedname/.debug*section detection).
- Inspects native executables via
-
🛡️ Binary Hardening (Native
checksec):- Validates
ASLR / PIE,64-bit High-Entropy VA,NX / DEP,Full/Partial RELRO,Control Flow Guard (CFG), andWasm Linear Memory Sandbox.
- Validates
-
🎯 Localized Entropy (
64 KBWindows) + 🕵️ Heuristic Masked Secret Hunter (--scan-entropy-secrets):- Calculates global Shannon entropy alongside localized 64 KB peak window entropy (
peak_chunk_entropy) with exact hexadecimal offset reporting (0x...). - Detects high-entropy tokens (
32..=64bytes,$H \ge 4.70\text{ bits/B}$ ) and masks them (aB3d...cE6g) to ensure secrets are never leaked into public CI execution logs.
- Calculates global Shannon entropy alongside localized 64 KB peak window entropy (
-
📦 Native CycloneDX 1.5 SBOM Generator (
--output-sbom) + 🔒 SARIF 2.1.0 (--output-sarif):- Exports Software Bill of Materials (CycloneDX v1.5 JSON) containing the binary SHA-256 digest and dynamic shared library dependency graph (
DT_NEEDED/ DLLs). - Generates SARIF 2.1.0 reports (
BG001throughBG007) integrated into GitHub Security Code Scanning.
- Exports Software Bill of Materials (CycloneDX v1.5 JSON) containing the binary SHA-256 digest and dynamic shared library dependency graph (
-
⚡ Multi-Binary Batch Mode + 💬 PR Sticky Comments + 📉 FinOps Regression Gate (
--max-regression-pct):- Supports comma-separated binary paths (
--file-path "dist/app-linux,dist/app-win.exe,dist/edge.wasm"), generating a consolidated Multi-Binary Comparison Matrix. - Automatically posts and updates an interactive Sticky Comment on Pull Requests (
post-pr-comment: "true").
- Supports comma-separated binary paths (
- name: Audit Release Binaries & Wasm Modules
id: gauge
uses: glastor-core/byte-gauge@v1
with:
file-path: "dist/vortex-linux-x64,dist/medusa-edge.wasm"
scan-entropy-secrets: "true"
max-size-mb: "120.0"
max-regression-pct: "5.0"
fail-on-debug: "true"
baseline-json: ".byte-gauge/baseline.json"
output-json: ".byte-gauge/current-audit.json"
output-sarif: ".byte-gauge/byte-gauge.sarif"
output-sbom: ".byte-gauge/byte-gauge.cdx.json"
post-pr-comment: "true"Distributed under the MIT license.
© 2010–2026 GLASTOR® (INPI Reg. 4559568 & 4559567) • Dual-Hub Operations (Spain & Argentina · Factura E) • Led by @glastor-dev (GitHub Developer Program Member).