01 / 23

Windows Authentication
& Security Controls

Understand how Windows verifies identities, manages access permissions, and enforces security policies to protect systems and data.

Cyber Security

What Is Authentication?

Authentication is the process of verifying that a user is who they claim to be. Before Windows grants access to any resource, it must confirm the user's identity through credentials: something you know, something you have, or something you are.

Something You Know
Passwords, PINs, security questions
Something You Have
Smart cards, security tokens, phones
Something You Are
Fingerprints, facial recognition, iris scans

Authentication vs Authorization

User Authentication "Who are you?" Authorization "What can you do?" Step 1: Identity Step 2: Permissions Credentials verified Access granted/denied

Why Windows Security Matters

Windows runs on over 1 billion devices worldwide. This makes it the single largest target for attackers. Understanding its authentication and security controls is the foundation of defending any organization.

1
Credential theft is the #1 initial attack vector in enterprise breaches.
2
Weak passwords and misconfigured policies account for over 80% of hacking-related breaches.
3
Lateral movement inside networks relies on exploiting Windows authentication protocols.

The Authentication Architecture

User Login Winlogon.exe LSASS Local Security Authority Subsystem SAM Database Local accounts NTLM / Kerberos Auth protocols Active Directory Domain accounts

NTLM vs Kerberos

NTLM Kerberos
Type Challenge-response Ticket-based
Trust Model Direct server verification Trusted third party (KDC)
Mutual Auth No Yes
Speed Slower (per-request) Faster (cached tickets)
Security Weaker (pass-the-hash) Stronger (time-limited)
Default Since Windows NT Windows 2000+

How Kerberos Works

Client KDC Key Distribution Center Server 1. Request TGT 2. TGT issued 3. Request service ticket (present TGT) 4. Service ticket 5. Present ticket to server

Core Security Controls

UAC
User Account Control: prompts before admin-level changes
ACLs
Access Control Lists: define who can read, write, or execute files
Group Policy
Centralized rules for password strength, lockout, and auditing
Windows Firewall
Filters inbound/outbound traffic by port, protocol, and application
BitLocker
Full-disk encryption protecting data at rest
Windows Defender
Built-in antimalware and endpoint detection

User Account Control (UAC)

Standard User Token UAC Prompt "Allow changes?" Approved Admin Token (temp) Triggers UAC: • Installing software • Modifying system files • Changing registry • Adding/removing users • Changing firewall rules • Running as administrator Disabling UAC = major risk

Access Control Lists (ACLs)

Every file, folder, and registry key in Windows has a security descriptor that contains an ACL. The ACL is a list of Access Control Entries (ACEs), each specifying what a particular user or group can do.

File report.docx Security Descriptor Access Control List Principal Permission Type Admin Full Control Allow HR Group Read + Write Allow Interns Read Only Allow Guest All Access Deny Deny rules override Allow rules ACEs are evaluated top-down

Group Policy in Action

Group Policy Objects (GPOs) let administrators enforce security settings across an entire domain from one central location. They cascade down through the hierarchy: Local → Site → Domain → OU.

1
Password policies: minimum length, complexity, expiration, and history requirements.
2
Account lockout: lock account after \(n\) failed attempts to prevent brute-force attacks.
3
Audit policies: log successful and failed logins, privilege escalations, and file access.
4
Software restrictions: whitelist or blacklist applications to prevent unauthorized execution.

How Windows Stores Passwords

Windows never stores passwords in plain text. Instead, it stores a hash: a one-way mathematical transformation. When you log in, Windows hashes your input and compares it to the stored hash.

"P@ssw0rd!" Plain text NTLM Hash MD4(UTF-16LE) a4f49c406510... Stored in SAM/AD Hashes are irreversible: you cannot recover the original password

Example: Analyzing a Login Event

Scenario: You see Event ID 4625 in the Windows Security Log. This is a failed login attempt. How do you analyze it?

1
Check the username: Is it a valid account or a random/common name like "admin" or "test"?
2
Check the source IP: Is it an internal or external address? Is it known?
3
Check the logon type: Type 2 = interactive (keyboard), Type 3 = network, Type 10 = remote desktop.
4
Check the frequency: One failure may be a typo. Hundreds of failures suggest a brute-force attack.

Example: Password Policy Configuration

Scenario: You need to configure a Group Policy password policy for a small business. What settings do you choose?

Setting Weak Policy Strong Policy
Minimum Length 6 characters 12+ characters
Complexity Disabled Uppercase + number + symbol
Max Age Never expires 90 days
Lockout Threshold None 5 failed attempts
History 0 remembered 12 remembered

Example: Compromised Account Response

Scenario: An employee reports they received a password-reset email they didn't request. Their account shows logins from an unfamiliar IP at 3:00 AM. What do you do?

1
Disable the account immediately to prevent further unauthorized access.
2
Reset the password from a known-clean admin terminal, not from the compromised machine.
3
Review Event Logs (4624, 4625, 4672) to trace what the attacker accessed.
4
Check for persistence: new scheduled tasks, services, or user accounts created by the attacker.
5
Enable MFA on the account and monitor for further suspicious activity.

Common Mistakes

✕ Disabling UAC
Users disable UAC to avoid prompts, giving malware unrestricted admin access to the system.
✕ Running as Admin
Using an admin account for daily tasks means every action has elevated privileges, including malware execution.
✕ No Account Lockout
Without lockout policies, attackers can try unlimited passwords via brute force without any consequences.
✕ NTLM Fallback
Allowing NTLM when Kerberos is available exposes the network to pass-the-hash and relay attacks.
✕ Shared Admin Passwords
Using the same local admin password on every machine means compromising one machine compromises all of them.
✕ Ignoring Logs
Not monitoring security event logs means attacks go undetected until damage is already done.

Security Controls Summary

Control Purpose Key Tool / Location
Authentication Verify identity Kerberos, NTLM, LSASS
UAC Limit privilege escalation Control Panel > UAC Settings
ACLs File/resource permissions File Properties > Security
Group Policy Centralized enforcement gpedit.msc / GPMC
Windows Firewall Network traffic filtering wf.msc
BitLocker Data-at-rest encryption manage-bde / Control Panel
Event Logs Audit and detection eventvwr.msc (IDs 4624/4625)

Hardening a Windows System

1
Create separate accounts: use a standard account for daily tasks and an admin account only when needed.
2
Keep UAC enabled at the highest practical setting to intercept unauthorized privilege escalation.
3
Configure Group Policy: set strong password requirements, enable account lockout, and turn on audit logging.
4
Review ACLs: ensure file and folder permissions follow the principle of least privilege. Remove unnecessary "Everyone" access.
5
Disable NTLM where possible and enforce Kerberos authentication across the domain.
6
Monitor Event Logs: set up alerts for Event IDs 4625 (failed logins) and 4672 (special privileges assigned).

Question 1 of 5

What is the primary difference between authentication and authorization?

Question 2 of 5

Which Windows component is responsible for validating user credentials during the login process?

Question 3 of 5

Why is Kerberos considered more secure than NTLM?

Question 4 of 5

An employee's account shows 300 failed login attempts in 10 minutes, all from an external IP address. Which security control would have prevented this attack from continuing?

Question 5 of 5

In a Windows ACL, what happens when a user belongs to a group with an Allow rule and also matches a Deny rule for the same resource?