Process Listing vs. Pool Scanning: Which Is Better?



Neither listing nor scanning is inherently superior in memory forensics examinations. The choice is less a matter of preference than of what question you are asking of the image, and in most cases the correct answer is to apply both and treat the delta as the finding.


Listing plugins traverse the operating system’s native data structures—linked lists, object tables, and related kernel constructs—thereby reconstructing the view of system state as maintained and reported by the OS itself at the moment of acquisition. This approach yields comparatively clean, high-fidelity results when those structures remain intact, yet it remains susceptible to anti-forensic techniques such as Direct Kernel Object Manipulation (DKOM) that unlink or otherwise conceal objects from the OS’s own enumerations. A process unlinked through direct kernel object manipulation (DKOM) disappears from the list yet continues to execute, because the scheduler dispatches on KTHREAD objects rather than the process list.


Scanning (signature or pool-tag carving) searches memory for artifacts matching the structure’s expected pool tag, size, and field constraints, independent of whether the object is linked, referenced, or live. It can surface unlinked objects as well as terminated ones. It is not a ground-truth view of memory, and its caveats matter:

  • Residual objects: terminated processes whose EPROCESS has not yet been overwritten remain scannable, so a populated ExitTime must be checked to separate “exited” from “hidden.”
  • Stale and freed pool allocations can yield structures with no operational relevance.
  • False positives and smear: partially overwritten, fragmented, or paged-out structures may parse incorrectly or not at all.
  • Anti-forensic degradation: an adversary who tampers with the pool tags or fields a scanner keys on can evade or poison scan results. This is a different blind spot than the one listing has, not an absence of blind spots.


Run both techniques and reconcile the outputs. An object present in psscan but absent from pslist, with no ExitTime and live threads, is a strong hidden-process candidate. Corroborate it with thrdscan, handle tables, and network artifacts before drawing conclusions. The same cross-view logic applies to modules (modules vs. modscan), drivers (driverscan), and network objects. For some artifacts, such as file objects (filescan), there is no single authoritative system-wide list to walk, so scanning is the primary enumeration method rather than a cross-check.


How to Find the First Process? 

Walking kernel structures requires an authoritative anchor, and a raw memory image has no volume header to supply one. Before kernel virtual addresses can be resolved against physical memory, the appropriate address-translation context, including the kernel DTB, must be established. The preferred anchor is PsActiveProcessHead, a LIST_ENTRY head in ntoskrnl, resolved via the KDBG’s pointer to it (or via symbols and the kernel base in Volatility 3), with each node’s EPROCESS derived by subtracting the ActiveProcessLinks offset. Seeding the walk from an arbitrarily scanned EPROCESS is less reliable: it may represent a terminated process, freed, or adversary-planted. Its linked-list pointers may therefore be invalid or untrustworthy. Build-specific profiles or known symbol information can help locate kernel structures, but hardcoded addresses should be treated cautiously because of kernel updates, relocations, and address-space layout randomization. 


Lastly, validate the anchor and the integrity of the linked list, including forward and backward pointer consistency, and impose traversal bounds to prevent loops or uncontrolled access. Because kernel structures can be corrupted or deliberately manipulated, linked-list enumeration should be corroborated with independent scanning techniques where possible.


Linked Lists

A linked list stores a variable number of items that need not occupy contiguous memory locations, with each item containing one or more links to other items. Enumeration begins at the list head and proceeds by following these links until the appropriate termination condition is reached. In a conventional singly linked list, each node contains a forward link, and the final node commonly points to NULL. 


In a doubly linked list, each item has a pointer to both the next item in the list and the previous item in the list. This way a program can traverse the list by starting at the list head but can then go forward or backward along the list. Each end of the list has a special pointer to denote the end of the list. These special pointers are not actually required. We could make the list entirely circular by having the end of the list point back to the beginning. 



The Windows kernel commonly uses circular doubly linked lists implemented with the LIST_ENTRY structure, which contains two pointers: Flink and Blink. In a valid circular list, following Flink eventually returns to the list head rather than reaching a NULL terminator.



The list is anchored by a sentinel head, itself a LIST_ENTRY structure located at a kernel virtual address. A kernel global such as PsActiveProcessHead can serve as this head for the active-process list. The head does not represent a process object; instead, it anchors the list. An empty list is represented by a head whose Flink and Blink both point back to itself. Each data-bearing element embeds a LIST_ENTRY at an offset determined by the relevant structure layout. Consequently, a link references the embedded list entry rather than the base of its containing object. A walker recovers the containing object's address by subtracting the member's offset from the list-entry address. This calculation must not be applied to the sentinel head as though it were a data-bearing object.


Traversal begins at the head's Flink and terminates when the walker returns to the head's address. A robust implementation also imposes iteration limits, detects unexpected cycles, validates forward and backward pointer consistency, and handles unreadable memory pages. If traversal cannot be completed because of unreadable memory or structural corruption, the result should be reported as incomplete rather than as a complete enumeration.



The figure above shows a Windows' active process list. Its head, PsActiveProcessHead, is a kernel LIST_ENTRY associated with ntoskrnl. Depending on the memory-forensics framework and Windows version, its address may be recovered using KDBG-related information or resolved through kernel symbols. The head's Flink references the ActiveProcessLinks member of the first process, normally the System process, while its Blink references the corresponding member of the last process. The Idle process is generally not included as an ordinary entry in this list.


The ActiveProcessLinks member is embedded within EPROCESS, at an offset that depends on the target operating-system layout. Each list-entry address is converted to its containing EPROCESS base by subtracting the appropriate member offset. This calculation requires correct symbol or structure-layout information.


List integrity can be checked at each step. If traversal moves from one entry to the next, the new entry's Blink should reference the entry just visited. Similarly, the final entry's Flink should point back to the list head. Inconsistencies may indicate corruption, acquisition artifacts, unreadable memory, an incorrect structure offset, or deliberate tampering. However, these checks cannot reveal an object that has been cleanly unlinked from the list. Starting traversal from an arbitrarily scanned EPROCESS is therefore less reliable than using a validated list head. A scanned structure may belong to a terminated process, contain residual data, or be deliberately fabricated. When a process is unlinked from the active-process list, its embedded links may retain stale pointer values that refer to neighboring entries, including memory that has since been freed or reused. Such structures require independent validation before being interpreted as evidence of a process that was active at the time of acquisition.


Process Enumeration via List Walking 


In Volatility 2, pslist locates the Windows kernel debugging data block (KDBG), represented by _KDDEBUGGER_DATA64, by scanning for its identifying owner tag and validating candidate structures. In the WinXPSP2x86 profile used in this example, the PsActiveProcessHead field appears at offset 0x50 within the KDBG structure and provides the address of the kernel's active-process list head, a LIST_ENTRY.


The plugin traverses this circular doubly linked list, converting each ActiveProcessLinks address into its containing _EPROCESS structure by subtracting the member offset defined by the selected profile. In the standard Volatility 2 workflow, plugins such as pslist and modules rely on KDBG information to locate the relevant kernel lists, so failure to locate a usable KDBG can prevent their normal enumeration.


Pool-scanning plugins such as psscan use a different approach: they scan memory for process-object candidates rather than traversing the active-process list. This can reveal objects that are no longer linked into that list, although each result requires validation.


The diagram also reflect the circular nature of the list: the last entry's Flink points back to the head, while the first entry's Blink points back to the head. An empty list has a head whose Flink and Blink both point to itself.


Volatility 3 follows a different implementation approach. Its Windows pslist plugin resolves PsActiveProcessHead through kernel symbols and obtains the ActiveProcessLinks offset from the _EPROCESS type information, rather than relying on Volatility 2's profile-based KDBG workflow.


Who Keeps Tabs on Windows Processes

The active process list is the first place to look, because it is the kernel’s own record of running processes and cheap to walk. It is also the source behind Task Manager, Toolhelp, and similar tools, which reach it through NtQuerySystemInformation, so a process removed from it is hidden from all of them. Malware does this through DKOM, rewriting the neighbors’ links so the ring skips the process, which leaves the ring consistent and the process still running. Hiding by API hooking differs, since it leaves the kernel list intact and the process visible to pslist. Pool scanning (psscan) can recover an unlinked EPROCESS, but it also returns terminated processes and stale residue, so check ExitTime, and it can be evaded by tampering with the pool tag or validated fields. A psscan hit is therefore a lead to corroborate against thread, handle, PspCidTable, csrss, and session views.


Every thread has an ETHREAD, whose first member is the KTHREAD (Tcb), which in turn contains ApcState. The owning process is recorded in ETHREAD.ThreadsProcess. KAPC_STATE.Process is not a reliable owner, since it reflects the process the thread is currently attached to. KPROCESS is the first member of EPROCESS, so a process pointer is an EPROCESS base. DKOM unlinking of a process leaves its threads intact, because the scheduler runs threads. Scanning for threads (thrdscan, pool tag Thre) can therefore recover a process missing from pslist, and also one whose EPROCESS pool tag was altered and so evades psscan. Each recovered owner must be validated as a parsable EPROCESS with no exit time, since terminated threads and stale pointers also appear. The result is one view among several for cross-comparison (psxview).


Every process maintains a handle table, usually holding files, registry keys, and similar objects. The Windows subsystem process, csrss.exe, also holds process handles for the Win32 processes it has registered during process creation, which makes its table a useful independent view. Coverage is incomplete by design. System, Idle, smss.exe, and csrss itself predate the subsystem, native-subsystem processes don’t register, and processes created through paths that bypass the CSR bookkeeping may be absent. Since Vista there is one csrss instance per session, so each must be examined. Because a held handle keeps the object alive, terminated processes can persist in the table, so check ExitTime. The table is reached through the csrss EPROCESS.ObjectTable, with version-specific handle-table decoding and flag-bit masking. As with every other source, it is tamperable and anchored on a process that must itself be validated, so it serves as one view for cross-comparison (psxview), not as an authoritative list. 


PspCidTable is the kernel’s handle table for client IDs. It maps PIDs and TIDs to EPROCESS and ETHREAD objects and supports lookups such as PsLookupProcessByProcessId. It is not a scheduler structure. The KDBG records the address of the variable that points to it, and decoding the table requires build-specific knowledge: entry flags are masked, the table can be multi-level, and processes and threads share it. Because it tracks every process, it is a useful independent view, but it can also be tampered with. Rootkits such as FUTo remove entries from it, so it is one view among several and is never authoritative.


Each session’s _MM_SESSION_SPACE contains a ProcessList, a LIST_ENTRY head that chains the SessionProcessLinks member of every EPROCESS in that session. The session object is reached from a validated process through EPROCESS.Session. System, Idle, and the master smss.exe have none. Because session space is mapped per session, addresses must be translated through the page tables of a process in that session. Each link is converted to an EPROCESS base by subtracting the SessionProcessLinks offset, and the walk ends on returning to the head. The list covers only one session, and like any list it can be tampered with, but a process unlinked from ActiveProcessLinks may still be present here, so a discrepancy between the two views is worth investigating. No single source is authoritative, and each can be tampered with by an attacker with kernel write access. Each source has its own coverage limitations and dependencies on the Windows version and memory image.


Cross-view analysis, as implemented by Volatility psxview, compares process candidates discovered through these different sources. A process that appears in some views but not others may indicate unlinking, incomplete acquisition, a terminated process, or another structural inconsistency. Such discrepancies require corroboration rather than being treated as conclusive proof of malicious activity. No individual source is universally authoritative, and kernel-level tampering can undermine multiple views simultaneously.


Window stations are per-session kernel objects that contain desktops, and each desktop keeps a list of the GUI threads attached to it. Each tagTHREADINFO entry references its ETHREAD, from which the owning process is read, so desktop-thread enumeration can recover a process unlinked from ActiveProcessLinks. The structures live in session space, so addresses must be translated through a process in that session, and each list link must be converted to its containing object by subtracting the member offset. Coverage is partial: only threads that have made calls into Win32k appear, so a hidden process with no GUI thread will not. The data is also tamperable and must be validated, including a check of ExitTime. This is one view among several for cross-comparison (psxview, deskthrd).


PspCidTable 

The KDBG holds the address of the PspCidTable variable, which points to a single kernel _HANDLE_TABLE mapping client IDs to objects. A PID or TID is the entry’s index in the table, and the entry holds the address of the EPROCESS or ETHREAD. The UniqueProcessId member of the structure identifies the table’s owning process, not the processes it tracks. Enumeration requires decoding the table’s level encoding and masking flag bits, and the structure differs by build. Because the table tracks every process, a process unlinked only from ActiveProcessLinks still appears in it. An attacker who also clears its PspCidTable entry (as FUTo does) removes it from this view as well, so the table is one view among several, to be cross-compared with pslist, psscan, and the others.


typedef struct _HANDLE_TABLE {
    PVOID                    p_hTable;               // article's name for the table pointer
    PEPROCESS                QuotaProcess;
    PVOID                    UniqueProcessId;        // owner of this handle table
    EX_PUSH_LOCK             HandleTableLock[4];
    LIST_ENTRY               HandleTableList;
    EX_PUSH_LOCK             HandleContentionEvent;
    PHANDLE_TRACE_DEBUG_INFO DebugInfo;
    DWORD                    ExtraInfoPages;
    DWORD                    FirstFree;
    DWORD                    LastFree;
    DWORD                    NextHandleNeedingPool;
    DWORD                    HandleCount;
    DWORD                    Flags;
} HANDLE_TABLE, *PHANDLE_TABLE;


Finding Hidden Processes 

The Volatility's psxview plugin helps identify potentially hidden processes by comparing process visibility across multiple enumeration methods and reports, for each process, whether each view found it. It combines linked-list traversal with pool scanning and other kernel-structure-based techniques. The plugin's views include:


  • pslist—Walks the PsActiveProcessHead doubly linked list of _EPROCESS structures. This is the canonical "live" view and the one most trivially subverted by unlinking a process from the list (classic DKOM).
  • psscan—Pool-tag scans the entire memory image for _EPROCESS pool allocations, independent of list linkage. Recovers unlinked, exited, and orphaned processes that pslist will miss.
  • thrdproc—Enumerates _ETHREAD objects found via thread-pool scanning and resolves each thread's owning process via its Cid.UniqueProcess field. A process with any surviving thread will still surface here even if unlinked from pslist.
  • pspcid—Enumerates entries in the PspCidTable, the kernel's handle table that resolves Client IDs (PIDs/TIDs) to their corresponding process or thread objects. This table backs ID-based lookups (e.g., what OpenProcess/OpenThread resolve against internally) and is a separate bookkeeping structure from the active process list.
  • csrss—Enumerates the process handles held open by csrss.exe. Because csrss.exe only opens a handle to a process after that process is created, this source is only valid for processes started subsequent to csrss.exe's own initialization.
  • session—Enumerates processes associated with each logon session via the session space structures.
  • deskthrd—Enumerates processes reachable by walking the threads attached to each Windows desktop object.


For each candidate process, psxview reports whether each enumeration method found it. A “True” means the view found the process, and a “False” means it did not. Disagreement is a lead and not a verdict.  A False is not inherently anomalous—several legitimate conditions produce expected False entries:

  • System, smss.exe, and csrss.exe will always show False under csrss, since none of them can hold a handle opened by a process that predates their own existence.
  • session and deskthrd will be False for smss.exe and any process created before it, since session-space and desktop-thread tracking are not yet initialized at that point in boot.
  • Terminated processes drop out of some views and show an ExitTime. 

The -R (--apply-rules) switch mitigates this noise by applying a built-in set of known-good heuristics: where a False is expected for one of the reasons above, the plugin relabels it Okay rather than leaving it as an unqualified anomaly, so the analyst's attention is drawn to genuinely unexplained discrepancies.


A running process present in the scans and tables but absent from pslist is the classic signature of DKOM unlinking. Every view reads kernel memory that an attacker with write access can alter, so the method raises the cost of hiding without guaranteeing detection.

Version caveat: the behavior above describes classic Volatility 2's psxview. Its Windows 10 support is degraded rather than cleanly limited to two columns—and deskthrd frequently fails to populate on Win10-era images, and broader plugin failures (including psscan itself) have been reported against certain Windows 10 builds, so treat any psxview run against a Win10+ image with corroborating suspicion regardless of which columns come back empty.

 

In Volatility 3, this degradation went further than a straight port of the missing columns: deskthrd and pspcid are omitted for the reasons already noted, but the V3 rewrite also drops session — its own source comments note that the session-space check adds no independent signal, since it starts from the same process set pslist already produces. An analyst running psxview under Volatility 3 should expect a four-source comparison (pslist, psscan, thrdproc, csrss), not seven and not five, and should not read the absence of any of pspcid, deskthrd, or session as a Win10-specific artifact of their particular image.


We now run psxview against ds_fuzz_hidden_proc.img, a sample containing a process hidden through DKOM. In addition to being unlinked from the active process list, its pool-scan footprint has been altered so that psscan does not find it. We use the WinXPSP3x86 profile, which we confirmed first with imageinfo:




Read the output column by column. System, smss.exe, csrss.exe, and Idle will show expected Falses. The process we are looking for, shown as network_listene (the name field holds at most 15 characters), should be absent from pslist and psscan but present in the views that depend on other structures, with no exit time.


