Skip to main content

A vulnerability scanning and reporting library based on NVD data

Project description

SecFlash

A powerful Python library for security vulnerability analysis using the National Vulnerability Database (NVD).

Features

  • Comprehensive vulnerability analysis
  • Detailed PDF report generation
  • NVD API integration with rate limiting
  • Local vulnerability database caching
  • Multi-language support
  • Customizable analysis parameters

Quick Start

# Install using Poetry
poetry install

# Set up environment
cp .env.example .env
# Add your NVD API key to .env

# Basic usage
from secflash import VulnerabilityAnalyzer

analyzer = VulnerabilityAnalyzer()
results = analyzer.analyze(keywords=["remote code execution"])

Documentation

Comprehensive documentation is available in the docs directory. To build the docs:

cd docs
poetry run make html

Then open docs/_build/html/index.html in your browser.

Development

We use modern Python development tools:

  • Poetry for dependency management
  • pytest for testing
  • black for code formatting
  • mypy for type checking
  • flake8 for linting
# Install dev dependencies
poetry install

# Run tests
poetry run pytest

# Format code
poetry run black secflash
poetry run isort secflash

# Type checking
poetry run mypy secflash

Architecture

SecFlash follows a modular architecture:

  • VulnerabilityAnalyzer: Core analysis engine
  • NVDClient: NVD API interaction
  • ReportGenerator: PDF report generation
  • NVDDatabase: Local data caching

For more details, see the architecture documentation.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests and linting
  5. Submit a pull request

License

MIT

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

secflash-0.1.0.tar.gz (846.1 kB view details)

Uploaded Source

Built Distribution

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

secflash-0.1.0-py3-none-any.whl (845.4 kB view details)

Uploaded Python 3

File details

Details for the file secflash-0.1.0.tar.gz.

File metadata

  • Download URL: secflash-0.1.0.tar.gz
  • Upload date:
  • Size: 846.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for secflash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27650f8633fe3d4fed78231ae33818c9ffc409bbad93716c45280b0a60a1b201
MD5 412b7f1fde7140b69debaf8127567565
BLAKE2b-256 867beda62c4772eb8afa8ebe696c894a8acbbc6e7a794adf3a7e62d4c1c744e9

See more details on using hashes here.

File details

Details for the file secflash-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: secflash-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 845.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for secflash-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54831ed6e0d46302928c71130b9bace63687a8358418cc0ba4b1d101acfa57d4
MD5 10d6338a2d45541f4ce26d68882d47aa
BLAKE2b-256 571e704f996d6a16ae518a3f22653329ff0dc70f32517c23cbb230502eb1ffe3

See more details on using hashes here.

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