CoreTrace Python Analyzer
A standalone static security analyzer for Python. It finds injection vulnerabilities by following attacker-controlled data through the program, across functions, files, objects and closures, and judges each flow against the guards on its path; it reports dangerous API usage, secrets committed in sources and configuration, and vulnerable or forbidden dependencies, correlated with the code that reaches them. It runs offline, on a file or a whole project, with no runtime dependency.
pip install coretrace-python-analyzer
coretrace-python-analyzer --check src/ --format sarif > report.sarif
- Usage guide: command line, rules, report formats, dependencies and advisories, cache and parallelism, continuous integration.
- Writing a plugin: models for another framework, detectors for another rule, secret patterns and project-wide checks.
- Architecture: the engine's design and its migration plan.
The pipeline: source manager, parser-independent high-level representation (PyHIR), semantic resolution of imports and scopes, lowering to a small intermediate representation (PyIR), control-flow graphs, SSA, data-flow and abstract interpretation, interprocedural summaries, taint and refutation, then plugins and reporters.
Development
python -m venv .venv
python -m pip install -e ".[dev]"
python -m mypy
python -m pytest
python -m ruff check .
The non-regression suite analyses the public repositories pinned in
tests/regression/repositories.toml and compares
findings and coverage with the snapshots in tests/regression/expected/. It clones on
first use, needs the network and runs in its own CI job:
python -m pytest -m regression
CORETRACE_REGRESSION_UPDATE=1 python -m pytest -m regression # record an intended change
License
Release files for coretrace-python-analyzer 0.2.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 | |
|---|---|---|---|
| coretrace_python_analyzer-0.2.0.tar.gz | 282.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coretrace_python_analyzer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 477.5 kB
Release files / coretrace_python_analyzer-0.2.0.tar.gz
| Download URL | coretrace_python_analyzer-0.2.0.tar.gz |
|---|---|
| Size | 282.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d1df9ad9df595460805d6c17ea8359eb62d53ed8a8405c12fa588a98813de5c
|
|
BLAKE2b-256 checksum How to use checksums |
0651324cd9dc1ce8a669b4c15cf2026977792dab2c470ff2ecc0f458fa091e3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Sep 6, 2026.
Transparency logRelease files / coretrace_python_analyzer-0.2.0-py3-none-any.whl
| Download URL | coretrace_python_analyzer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 194.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1be27c0a4a1c04de2e7105bf92a49020eed5467c34632e871992553d7659b03
|
|
BLAKE2b-256 checksum How to use checksums |
1a48d46e8a81fbbf0b7872678b37469e8b5ac7aab4bc0782cca8a5e1b1db4477
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Sep 6, 2026.
Transparency log