Prometheus version scanning module
I'd like to add a prometheus version scan module in nettacker/modules/scan/, in the same style as the existing *_version_scan modules (jenkins, confluence, grafana). It only fingerprints the running Prometheus build and makes no vulnerability claim — Nettacker does not accept version-number-based vulnerability modules, since a version is a fingerprint, not proof of exploitability.
Why Prometheus
One of the most commonly internet-exposed monitoring systems, and the default datasource behind most Grafana dashboards (complements the Grafana module in #1799), so a reliable version is useful input for the planned version-to-CVE mapping work. Prometheus ships with no built-in authentication, so its build information is readable by default on exposed instances. There is currently no Prometheus module in Nettacker, and no other open issue/PR for one. Proposed detection
GET /api/v1/status/buildinfo on ports 9090 (Prometheus default) plus 80 and 443 for reverse-proxied instances, over http and https. This is a documented, unauthenticated endpoint (available since Prometheus 2.14) that returns {"status":"success","data":{"version":"X.Y.Z","revision":...,"goVersion":...}}. Match on status 200 and the buildinfo signature — a "success" status wrapping a data object that contains both a revision and a version key — then capture and log only the version string. Anchoring on the revision sibling (not on version alone) keeps other /api/v1 responses that also report "status":"success" (query results, runtime info) from matching, and the capture tolerates either key order. Severity 3 / info_severity, profiles scan, http and a new prometheus profile, matching the other version scan modules. Testing plan
Run against official prom/prometheus Docker images: an older 2.x and a current 2.x/3.x build, confirming the version is captured on both. Check non-buildinfo Prometheus responses (query results, runtime info, errors) and other products' /api/* responses for false positives. Verify the module stays silent when buildinfo is not served, and that a crafted response cannot slow the scan down. Add unit tests that load the module through the template engine and exercise its regex the way the HTTP engine does, on real buildinfo bodies (both key orders, pretty-printed, rc tags) and on non-matching bodies. I already have an implementation and Docker lab evidence ready and can open a PR once assigned. Can this be assigned to me?
OS: Windows 11 (WSL2 Ubuntu 24.04)
OS Version: 10.0.26200
Python Version: 3.11.18 (WSL), 3.12.10 (Windows)
please look into it and assign it @securestep9