Aegis AI Core
Local-first static application security testing for Python, JavaScript, TypeScript, PHP, Java, Go, and basic C/C++ scanning. Aegis combines language parsers, security rules, taint tracking, suppression workflows, and CI-ready reports behind one production analysis path.
Requirements
- Python 3.10, 3.11, or 3.12
- Python 3.13 is not supported by the pinned Tree-sitter dependency stack
Install
pip install aegis-ai-core
For repository development:
pip install -e ".[dev]"
Scan a project
aegis /path/to/project --format json
aegis /path/to/project --format html --output aegis-report.html
aegis /path/to/project --format sarif --output aegis-results.sarif
The equivalent module command is:
python -m src.scanner.cli /path/to/project --format json
Supported report formats are JSON, HTML, Markdown, and SARIF. Project scans can also use baselines, incremental mode, custom YAML rules, and optional AI-assisted remediation.
Language support
| Level | Languages | Analysis path |
|---|---|---|
| Full | Python, JavaScript/TypeScript, PHP, Java, Go | Language parser plus maintained AST/taint/DSL rules |
| Basic | C/C++ | Lightweight contextual rules for memory, string, pointer, and concurrency risks |
Unsupported languages return no findings rather than falling back to a generic cross-language regex scanner.
Custom YAML rules
aegis rules init --language python --type sqli
aegis rules test .aegis/rules
aegis /path/to/project --rules-dir /path/to/project/.aegis/rules
See the rule authoring guide for schema, embedded TP/TN tests, loading boundaries, and contribution rules.
Optional AI providers
The scanner works without an AI provider. Install the optional OpenAI-compatible client only when generated remediation is needed:
pip install "aegis-ai-core[ai]"
Supported provider modes include DeepSeek, OpenAI, Ollama, and custom OpenAI-compatible endpoints. Source code is sent to a remote provider only after an explicit AI remediation action; local scans do not require a provider.
Reproducible quality signals
The 2026-07-12 clean-worktree baselines report:
| Target | Recall | Precision | F1 |
|---|---|---|---|
| DVWA | 100.0% | 44.2% | 0.61 |
| NodeGoat | 100.0% | 85.7% | 0.92 |
Reports record scanner/target revisions, ground-truth hashes, TP/FP/FN/TN,
duration, and peak RSS. These numbers are not generalized claims for every
framework or vulnerability category. See the
detection quality guide
and versioned reports in scripts/reports/ for the exact scope.
Compatibility and security
License
MIT
Metadata
Release files for aegis-ai-core 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aegis_ai_core-1.5.0.tar.gz | 400.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aegis_ai_core-1.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 800.9 kB
Release files / aegis_ai_core-1.5.0.tar.gz
| Download URL | aegis_ai_core-1.5.0.tar.gz |
|---|---|
| Size | 400.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43865e9cbc866352d3882b098492dd270c1e9f8b23a19cad244c4ff2cc9d7b42
|
|
BLAKE2b-256 checksum How to use checksums |
db812c3d76a11b4fd0e778e5475966b5f20791b027fa261f02e2c2adfb289b91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.
Transparency logRelease files / aegis_ai_core-1.5.0-py3-none-any.whl
| Download URL | aegis_ai_core-1.5.0-py3-none-any.whl |
|---|---|
| Size | 400.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5b06bcc1fa0da415562c3e0e991a1ec96948af86c2e716114073604f99b09d4
|
|
BLAKE2b-256 checksum How to use checksums |
70a1ed46d3ee1755ec24e21621114547cc0225850002b17ab156e5b56638d04f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.
Transparency logSecurity for aegis-ai-core 1.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aegis_ai_core-1.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.