Install noctis
noctis comes in two parts: the engine, a single binary with a REST API, and the feeds,
the YAML checks it runs. Pick one of the three methods below. All three end with
noctis serve listening on port 8080 and "tests": ["vulnerabilities/"] resolving to the
installed feed set.
| Method | Best for | Feeds come from | Update |
|---|---|---|---|
| cargo install | a scanner host or a laptop with Rust | noctis feeds update |
cargo install noctis --locked + noctis feeds update |
| Docker | servers, CI, no toolchain | bundled in the image at /feeds |
docker pull a newer tag |
| From source | contributing, unreleased changes | the repository’s tests/ tree |
git pull + cargo build --release |
Install with cargo
The engine is published on crates.io.
CFLAGS="-DLIBSSH2_KEX_SHA1_ENABLE -DLIBSSH2_DSA_ENABLE -DLIBSSH2_RSA_SHA1_ENABLE" \
cargo install noctis --locked
noctis feeds update
noctis serve --host 0.0.0.0 --port 8080
cargo install builds the binary into ~/.cargo/bin. It needs a stable
Rust toolchain and the libssh2 headers, which the SSH checks link
against:
sudo apt-get install -y pkg-config libssh2-1-dev # Debian / Ubuntu
sudo dnf install -y pkgconf-pkg-config libssh2-devel # Fedora / RHEL
brew install libssh2 pkg-config # macOS
The three CFLAGS build the SSH checks with the legacy
algorithms (SHA-1 key exchange, ssh-dss host keys) that end-of-life appliances often still
require. A source build and the container image set them already through
.cargo/config.toml, which cargo install does not read. Without them, an SSH step against such
a device fails its handshake and reports nothing; the engine log says so.
noctis feeds update downloads the feed set attached to the GitHub Release that matches the
binary’s version (noctis-feeds.tar.gz). It checks the archive’s sha256 and installs it into
~/.local/share/noctis/feeds. noctis feeds path prints that directory. See
Feeds directory to change it, to take the newest release’s feeds
with --tag latest, or to install from a local archive on an offline host.
Update
CFLAGS="-DLIBSSH2_KEX_SHA1_ENABLE -DLIBSSH2_DSA_ENABLE -DLIBSSH2_RSA_SHA1_ENABLE" \
cargo install noctis --locked # newer engine, if there is one
noctis feeds update # the feeds of that engine's release
Run with Docker
The image is published on the GitHub Container Registry for linux/amd64 and linux/arm64.
It is a static binary on scratch (no OS, no shell), and it bundles the feeds at /feeds:
docker run --rm -p 8080:8080 ghcr.io/fdarkshadow/noctis:latest
Use :X.Y.Z to pin a release and :edge to follow main. To update, pull a newer tag: the
feeds inside the image are those of its release. The Docker page covers mounting
your own feeds, compose and the OOB callback port.
Build from source
git clone https://github.com/fDarkShadow/noctis
cd noctis
cargo build --release
./target/release/noctis serve --host 0.0.0.0 --port 8080 --feeds-dir tests
The build needs the same toolchain and libssh2 headers as cargo install. --feeds-dir tests
makes "tests": ["vulnerabilities/"] resolve to the feeds of your checkout, so a pull updates
them too.
To build the container image yourself: docker build -t noctis .
Requirements
| Version | Needed for | |
|---|---|---|
| Rust | stable | cargo install, source build |
pkg-config + libssh2 headers |
system packages | cargo install, source build |
| Docker or Podman | any recent | the container image |
| Ansible-core ≥ 2.15, Podman ≥ 4, Task ≥ 3 | end-to-end feed tests only (contributing) |
The container image is fully static and needs nothing at runtime.
Check the install
noctis --version
curl -s http://localhost:8080/health
Next: run a first scan.