Skip to main content

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

Apache License 2.0, see LICENSE and NOTICE.

Release files for coretrace-python-analyzer 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coretrace-python-analyzer 0.8.0
File Size Uploaded
coretrace_python_analyzer-0.8.0.tar.gz 334.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coretrace-python-analyzer 0.8.0
File Interpreter ABI Platform
coretrace_python_analyzer-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 551.8 kB

Release files / coretrace_python_analyzer-0.8.0.tar.gz

Download URL coretrace_python_analyzer-0.8.0.tar.gz
Size 334.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ef21cf74cc76edf1ef854290b2cc6540e2464e33488c59698bb5a98f191e2d2f
BLAKE2b-256 checksum
How to use checksums
51966ec5fbed66f3e2439cc7cce52b077289efcd9deb9bf239505d40a95b3fac
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 25, 2026.

Transparency log

Release files / coretrace_python_analyzer-0.8.0-py3-none-any.whl

Download URL coretrace_python_analyzer-0.8.0-py3-none-any.whl
Size 217.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a37d5dc84006bd7c17e8fe871110503fd911b1ecbe035fd2a4b842bd36caa252
BLAKE2b-256 checksum
How to use checksums
a4c4c9bb89898b42368fca500fd47e165a281d47a8f874b0481c949e62035f1b
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 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page