Skip to main content

Overview

Enumerate all logon sessions currently active on the system. This command provides detailed information about each session including user identity, logon type, and session characteristics for targeting and operational planning.

Syntax

Optional Parameters

luid
string
Display information for specific LUID only

Examples

Session Information

Session Attributes:
  • LUID (Logon Session Identifier)
  • Username and domain
  • Logon type and time
  • Authentication package
  • Session state and characteristics
Logon Types:
  • 2: Interactive (console logon)
  • 3: Network (remote authentication)
  • 4: Batch (scheduled task)
  • 5: Service (service account)
  • 7: Unlock (workstation unlock)
  • 8: NetworkCleartext (IIS authentication)
  • 9: NewCredentials (RunAs with /netonly)
  • 10: RemoteInteractive (RDP/Terminal Services)
  • 11: CachedInteractive (cached domain credentials)

Use Cases

Target Identification:
  • Find high-privilege user sessions
  • Identify administrative logons
  • Locate service account sessions
  • Map user activity patterns
Operational Planning:
  • Plan cross-session ticket operations
  • Identify accessible session contexts
  • Target specific user sessions
  • Assess system security posture
High-Value Sessions:
  • Domain administrator sessions
  • Service account sessions with delegation
  • Interactive administrative sessions
  • Recent authentication activities
Session Characteristics:
  • Session age and activity
  • Authentication package used
  • Network vs. interactive sessions
  • Cached vs. live authentication

Output Analysis

Sample Output:
Key Elements:
  • LUID identifies session for targeting
  • LogonType indicates session characteristics
  • AuthenticationPackage shows credential type
  • Recent LogonTime indicates active sessions

Integration Workflows

Complete Workflow:
Multi-Session Analysis:

Session Types Analysis

Interactive Sessions (2, 7, 10, 11):
  • User actively logged in
  • Likely to have cached credentials
  • May have elevated privileges
  • Good targets for credential extraction
Network Sessions (3, 8):
  • Remote authentication only
  • May have limited cached credentials
  • Useful for understanding network access
  • May indicate lateral movement
Service Sessions (4, 5):
  • Automated service accounts
  • Often have delegation rights
  • May run with high privileges
  • Good targets for persistence

Operational Security

Monitoring Indicators:
  • Process accessing LSA session information
  • Enumeration of multiple logon sessions
  • Correlation with other suspicious activities
  • Unusual session analysis patterns
Evasion Strategies:
  • Limit frequency of enumeration
  • Focus on specific high-value sessions
  • Use during normal business hours
  • Correlate with legitimate activities
  • currentluid - Display current session LUID
  • dump - Extract tickets from specific sessions
  • ptt - Inject tickets into specific sessions
  • triage - Quick session ticket overview