Search by

b4n1 / b4n1-audit

b4n1

Sovereign security audit - static analysis engine

Package info

github.com/B4N1-com/b4n1-audit

Homepage

Language:Shell

pkg:composer/b4n1/b4n1-audit

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.6 2026-11-27 22:27 UTC

This package is auto-updated.

Last update: 2026-11-28 00:22:29 UTC


README

B4N1 Audit — security and code-quality scanner

b4n1-audit

Security and code-quality scanner — one native core, thin wrappers for Python, JavaScript, Java and C#.

English · Español · Deutsch · Français · Italiano · Português (BR) · Русский · العربية · हिन्दी · 日本語 · 한국어 · 中文

PyPI Python Downloads License

Python wrapper for the b4n1-audit engine — a security and code-quality scanner that ships as a single precompiled binary. The binary is bundled per platform inside the wheel; there is nothing to compile and no external runtime.

Install

pip install b4n1-audit

Requires Python ≥ 3.8. Precompiled binary included (Linux x64/arm64, Windows x64).

Quick start

from b4n1audit import run, binary_path, AuditError

print(binary_path())          # resolved binary path (fails loud if none)
report = run("json", ".")     # dict/list parsed from JSON output
sarif  = run("sarif", ".")    # SARIF document as text

run() raises AuditError (with the binary's stderr) when the process exits non-zero. Binary resolution order: B4N1_AUDIT_BIN → bundled binary → PATH.

What it scans

The SDK exposes the full engine surface, for example:

Verb Purpose
scan / json Directory scan, JSON report
sarif SARIF output for CI integration
cve-check Dependency CVE check against an embedded database
secrets API keys / tokens in files and history
scan-ai Prompt injection, MCP and repo-poisoning checks
memory Memory-safety issues (leaks, UB, overflows)
semgrep Fast-path rule engine
report Self-contained HTML report
# via the bundled binary directly
python -c "from b4n1audit import binary_path; import sys; print(binary_path())"
$(python -c "from b4n1audit import binary_path; print(binary_path())") scan .

License

Distributed under the Business Source License 1.1 (BUSL-1.1) plus an EULA for the bundled binary. Source code is proprietary.