Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9353141
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类: LINUX

2012-03-12 09:45:58

Linux系统安全性能检查小记
[日期:2007-11-09] 来源:Linux公社  作者:Linuxidc
 
 
Linux系统安全性能检查小记:
 
1.Accounts检查
 
# less /etc/passwd
 
# grep :0: /etc/passwd
 
注意新的用户,和UID,GID是0的用户.
 
2.Log检查
 
注意“entered promiscuous mode”
 
注意错误信息
 
 
 
注 意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.Processes检查
 
# ps -aux
 
注意UID是0的
 
# lsof -p 可疑的进程号
 
察看该进程所打开端口和文件
 
4.Files检查
 
# find / -uid 0 –perm -4000 –print
 
# find / -size +10000k –print
 
# find / -name “...“ –print
 
# find / -name “.. “ –print
 
# find / -name “. “ –print
 
# find / -name “ “ –print
 
注意SUID文件,可疑大于10M,...,..,.和空格文件
 
5.Rpm检查
 
# rpm –Va
 
输出格式:
 
S – File size differs
 
M – Mode differs (permissions)
 
5 – MD5 sum differs
 
D – Device number mismatch
 
L – readLink path mismatch
 
U – user ownership differs
 
G – group ownership differs
 
T – modification time differs
 
注意和这些相关的 /sbin, /bin, /usr/sbin, and /usr/bin
 
平时养成安装第三方文件时check MD5的习惯,呵呵,要不太恐怖了
 
运行的时候会出很多5或者missing的提示,如果不是上面及格目录的,不用太注意
 
6.Network检查
 
# ip link | grep PROMISC
 
正常网卡不该在promisc模式,当然安全server除外,否则可能是有人入侵在sniffer
 
# lsof –i
 
# netstat –nap
 
察看不正常打开的TCP/UDP端口,嘿嘿,需要平时注意,比较,好像我没这样用心过:)
 
# arp –a
 
这个更恐怖了,难道叫人document所有的MAC地址先
 
7.Schedule检查
 
注意root和UID是0的schedule
 
# crontab –u root –l
 
# cat /etc/crontab
 
# ls /etc/cron.*
 

本篇文章来源于 Linux公社网站()  原文链接:
阅读(933) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~