服務(wù)器安全運(yùn)維
網(wǎng)絡(luò)安全運(yùn)維
數(shù)據(jù)安全運(yùn)維
1良价、賬號(hào)安全
刪除特殊的用戶(hù)和組:adm,lp,sync,shutdown,halt,news,uucp,operator,games,gopher
adm,lp,news,uucp,games,dip,pppusers,popusers,slipusers
userdel x
groupdel x
usermod -s /sbin/nologin nagios
2、關(guān)閉不需要的服務(wù)
anacron,auditd,autofs,
chkconfig --level 345 bluetooth off
需要開(kāi)啟的服務(wù):
acpid,apmd,kudzu,crond,atd,keytables,iptables,xinetd,xfs,network,sshd,syslog
3蚣常、密碼安全策略(堡壘機(jī)替代)
秘鑰認(rèn)證
密碼認(rèn)證
vi /etc/ssh/sshd_config
4施绎、su sudo
xx ALL = NOPASSWD: /etc/init.d/nagios restart
超級(jí)用戶(hù)
user02 ALL=(ALL) NOPASSWD: ALL
5谷醉、刪減登陸信息
6俱尼、禁用 alt+control+delete
7萎攒、SSH配置修改
更改默認(rèn)端口
使用協(xié)議2 Protocol 2
ListenAddress 0.0.0.0 + allow deny
PermitRootLogin no
MaxAuthTries 3
AllowUsers x y
AllowGroups x y
DenyUsers
DenyGroups x
8、記錄詳細(xì)指令歷史:bashrc
把歷史記錄保存到特定文件供審計(jì)用,\
/etc/profile
9揽碘、tcp_wrappers
/etc/hosts.allow /etc/hosts.deny
sshd,portmap,sendmail,xinetd,vsftpd,tcpd
sshd:xxx
sshd:ip
sshd:ALL
10 文件系統(tǒng)安全
chattr +i xxx
11 文件權(quán)限檢查和修改
12 定期升級(jí)軟件
yum check-update
13 每天定時(shí)執(zhí)行rootkit檢查
使用RKHunter
14 服務(wù)器遭受攻擊后處理方法
切斷網(wǎng)絡(luò)
查找攻擊源
分析入侵原因
備份數(shù)據(jù)
修復(fù)漏洞
恢復(fù)連接
15裸违、網(wǎng)絡(luò)安全
NTOP檢測(cè)網(wǎng)絡(luò)
iperf檢查網(wǎng)絡(luò)性能
nmap端口掃描