How xaitax/sploitscan works
Project type and purpose
• SploitScan is a Python-based, command-line application (open-source tool) for retrieving vulnerability and exploit information for CVEs. It orchestrates multiple data-gathering methods (CISA KEV, EPSS, public exploits, HackerOne, AI risk assessments) and exports consolidated results in HTML, JSON, or CSV.
File structure
• Top-level:
• sploitscan.py – entry-point wrapper
• sploitscan/ – core package
└ __main__.py – CLI entry
└ sploitscan.py – orchestrator & method implementations
└ config.json – default settings schema
└ templates/report_template.html – Jinja2 HTML template
• Supporting files:
• Dockerfile – containerization
• pyproject.toml, requirements.txt – dependencies & packaging
• docs/ – man pages & changelog
• .github/workflows/release.yml – CI/CD release pipeline
README for additional insights
• The README lists all functional “methods” (CVE info, EPSS, CISA, public exploits, HackerOne, AI, patch priority, local CVE DB, scanner import), describes configuration resolution, export options, and Docker usage.
Main components & interactions
a. Components
1. CLI Front-end
2. Configuration Manager
3. Orchestrator / Controller
4. Data-Retrieval Modules (“Methods”):
• CVE Info Fetcher
• EPSS Service
• CISA KEV
• Public Exploit Aggregator (GitHub, ExploitDB, VulnCheck, Packet Storm, Nuclei)
• HackerOne GraphQL
• AI Risk Assessment (OpenAI, Google Gemini, Grok, DeepSeek)
• Vulnerability Scanner Importer (Nessus, Nexpose, OpenVAS, Docker Scout)
• Local CVE V5 Database Manager
5. Data Aggregator & Patching Priority Engine
6. Output Formatter & Exporters (HTML via Jinja2, JSON, CSV)
7. External Services & Data Sources (APIs and local repo)
b. Relationships / Data flow
• User invokes CLI → CLI Front-end
• CLI reads CLI args → Configuration Manager loads config.json (custom path/env/default)
• Orchestrator receives args + config → initializes selected Data-Retrieval Modules in parallel or sequence
• Each Module queries its external service or local DB → returns raw data
• Orchestrator forwards raw data to Data Aggregator → combined data object
• Patching Priority Engine computes patch priority (A+ through D)
• Output Formatter selects exporter (based on –export flag) → uses Jinja2 templates for HTML or serializes to JSON/CSV
• Results written to stdout or file
c. Architectural patterns and design principles
• Modular “plugin-like” data-retrieval methods
• Single Controller/Orchestrator dispatching to modules
• Configuration-first design (over multiple search paths)
• Separation of concerns: retrieval, aggregation, priority, templating, exporting
• Extensible: new methods or exporters can be added by dropping in a new module and updating orchestrator
d. Relevant technologies, frameworks, or libraries
• Python 3.x
• argparse (or click) for CLI parsing
• requests / httpx for HTTP API calls
• xmltodict (for Nessus/OpenVAS XML)
• Jinja2 for HTML templating
• pandas or built-in CSV / JSON modules
• Docker (for container image defined in Dockerfile)
• GitHub Actions for CI/CD (release workflow)
Detailed capture of essential elements
• Do not oversimplify: represent each of the ~8 data-retrieval methods as its own element.
• Local CVE DB repo clone as a storage component.
• Docker container boundary when illustrating containerized deployment.