Info - NT auditing

Every audit event has the following 10 fields.
Additional fields are located within the Description and are based on the Category of the event. Here is a list of audit categories and their events. The information is presented as follows. 
Registry Changes that affect auditing: 

NT does not normally record the use of the Back Up Files and Directories and the Restore Files and Directories rights required to do backups and restores..  To enable full auditing of these privileges make the following change in the registry. 

Hive: HKEY_LOCAL_MACHINE\System   
Key: \CurrentControlSet\Control\Lsa  
Name: FullPrivilegeAuditing 
Type: REG_BINARY  
Value: 1 

The use of the following rights are never audited, by the assignment of them is. 

To prevent auditable activities when the audit log is full, change the following registry key

Hive: HKEY_LOCAL_MACHINE\SYSTEM
Key: \CurrentControlSet\Control\Lsa
Name: CrashOnAuditFail
Type: REG_DWORD
Value: 1

When the log becomes full, the system crashs and must be restarted. After it is restarted, the log is full, so no events are audited. The log must be cleared and the above value reset.


Standard objects that are auditing in NT include files, directories, printers, and registry keys. 

To audit these standard objects, first it must be enabled with the user manager.  Then, the type of auditing to be performed must be specified on each object using either the file manager, print manager, or registry editor. 

To enable base objects (objects invisible to the user), make the following change to the registry. 

Hive: HKEY_LOCAL_MACHINE\SYSTEM  
Key: \CurrentControlSet\Control\Lsa  
Name: AuditBaseObjects  
Type: REG_DWORD  
Value: 1 

A full description of these base objects are located in MSDN level 2. 

Auditing Base Objects generates significantly more audit events. The results of a simple experiment can be found here


Logging management information is stored in:
HKEY_LOCAL_MACHINE 
  SYSTEM 
    CurrentControlSet 
      Services 
        EventLog 
          Application 
          Security 
          System 

The following operations can be performed on event logs

Operation                 Function

Backup                     BackupEventLog
Clear                        ClearEventLog
Query                       GetOldestEventLogRecord, GetNumberOfEventLogRecords
Read                         ReadEventLog
Write                         ReportEvent

It also provides the following operations to be performed on event log handles:  OpenEventLog, OpenBackupEventLog, RegisterEventSource, DeregisterEventSource, and CloseEventLog.

Problems 

The full range of base objects and operations that are performed on them. 

How NT stores the audit log. 
    Apparently, information is stored in the directory "Winnt/system32/config".  The .evt files store the record of events.  However, these files are not updated as new events are generated.  Other files in that directory, such as Security and Security.log, are apparently updated as events are generated, but they are constantly in use by the system and, thus, are locked and cannot be read. 

The binary representation of the .evt files. 
    These files can be accessed using the Win32 event logging API which are documented on the MSDN  CD.  These files can also be saved as text or comma delimited text files using the event manager.