Skip to content

FS_Process_Token

ufrisk edited this page Jun 15, 2022 · 5 revisions

The token per-process directory

The directory token exists as a sub-directory in each process directory.

The token directory contains user information related to the process and other information extracted from the process Token.

The files and directories and their contents are listed below:

File Description
integrity.txt Process integrity level.
luid.txt User Logon ID.
privileges.txt List of process privileges.
session.txt The session ID of the process.
sid.txt The User SID.
sid-all.txt All SIDs in the primary process token.
user.txt The Username

The directory exists only on Windows.

File: privileges.txt

The file privileges.txt contains information about process privileges. The meaning of the different columns are as follows:

Flags:

e Process privilege is Enabled.
p Process privilege is Present.
d Process privilege is Enabled by Default.

   #    PID Flags Privilege Name                           
--------------------------------                           
0003   6516  -p-  SeAssignPrimaryTokenPrivilege
0004   6516  --d  SeLockMemoryPrivilege
0007   6516  epd  SeTcbPrivilege
...

Example

The example below shows the sid, username and process privileges of a process.

For Developers

The token sub-directory is implemented as a built-in native C-code plugin. The plugin source is located in the file m_proc_token.c in the vmm project.

Clone this wiki locally