Skip to main content

leakcheck

Scan a folder for leaked API keys and secrets before you git push. Pure Python, no dependencies, offline. Secrets are masked in the output so the report itself does not leak them.

$ python -m leakcheck .
./config.py:4: aws-access-key: AKIA************MPLE
1 potential secret(s) found.

Exit code is 1 when anything is found, so it works as a pre-commit or CI step:

python -m leakcheck . || exit 1

Detects AWS keys, GitHub tokens, OpenAI-style sk- keys, Slack tokens, Google API keys, Stripe live keys, PEM private keys, and generic password = "..." assignments. Skips .git, node_modules, virtualenvs, binaries and files over 1 MB. Patterns are in one dict at the top of leakcheck.py.

It is a regex scanner: it will miss some secrets and flag some false positives. If a real secret was ever committed, rotate it.

Install

pip install episodely-leakcheck

Or copy leakcheck.py into your project, it has no dependencies.

Test

python -m pytest

MIT licensed.

Metadata

Release files for episodely-leakcheck 0.1.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 episodely-leakcheck 0.1.0
File Size Uploaded Provenance Actions
episodely_leakcheck-0.1.0.tar.gz 3.8 kB With provenance Details for episodely_leakcheck-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for episodely-leakcheck 0.1.0
File Interpreter ABI Platform Actions
episodely_leakcheck-0.1.0-py3-none-any.whl Python 3 none any Details for episodely_leakcheck-0.1.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / episodely_leakcheck-0.1.0.tar.gz

Download URL episodely_leakcheck-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4db2e21391b33cdd3a04b5a56c5b987aed6862a1c0906661021592efaf6177cc
BLAKE2b-256 checksum
How to use checksums
604ed4efdc8118880473ebbfec21a31067bb93e7ae55c1d7a3eb3a8238cbc16d
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 28, 2026.

Transparency log

Release files / episodely_leakcheck-0.1.0-py3-none-any.whl

Download URL episodely_leakcheck-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dff73966e00497aecf4bafc5e81642eada72d779b2bf4f7b38863b21bf10fd23
BLAKE2b-256 checksum
How to use checksums
18b7742a711a5160556b979a101e46f750e0b4ed9acf3d917de82e8b909b59a9
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 28, 2026.

Transparency log

Security for episodely-leakcheck 0.1.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 episodely_leakcheck-0.1.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 28, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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