Session Information Gathering

Session information gathering is a technique commonly employed by various malware families such as Remote Access Trojans (RATs), Information Stealers, Keyloggers, and Command and Control (C2) frameworks. It typically forms part of the broader system information gathering phase during malware execution.

This technique involves collecting basic information about the active user session on the infected machine. At a minimum, this includes the current session username, but can also extend to session IDs, domain information, privileges (e.g., admin or standard user), and whether the session is interactive or remote (such as via RDP).

The primary purpose of this technique is to provide the malware operator with context about the environment in which the malware is running. Knowing who is currently logged in allows attackers to:

Featured Windows APIs

Associated Code Snippets

Id Name Language Author Published Date
12 Read Active Window Title Delphi logoDelphi DarkCoderSc 1 day, 4 hours ago.
11 Get User Idle Time Delphi logoDelphi DarkCoderSc 1 day, 5 hours ago.
7 Get User SID Delphi logoDelphi DarkCoderSc 3 days, 1 hour ago.
6 Get Computer Name Delphi logoDelphi DarkCoderSc 3 days, 1 hour ago.
5 Get Current Windows User Delphi logoDelphi DarkCoderSc 3 days, 1 hour ago.