RSS
热门关键字:  Linux  图形  项目管理  LAMP  java
当前位置 : 主页>开源安全>列表

新手学堂:Linux操作系统安全性能检查笔记

来源:赛迪网 作者:kid 时间:2007-10-15 点击:

1.Accounts检查

# less /etc/passwd 字串3

# grep :0: /etc/passwd

字串6

注意新的用户,和UID,GID是0的用户. 字串7

2.Log检查

字串7

注意“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)

字串9

最后一条目前还没理解,也没碰到过.(哪位高手明白评论里指点一二,不胜感激) 字串3

3.Processes检查

字串4

# ps -aux

字串4

注意UID是0的

字串3

# lsof -p 可疑的进程号 字串3

察看该进程所打开端口和文件 字串7

4.Files检查 字串5

# find / -uid 0 –perm -4000 –print

字串1

# find / -size +10000k –print

字串9

# find / -name “...“ –print 字串9

# find / -name “.. “ –print

字串6

# find / -name “. “ –print 字串2

# find / -name “ “ –print 字串8

注意SUID文件,可疑大于10M,...,..,.和空格文件

字串5

5.Rpm检查

字串8

# rpm –Va 字串6

输出格式:

字串8

S – File size differs 字串7

M – Mode differs (permissions) 字串9

5 – MD5 sum differs

字串6

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

字串9

平时养成安装第三方文件时check MD5的习惯,呵呵,要不太恐怖了

字串3

运行的时候会出很多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检查

字串2

注意root和UID是0的schedule 字串6

# crontab –u root –l 字串9

# cat /etc/crontab

字串4

# ls /etc/cron.*

字串6

 

字串6

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册