logflash
A modular Static Application Security Testing (SAST) engine for rapid local security auditing.
Installation
pip install logflash
Usage
logflash /path/to/your/project
The tool will:
- Traverse the project (ignoring heavy folders like
node_modulesandvenv). - Scan supported files (
.py,.js,.java,.cpp,.php, …) for common vulnerabilities. - Output a nicely formatted, severity‑sorted console report.
- Export findings to
security_audit_report.json.
Mock Sandbox
Run the tool without arguments to see a demo sandbox:
logflash
It creates a temporary sandbox with vulnerable files and scans them.
Extensibility
- Rule system – rules live in
logflash/rules/as JSON or YAML. They can be overridden or added without touching the source code. - Parser plug‑ins – add a new parser under
src/logflash/parsers/and register it insrc/logflash/parsers/__init__.py.
Documentation
- Full rule schema:
docs/rules.md - Usage guide and contribution instructions are in the
docs/folder.
Build the package locally
# Ensure build tools are up‑to‑date
python -m pip install --upgrade build twine
# Build the source and wheel distributions
python -m build
The resulting files appear in the dist/ directory:
logflash‑<version>.tar.gz(source archive)logflash‑<version>-py3-none-any.whl(wheel)
To verify that the rule files are included:
python -m zipfile -l dist/logflash-*.whl | grep "rules/"
You should see entries such as logflash/rules/default_rules.json.
Publish to PyPI (once version is bumped)
# Bump version in pyproject.toml (e.g. 0.2.0)
python -m pip install --upgrade twine
python -m twine upload dist/*
CI workflow (GitHub Actions)
The CI runs on Python 3.9 and 3.11, installs the test extra (pip install -e .[test]), executes pytest -q, and builds the package.
Note: The workflow uses actions/checkout@v3 and actions/setup-python@v4. They will automatically migrate to Node.js 24 in June 2026, so no changes are required now.
Contributing
- Fork the repo and create a branch.
- Run the test suite locally:
pytest -q. - Add or update tests for new parsers/rules.
- Open a Pull Request with a clear description.
License
MIT License – feel free to use this in commercial or open‑source projects.
Feel free to ⭐ the repository if you find it useful!
Metadata
Release files for logflash 0.2.3
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 | Actions |
|---|---|---|---|---|
| logflash-0.2.3.tar.gz | 10.7 kB | Without provenance | Details for logflash-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| logflash-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for logflash-0.2.3-py3-none-any.whl |
Total release size: 21.7 kB
Release files / logflash-0.2.3.tar.gz
| Download URL | logflash-0.2.3.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15e7aa3c87008ec74df3d38567eadd21579055bdb31697955e715e627fc99952
|
|
BLAKE2b-256 checksum How to use checksums |
1f953113233d06366e447af77531790b06f65a4918f721e0a75830ff88619c49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / logflash-0.2.3-py3-none-any.whl
| Download URL | logflash-0.2.3-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbd3d49fbee0a440b4e782789b53decae1fd2cb60b2bd71c92c15f4471640d44
|
|
BLAKE2b-256 checksum How to use checksums |
94c435c20e3a547e7fdcb5507cc9de754fce462c9a8c8bb7bc60978131737f3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for logflash 0.2.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.