1834811 Members
2755 Online
110070 Solutions
New Discussion

Re: HP-UX Auditing

 
sivakumar_8
Advisor

HP-UX Auditing

Hi,
I am new in this site. Please help me to find out the followed

What is this auditing do?

I see this message in syslog.log file

The current audit file is switched from /var/adm/security/audfile1 to /var/adm/security/audfile2.

How do i use this auditing? This audfile1 shows awk programme, how do i view the outcome?
SIVA-HPS-PUB
5 REPLIES 5
Mei Jiao
Respected Contributor

Re: HP-UX Auditing

For more information on the auditing of a Trusted System, you may refer to the www.docs.hp.com website.

For example:
http://www.docs.hp.com/hpux/onlinedocs/5187-2216/00/00/63-con.html

or this:
http://www.docs.hp.com/hpux/onlinedocs/5187-2216/00/00/72-con.html#admsys-sec-audit

Normally there are 2 audit log file you can set in the auditing, when the size of the first audfile reached, it'll switch to 2nd audit log file. This 2nd audit log file will continue to grow if you do not specify another auxiliary aud file.

You can try to view the audfile using SAM.
Muthukumar_5
Honored Contributor

Re: HP-UX Auditing

Auditing
=========
The purpose of the auditing system is to record instances of access by
subjects to objects and to allow detection of any (repeated) attempts
to bypass the protection mechanism and any misuses of privileges, thus
acting as a deterrent against system abuses and exposing potential
security weaknesses in the system.

-- see audit.5 man page

If your first (primary) audit file is stored audit informations then audit file is shifted to next audit file specified there in /etc/rc.config.d/auditing or execute audsys command without any option on shell

You can know about audit files and switching. See more at audsys,audomon man pages

To view to know the contents of audit file effectively use audisp command.

see man page audisp details and examples.

Regards
Muthu
Easy to suggest when don't know about the problem!
R. Sri Ram Kishore_1
Respected Contributor
R. Sri Ram Kishore_1
Respected Contributor

Re: HP-UX Auditing

Brian Markus
Valued Contributor

Re: HP-UX Auditing

Just as a warning, audit files can take up a lot of space. You need to trim them from time to time. Also, by default depending on the version of HPUX you're using, the audit file length may be limited then start throwing errors when it fills up. Do a man on audsys.

Here is how to manually rotate your audit files.
audsys -c audfile3 -s 1223 -x audfile4 -z 1223
audsys -c audfile1 -s 1223 -x audfile2 -z 1223

Good luck

-Brian.
When a sys-admin say's maybe, they don't mean 'yes'!