Skip to main content

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-export plugin:
    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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vulnerability_checker-0.2.1.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vulnerability_checker-0.2.1-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file vulnerability_checker-0.2.1.tar.gz.

File metadata

  • Download URL: vulnerability_checker-0.2.1.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for vulnerability_checker-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e97c0725a1120b1d4d8ef393a0c4fd4644baed1afb0a66bdd048d7e6d60a6bd6
MD5 6a1eac6b32e7988f475c6dcb05a8135b
BLAKE2b-256 365245ad284741cf7a275dc346ae3e334e010d57628e5ecd8682841e198f29ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulnerability_checker-0.2.1.tar.gz:

Publisher: upload-python-package.yml on hecronk/vulnerability-checker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vulnerability_checker-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vulnerability_checker-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df2d9a0c16572a21488099e0cdbeb8d0f04c6ce6495dfc3f81186eba80a5ab14
MD5 9e7831763f8ff6a0dfde79c0827e0d3a
BLAKE2b-256 97585ab3311a5ea8569fca3ad76806d31469eb7465f1cc25ba148251d860e3de

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulnerability_checker-0.2.1-py3-none-any.whl:

Publisher: upload-python-package.yml on hecronk/vulnerability-checker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page