Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


July 2001

Win2K Security Log Roundup


RSS
Subscribe to Windows IT Pro | See More Security Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Enabling the Audit process tracking category on a server won't shed much light on the applications that execute at users' workstations. However, the category's events can help you track the use of server-side programs, such as Microsoft SQL Server or Microsoft Exchange Server, and any programs that administrators and operators execute while logged on interactively. Be aware that enabling this category on a server can place a load on the server's resources, so carefully monitor effects on performance.

Tracking logons and the utilization of processes and objects can help you monitor a suspected attacker's actions. You should also monitor the attempted use of user rights, which can alert you to suspicious behavior before an attacker can do damage. Win2K's Audit privilege use category keeps tabs on this type of action.

Audit Privilege Use
The Audit privilege use category tracks successful and failed attempts to exercise user rights. (Microsoft articles and Win2K documentation are inconsistent and use the terms privileges and rights interchangeably.) More than 34 rights exist, ranging from powerful rights such as Act as part of the operating system to rather innocuous rights such as Bypass traverse checking. When you enable Audit privilege use, the Security log begins to register three events: event ID 577 (privileged service called), event ID 578 (privileged object operation), and event ID 576 (special privileges assigned to new logon).

When a user attempts to invoke a right, Win2K logs either event ID 577 or event ID 578, depending on the right. (Win2K monitors some internal rights on a service basis and others on an object basis.) In both events, the Privileges field specifies which right the user invoked. Win2K logs the right's short name, which always begins with Se and ends with Privilege. However, Win2K doesn't display these short names when you edit rights assignments in the MMC Group Policy Editor (GPE) snap-in. Instead, the snap-in displays rights' full descriptions. (For example, Figure 2 shows an event ID 577 occurrence that Win2K logged when I changed the time on my computer. The event's SeSystemtimePrivilege right corresponds to the Change the system time right in GPE.)

When Win2K permits a user to invoke a right, the OS logs event ID 577 or event ID 578 as a success. If a user tries to exercise a right that hasn't been assigned to him or her, Win2K logs the event as failed. For some rights, the Primary User Name and Primary Domain fields identify the user who invoked the event. For rights that a server process invokes, however, these fields correspond to the local system's computer account. You can recognize such rights because the Primary User Name field is the same as the Computer field, followed by a dollar sign ($).

In such cases, you must look at the Client User Name and Client Domain fields to determine which user invoked the right. The Primary Logon ID and Client Logon ID fields correspond to the Logon ID field in the event ID 528 or event ID 540 occurrence that Win2K recorded when the user logged on.

Event ID 578's Process ID field identifies the process that directly invoked the event. For example, when you view the Security log, the Services process invokes the SeSecurityPrivilege (i.e., Manage auditing and security log) right on your behalf. The corresponding event ID 578's process ID belongs to the Services process.

Because the Audit logon events category contains specific event IDs for tracking logon activity, Win2K doesn't record successful or failed logon rights by default. (These rights—with the exception of Access this computer from the network and Deny access to this computer from the network—begin with the words Logon as or Deny logon.) Neither does Win2K log a few other rights—such as SeBackupPrivilege (i.e., Backup files and directories) or SeRestorePrivilege (i.e., Restore files and directories)—that are invoked so frequently that they would quickly fill up the Security log. To enable auditing for these rights, you can make a registry change in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa: Set the FullPrivilegeAuditing subkey, which is a REG_DWORD value, by setting the value to 1.

Win2K never logs the use of the SeAuditPrivilege (i.e., Generate security audits), SeCreateTokenPrivilege (i.e., Create a token object), SeDebugPrivilege (i.e., Debug programs), SeChangeNotifyPrivilege (i.e., Bypass traverse checking), or SeAssignPrimaryTokenPrivilege (i.e., Replace a process level token) rights. However, when a user with one or more of these rights logs on, Win2K records event ID 576 (special privileges assigned to new logon—this event usually closely follows a successful logon event ID 528 or event ID 540). To determine which rights a user had at the time the user logged on, look at event ID 576's Logon ID field, which identifies the user, and the Assigned field, which lists the rights' short names.

Audit Policy Change
Whereas the Audit privilege use category lets you audit who is using which rights and when, the Audit policy change category lets you track administrators' changes to rights assignments. The category lets you monitor several types of policy changes.

First, Audit policy change lets you know when rights assignments change. When an administrator grants someone a right, Win2K logs event ID 608 (user right assigned). The event's User Right field lists the short names of the assigned right or rights. The Assigned To field identifies the user or group to which the administrator assigned the right or rights. Figure 3 shows the event ID 608 occurrence that Win2K logged when I assigned the SeCreateTokenPrivilege (i.e., Create a token object) and SeCreatePermanentPrivilege (i.e., Create permanent shared objects) rights to the Administrators group.

   Previous  1  [2]  3  4  Next 


Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Have New Features Made Exchange Server Backups Unnecessary?

Cluster continuous replication and Volume Shadow Copy Service might have made backups unnecessary in Exchange 2007, but will admins feel comfortable without a dedicated backup solution in place? ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...


Security Whitepapers The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Protecting (You and) Your Data with Exchange Server 2007

Related Events Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing