Skip to main content

audit-packs-ai

PyPI version Python License GitHub Repository

Audit-Packs Banner

audit-packs-ai provides AI-powered consensus adjudication, composite confidence scoring, and false-positive filtering for the audit-packs ecosystem.

⚠️ IMPORTANT: This is a sub-package of the audit-packs compliance mapping toolkit. It is NOT designed to be run as a standalone CLI tool. If you are looking for the main CLI and GitHub Action scanner execution engine, please install and refer to audit-packs.


📦 Installation

To install this package with core dependencies:

pip install audit-packs-ai

To install with full LLM SDK dependencies (for OpenAI, Anthropic, and Google APIs):

pip install 'audit-packs-ai[ai]'

🤖 The AI Consensus Ensemble

To resolve the high noise and false-positive rates of typical static security tools, audit-packs-ai passes each finding through a multi-agent debate before applying a confidence gate:

  1. Detector: Establishes initial compliance relevance and confidence.
  2. Verifier: Builds the argument proving the compliance check is violated.
  3. Adversarial: Builds the argument defending why this check is a false positive under local configuration context.
  4. Judge: Moderates the debate, analyzes the code/environment context, and issues a final consensus confidence score.

📊 Confidence Scoring Weights

The engine scores compliance findings by weighting six distinct telemetry signals:

Signal Weight Source
Rule Confidence 20% Built-in confidence metadata from the static engine rule.
Data-Flow Confidence 20% Flow-sensitivity analysis on variables (source-to-sink).
Model Consensus 25% Final consensus score output by the LLM Judge.
Evidence Confidence 15% Richness and presence of code context and lines.
Control Severity 10% Criticality score of the mapped compliance control.
Historical Precision 10% Long-term precision metrics tracked for the rule ID.

🛠️ API Surface & Modules

Module Key API Exports Description
audit_packs_ai.adjudicate adjudicate(), load_model_config() Executes the multi-agent LLM debate for one ControlFinding; loads and validates the model routing config.
audit_packs_ai.confidence score_finding(), apply_confidence_gate() Evaluates composite confidence scores and filters findings.

📦 Ecosystem Architecture

audit-packs is built as a modular ecosystem consisting of five Python packages:

Package PyPI Link Role Standalone?
audit-packs pypi Main CLI & Action entrypoint Yes
audit-packs-core pypi Primitives, diff parsing, normalization No
audit-packs-mapping pypi Compliance pack loader & OSCAL exporter No
audit-packs-evidence pypi Evidence collectors & heuristic agents No
audit-packs-ai pypi LLM consensus & confidence scoring No

🔗 Related Resources

📄 License

This library is licensed under the Apache-2.0 License. See the LICENSE file in the main repository for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audit_packs_ai-0.8.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audit_packs_ai-0.8.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file audit_packs_ai-0.8.0.tar.gz.

File metadata

  • Download URL: audit_packs_ai-0.8.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for audit_packs_ai-0.8.0.tar.gz
Algorithm Hash digest
SHA256 0f4400c7fed4eed18ba1037489992c970e9dd69749886cad205aaaeeeea8b64e
MD5 069b79118dd473be1b51bb6bd67d7ddb
BLAKE2b-256 516120e5c809228fc7e005d87335c323dde7296b0e71fb2afdacf59d67f95c8b

See more details on using hashes here.

File details

Details for the file audit_packs_ai-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: audit_packs_ai-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for audit_packs_ai-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ffab8308788b11b487a9a78de65811b330b4ba7e6b0a535a25b19b20367b334
MD5 39a0c7e59c614223bcd44a63104d2b25
BLAKE2b-256 d29ab145dd504b200fb1ccbd4824d3fc35b11e31b94a935db2fe7b864f20d0bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page