Several rows show Falses and are explainable. System, smss.exe, and csrss.exe are absent from some views by design as explained earlier. cmd.exe (PID 940) carries an exit time, so it is a terminated process. A few rows, such as the second services.exe and two svchost.exe instances, appear in psscan but not in pslist, pspcid, or csrss, so they are stale objects that are not part of the current boot’s live tables. One process remains. network_listene (the 15-character form of the name), PID 1696, is absent from pslist and psscan, so pstree and psscan both miss it. It is nevertheless present in thrdproc, pspcid, csrss, and deskthrd, with no exit time. That pattern identifies a live process unlinked by DKOM and made invisible to pool scanning. Its session column is also False. We corroborate the PID against thread and handle records and then analyze the process.


Reading psxview takes judgment, but the patterns follow rules. Expect holes in the csrss column for System, smss.exe, and csrss itself, which predate or bypass the subsystem. System and smss also have no session, so they are absent from the session and desktop views. Terminated processes appear in pool scans but not in pslist, and usually carry an ExitTime. Stale or leftover objects appear in scans but not in the live tables (pspcid, csrss). The strongest indicator of a hidden running process is one that appears in several live structures but is missing from pslist, with no exit time. Scan-only hits are weaker evidence and may be debris, so weigh them by how many independent live views contain the process, and validate the structure itself (DTB, timestamps, parent, threads). Do not discard a scan-only hit merely because its name or PID looks wrong, since an attacker can corrupt those fields. Every view can be tampered with, so a clean psxview does not prove a clean system.


Volatility 3's psxview output of the same image

In this image, Volatility 3 version 2.28.0 resolves the kernel successfully. windows.info reports a DTB of 0x39000, a kernel base of 0x804d7000, and symbols associated with ntkrnlpa.pdb for the target build. However, windows.pslist.PsList completes without an error, prints its header, and returns no process rows. Running windows.malware.psxview.PsXView produces a similar result: all 26 reported rows have pslist, thrdscan, and csrss set to False, while psscan is True. This includes System, winlogon.exe, and lsass.exe—processes that should be discoverable through the active process list in a normally functioning enumeration of a running system. This pattern suggests that the active-list traversal, or a prerequisite it depends on, is not functioning as expected for this image. It does not indicate that all 26 processes are hidden. When even fundamental processes are absent from a view, that view's reliability must be established before its negative results can support conclusions about individual processes.


The process named network_listene (PID 1696) is not reported by the Volatility 3 results described here. Its absence means that this run provides no positive evidence about the process through those views; it does not, on its own, establish why the process was missed. In contrast, Volatility 2 identifies the process through thrdproc, pspcid, csrss, and deskthrd, while pslist and psscan do not. This cross-view discrepancy warrants further investigation, although the process's execution state and the reason for its absence from particular views require independent validation. The cause of the empty Volatility 3 process-list output has not been established. Therefore, this case should be documented as an observed limitation in the analysis of this particular image, rather than a confirmed Volatility 3 defect. The practical lesson is that a plugin's successful completion, rendered output, and lack of an error message do not guarantee a valid enumeration. When a process-list plugin returns no rows—or its output conflicts with known system processes—validate the result against alternative enumeration methods and, where possible, a second forensic implementation.


When a result is uncertain, dump the process and examine it. A hidden process cannot be selected by PID, because Volatility’s process-dumping plugins enumerate processes from the active list, which the process is not on. Select it by the physical offset of its EPROCESS instead, using procdump -o. Volatility shows the offset in the psxview output by default. The dump is reconstructed from memory by translating addresses through the process’s page tables, so it can be incomplete if those structures were damaged, and Result OK only means a file was written. Validate it (PE headers, sections, hash) before analysis, treat it as an unpacked-from-memory artifact and not the original file, handle it as evidence, and analyze it in an isolated environment.



In psxview, processes present only in the psscan column are terminated processes, stale objects, or residue. The ExitTime column shows whether a process exited, but it does not show which boot it belonged to, because a process that exited in a previous boot carries an exit time too. To find psscan-only rows, filter the output on every column as follows. 




cmd.exe (PID 940) has an exit time of 2008-11-26 07:45:49 UTC. To decide whether it belongs to the current boot, we compare its creation and exit times against the smss process’s creation time and the image time from imageinfo, using psscan.



Examining the output of psscan and looking at smss.exe, we can see that the boot time for the machine was 2008-11-26 07:38:11 UTC+0000. Because our target process, PID 940, has a create time of 2008-11-26 07:43:39 UTC+0000, we can conclude that the process was created on the current boot and is not a remnant from a previous boot. Also, note that the System process (PPID 4) has no creation time. This is normal for the System process. 


Post a Comment

Previous Post Next Post