Knowledge base / Evidence collection
Collecting evidence from Linux servers
Memory with AVML or LiME, triage with UAC, and the files to grab by hand when nothing else is available.
1. Memory
- AVML (Microsoft, static binary, no kernel module needed):
sudo ./avml /mnt/usb/host01.lime - LiME (kernel module, must match the running kernel):
sudo insmod lime.ko "path=/mnt/usb/host01.lime format=lime"
2. Triage with UAC
UAC (Unix-like Artifacts Collector) gathers logs, shell histories, cron, systemd units, user accounts, SSH keys, running processes and network state in one archive:
sudo ./uac -p ir_triage /mnt/usb
Upload the resulting .tar.gz.
3. By hand (minimum set)
If no tool can be run, copy at least:
/var/log/(auth.log or secure, syslog or messages, web server logs, journal)/etc/passwd,/etc/shadow,/etc/group,/etc/sudoersand/etc/sudoers.d//etc/crontab,/etc/cron.*,/var/spool/cron//etc/systemd/system/and/lib/systemd/system/- every user's
~/.bash_history,~/.ssh/authorized_keys, shell start-up files - the web root of any public web application
Preserve timestamps: tar --xattrs -czpf /mnt/usb/host01-etc-log.tgz /etc /var/log
4. Disk images of virtual machines
For VMs, a snapshot exported from the hypervisor (VMDK, VHDX, QCOW2 converted to raw) is usually the cleanest image. Take the memory capture first; snapshots with memory (.vmem) are also accepted.