Skip to content

v1.5.1

Latest

Choose a tag to compare

@lopes lopes released this 23 Nov 16:07
· 1 commit to main since this release
v1.5.1
5b412a4

Security hardening release following v1.5.0, closing the cross-user cleanup trust boundary, eliminating all unsolicited sensor container egress, adding a pre-teardown host-integrity audit playbook, and tightening host disk-fill safeguards with zero intelligence loss.

Strict One-Way Isolation (stigma -> vector -> nectar)

  • Collector lockout from sensor scratch: Permanently removed lantana-grant-read, nightly stigma POSIX ACL grants, and all nectar reads/writes under /var/lib/lantana/sensor/ (tightened to 0700 stigma:stigma).
  • Self-pruning sensor scratch (User=stigma): Added root-owned hourly lantana-sensor-prune.timer executing /usr/local/libexec/lantana-sensor-prune as User=stigma inside a hardened systemd unit, using O_DIRECTORY | O_NOFOLLOW + dir_fd for symlink/TOCTOU-safe 14d retention (3d emergency >80%).
  • Datalake-only collector scope: Restricted lantana-prune strictly to nectar-owned Bronze/Silver/Gold tiers and scoped enrichment/{ioc,runner}.py to Bronze NDJSON only.

Non-Egressing :v1.5.1 Container Images & Offline Delivery

  • Offline ghcr.io/lopes/lantana-cowrie:v1.5.1 & ghcr.io/lopes/lantana-dionaea:v1.5.1: Added containers/cowrie/patch_offline.py + out_addr = 127.0.0.1 so Cowrie logs download URLs while failing locally without opening outbound sockets, and restricted Dionaea to modules=python,emu plus containers/dionaea/patch_ftp.py (rejecting active-mode FTP PORT with 502), verified in CI smoke tests.
  • Air-gapped container runtime (Pull=never): Pinned Cowrie and Dionaea Podman Quadlets to :v1.5.1 with Pull=never and added import_sensor_image.yml (root podman pull + podman save | runuser -u stigma -- podman load) so stigma never needs registry or internet access.

100% Dark stigma Firewall & OPSEC-Safe Egress Observability

  • Unconditional skuid stigma egress containment: Blocked and logged all meta skuid stigma ct state new traffic across WAN, loopback (lo), and ltn0 in firewall-single.nft.j2, eliminating outbound 53/80/443 piggybacking from rootless pasta sockets.
  • Kernel-only egress log isolation: Routed LANTANA_STIGMA_EGRESS kernel events via rsyslog (10-nftables.conf) to dedicated /var/log/lantana/sensor-egress.log (0640), added an unconditional OUTPUT drop guard in firewall.vector.yaml.j2, and stripped SRC= / WAN IPs before ingestion or reporting.
  • Critical egress alerting & Vigil /health: Added notify/egress.py for Critical sensor_egress_blocked Discord alerts in lantana-report and live same-day egress checks on Vigil /health (filtering out the intentional 127.0.0.1:1 validation canary).

Pre-Teardown Host-Integrity Audit, Storage Hygiene & Docs

  • Pre-teardown host audit & validation: Added config/ansible/tests/audit-host-integrity.yml to audit non-package systemd user units/timers, shell RC persistence, SSH authorized_keys, listening sockets, crontabs, non-overlay SUID binaries, and egress drops; expanded validate-{single-node,sensor-runtime,canaries,multi-node}.yml and the test suite (624 passing tests).
  • Zero-intel-loss disk hygiene: Disabled Suricata raw alert payload/packet dumps by default while preserving full alert metadata, capped systemd-journald at SystemMaxUse=200M, added maxsize 100M logrotate bounds with an hourly safety check, refreshed Vigil screenshots and operational docs (#55), and bumped GitHub Actions Docker build dependencies (#52–#54).

Full Changelog: v1.5.0...v1.5.1