1.Accounts检查
# less /etc/passwd 字串3
# grep :0: /etc/passwd
字串6
注意新的用户,和UID,GID是0的用户. 字串7
2.Log检查
注意“entered promiscuous mode”
字串1
注意错误信息 字串7
注意Remote Procedure Call (rpc) programs with a log entry that includes a large number (> 20) strange characters(-^PM-^PM-^PM-^PM-^PM-^PM-^PM-^PM)
最后一条目前还没理解,也没碰到过.(哪位高手明白评论里指点一二,不胜感激) 字串3
3.Processes检查
字串4
# ps -aux
注意UID是0的
# lsof -p 可疑的进程号 字串3
察看该进程所打开端口和文件 字串7
4.Files检查 字串5
# find / -uid 0 –perm -4000 –print
# find / -size +10000k –print
字串9
# find / -name “...“ –print 字串9
# find / -name “.. “ –print
# find / -name “. “ –print 字串2
# find / -name “ “ –print 字串8
注意SUID文件,可疑大于10M,...,..,.和空格文件
5.Rpm检查
# rpm –Va 字串6
输出格式:
S – File size differs 字串7
M – Mode differs (permissions) 字串9
5 – MD5 sum differs
D – Device number mismatch 字串2
L – readLink path mismatch 字串1
U – user ownership differs 字串2
G – group ownership differs 字串4
T – modification time differs 字串4
注意和这些相关的 /sbin, /bin, /usr/sbin, and /usr/bin
平时养成安装第三方文件时check MD5的习惯,呵呵,要不太恐怖了
运行的时候会出很多5或者missing的提示,如果不是上面及格目录的,不用太注意 字串8
6.Network检查 字串3
# ip link | grep PROMISC 字串7
正常网卡不该在promisc模式,当然安全server除外,否则可能是有人入侵在sniffer 字串8
# lsof –i 字串6
# netstat –nap 字串2
察看不正常打开的TCP/UDP端口,嘿嘿,需要平时注意,比较,好像我没这样用心过:) 字串5
# arp –a 字串6
这个更恐怖了,难道叫人document所有的MAC地址先 字串8
7.Schedule检查
注意root和UID是0的schedule 字串6
# crontab –u root –l 字串9
# cat /etc/crontab
字串4
# ls /etc/cron.*

