An open source vulnerability scanner written in Rust
noctis is a black-box network vulnerability scanner released under the MIT licence. It has two parts, both in one public repository: an engine written in Rust, and the feeds, the YAML files that describe each vulnerability check. This page explains how it is built and what it does and does not do.
What an open source vulnerability scanner gives you
A vulnerability scanner probes hosts for known flaws: CVEs in the software they run, services left open without authentication, weak protocol settings. With an open source scanner you can also read how each check decides. That matters when a finding lands on your desk: you can open the check, see the request it sent and the pattern it matched, and judge the result without trusting a vendor’s verdict.
In noctis the check is a single YAML file per vulnerability, so that review takes minutes. The feed catalog shows the source of every check next to a plain description of what it sends and what confirms the finding.
Architecture
- A REST daemon.
noctis serveexposesPOST /scans,GET /scans/{id}andGET /scans/{id}/findings. A scan request names a host, the services discovered on it, and the feeds to run. A webhook can be called when the scan completes. - Service matching. noctis does not scan ports. You send the open services (port, nmap
service name, protocol), and each feed declares the
services:it applies to. Only matching feeds run on each port. - A step engine. A feed is a list of steps. Probe steps talk to the target; logic steps
(
match,script,set_var) decide. A finding is raised by the step that observed the evidence. - An out-of-band server. Started with
--oob, it receives HTTP and LDAP callbacks, so blind bugs such as Log4Shell or SSRF are confirmed when the target calls back. - No shared state. Feeds do not read each other’s results. A feed gives the same answer whether it runs alone or with the whole set.
Why Rust
The engine compiles to a single static binary. The container image is that binary on
scratch, with no operating system and no shell, published for linux/amd64 and
linux/arm64. Scan tasks run concurrently on an async runtime, from 1 to 100 in parallel per
scan.
Supported protocols
| Protocol | Feed actions |
|---|---|
| HTTP / HTTPS | http_request |
| Raw TCP, with or without TLS | tcp_connect, tcp_dialogue, tcp_open / tcp_send / tcp_close, tcp_starttls, tcp_syn |
| UDP | udp_probe |
| TLS inspection | tls_check (protocol version, cipher suite, certificate) |
| SSH | ssh_check (banner, authentication methods), ssh_exec (authenticated command) |
| SNMP v2c | snmp_get |
Legacy targets are reachable too: when a modern TLS handshake fails, the engine retries with
TLS 1.0/1.1 and RSA key exchange, and the SSH checks are built with SHA-1 key exchange and
ssh-dss for end-of-life appliances.
Detection methodology
A feed is written to observe the vulnerable behaviour, then every finding is graded with a Quality of Detection score: 50 for a banner or version, 75 for a functional proof such as a file read, 97 for an out-of-band callback or confirmed code execution. Almost every feed is tested end to end against a vulnerable and a patched mock of the product: the vulnerable one must produce the finding, the patched one must produce none. The CVE scanner page explains the difference with version-based detection.
Install
# Docker: feeds bundled in the image
docker run --rm -p 8080:8080 ghcr.io/fdarkshadow/noctis:latest
# cargo: engine from crates.io, then the feeds of that release
cargo install noctis --locked
noctis feeds update
noctis serve --port 8080
The installation guide covers build requirements and the source build; getting started runs a first scan.
Use cases
- After a port scan. Pass nmap’s service list to noctis to test each service for the CVEs and misconfigurations that apply to it.
- Behind an asset inventory. The REST API and webhooks let another system submit scans and collect JSON findings.
- Exposure checks. Feeds without a CVE find services open without authentication (Redis, MongoDB, Elasticsearch, the Docker API), default credentials and weak TLS or SSH settings.
- Your own checks. Write a feed for an internal product or a new CVE and mount it next to the bundled set. See YAML vulnerability scanning.
What noctis does not do
It does not discover ports, run authenticated local checks on a host, audit compliance policies, or offer a management UI. For those, tools such as OpenVAS cover more ground; the comparison is candid about it.
FAQ
What licence is noctis under?
The MIT licence, for the engine and the feeds.
Which platforms does it run on?
The container image is built for linux/amd64 and linux/arm64. The engine also builds from
source with a stable Rust toolchain and the libssh2 headers.
How many vulnerabilities does it detect?
1287 feeds covering 1791 CVEs at the time of writing; the feed catalog is searchable by CVE ID and product.
Can I add my own checks?
Yes. A check is a YAML file; no recompilation is needed.