Skip to content

Windows: walk every desktop of a window station, and render unnamed desktops - #2107

Open
mnrkbys wants to merge 1 commit into
volatilityfoundation:developfrom
mnrkbys:fix-desktops-list
Open

mnrkbys wants to merge 1 commit into
volatilityfoundation:developfrom
mnrkbys:fix-desktops-list

Conversation

@mnrkbys

@mnrkbys mnrkbys commented Nov 18, 2026

Copy link
Copy Markdown

Problem

tagWINDOWSTATION.desktops() dereferences rpdeskList on every pass of its loop, so it yields the first desktop of each window station and stops on the second pass (the same offset is already in seen). The other desktops are never visited: on the image below, WinSta0 has Default, Disconnect and Winlogon, and only Default is reported.

A desktop whose name cannot be read is yielded with a None name. windows.desktops then fails while rendering:

TypeError: Values item with index 3 is the wrong type for column Desktop (got <class 'NoneType'> but expected <class 'str'>)

Change

  • desktops() follows rpdeskNext after each desktop, keeping the seen set and max_desktops as the stop conditions.
  • windows.desktops and windows.windows render a missing desktop name as NotAvailableValue, as windows.windows already does for window names. Both plugins get a patch version bump.

Testing

Windows 10 19041 memory image from the public DFIR Madness case "The Stolen Szechuan Sauce" (DESKTOP-SDN1RPT.mem):

  • windows.desktops: fails with the TypeError above before; completes after, with the unnamed desktop shown as -.
  • windows.windows: 417 rows before, 420 after; the 3 added rows are the windows of WinSta0\Winlogon, and the other rows are unchanged.

ruff check and ruff format --check pass with the repository's configuration.

This change was prepared with the help of an AI assistant (Claude). I have reviewed and tested it.

…esktops

tagWINDOWSTATION.desktops() dereferenced rpdeskList on every pass, so it
returned only the first desktop of each window station and stopped at the
second pass. It now follows rpdeskNext. A desktop without a name made
windows.desktops fail with a TypeError on the str "Desktop" column; desktops
and windows now render it as NotAvailableValue, as windows already does for
window names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant