Contained WithinFind More DocumentationFeatured Support Resources | Scarica il manuale in formato PDF (548 KB)
Chapter 4 Troubleshooting AuditingAnother auditing task is to handle audit anomalies as they occur. Typical tasks that audit analysts and system administrators face are discussed below. Preventing Audit Trail OverflowWhen all audit file systems for a workstation fill up, the audit_warn script sends a message to the console that the hard limit has been exceeded on all audit file systems and also sends mail to the alias. By default, the audit daemon remains in a loop sleeping and checking for space until some space is freed. All auditable actions are suspended. The audit policy ahlt is in effect. Site security policy may allow a different solution. There are other candidates: preventing overflow and keeping a count of dropped audit records. If your security policy requires that overflow be prevented so that no audit data is ever lost, see "To Prevent Audit Trail Overflow by Planning Ahead". Note - The audit system can be configured to discard audit records upon overflow of the kernel audit buffer. Such a configuration does not constitute an evaluated configuration of the system, and the system should be configured to suspend upon overflow of the audit buffer. If your security policy permits the loss of some audit data rather than suspending system activities due to audit trail overflow. In that case, you can set the auditconfig policy to drop or count records. See "To Handle an Audit Filesystem Overflow" for how to drop or count records. If your security policy requires you to handle filesystem overflow by halting the affected workstation, you must enter the workstation in single-user mode. This is not a secure practice. See "To Handle an Audit Filesystem Overflow" for the procedure. To Prevent Audit Trail Overflow by Planning AheadIf your security policy requires that all audit data be saved, do the following:
To Handle an Audit Filesystem OverflowTo set the audit policy that a count of audit records is kept when the audit file systems are full, as role secadmin, at label
To run auditing in an evaluated configuration, you cannot have the +cnt policy turned on. It must be turned off. To set the audit policy that the workstation is shut down when its audit file systems are full:
To set one of the above policies permanently, enter the command in the audit_startup(1M) script. See "To Set Audit Policy Permanently" for how to edit the script. Note - On a distributed system, the same audit policy should be applied to all workstations. Cleaning up an Open Audit FileOccasionally, if an audit daemon dies while its audit file is still open, or a server becomes inaccessible and forces the workstation to switch to a new server, an audit file remains in which the end-time in the file name remains the string not_terminated, even though the file is no longer used for audit records. The auditreduce(1M) command processes files marked not_terminated, but because such files may contain incomplete records at the end, future processing may generate errors. To avoid errors, clean the incomplete file with the -O option of auditreduce. This creates a new file containing all the records that were in the old one, but with a proper file name time stamp. This operation loses the previous file pointer that's kept at the beginning of each audit file. To Clean Up an Open Audit File
Using the sequence Token for DebuggingWhen an audit trail created from merging records from several workstations appears to have the records listed out of order, you can debug the audit trail discrepancies using the sequence token. Since the sequence token is not recorded by default, the security administrator adds it to the audit policy. The audit policy must be set identically on all workstations contributing to the audit trail. When the audit trail has been debugged, the security administrator removes the token. To Add the sequence Token to the Audit Record
To Prevent the sequence Token from Being Part of Audit Records
Starting the Audit Daemon ManuallyOn a distributed system, if many workstations have lost their audit daemon, bring up the audit daemons in order. As role secadmin, execute the command /usr/sbin/auditd in an
If you are unfamiliar with creating an Workstations are Being Audited DifferentlyIf you change audit configuration files on one workstation and fail to copy the files to the other workstations on the network, the workstations will be audited differently. Therefore,
To Set Audit Class Mappings for Attributable Events
To Set Audit Class Mappings for Non-Attributable Audit Events
Finding Failed Login AttemptsAs role admin at label
The value "-lo" is the audit flag for failed (-) login (audit class lo) attempts. The command produces a binary file in the /usr/audit_summary directory with all failed login attempts on
the distributed system. The /usr/audit_summary directory is labeled /usr/audit_summary/19970313120429.19970613120415.logins_failed Note - This command works only if the security administrator has preselected failed logins for the workstation, distributed system, or users. |
||||||||||||