1836617 Members
1735 Online
110102 Solutions
New Discussion

hp-ux security

 

hp-ux security

Hello All:
If I wanted to determined that my system was secure from hackers, multiple bad login attempts, and unwanted guests, is there a way to monitor such activity with hp-ux? What utilities should and should not be running to help lock down a system? Is there a white paper that helps to explain this whole process that you can point me to? As always, thank you for your help.
11 REPLIES 11
Ken Penland_1
Trusted Contributor

Re: hp-ux security

There are several things you can do...a good first step would be here:

http://www.hp.com/products1/unix/operating/infolibrary/whitepapers/building_a_bastion_host.pdf

'
Ken Penland_1
Trusted Contributor

Re: hp-ux security

hrm, wierd, I was just at the site, and it worked just fine, but when I linked it here, it doesnt work....lets try it in html format:

http://216.239.39.104/search?q=cache:wzlOu7oOVRQJ:www.hp.com/products1/unix/operating/infolibrary/whitepapers/building_a_bastion_host.pdf+%2B%22bastion+host%22&hl=en&ie=UTF-8
'
Rita C Workman
Honored Contributor

Re: hp-ux security

So much that could be said here...probably best thing is to start reading. There is some information here for Security: http://www.docs.hp.com/ to get you rolling. You can do other searches here for Securing your HPUX.

For quick starters, make sure you are logging your activity to your syslog file first. And for something quick to slow down unwanted guests you could strict what subnets are allowed on your box(s) by doing allow/deny options in your /var/adm/inetd.sec file.

Hope that gives you something to get you started in the right direction.
Rgrds,
Rita
Brian Bergstrand
Honored Contributor

Re: hp-ux security

First, run Bastille.

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6849AA

This will harden your system.

Then, for monitoring, install HPIDS:

HP Intrusion Detection
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=J5083AA

HTH.
Steven E. Protter
Exalted Contributor

Re: hp-ux security

Standard post, forgive the duplication:


Bastille Security hardening
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6849AA

Perl which the above needs.
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PERL

Security Patch Check
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6834AA

TCP Wrappers

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=TCPWRAP

IDS/9000 (Intrusion Detection Sytstem)

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=J5083AA

Get all these products working you'll be quite secure.

Secure shell
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA

I'd say tripwire would be useful too.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: hp-ux security

I forgot this:

check_logins. This guy checks root, but is easily modified.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
hpuxrox
Respected Contributor

Re: hp-ux security

The first thing I do after a build is,

Edit the inetd.conf and disable all unneeded network services.

Then, enable securetty so you have to login as a user before you login as root. Unless, your on the console. This helps with auditing your root users and disallows direct root hack attempts from the network.

And the list can go on and on.....
Camel_1
Valued Contributor

Re: hp-ux security

convert the system to "trusted", apply secuirty policy, turn on audit ....
Hemanth Gurunath Basrur
Honored Contributor

Re: hp-ux security

Keith Bevan_1
Trusted Contributor

Re: hp-ux security

Hi,

The question is where to start, as there is a large amount of avenues to explore and many benefits to be made.

You could look at the product bastille :-

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6849AA

Look at patching and ensure you are patched uptodate and on a frequent basis.

Remove any direct connect modems on the system. Invest in a firewall if not already done so.

Run some overnight scripts that will monitor permissions and dates of critical files that are listed below :-

/usr/bin/passwd
/etc/default/security
/etc/securetty
/etc/hosts
/etc/group
/etc/services
/etc/inetd.conf
/etc/ftpd/ftpusers

Check the integrity of the /etc/passwd file and /etc/group file by typing :-

pwck
grpck

Check the use of the su command and root login, and failed logins :-

run the commands and check the output :-

last
lastb
pg /var/adm/sulog

Check ftp access to the server by implementing ftp security. For More information :-

man ftpaccess
man ftpusers

Check for files with no owner or group :-

cd /
find . -depth -type f -nouser -o -nogroup -exec ls -l {} \;

Pick up a good security manual like HP-UX 11i Security by Chris Wong.

This should get you started !

Finally, you could document you root login, lock it in a safe and not use it unless absolutely necessary.

Keith


You are either part of the solution or part of the problem
Cheryl Griffin
Honored Contributor

Re: hp-ux security

You can reward the many people who have assisted you by assigning points to their posts.

For steps how to assign points see:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
"Downtime is a Crime."