Attackers split into two camps: fast and quiet
Mandiant M-Trends 2026: dwell time up, exploitation before patches.
Curated by Signal · 10/5/2026
Why this matters
Rising dwell time and more attackers operating before patches exist both point to the same fix: faster detection. Below are baseline checks and commands for spotting an intrusion already in progress, not just preventing one.
Checking what is currently running
List all running processes with full command lines
ps auxww
List processes with unusual parent-child relationships (e.g. office apps spawning shells)
ps -ef --forest
Find processes running from unusual locations (/tmp, /dev/shm)
ps -eo pid,cmd | grep -E "/tmp/|/dev/shm/"
Windows equivalent: list running processes with full paths
wmic process get ProcessId,ExecutablePath,CommandLine
Checking persistence mechanisms
Linux: list all cron jobs for all users
for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l 2>/dev/null; done
Linux: list systemd services that are enabled
systemctl list-unit-files --state=enabled
Linux: check for unusual entries in startup files
cat /etc/rc.local 2>/dev/null ls -la /etc/init.d/
Windows: list all scheduled tasks
schtasks /query /fo LIST /v
Windows: list autorun registry entries
reg query "HKLM\Software\Microsoft\Windows\CurrentVersion\Run"
Network connection review
List all established network connections with process names
ss -tpn
List listening ports and the processes bound to them
ss -tlpn
Check DNS cache for recently resolved domains (Windows)
ipconfig /displaydns
Capture a quick snapshot of current connections to a file for later comparison
ss -tpn > connections_$(date +%Y%m%d_%H%M).txt
User and authentication review
List all user accounts on a Linux system
cut -d: -f1 /etc/passwd
Find accounts with login shells (potential backdoor accounts)
awk -F: '$7 !~ /nologin|false/ {print $1}' /etc/passwd
Check recent successful and failed logins
last -20 lastb -20
Check sudo usage history
grep sudo /var/log/auth.log | tail -50
File integrity basics
Find files modified in the last 24 hours in sensitive directories
find /etc /usr/bin /usr/sbin -mtime -1 -type f
Find files with SUID bit set (potential privilege escalation)
find / -perm -4000 -type f 2>/dev/null
Compare current file hashes against a known-good baseline
sha256sum /usr/bin/ssh > current.sha256 diff current.sha256 baseline.sha256
Log review for signs of compromise
Check for log gaps (possible log tampering)
grep -c "" /var/log/auth.log
Search for commands often used in post-exploitation
grep -E "wget|curl|base64 -d|nc -e" /var/log/auth.log /var/log/syslog
Check web server logs for suspicious user agents
grep -iE "curl|python-requests|sqlmap" /var/log/nginx/access.log
A basic incident-response starting checklist
Isolate the affected host from the network (do not power off yet) Capture volatile data: running processes, network connections, logged-in users Preserve logs before they rotate or get overwritten Identify the initial access point if possible Check for lateral movement to other hosts Document everything with timestamps before remediation begins
Curated summary. The original work belongs to its authors.
In the cloud, exploits have overtaken weak credentials
$ file challenge
challenge: ELF 64-bit LSB executable
$ strings challenge | grep -i flag
flag{...}