- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hardening HPUX 11i and OS patches
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 01:48 AM
01-31-2005 01:48 AM
Hardening HPUX 11i and OS patches
One rule for hardening a HPUX 11i system is to change all files who meed the following user, group and rights:
- owner bin;
- World read access;
- No SETUID;
- No SETGID;
- No World write access;
- No GROUP write access;
- No symbolic links;
find / ! -perm -4000 -a ! -perm -2000 -a ! -perm 0002 -a ! -perm -0020 -a -user bin -perm -0004 -a ! -type l -exec ls {} \;
Change these files to:
- Owner root
For so far al is oke.
But when I install a HP PATCH this patch will change all rights back to the "wrong" one's.
Does any body have a "goodpractise" / rule how to handle this?
1. Change after a PATCH installatie all files, including the ../sw/save/..?
2. Change all file but exclude the "../sw/save/.." files?
3. ??
Rgrds CvB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 02:04 AM
01-31-2005 02:04 AM
Re: Hardening HPUX 11i and OS patches
It's a little complicated to get going, but once it's done, you're all set!
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 07:10 PM
01-31-2005 07:10 PM
Re: Hardening HPUX 11i and OS patches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 09:27 PM
01-31-2005 09:27 PM
Re: Hardening HPUX 11i and OS patches
http://www.cisecurity.org/
and download their HP-UX Benchmark document.
It gives several recommendations for security-hardening HP-UX systems. It comes with a "scoring tool" that you can run before and after to get an idea how much your security has/could still be improved, and also comes with a permissions checking & fixing tool.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 09:48 PM
01-31-2005 09:48 PM
Re: Hardening HPUX 11i and OS patches
What I want to know is of we change the changed/patched files and also the patch history files (../sw/save/...)?
When we don't change the (../sw/save/..) files but only change the patched files then the script "check_patches" says that there are differences!
What is the way to act?
Whe use the producte ESM of symantic to check oure systems.
RgRds CvB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 10:05 PM
01-31-2005 10:05 PM
Re: Hardening HPUX 11i and OS patches
You will find that ESM misses quite a lot of the security features of HP-UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 03:48 AM
02-01-2005 03:48 AM
Re: Hardening HPUX 11i and OS patches
Between running security_patch_check tool to analyze your level of patches and the bastille supported product which will set a overall security policy and take care of the details mentioned in many of the replies you should be ok. That is the purpose of bastille and security patch check to give you a framework and proactive method of checking and applying your security policy consistently across multiple systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 04:28 AM
02-01-2005 04:28 AM
Re: Hardening HPUX 11i and OS patches
I would suggest:
cleanup -c 1
That will committ and clear out patches superseded once or more.
Bastille, HIDS and good policy is how we handle it at my shop.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 05:27 AM
02-01-2005 05:27 AM
Re: Hardening HPUX 11i and OS patches
While most of the items you mention are good things to look at when securing a system, applying the changes across the board is a very dangerous thing to do. Each change you make from the supported HP-UX configuration from installed media should be carefully considered.
In some cases, you can actually degrade the security posture of your system by these changes or worse yet, make the system completely unusable. Many of these situations are very subtle.
As a best practice, if you are not using software that is on your system, you should not install it (hence, you won't have to change ownership/permissions, and you won't have to patch it). Of course, this only covers some of the software that you are worried about, because some of it is part of the core operating system and cannot be removed.
Next, you should go ahead and use HP-UX Bastille as some have suggested. All of the changes it makes (except where clearly indicated) are supported and have gone through full release-level testing by HP to ensure that any breakages are well characterized.
At that point, you should look at the threats you are trying to address in your environment and decide on specific actions to take that address those threats. For example, I'm not sure what threat you are trying to address by removing symlinks...you might have a valid reason but I sure don't know what it is. A symbolic link has nothing to do with the permissions of the underlying data and rarely changes the security posture of the system.
After deciding to make any unsupported changes, put those changes into a script, and test your applications carefully to make sure they continue to function (remember that HP has not tested this configuration at all). You'll need to rerun the script after installing patches if you want the changes to remain in effect. The correct behavior for a patch is to restore permissions to their original (supported) configuration, but to leave user-configurable files (such as inetd.conf) alone.
Hope that helps.
-Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 07:05 PM
02-01-2005 07:05 PM
Re: Hardening HPUX 11i and OS patches
I don't think my question is clear.
Sorry for my bad english...
We hardend oure systems after recomedations made in the "HP/UX Security Checklist".
One of the actions stated in this document
"move all ownership from bin to root" ...
- Command to use:
"find / ! -perm -4000 -a ! -perm -2000 -a ! -perm -0002 -a ! -perm -0020 -a -user bin -a -perm -0004 -exec chown root {} \;"
My question is now of this apply's for all filesystems or NOT.
Situation:
1. move all ownership from bin to root;
2. In time we apply one or more security patch(es);
3. After apply of security patch(es) we run the "move all ownership from bin to root" on ALL filesystems;
Question's:
- From that moment "check_pathes" will give a lot of error messages saying that file rights of the security patch(es) are out of sync/changed (../sw/save/...)?;
- What happens when we want to a undo one of more security patches?;
Rgrds CvB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 07:35 PM
02-01-2005 07:35 PM
Re: Hardening HPUX 11i and OS patches
You are far better off making sure that bin has /bin/false as a shell and the login for the account is locked. You should also ensure that nobody is a member of group "bin" or "system" since these users effectively own the OS executables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 07:52 PM
02-01-2005 07:52 PM
Re: Hardening HPUX 11i and OS patches
Can you tell me what you meen?
I don't understand what you meen.
Do you say that HP-UX at first let everybody run every script/executable/.. and after it is started than the system? checkes of this is allowed or not?
What security implementation can this give?
R.E.
- User bin is, as all system-users, disabled and have a shell of /usr/bin/false.
- Only user root and bin are memebr of group bin;
Rgrds CvB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 08:10 PM
02-01-2005 08:10 PM
Re: Hardening HPUX 11i and OS patches
You are correct that only "root" and "bin" should be members of group "bin". A common trick when compromising a system is to add a user to a privileged group such as "bin", "adm", "system", "root", etc, and then make use use of group privileges, which in some cases are set to be as strong as those of the owners.
In the case of "su" on HP-UX the default owner and group is "bin", and the permissions are set to world-executable. This means that any user who knows the password can become root. On an OS that was based upon the BSD kernel "su" checks to see if the user is in the "wheel" group, and if not will deny them access even if they know the root password. The only way to overcome this is to disable "su" by creating a new group (e.g. "wheel") and then set the permissions for "su" so that only members of this group can execute it. The only problem with this approach is that if you apply any OS patches they will either fail or reset the permissions of "su".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 08:42 PM
02-01-2005 08:42 PM
Re: Hardening HPUX 11i and OS patches
In /etc/default/security:
SU_ROOT_GROUP=root
This prevents any user that is NOT a member of group "root" from using su to become user root.
A user can belong to several groups - the SU_ROOT_GROUP doesn't have to be their primary group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 09:01 PM
02-01-2005 09:01 PM
Re: Hardening HPUX 11i and OS patches
Is that a new feature of 11i as when I spoke to HP about this a while ago, I was told there was no way to do this?
Cheers,
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 09:24 PM
02-01-2005 09:24 PM
Re: Hardening HPUX 11i and OS patches
I nice to hear a lot of things have been pointed out esp things about /etc/default security file, well since the patches installed are in SD format and swinstall command is used, swinstall has a option
Note: this is a rip off from man page
-x fix_explicit_directories=false
Controls the swinstall response to explicitly packaged software (software packaged with explicit file specifications). The default value of false causes swinstall to set permissions (as specified in the product specification file) on new directories but never on pre-existing directories. When set to true, swinstall also sets the permissions on pre-existing directories.
I have been using this option and seems to work quite well for me.
give it a try.
Cheers
Shantaram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 10:56 PM
02-01-2005 10:56 PM
Re: Hardening HPUX 11i and OS patches
As far as I know, it's a standard feature of HP-UX 11.xx (I don't know about previous versions)
But...
It is not turned on by default, and there seems to be no man page (man security) prior to 11i
Apologies to CvB and the Forum Moderators.
I know this isn't really the place to discuss side issues, but I don't know where else to post this, as a new thread might not be noticed by Andrew.
(Perhaps this is one of the things they'll address in the maintenance slot this weekend;o)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 11:21 PM
02-01-2005 11:21 PM
Re: Hardening HPUX 11i and OS patches
The defualt setting is:
"-x fix_explicit_directories=false"
On our HP-UX 11.0 systems we changed/hardend selected owner" bin files.
But after installation of an (security-) patch the file permissions of the files altered by the patch were changed back to owner bin!
How does this work then?
Rgrds CvB/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 05:18 AM
02-02-2005 05:18 AM
Re: Hardening HPUX 11i and OS patches
Can you give a URL to your "HP/UX Security Checklist"? It seems that some of the security recommendations you are following are questionable...maybe if we could read the original source it would clear things up. There are many such checklists out there (CIS, HP-UX Bastille, the old Bastion Host Whitepaper, etc.) and I'm not sure which one you are referring to.
Maybe that will help others help you.
(also, don't forget to assign points to those who have helped)
-Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 07:52 PM
02-02-2005 07:52 PM
Re: Hardening HPUX 11i and OS patches
I got it from HP and it is only on paper.
We had two years ago a security scan done by HP and out of that this report is gome up.
Rgrds CvB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 02:17 AM
02-07-2005 02:17 AM
Re: Hardening HPUX 11i and OS patches
Close thread....
CvB