Skip to main content
ToolPublished

ubuntils v2.0.0 · forensic triage for Ubuntu: collect artifacts, correlate a timeline, and detect 15 persistence/tampering techniques (fully offline)

Source Reddit Cybersecurity

0

Discussion

ubuntils v2.0.0 is a Python-based forensic triage tool for live Ubuntu systems designed to automate artifact collection, persistence detection, and timeline correlation. It replaces manual incident response commands with a fast, automated process that collects data from multiple system sources, detects 15 persistence and tampering techniques, and correlates events into a timeline. The tool supports offline analysis by splitting collection and analysis phases, includes confidence scoring for findings, and offers guided remediation with dry-run and confirm modes. It integrates with Wazuh for automated reporting and operates fully offline without network calls. ubuntils aims to improve the speed and accuracy of initial forensic triage on Ubuntu hosts.

r/cybersecurity (opens in a new tab)u/InsideRatio55350 points0 comments

Hey all,

I've been building ubuntils, a Python CLI/TUI for forensic triage on Ubuntu — the idea is to replace the "run the same 10 manual commands and hope you didn't miss one" first-30-minutes ritual of incident response with a single tool that does collection, detection, and timeline correlation automatically.

How it works (4 stages, ~3s total on a live host):

  1. Collect — 11 collectors gather artifacts concurrently (processes, network, cron, systemd, SSH, sudoers, users, packages, PAM, kernel modules, environment)
  2. Detect — 15 built-in rules (+ custom YAML rules if you want) run over everything, ranked by severity
  3. Timeline — correlates syslog/journald/auditd chronologically and auto-attaches related events to each finding
  4. Output — interactive 4-tab TUI (Summary/Findings/Timeline/Stats) or --json

What it catches: the usual suspects (cron persistence, LD_PRELOAD injection, suspicious systemd timers, new SSH keys, NOPASSWD sudoers, UID-0 backdoors) plus a newer "coverage pack" — tampered package files (dpkg --verify), immutable/append-only flag abuse, PAM/NSS backdoors, suspicious kernel modules, and unexpected setuid binaries.

New in v2.0.0 — offline collect/analyze split:

  • ubuntils collect grabs a tamper-evident bundle (hashed files + commands, SHA-256'd manifest) from a host with no detection running
  • ubuntils analyze bundle.tar.gz (or --root /mnt/image for a mounted image) runs the full detection/timeline pipeline later, elsewhere, without root
  • Bundle integrity is verified and reported (live / ok / mismatch)
  • Confidence scoring on findings (0–100, with an explainable signals breakdown) instead of a flat mtime heuristic
  • Docs are upfront about what offline analysis can't see compared to a live scan — no silently pretending it has parity

Also has:

  • Two-step remediation (dry-run by default, --confirm to apply) with automatic backups, symlink guards, and rollback commands — 5 of the 15 rules are auto-remediable, the rest are flag-only by design since they need a human to judge
  • Wazuh integration — if a Wazuh agent is present, findings get appended as JSON lines automatically, no flag needed
  • Zero network calls, ever — even dropped a planned VirusTotal hash-lookup feature to keep that guarantee absolute
  • 90%+ test coverage, MIT licensed

​

sudo apt install pipx -y && pipx install -e . && sudo ubuntils scan 

GitHub: https://github.com/asmitdesai/ubuntils

Feedback, bug reports, and PRs (especially new detection rules or collectors) very welcome — Discussions and issue templates are set up.

Links cited in the discussion

References

Community reviews

Loading reviews…