1825776 Members
1961 Online
109687 Solutions
New Discussion

Auditing Info/help

 
Darrell Tschakert
Regular Advisor

Auditing Info/help


HP-UX 11.23, rx4640's and rx2620's, VA7410.
Hi,
A couple of weeks ago, I made a big mistake. To satisfy our Security people, I turned on Auditing on all of our HP Backend Database servers. I used SAM to do this. I set up two audit files /root/.secure/audfile1 and audfile2. I set them to be 1 meg each just for openers. Then I forgot about it and went home. audfile1 filed and output started going to audfile2. Once audfile2 filled up, the audit system wanted to go back to audfile1 - or so I think. However, before the audit system would overwrite audfile1, it wanted the name of a backup file. Backup File?????. I saw no backup file mentioned in SAM. The system then began scrolling lines to the screen telling us that it wanted the name of a backup. It also locked all accounts so noone could log in.

Can anyone tell me about this backup that the system was trying to tell me about? Also, can someone point me toward a document that I could use to configure the auditing system on 11.23.

Thanks,

Darrell Tschakert
I'll add a quote when I think of one.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Auditing Info/help

From what I can tell from the man pages, there are only two files, the "current" and the "next". Once the "current" fills, it switches to the "next". When the "next" fills, it prompts for a new name, which could be the "current".

If your system is still locked, you could try using audsys to halt the auditing system.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: Auditing Info/help

Shalom Darrell,

http://www.nortel.com/solutions/securenet/collateral/hp-ux_hardening_guide_v1.pdf

The link above shows a general approach.

Basically you need a cron script to rotate these guys once a day so they don't hang up like they did on you.

Also, I relocate them to the /var filesystem so if they get too big they don't stop the system cold.

http://docs.hp.com/en/5990-6737/ch07s05.html

HP general doc that I believe discusses a good log rotation scheme.

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

Re: Auditing Info/help

Ah yes, the auditing subsystem... it takes quite a lot of managment to control this correctly, but let me give you an overview:

1. Start by reading audit(5) :

man 5 audit

2. Yes the first file you specify is the audit file used, the second is a backup - when the first fills it starts using the backup. It doesn't necessarily go back to the first file unless you tell it to - better to go to an entirely new file. What we did at some of my old sites was to have a monitor script that kicked in once an hour and assigned a nwe backup file if required. You can do all this from the command line using the audsys command. So in your case to move on to another file you might have entered:

audsys -x /.secure/etc/audfile3 -z 1000

3. By default audit logs are written into the root filesystem !DANGER DANGER! This can easily fill up your root filesystem and you don't want to go there. Either create a seperate filesystem called /.secure or redirect the files to another location.

4. Now what events and users do you want to monitor - if you want to monitor all events and all users that can create a *lot* of data. When I asked my security team what they wanted they said everything and kept for 3 years! A quick calculation of data generated told me that for all our HP-UX systems that would create upwards of a TB of data every year that needed to be kept. When I submitted the costs to the security team for them to pay for this storage they decided they didn't need to see everything! Here use the audevent and audusr commands to control what you do and don't audit.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Sp4admin
Trusted Contributor

Re: Auditing Info/help

Darrell,

we use aduiting on all out systems. Check out this attachment.
Sp4admin
Trusted Contributor

Re: Auditing Info/help

Darrell,

we use aduiting on all out systems. Check out this attachment.

Hope this helps!
sp,
Darrell Tschakert
Regular Advisor

Re: Auditing Info/help

I am going to close this thread. I have to leave and I have enough info now. I will set points later. My ride is outside.
thanks all
Darrell T.
I'll add a quote when I think of one.