# hevnsnt/cvengine — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `dev`
- Overall score: `3.4/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `d81ec0fa3a30` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-11-30T12:43:25Z
- Repository: https://github.com/hevnsnt/cvengine
- Radar entry: https://radar.alplab.co/#repo/hevnsnt/cvengine
- License: `GPL-3.0`
- CI workflows: `.github/workflows`
- Tags: `attack-surface-management`, `cve-validation`, `recon`, `nuclei`, `ai-triage`, `self-hosted`

## Summary

Self-hosted external attack surface management platform (Django+Celery+Docker Compose) that discovers and inventories a domain's assets with pinned recon tools (bbot, nmap, naabu, Nuclei, testssl.sh, WPScan, Kingfisher), matches CVE feeds against the inventory, and optionally reproduces matches with read-only checks on remote Sentinel agents, with bring-your-own-key AI triage in a locked-down reviewer container.

## Implementation Check

The README's pipeline is implemented in code, not scaffold: feed sync in web/cveFeed/cve_now.py (full cve.now client with delta windows, depth-limit and tombstone handling), matching/correlation/triage in web/cveFeed/correlation.py, match_policy.py, triage.py, the AI reviewer with prompt-fencing and schema-checked replies in reviewer/cvengine_reviewer/guard.py and llm.py, read-only host inventory scripts/inventory/cvengine-inventory.py, and 400+ test files under web/tests wired into .github/workflows/build-pr.yml.

## When to Use

Reach for it when you own a domain and can dedicate a Linux+Docker server (4-8 GB RAM) to continuous, read-only-first attack surface monitoring with CVE-to-host matching; not for quick one-off scans, Windows-only hosts, or if you cannot host the Sentinel/scanner infrastructure.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.0/5 |
| usability | 3.0/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 3.0/5 |

## Code Evidence

web/cveFeed/cve_now.py is a production-grade feed client; web/reNgine/input_guard.py implements an abuse-strike/ban middleware with documented exemptions for machine routes; reviewer/cvengine_reviewer/guard.py fences untrusted scanner output with nonces and validates model replies against strict JSON schemas; web/reNgine/common_func.py HMAC-signs pickled Redis cache blobs precisely because pickle is unsafe; web/requirements.txt pins every dependency and pulls the scanner library by full commit sha; .github/workflows/build-pr.yml runs a sharded Django suite with network blocked (CVENGINE_TEST_BLOCK_NETWORK=1), UI gates on headless Chromium, verifies Kingfisher rule-bundle attestations, and runs the reviewer image read-only, no caps, no network; scripts/inventory/cvengine-inventory.py refuses tokens on the command line, forces https, and never follows redirects.

## Issues Found

TLS certificate verification can be disabled per-admin for SMTP relays (web/cveFeed/mailer.py:40, opt-in 'Verify the server certificate' setting); several modules are enormous monoliths that resist review (web/agentapi/services.py ~354 KB, web/agentapi/sentinel_broker.py ~261 KB, web/cveFeed/tasks.py ~182 KB); the scanner library is fetched at a sha from the author's sibling repo (web/requirements.txt), a supply-chain dependency on one maintainer; pickle is still the cache serialization (web/reNgine/common_func.py:56), mitigated only by the HMAC seal.

## Key Risks

Nothing was executed, so scan quality, Sentinel behavior, and AI triage correctness are unverified; the Sentinel client and scanner image live in a second repository (hevnsnt/cvENGINE-sentinel) not reviewed here, so the actual scanning half is taken on trust from pins; the project is 1 month old (created 2026-10-24) with very high commit velocity and 19 releases, so surface churn is high; deployment is heavy: multiple containers, Postgres, Redis, Celery, a scanner image around 4.5 GB.

## Reviewed Files

- `README.md`
- `.env.example`
- `web/requirements.txt`
- `web/cveFeed/cve_now.py`
- `web/cveFeed/mailer.py`
- `web/reNgine/input_guard.py`
- `web/reNgine/common_func.py`
- `reviewer/cvengine_reviewer/guard.py`
- `scripts/inventory/cvengine-inventory.py`
- `install.sh`
- `.github/workflows/build-pr.yml`
