<p align="center">
<img src="https://raw.githubusercontent.com/fDarkShadow/noctis/main/assets/noctis-logo.png" alt="noctis — open-source vulnerability scanner" width="420">
</p>
<h1 align="center">noctis</h1>
<p align="center">
<strong>Open-source black-box vulnerability scanner, written in Rust and driven by YAML checks.</strong><br>
It detects CVEs, misconfigurations and exposed services on live hosts, and reports a finding only
once it has proven the bug on the service.
</p>
<p align="center">
<a href="https://crates.io/crates/noctis"><img src="https://img.shields.io/crates/v/noctis?logo=rust" alt="crates.io"></a>
<a href="https://github.com/fDarkShadow/noctis/pkgs/container/noctis"><img src="https://ghcr-badge.egpl.dev/fdarkShadow/noctis/size?tag=latest&label=docker%20image" alt="Docker image"></a>
<a href="https://github.com/fDarkShadow/noctis/actions/workflows/ci.yml"><img src="https://github.com/fDarkShadow/noctis/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
<a href="https://fdarkshadow.github.io/noctis/feeds/"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FfDarkShadow%2Fnoctis%2Fbadges%2Ffeeds.json&cacheSeconds=1800" alt="Vulnerability tests"></a>
<a href="https://fdarkshadow.github.io/noctis/feeds/"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FfDarkShadow%2Fnoctis%2Fbadges%2Fcves.json&cacheSeconds=1800" alt="CVEs covered"></a>
<a href="https://github.com/fDarkShadow/noctis/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a>
</p>
<p align="center">
<a href="https://fdarkshadow.github.io/noctis/">Documentation</a> ·
<a href="https://fdarkshadow.github.io/noctis/installation.html">Installation</a> ·
<a href="https://fdarkshadow.github.io/noctis/feeds/">Feed catalog</a> ·
<a href="https://fdarkshadow.github.io/noctis/comparison.html">vs Nuclei / OpenVAS</a>
</p>
---
## Why noctis?
- **Proof, not version guessing.** A check raises a finding only when it *observes* the
vulnerable behaviour: a file read through a traversal, an unauthenticated reply, an
out-of-band callback. Each finding carries its evidence and a Quality-of-Detection (QoD)
score from 0 to 100.
- **Each check is a readable YAML file.** One file per vulnerability. You can read it, review
it in a pull request, or write your own without recompiling.
- **Beyond HTTP.** Raw TCP and UDP with verbatim bytes, TLS, SSH, SNMP, binary protocols,
multi-step chains and a built-in out-of-band callback server.
- **One fast binary with a REST API.** Built in Rust, made for automation and CI/CD, and also
shipped as a small multi-arch container image with no OS and no shell.
---
## Install
### 1. With cargo (crates.io)
```sh
CFLAGS="-DLIBSSH2_KEX_SHA1_ENABLE -DLIBSSH2_DSA_ENABLE -DLIBSSH2_RSA_SHA1_ENABLE" \
cargo install noctis --locked # the CFLAGS enable legacy SSH algorithms
noctis feeds update # downloads the detection feeds → ~/.local/share/noctis/feeds
noctis serve --port 8080
```
The crate is the engine. `noctis feeds update` installs the matching feed set from the GitHub
Release (sha256-checked); run it again to update. Building needs a stable Rust toolchain plus
`pkg-config` and the libssh2 headers (`sudo apt-get install -y pkg-config libssh2-1-dev` on
Debian/Ubuntu). The `CFLAGS` build the SSH checks with the legacy algorithms (SHA-1 key
exchange, `ssh-dss`) that end-of-life appliances require; see the
[installation guide](https://fdarkshadow.github.io/noctis/installation.html).
### 2. With Docker
```sh
docker run --rm -p 8080:8080 ghcr.io/fdarkshadow/noctis:latest
```
The static `scratch` image (`linux/amd64`, `linux/arm64`) ships with the feeds at `/feeds`. Mount
`-v ./my-feeds:/feeds` to use your own. Tags: `latest`, `X.Y.Z`, `X.Y`, and `edge` for `main`.
### 3. From source
```sh
git clone https://github.com/fDarkShadow/noctis && cd noctis
cargo build --release
./target/release/noctis serve --port 8080 --feeds-dir tests # the checkout's feeds
```
The [installation guide](https://fdarkshadow.github.io/noctis/installation.html) covers
requirements, updates and offline installs.
---
## Run a first scan
Give noctis a host and the services found on it (for example from nmap: a port and a service
name). It runs every feed whose `services:` match against the live service:
```sh
curl -s -X POST http://localhost:8080/scans \
-H "Content-Type: application/json" \
-d '{
"host": "10.0.0.1",
"services": [
{"port": 80, "service": "http"},
{"port": 443, "service": "https"}
],
"tests": ["vulnerabilities/"]
}'
# → {"id": "…"}
curl -s http://localhost:8080/scans/<id>/findings
```
```json
[
{
"cve_ids": ["CVE-2021-41773"],
"severity": "critical",
"confidence": 0.95,
"qod": 75,
"evidence": { "response_excerpt": "LFI confirmed — /etc/passwd via path traversal" }
}
]
```
`"tests": ["vulnerabilities/"]` finds the installed feeds with all three install methods. Filters
(by CVE, tag or `category`), authenticated scans, webhooks and out-of-band callbacks are
described in the [REST API guide](https://fdarkshadow.github.io/noctis/usage.html).
---
## What it detects
**<!-- feed-stats:feeds -->1082<!-- /feed-stats --> vulnerability tests** in
697 product directories:
1040 CVE detections covering
**<!-- feed-stats:cves -->1554<!-- /feed-stats --> distinct CVEs**, plus
42 misconfiguration and exposure checks.
They cover headline CVEs (Apache, Confluence, F5 BIG-IP, Fortinet, Ivanti, Citrix, VMware,
GitLab, Jenkins…) and protocol-level exposures: unauthenticated Redis, MongoDB, Elasticsearch
or Docker API; SMBv1 and SMB signing; weak TLS and SSH configurations; default credentials, and
more. Browse and search them by CVE in the
**[feed catalog](https://fdarkshadow.github.io/noctis/feeds/)**.
A feed is plain YAML. This excerpt is the first check of
[`apache-httpd/CVE-2021-41773.yaml`](https://github.com/fDarkShadow/noctis/blob/main/tests/vulnerabilities/apache-httpd/CVE-2021-41773.yaml):
```yaml
uid: a3c7f4e2-1b9d-4f6a-8e3c-2d5a0f1e9b4c
name: "Apache httpd 2.4.49 Path Traversal / RCE (CVE-2021-41773)"
cves: [CVE-2021-41773]
severity: critical
category: rce
services: [http, https]
confidence_base: 0.30
steps:
- id: lfi-probe
action: tcp_connect # raw bytes: the encoded path is sent verbatim
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: "root:[x*!]:0:0"
on_match:
finding:
confidence_delta: 0.65
qod: 75
evidence: "LFI confirmed — /etc/passwd via path traversal"
stop: true
```
[Writing feeds](https://fdarkshadow.github.io/noctis/writing-feeds.html) documents every
action, variable and the QoD scale.
---
## How it compares
noctis sits between **Nuclei** and **OpenVAS**: its checks are data-driven YAML like Nuclei
templates, and its findings are graded with a QoD score like OpenVAS. Unlike either, a finding
needs a step that proved the bug. Mature scanners still ship far more checks; noctis's set is
smaller and growing. The details are in
[noctis vs Nuclei vs OpenVAS](https://fdarkshadow.github.io/noctis/comparison.html).
---
## Documentation
| Page | What's in it |
|------|--------------|
| [Installation](https://fdarkshadow.github.io/noctis/installation.html) | cargo, Docker, source builds, updates, offline installs |
| [Getting started](https://fdarkshadow.github.io/noctis/getting-started.html) | a first scan, step by step |
| [Usage & REST API](https://fdarkshadow.github.io/noctis/usage.html) | endpoints, request fields, filters, credentials, OOB, performance |
| [Writing feeds](https://fdarkshadow.github.io/noctis/writing-feeds.html) | feed format, actions, variables, QoD |
| [Docker](https://fdarkshadow.github.io/noctis/docker.html) | image tags, feed mounts, compose |
| [Feed catalog](https://fdarkshadow.github.io/noctis/feeds/) | every check, searchable by CVE and product |
---
## Contributing
New feeds, engine work, mocks and docs are welcome. Start with
[CONTRIBUTING.md](https://github.com/fDarkShadow/noctis/blob/main/CONTRIBUTING.md): it covers
the dev setup and the end-to-end test infrastructure (Ansible + rootless Podman mocks, a true
positive and a true negative for every feed).
[CLAUDE.md](https://github.com/fDarkShadow/noctis/blob/main/CLAUDE.md) is the full authoring
reference.
Questions and ideas go to
[GitHub Discussions](https://github.com/fDarkShadow/noctis/discussions). To report a security
issue in noctis itself, follow
[SECURITY.md](https://github.com/fDarkShadow/noctis/blob/main/SECURITY.md) rather than opening a
public issue.
## Support
noctis is free and open source. If it saves you time, you can
[buy me a coffee](https://buymeacoffee.com/fdarkshadow). It funds new feeds and engine work.
## License
MIT. See [LICENSE](https://github.com/fDarkShadow/noctis/blob/main/LICENSE).