Skip to content

Nightloom 0.1.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 16:03
· 137 commits to main since this release
e140f83

First release: self-hosted, passive collection of public infrastructure data into per-case investigation graphs.

Added

Investigations and ethics guardrails

  • Investigation cases with a mandatory purpose (30–2,000 characters), a legal basis (owned assets, authorized engagement, threat intelligence, journalism, academic research, self-assessment or other) and an acknowledgement of the ethics policy version in force.
  • Case membership with owner, editor and viewer roles; only members can see a case, admins included.
  • Case lifecycle: open, closed, archived and deleted; changing the purpose or legal basis requires a reason.
  • Person-related entity types are off by default and can only be enabled per case with a written reason.
  • Per-case activity feed built from the audit log.

Graph and entity model

  • Shared entity model (nightloom-core) with 19 entity types, each with a sensitivity (infrastructure, organization or person) and validated properties.
  • Canonical keys, so the same entity found in different spellings becomes one node; identical keys on every supported Python version.
  • Relationship allow-list per pair of entity types, and provenance on every entity and relationship (source, first and last seen, confidence, Admiralty reliability and credibility).
  • Per-case graphs stored in Neo4j; manual entities and relationships from the web UI.
  • GET /schema exposes types, sensitivities and the relationship allow-list to the UI.
  • Export as JSON (with provenance), GraphML or CSV (ZIP); person-related values are redacted by default, and including them requires a case owner and a recorded reason. Exports are limited in size and rate.

Shuttles

  • Shuttle SDK (nightloom-sdk): the Shuttle contract and metadata, an entry-point registry, test helpers and a guarded HTTP client (SSRF checks after DNS resolution, per-host rate limits, response size and time limits).
  • Background jobs on a Celery worker with Valkey: queued, running, succeeded, failed and cancelled states, shown live in the case graph's Jobs panel.
  • registrable-domain: links a subdomain to its registrable domain using the bundled Public Suffix List; no network.
  • dns: public DNS records (A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, DMARC) through public resolvers only.
  • reverse-dns: PTR names for an address or a netblock of up to 256 addresses, with forward confirmation.
  • crtsh: subdomains and recent certificates from Certificate Transparency logs via crt.sh.
  • rdap: registration data for domains, IP addresses, netblocks and ASNs; keeps organization names only, never contact details.
  • ripestat: announced prefixes, origin ASes and AS holders from RIPEstat.
  • internetdb: open ports, CPEs, CVE IDs, tags and hostnames from Shodan InternetDB (free for non-commercial use only).
  • wayback: archived URLs and subdomains from the Wayback Machine; query strings reduced to parameter names, URLs containing email addresses or credentials dropped.

Security

  • Server-side sessions in HttpOnly, SameSite=Strict cookies (Secure in production), with idle and absolute expiry and instant revocation.
  • CSRF protection (double submit, bound to the session) on every state-changing request.
  • Argon2id password hashing off the event loop, with a 12–128 character policy.
  • Admin, analyst and viewer roles; the last active admin cannot be demoted or deactivated.
  • Sign-in rate limits per email and per client IP, failing closed when Valkey is unavailable; uniform errors and timing for unknown accounts.
  • Real client IPs only from trusted proxies (nginx, and Caddy or cloudflared in production).
  • Security headers (CSP, X-Frame-Options and others) from nginx and the API; production refuses to start with placeholder secrets.

Audit log

  • Append-only, hash-chained audit log in PostgreSQL for sign-ins, password changes, rate limiting, user management, authorization denials, case and graph changes, jobs and exports, with request IDs.
  • Admin Audit log page with filters (action, outcome, actor, case, dates), event details and chain verification.

Deployment and operations

  • Docker Compose stack: API, worker, web (nginx), PostgreSQL, Neo4j Community, Valkey and SeaweedFS (S3-compatible).
  • Production overrides: only the edge publishes ports; HTTPS through Caddy (automatic certificates) or Cloudflare Tunnel; log rotation and memory limits; a small-host variant for 8 GB machines such as a Raspberry Pi 4B.
  • make secrets generates a production .env with random secrets.
  • make backup and make restore: PostgreSQL, Neo4j and the evidence bucket in one checksummed archive, with a manifest.
  • Multi-architecture (linux/amd64, linux/arm64) images published to GHCR as ghcr.io/therealnightmare/nightloom-backend and ghcr.io/therealnightmare/nightloom-web, with SBOMs and build provenance attestations; production pulls them by NIGHTLOOM_VERSION.
  • Release automation: version consistency checks, a tag-triggered release workflow and make bump-version.

Web UI

  • React + TypeScript single-page app with sign-in, session handling and a forced password change for temporary passwords.
  • Case list, case creation form and case workspace (graph, members, activity, settings).
  • Interactive Sigma.js graph: add entities and relationships, side panel with provenance and connections, search, legend, run Shuttles on the selected entity.
  • Graph filters (source, sensitivity, time seen, confidence, reliability and credibility, focus, isolated entities) kept in the URL; large groups of leaf neighbours collapsed into one node.
  • Admin Users page: create users with a temporary password shown once, change roles, deactivate and reactivate, revoke sessions, reset passwords.
  • Version shown in the account menu.

Known limitations

  • No auto-pivot yet: every Shuttle is run by hand on one entity.
  • Passive Shuttles only; nothing contacts the investigated targets directly.
  • Single-node deployment only (one host running the whole Compose stack).
  • Backups stop Neo4j briefly, because Neo4j Community Edition can only be dumped while stopped.

Images

Multi-architecture (linux/amd64, linux/arm64), with SBOM and build provenance attestations.

Image Tags Digest
ghcr.io/therealnightmare/nightloom-backend 0.1.0, 0.1, latest sha256:e96fb5dff708be5952aea8a480b89fe3cdb46b8598959782cc13f3aa222c403c
ghcr.io/therealnightmare/nightloom-web 0.1.0, 0.1, latest sha256:89ed95b6207114727f36c11bb6c642bd48193b1a628d699d8925a35c8c893901
docker pull ghcr.io/therealnightmare/nightloom-backend:0.1.0
docker pull ghcr.io/therealnightmare/nightloom-web:0.1.0
gh attestation verify oci://ghcr.io/therealnightmare/nightloom-backend:0.1.0 --repo TheRealNightmare/nightloom

Deploy or upgrade with docs/DEPLOYMENT.md (set NIGHTLOOM_VERSION=0.1.0).