Library for detecting vulnerabilities in Python code
Project description
Vulnerability Checker
A library for detecting vulnerabilities in Python code. Designed for integration with CI/CD systems such as GitLab CI/CD. Supports Python 3.8 and above.
Features
- Static code analysis to detect security vulnerabilities
- Dependency checking for known vulnerabilities
- Analysis of insecure code constructs
- Returns non-zero exit code when issues are found
- Generates detailed vulnerability reports
Requirements
- Python 3.8 - 3.13
- Dependencies listed in
pyproject.toml(automatically installed with the package) - If you use Poetry for dependency management, you need to install the
poetry-plugin-exportplugin:poetry self add poetry-plugin-export
Installation
pip install vulnerability-checker
Usage
Command Line
# Basic directory analysis
vulncheck /path/to/your/project
# Analysis with JSON report generation
vulncheck /path/to/your/project --output report.json
# Check only specific vulnerability types
vulncheck /path/to/your/project --checks sql-injection,xss,dependency-check
Available Flags
--output <filename>: Specifies the name of the file to save the report (e.g.,--output report.json).--checks <check_types>: Specifies which types of vulnerabilities to check (e.g.,--checks sql-injection,xss,dependency-check).--verbose: Detailed output.--exit-zero: Always return 0 exit code, even when vulnerabilities are found.
GitLab CI/CD Integration
security_check:
stage: test
script:
- pip install vulnerability-checker
- vulncheck . --output report.json
artifacts:
paths:
- report.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vulnerability_checker-0.2.5.tar.gz.
File metadata
- Download URL: vulnerability_checker-0.2.5.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14d268d9717c88b2e3044781e6514f389510ad259363a7c44cbe201b2f648eac
|
|
| MD5 |
5724505baad3b88e73cf018695e83444
|
|
| BLAKE2b-256 |
25ba1826717da25d2f76a045614ea41084cfac46b651c86e8e27bdf9e88d9fa4
|
Provenance
The following attestation bundles were made for vulnerability_checker-0.2.5.tar.gz:
Publisher:
upload-python-package.yml on hecronk/vulnerability-checker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vulnerability_checker-0.2.5.tar.gz -
Subject digest:
14d268d9717c88b2e3044781e6514f389510ad259363a7c44cbe201b2f648eac - Sigstore transparency entry: 242607077
- Sigstore integration time:
-
Permalink:
hecronk/vulnerability-checker@b8590e063ff5369a4b87b5ed2cde463a48c07b95 -
Branch / Tag:
refs/tags/0.2.5 - Owner: https://github.com/hecronk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload-python-package.yml@b8590e063ff5369a4b87b5ed2cde463a48c07b95 -
Trigger Event:
release
-
Statement type:
File details
Details for the file vulnerability_checker-0.2.5-py3-none-any.whl.
File metadata
- Download URL: vulnerability_checker-0.2.5-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49a6121091086aa30f6e9bb34f8d345b09240a9e0b59631c28030a93457ecdde
|
|
| MD5 |
fda6338f1521b9d4e3a06476262b6761
|
|
| BLAKE2b-256 |
face50197883652febe42cef4795d8750b51579414ef035d3a5f4e64f2ee5d84
|
Provenance
The following attestation bundles were made for vulnerability_checker-0.2.5-py3-none-any.whl:
Publisher:
upload-python-package.yml on hecronk/vulnerability-checker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vulnerability_checker-0.2.5-py3-none-any.whl -
Subject digest:
49a6121091086aa30f6e9bb34f8d345b09240a9e0b59631c28030a93457ecdde - Sigstore transparency entry: 242607078
- Sigstore integration time:
-
Permalink:
hecronk/vulnerability-checker@b8590e063ff5369a4b87b5ed2cde463a48c07b95 -
Branch / Tag:
refs/tags/0.2.5 - Owner: https://github.com/hecronk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload-python-package.yml@b8590e063ff5369a4b87b5ed2cde463a48c07b95 -
Trigger Event:
release
-
Statement type: