• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

Securing AIX 5L from Scratch

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: Blog.ChinaUnix.net

软件测试论坛讨论

领测软件测试网 Securing AIX 5L from Scratch

Many documents are written to describe how to secure a UNIX-based server. Not very many are written to deal with AIX, and the ones that are are somewhat vague and seem to require a lot of knowledge of the OS. It has been my experience that people with a lot of knowledge of the OS already know how to secure the machine. Plus I like checklists for securing things. :-)

This document assumes you know SOMETHING about AIX & UNIX, and can handle installing the OS from scratch (real tough -- boot from CD, watch status for a while, reboot).

I used AIX 5L 5.1 to build this. Just FYI. These steps aren't necessarily in any sort of order, but if you get to the end you'll be okay. You can do a lot of this through SMIT, but I list the command line options here.

STEP 1

Once you're staring at the initial system configuration menu, assign a decent root password. Configure TCP/IP communications but then pull the machine off the network, unless you are absolutely sure your network is safe & sound (twelve year old haX0r free).

STEP 2

Change the filesystem sizes to something useful. The defaults are small and that's fine, but they do not leave much room to work. Obviously you can adjust these as you'd like.

/usr/sbin/chfs -a size='262144' /
/usr/sbin/chfs -a size='262144' /var
/usr/sbin/chfs -a size='524288' /tmp
/usr/sbin/chfs -a size='524288' /home

STEP 3

Alter /etc/security/login.cfg to change the console herald. Add the folloing line in the "default" section:

herald = "rn** UNAUTHORIZED ACCESS PROHIBITED **rnlogin: "

STEP 4

Change the properties of sys0 so that it limits the number of processes a user can have:

/usr/sbin/chdev -l sys0 -a maxuproc='4096'

If you're on a machine that supports CPU Guard, or dynamic CPU deallocation, turn that on. It is not on by default. This isn't really a security feature but you'll find out the hard way if its off:

/usr/sbin/chdev -l sys0 -a cpuguard='enable'

STEP 5

Shut NFS server services off:

/usr/sbin/rmnfs -B

STEP 6

Disable just about everything in /etc/inetd.conf.

STEP 7

Increase syslogging.

mail.debug /var/adm/maillog
mail.none /var/adm/maillog
auth.notice /var/adm/authlog
lpr.debug /var/adm/lpd-errs
kern.debug /var/adm/messages
*.emerg;*.alert;*.crit;*.warning;*.err;*.notice;*.info /var/adm/messages

STEP 8

Disable services in /etc/rc.tcpip.

STEP 9

Set user password defaults.

STEP 10

Add an /etc/ftpusers file.

Change the FTP banner to not show the OS information.

STEP 11

Disable some network-based attacks.

STEP 12

Install SSH, sudo, TCP wrappers.

 原文来自:

 http://bob.plankers.com/other/aix/securing.html


延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网