Skip to main content Switch to mobile version canop 0.3.5 A fast, standalone security scanner designed to catch vulnerabilities written by AI.
pip install canop==0.3.5 Copy PIP instructions
A fast, standalone static analysis tool for finding security risks in AI-generated code. CanoP runs locally and produces actionable findings with remediation guidance.
CanoP development includes experimental taint-analysis support.
High signal-to-noise: Targets AI-era risks such as SQL injection, unsafe reflection, and hardcoded secrets.
Language support: Supports Python and JavaScript.
CI/CD ready: Gate builds by severity or security score.
AI prescriptions: Generates fixes.json prompts for LLM-assisted remediation.
Standard reporting: Exports JSON and SARIF for GitHub and other security tools.
pip install canop On macOS and Linux, use pipx if global pip installation is restricted:
pipx install canop Verify the installation:
canop --version Quick Start
Initialize .canop.yml and .canopignore:
canop init Scan the current directory, or only files changed in Git:
canop scan . canop scan . --changed For a complete command reference, run:
canop --help canop scan --help Taint mode is controlled with --taint-mode:
canop scan . --taint-mode fast canop scan . --taint-mode balanced canop scan . --taint-mode deep Findings are capped at 50 by default. Use --all for no cap or --limit N for a custom cap:
canop scan . --all canop scan . --limit 10 Advanced Usage
These options return a non-zero exit code when the threshold is not met:
canop scan . --fail-on HIGH canop scan . --min-score 85 Exporting Results
canop scan . --json-out results.json canop scan . --sarif results.sarif canop scan . --prescriptions fixes.json The SARIF output can be uploaded to GitHub for inline findings. fixes.json contains prompts for LLM-assisted remediation.
Add .canop.yml to the project root to define policy thresholds and ignored paths:
min_grade: B fail_on: - CRITICAL - HIGH ignore: - "tests/**" - "docs/**" max_findings: 0 .canopignore uses .gitignore-style patterns to exclude files and directories.
CanoP loads rules from canop/rules/*.yml and scans locally with its built-in pattern engine. Secret rules inspect comments to catch credentials accidentally left in frontend source by AI coding agents; other rules ignore comment-only lines to reduce noise. If installed, Semgrep adds AST-based analysis. It is optional and is not installed with CanoP.
git clone https://github.com/openbreach/CanoP.git canop cd canop pip install -e . python -m unittest discover -s tests -v Build distribution artifacts with:
pip install -r requirements-dev.txt python -m build Rule Development
Rules use Semgrep YAML format and live in canop/rules/*.yml. See CONTRIBUTING.md for guidelines.
For bugs and feature requests, open a GitHub issue or email canop.security@gmail.com.
This project is licensed under the MIT License.
Operating System OS Independent
Programming Language Python :: 3
Release files for canop 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 183.2 kB
Release files / canop-0.3.5.tar.gz
Release files / canop-0.3.5-py3-none-any.whl
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.
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.
Release history Release notifications | RSS feed
Nov 24, 2026 2 release files No provenance
Oct 28, 2026 2 release files No provenance
Oct 19, 2026 2 release files No provenance
Sep 4, 2026 2 release files No provenance
Aug 29, 2026 2 release files No provenance
Jun 13, 2026 2 release files No provenance
May 19, 2026 2 release files No provenance
May 18, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




