Skip to main content
NewsPublished

Built an eBPF debugger that answers “who changed what and when” on Linux

Source Reddit ExploitDev

0

Discussion

This is a newly developed Linux machine-history debugger named ltm that uses eBPF to record metadata about process, file, network, memory, and block I/O events. It enables querying of historical system activity such as who modified a file or what processes opened network ports. The tool is designed to provide a timeline and diff view of system events to aid debugging. It is still early in development and currently supports only x86_64 Linux systems. No vulnerabilities or exploits are reported in the provided information.

r/ExploitDev (opens in a new tab)u/BeautifulFeature36500 points0 comments

I kept running into the same Linux debugging pain: something broke on a box, but I had no history of what actually happened. journald helps a little. auditd is heavy. strace is too narrow. So I built ltm — a small machine-history debugger that records process/file/network metadata via eBPF and lets you query it like a timeline.

What it does:

• Attaches to syscall tracepoints (exec, open/write/rename/unlink, connect/bind, etc.)

• Stores metadata only (no file contents)

• Lets you do things like:

sudo ltm start --mode ebpf

ltm status

ltm timeline --since 1h

ltm diff --from "10m" --to now

ltm query "who modified /tmp/ltm-demo.txt?"

On a real VM run it recorded ~7k events with 0 drops, and the query returned the exact bash write events that touched the demo file.

There's also a demo mode so you can exercise the CLI/storage/diff/query path without root or BPF.

Stack is Go + embedded BPF ELF + cilium/ebpf. Local store is append-only JSONL. Ignore rules skip /proc, /sys, /dev, and common caches.

Repo: https://github.com/Agent-Hellboy/ltm

Still early. Useful next steps I'm considering:

  1. better diff/query formatting
  2. containerized eBPF integration test
  3. more query templates ("what opened this port?", "what restarted before X?")

Links cited in the discussion

References

Community reviews

Loading reviews…