A CVE scanner that proves the vulnerability
A CVE scanner answers one question: is this host affected by this CVE? There are two ways to answer it, and they fail differently. noctis is built around the second one.
Version detection and behavioural verification
Version detection reads a banner or a version string, then looks the version up in a list of affected releases. It is fast and harmless, and it is often wrong:
- Distributions backport security fixes without changing the upstream version, so a patched server still announces a “vulnerable” version.
- Many bugs need a module, an option or an endpoint that is not enabled everywhere.
- Banners are hidden, rewritten or removed by proxies.
Behavioural verification sends the request that triggers the bug in a harmless form and looks at what the service does: a file comes back, a command’s output appears, the target calls an address only that payload contained. The answer describes the service as it runs.
noctis feeds are written for behavioural verification whenever the vulnerability allows it. A version match is still reported when nothing better exists, and is marked as such.
How a finding is graded
Every finding carries a Quality of Detection (QoD) score that states which kind of evidence raised it:
| QoD | Evidence |
|---|---|
| 50 | Banner or version match |
| 70 | Specific header or response pattern |
| 75 | Functional proof: a file read, unauthenticated data returned |
| 97 | Out-of-band callback received, or confirmed code execution |
| 100 | Full exploit with verified output |
A finding also has a confidence between 0 and 1, the CVE IDs, a severity, the CVSS score of
the feed when it has one, and the evidence text. Filtering on qod separates “this version
looks affected” from “this host returned its /etc/passwd”.
Example: CVE-2021-41773
The Apache httpd 2.4.49 path traversal shows why the method matters. The server banner says
Apache/2.4.49 on vulnerable and on reconfigured hosts alike. The feed sends the traversal
itself, byte for byte over raw TCP, because an HTTP client library would normalise .%2e/
away before sending. This is a shortened excerpt:
cves: [CVE-2021-41773]
services: [http, https]
confidence_base: 0.30
steps:
- id: lfi-probe
action: tcp_connect
port: "{{port}}"
send: "GET /icons/.%2e/.%2e/.%2e/.%2e/etc/passwd HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: lfi_resp
- id: lfi-match
action: match
source: lfi_resp.banner
pattern: "^HTTP/1\\.[01] 200[\\s\\S]*root:[x*!]:0:0"
The full feed then repeats the same traversal for a file that cannot exist, and reports only
when that control request does not return passwd content, so a server that answers every
path with the same body is not reported. If CGI is enabled it goes on to run id and reports
code execution at QoD 97. Read the whole file on the
Apache httpd catalog page.
Which CVEs are covered
The catalog holds 1287 feeds for 1791 CVEs, grouped by product. Each product page lists its CVEs with severity, CVSS, the detection steps, the references (NVD, vendor advisory) and the feed source.
A feed is a vulnerability test, not a “CVE test”: some cover a chain tracked by several CVE IDs, and misconfiguration checks have none.
Feeds are tested both ways
Almost every feed (all but a few generic checks) ships with a mock of the product in two variants. In the end-to-end tests the feed must report the vulnerable variant and must stay silent on the patched one.
Run a CVE scan
Start the daemon, then send the host and its services:
docker run --rm -p 8080:8080 ghcr.io/fdarkshadow/noctis:latest
curl -s -X POST http://localhost:8080/scans \
-H "Content-Type: application/json" \
-d '{
"host": "10.0.0.1",
"services": [{"port": 80, "service": "http", "protocol": "tcp"}],
"tests": ["vulnerabilities/"]
}'
"tests" can be narrowed to one product ("vulnerabilities/apache-httpd/") or one feed file.
Scan only hosts you are authorised to test. The
getting started guide reads the findings, and
the REST API reference lists filters such as
exclude_cve and exclude_categories.
FAQ
Does noctis exploit the target?
Feeds use harmless proofs: reading a world-readable file, running id, triggering a callback.
Checks that can write on the target or attempt logins are in the rce and
default-credentials categories, which a scan can exclude with filters.exclude_categories.
Can a version-only match still be reported?
Yes, at a low QoD (50 to 70), when the vulnerability offers no safe behavioural proof.
Does it need credentials?
Most feeds do not. Feeds that need a login run only when the scan request carries
credentials.