
Self-hosted network discovery & search — your own Shodan, on your hardware.
TCP/UDP scanning · ~100 protocol probes · TLS/JARM fingerprints · CVE matching · full-text search · delta tracking · alerts
Quick start · Features · Architecture · Documentation · Production
Important. Scan only networks you own or have written authorization to scan. UltraViolet performs passive service reconnaissance — it does not exploit vulnerabilities.
| Use case | What you get |
|---|
Single tenant, one Docker Compose stack, full control over your data.
Discovery
SCAN_ALLOWED_CIDRS with host and port limitsDeep probes (~100 protocols)
robots.txt, security.txt, tech stackEnrichment
CVE & risk
Operations
viewer / operator / admin), JWT + refresh tokens/metrics, optional Grafana profileflowchart TB
Browser["Browser"]
FE["service-frontend<br/>React + nginx"]
API["uv-api<br/>REST · WS · metrics"]
PG[("PostgreSQL 16")]
SCAN["uv-scanner<br/>probe pipeline"]
Browser --> FE
FE -->|"/api"| API
FE -->|"/realtime"| API
API <--> PG
SCAN <--> PG
API -.->|LISTEN/NOTIFY| API
The release UI image proxies /api/ and /realtime to uv-api — single origin, no frontend rebuild per API URL.
Backend development rules: CLAUDE.md.
Requirements: Go 1.25+, Docker Engine ≥ 24, ~4 GB RAM. Production images target Linux amd64.
Beginner path — pull published images with
service-env/docker-compose.registry.yml:
cd service-env
cp env.registry.example .env
# set POSTGRES_PASSWORD, AUTH_JWT_SECRET, AUTH_BOOTSTRAP_PASSWORD
mkdir -p geoip catalog-seed
docker compose -f docker-compose.registry.yml pull
docker compose -f docker-compose.registry.yml up -d
# UI → http://localhost:3000
See Docker Registry in the docs site.
The API/scanner images copy prebuilt binaries from service-api/bin/ (they are not compiled inside Docker). make dev runs make -C service-api build-linux before docker compose … --build.
git clone https://github.com/yakushstanislav/UltraViolet.git
cd UltraViolet/service-env
cp .env.example .env
mkdir -p secrets
openssl rand -hex 32 > secrets/postgres_password
openssl rand -hex 32 > secrets/auth_jwt_secret
cd ..
make dev
| URL | Purpose |
|---|---|
| http://localhost:3000 | UI (API via nginx /api/) |
| http://localhost:8080 | API directly |
Dev bootstrap: admin / admin (only when APP_ENV≠production).
Full guide — VitePress in service-documentation-frontend/docs/:
make docs-dev # → http://localhost:5173
In production, enable the docs profile:
cd service-env && docker compose --profile docs up -d
# → http://localhost:${UV_DOCUMENTATION_PORT:-3002}
Key sections: installation · scanning · API · deployment · offline install.
make dev # build-linux → compose prod + dev override --build
Rebuild Go binaries after backend changes (make -C service-api build-linux), then restart or re-run make dev.
make dev-db # PostgreSQL only on :5432
cd service-api && make build
export LOGGER_NAME=uv-api LOGGER_DEBUG=true
export SERVER_ADDR=0.0.0.0 SERVER_PORT=8080
export METRICS_ADDR=0.0.0.0 METRICS_PORT=9090
export REALTIME_ADDR=0.0.0.0 REALTIME_PORT=8081
export POSTGRES_ADDR=localhost POSTGRES_PORT=5432
export POSTGRES_USERNAME=ultraviolet
export POSTGRES_PASSWORD="$(cat ../service-env/secrets/postgres_password)"
export POSTGRES_DATABASE=ultraviolet
export POSTGRES_SCHEMA_PATH="$(pwd)/deploy/migrations"
export AUTH_JWT_SECRET="$(cat ../service-env/secrets/auth_jwt_secret)"
./bin/uv-api
Frontend: cd service-frontend && npm run dev (Vite proxies /api → :8080, /realtime → :8081).
cd service-env && make geoip-download # IPLocate MMDB → geoip/
make -C service-env cve-catalog-dump # CVE dump (requires running postgres)
make build && make lint && make frontend-build && make docs-build
Target platform: linux/amd64. On Apple Silicon, set DOCKER_PLATFORM=linux/amd64 for offline archives.
git tag v0.1.0
make release VERSION=v0.1.0
make release-promote VERSION=v0.1.0 # :latest — required for local releases; GitHub Actions does this automatically
| Archive | Contents |
|---|---|
ultraviolet-vX.Y.Z.tar.gz | compose, scripts, .env.example (~50 KB, online) |
ultraviolet-vX.Y.Z-offline.tar.gz | + amd64 Docker images |
ultraviolet-vX.Y.Z-offline-full.tar.gz | + CVE seed + GeoIP MMDB |
Online: extract → cp .env.example .env → ./install.sh (pull from registry).
Offline: ./install.sh (docker load, no pull). Upgrade: keep .env, secrets/, and the Postgres volume → ./upgrade.sh.
Variables: UV_REGISTRY (default docker.io/styakush), DRY_RUN=1 — local smoke build without push.
# from the build machine
scp dist/ultraviolet-v0.1.0-offline.tar.gz user@host:~/
# on the server (Docker ≥ 24, amd64)
tar xzf ultraviolet-v0.1.0-offline.tar.gz && cd ultraviolet-v0.1.0
cp .env.example .env
./install.sh
Upgrade (preserve data):
docker compose -f docker-compose.yml down
# back up .env + secrets/, extract the new archive, run ./upgrade.sh
Keep the directory name (ultraviolet-v0.1.0) stable — the postgres-data Docker volume is tied to it.
secrets/, never in git.CORS_ALLOWED_ORIGINS to real UI origins only.SCAN_ALLOWED_CIDRS and host/port limits.AUTH_JWT_SECRET (install.sh rejects placeholders).APP_ENV=production — uv-api refuses admin/admin and passwords shorter than 8 characters.service-env/examples/nginx-tls.conf.AUDIT_TRUST_PROXY_HEADERS=true.service-env/scripts/backup.sh + cron; upgrade.sh also creates a dump.TLS termination on external nginx — bind the UI to loopback only:
# docker-compose.override.yml
services:
service-frontend:
ports:
- "127.0.0.1:3000:8080"
CORS_ALLOWED_ORIGINS=https://ultraviolet.example.com
AUDIT_TRUST_PROXY_HEADERS=true
Sub-path (/ultraviolet/):
VITE_BASE_PATH=/ultraviolet/ make frontend-build
# UV_BASE_PATH=/ultraviolet/ in compose — must match VITE_BASE_PATH
Backup cron (daily, 14-day retention):
0 3 * * * cd /opt/ultraviolet/service-env && ./scripts/backup.sh && find backups -name 'uv-*.dump' -mtime +14 -delete
GeoIP refresh (1st of each month):
0 4 1 * * cd /opt/ultraviolet/service-env && ./scripts/geoip-refresh.sh >> /var/log/uv-geoip.log 2>&1
After POST /v1/auth/login you receive an access_token (Bearer) and refresh_token (/v1/auth/refresh).
| Role | Capabilities |
|---|---|
viewer | Read hosts, search, CVEs, dashboard |
operator | + start and manage scans |
admin | + users, audit, settings |
GET /v1/me · GET /v1/version · GET /readyz (health + version + commit).
See CONTRIBUTING.md. Security reports: SECURITY.md. Community standards: CODE_OF_CONDUCT.md.
UltraViolet is released under the MIT License.
UltraViolet — discover what you own, understand what changed, keep it on your network.
| Perimeter & inventory | Continuous discovery of open ports and services across CIDR ranges |
| Infrastructure search | Full-text search over HTTP bodies, banners, TLS, DNS, and CVEs |
| Risk & compliance | Local NVD matching plus CISA KEV and EPSS — no cloud dependency |
| Air-gapped deployments | Offline archive with Docker images, CVE seed, and GeoIP MMDB on disk |
| Change tracking | Deltas between scans, WebSocket events, alerts on saved searches |
| Directory | Purpose |
|---|
service-api/ | Go: uv-api (HTTP API, WebSocket, workers) + uv-scanner (pipeline) |
service-frontend/ | React 19 + Vite + RTK — scans, hosts, search, dashboard |
service-documentation-frontend/ | VitePress — user and operator documentation |
service-env/ | docker-compose, secrets, install.sh / upgrade.sh / backup |
| http://localhost:9090/metrics |
| Prometheus |
:9090/metrics; Grafana via the observability profile.service-env/scripts/geoip-refresh.sh on a monthly cron.