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.

Repository documents

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.

Metadata

Release files for coretrace-python-analyzer 0.25.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.25.0
File Size Uploaded Provenance Actions
coretrace_python_analyzer-0.25.0.tar.gz 636.7 kB With provenance Details for coretrace_python_analyzer-0.25.0.tar.gz

Built distribution (wheel)

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

Total release size: 954.5 kB

Release files / coretrace_python_analyzer-0.25.0.tar.gz

Download URL coretrace_python_analyzer-0.25.0.tar.gz
Size 636.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ca11c7cc78b1679d096d1758eb8417e7f971f7bcceb57b1cf71e99f65f09d53c
BLAKE2b-256 checksum
How to use checksums
072d64576c406d1baef185231f0d91c97f73ccaed7cf1e7f1b91f0f48d22da7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

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

Download URL coretrace_python_analyzer-0.25.0-py3-none-any.whl
Size 317.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64a9f0119fd3802c5fb5541d6b176b5599720181095b697893b43c93a5c37b49
BLAKE2b-256 checksum
How to use checksums
0de0d34f21d5b983d3422af58238c55d55d0f81e8d215413c8294e44b506955a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Security for coretrace-python-analyzer 0.25.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for coretrace_python_analyzer-0.25.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 Nov 3, 2026.

Transparency log

A 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.

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