Windows System Internals 101: A Beginner’s Guide to Core Concepts

Listen to this Post

Featured Image

Understanding Windows System Internals is crucial for cybersecurity professionals, IT administrators, and developers. This guide covers essential Windows security concepts, including SIDs, logon processes, security tokens, and more.

🔗 Full Demo: Windows System Internals 101

You Should Know:

1. Windows Security Identifier (SID)

A Security Identifier (SID) uniquely identifies users, groups, and computers in Windows.

📌 Example SID:

S-1-5-21-3623811015-3361044348-30300820-1013 

– S-1-5: Identifier Authority (SECURITY_NT_AUTHORITY)
– 21-3623811015-3361044348-30300820: Domain/Computer Identifier
– 1013: Relative Identifier (RID)

🔹 Command to View User SID:

Get-WmiObject -Class Win32_UserAccount | Select Name, SID 

2. Windows Logon Process

Windows authentication involves:

1. Winlogon.exe – Manages login UI.

2. LSASS.exe – Validates credentials.

3. SAM Database – Stores local user hashes.

🔹 Check Logon Events (Event Viewer):

Get-EventLog -LogName Security -InstanceId 4624 -Newest 5 

3. Security Principals

Entities that can be authenticated (users, groups, computers).

🔹 List Local Users:

net user 

4. Security Groups

Groups simplify permission management.

🔹 List Local Groups:

net localgroup 

5. Windows Security Context

Defines permissions for running processes.

🔹 View Process Tokens (PowerShell):

whoami /all 

6. Security Access Token (SAT)

A token contains:

  • User SID
  • Group SIDs
  • Privileges

🔹 View Token Privileges:

whoami /priv 

7. Securable Objects

Files, registry keys, and processes with ACLs.

🔹 Check File Permissions:

icacls "C:\path\to\file" 

8. Security Descriptors

Metadata defining object permissions.

🔹 View Security Descriptor (PowerShell):

Get-Acl "C:\path\to\file" | Format-List 

9. Local Security Authority (LSA)

Manages authentication and security policies.

🔹 Dump LSA Secrets (Requires Admin):

reg save HKLM\SECURITY security.hiv 

10. Windows Logon Session

Created at login, destroyed at logout.

🔹 List Active Logon Sessions:

logonsessions.exe (Sysinternals) 

What Undercode Say

Mastering Windows Internals is essential for cybersecurity, penetration testing, and system administration. Understanding SIDs, tokens, and LSA helps in:
– Privilege Escalation
– Active Directory Exploitation
– Forensic Investigations

🔹 Bonus Commands:

 Check Kerberos Tickets 
klist 
 Dump Process Memory (Admin) 
procdump -ma <PID> 
 Check Scheduled Tasks 
schtasks /query /fo LIST 

Expected Output:

A deep understanding of Windows security mechanisms and practical commands for system analysis, privilege escalation, and security auditing.

🔗 Further Reading:

(End of – 70+ lines of technical content)

References:

Reported By: Mohamed Saber – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 Telegram