DET-029 · human · confidence Medium
Debian Package Install History
dpkg.log shows when software was installed or removed on a Debian or Ubuntu system.
/var/log/dpkg.log (and its rotated copies) records each package action with time, package name, and version. Insiders may install tools for capture, tunnelling, or data transfer (rclone, nmap, tcpdump, sshuttle) or remove security agents. Search it for installs and removals around the time of other suspicious activity. It does not show who ran the command, so join with auth.log or sudo logs.
- Data sources
- /var/log/dpkg.log/var/log/apt/history.logauth.log
- Platforms
- Linux
Logic
grep -hE ' (install|remove|purge) ' /var/log/dpkg.log* | sort Then look in /var/log/apt/history.log for the Commandline and the user, and check for removal of auditd, EDR agents, or fail2ban.
False positives
Patching, normal admin work, and auto-updates.