Tokenmon 1.01
Tokenmon is a tool which monitors and displays a variety of security-related activity taking place on a system.
|
Tokenmon is a tool which monitors and displays a variety of security-related activity taking place on a system. Tokenmon gets its name from the fact that Windows NT/2000 stores a process' security information, including the user account context in which the process executes, in an object called a token. Tokenmon monitors includes the following:
User logon/logoff
Applications enabling or disabling security privileges in their process tokens
Process startup and exit (token creation/deletion)
Impersonation
Tokenmon has advanced filtering and search capabilities that make it a powerful tool for exploring the way NT works, seeing how applications use security functions, or tracking down problems in system or application configurations.
Simply run the Tokenmon GUI (Tokenmon.exe). Note that you must have administrative privilege to run Tokenmon. Menus, hot-keys, or toolbar buttons can be used to clear the window, save the monitored data to a file, and to filter and search output.
When a thread impersonates you'll see the thread's primary identity in the domainuser column and the identity its adopting in the Other column. Any security actions it performs at that point are in the impersonation context. When it reverts back to its own identity the thread's primary identity is again shown in the domainuser column.
As events are printed to the output, they are tagged with a sequence number. If Tokenmon's internal buffers are overflowed during extremely heavy activity, this will be reflected with gaps in the sequence number.
Each time you exit Tokenmon it remembers the position of the window and the widths of the output columns.
Tokenmon intercepts logon by hooking the NtCreateToken native API. The local security authority uses this API to create an initial login token when a user logs in either remotely or locally. When a user logs on the Local Security Authority Subsystem (LSASS) assigns the logon session a locally unique identifer (LUID) called a logon ID. To see a corresponding logoff, Tokenmon registers with the Security Reference Monitor (SRM) using the SeRegisterLogonSessionTerminatedRoutine kernel function, which requests that the SRM call the driver back whenever a user is logged off.
In order to see a process enable and disable privileges, Tokenmon hooks the NtAdjustPrivilegesToken function, which is the native API-equivalent of the Win32 AdjustTokenPrivileges functions. This function takes an array of privileges with a flag for each indicating whether the process wants to enable or disable it. Tokenmon shows the action for each privilege affected by a single call in separate output lines.
Tokenmon uses the PsSetCreateProcessNotifyRoutine kernel function, which is documented in the Windows 2000 DDK (but available on NT 4), to register a callback function whenever a process starts or exits.
Finally, there are several functions that applications can use to impersonate another user. Tokenmon hooks NtSetInformationThread, a variant of which is the native API-equivalent of the ImpersonateLoggedOnUser and ImpersonateSelf Win32 APIs, the FSCTL_PIPE_IMPERSONATE variant of NtFsControlFile (the native-equivalent of ImpersonateNamedPipeClient), and NtImpersonateClientOfPort, which is called by applications using the Local Procedure Call (LPC) facility and local RPC for impersonating the remote end of a LPC connection.
Tokenmon relies on several undocumented SRM functions to obtain a logon ID from a thread's primary and impersonation tokens, and GetSecurityUserInfo, an undocumented function exported by the KSecDD (Kernel Security-support driver) that retrieves a logon session user's name, domain name, and logon server given a logon ID. Another interesting implementation detail is that several of the native API functions that Tokenmon hooks are not exported by ntoskrnl.exe for use by drivers. Thus, the Tokenmon GUI must reach into NTDLL.DLL, extract their system call numbers, and pass them to the driver. This contrasts with Regmon, which reaches into ntoskrnl.exe using Registry function exports to obtain system call numbers.
tags
native api the native the local function which tokenmon hooks call numbers ntoskrnl exe using the logon session kernel function functions that api equivalent user logs

Download Tokenmon 1.01
Similar software
Tokenmon 1.01
Mark Russinovich
Tokenmon is a tool which monitors and displays a variety of security-related activity taking place on a system.
RSI Monitor 1.2.0.45
Savant Software Inc
RSI Monitor ia an utility that monitors keyboard and mouse activity.
TypeSafe AntiHook Keyboard Security Tool 1.0
BITLOGIC Software
TypeSafe AntiHook is a keyboard security tool that monitors the system for any attempts by an application or process to Hook or Record the Keyboard characters that you type.
ID Harddisk SmartChecker 1.2
ID Security Suite
ID Harddisk SmartChecker is a utility program designed to maintain the efficient functioning of your computer’s system.
Net Activity Diagram 2.3 Build 293
MetaProducts Corporation
Net Activity Diagram (NAD) is a Windows 9x/NT/2000/ME/XP application that monitors your computer Internet activity.
ergonomix 3.7.1
publicspace.net
ergonomix is a useful personal ergonomic assistant that monitors our mouse and keyboard activity and helps us structure our computer use in a healthy and constructive manner, thus preventing computer-related injuries from developing.
IP Traffic Monitor 3.3
Skyward Software
IP Traffic Monitor is a tool that helps you watch your network activity and see which connections take a lot of traffic.
Ascella Log Monitor 1.0
AAR Software Ltd.
Ascella Log Monitor monitors the Windows event logs at real-time for any activity that matches the specified rules.
ConfigInspector 1.22
Softvoile
ConfigInspector is a free and useful application for system information analysis.
Log Monitor 0.2
Silviu Lita
Log Monitor is a simple package tool to trace MySQL activity like MS SQL Server Profiler and can also be used as a generic log monitor software.