Authentication factors and why MFA still gets phished, RBAC vs ABAC, OAuth 2.0 / OIDC and JWTs, Active Directory and Kerberos. Then enumerate a lab domain over LDAP and reconstruct a 48-hour AD compromise.
INCIDENT · NavBharat Engineering (fictional), Pune
Monday 09:12: a summer intern, intern07, typed their password and one-time code into a fake Microsoft login page.
Wednesday 08:55: ransomware was pushed to every computer in the company through Group Policy.
No zero-days. No malware until the very end. Just identities: stolen, enumerated, cracked and abused.
Stolen credentials are the most common way in to organisations, ahead of exploits. That's why people say identity is the new perimeter: the firewall doesn't matter if the attacker logs in as you.
Two words to keep straight for the whole room:
Authentication (AuthN):who are you? Proving identity: password, passkey, fingerprint.
Authorisation (AuthZ):what are you allowed to do? Permissions after you're in.
IAM, Identity and Access Management, is the discipline of getting both right for every person, service and device, from the day they join to the day they leave (joiner-mover-leaver).
In this room you'll compare login methods, design roles for a hospital, follow OAuth and Kerberos message by message, enumerate a lab Active Directory, and then rebuild the NavBharat attack from its logs.
Answer the questions
+10 XP
+10 XP
+10 XP
+10 XP
TASK 02Authentication deep dive›
Authentication factors come in three kinds:
Something you know: password, PIN.
Something you have: phone, hardware key, smart card.
Something you are: fingerprint, face.
MFA (multi-factor authentication) combines two different kinds. A password plus a security question is still one factor.
But not all MFA is equal. Pick a login method and throw attacks at it:
Which login survives which attack? 0/4 attacks blocked
Credential stuffing: account taken
Reusing passwords leaked from another site.
SIM swap: account taken
Attacker convinces the telco to move your number to their SIM.
Push fatigue: account taken
Attacker spams approve prompts at 2 AM until you tap Yes.
Real-time phishing proxy: account taken
A fake login page relays your password AND your code to the real site (AiTM).
Any code a human can read or approve can also be phished by a page that sits in the middle.
SMS OTP loses to SIM swapping: the attacker talks the telco into moving your number.
Push approvals lose to MFA fatigue: spam prompts until a tired person taps Approve. Watch it happen:
MFA fatigue at 2 AM plain push
Attacker has the password
clicks "Sign in" again and again
Sign-in request
Approve? (0 so far)
DenyApprove
Number matching fixes fatigue: you must type the number shown on the real sign-in screen, which the victim never sees.
Real-time phishing proxies (adversary-in-the-middle, AiTM) relay everything a human can type or approve, including TOTP codes. That's exactly what happened to intern07.
Passkeys / FIDO2 are phishing-resistant: the browser signs a challenge with a private key that's bound to the real site's domain. A look-alike domain gets nothing usable.
Passwords aren't dead yet. When you must use them: long passphrases, a password manager, no reuse, and check new passwords against breach lists rather than forcing a change every 30 days (that's current NIST SP 800-63B guidance).
Answer the questions
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
TASK 03Authorisation models›
Once someone is in, what may they touch?
DAC (discretionary): the owner of a file decides who gets access. Your Google Drive sharing.
MAC (mandatory): labels decide (Secret, Top Secret); users can't override. Military systems.
RBAC (role-based): permissions attach to roles, people get roles. Easy to audit.
ABAC (attribute-based): rules over attributes of the user, resource and context: department, shift, device, location.
RBAC vs ABAC: who can open a Cardiology patient chart? RBAC
Dr. Meera
Doctor · Cardiology · on shift
Access
Ravi
Nurse · Cardiology · off shift
Access
Sana
Nurse · Oncology · on shift
Access
RBAC is simple to manage, but Sana in Oncology can open Cardiology charts she has no reason to see.
Principles that apply to all of them:
Least privilege: the minimum access needed for the job, nothing "just in case".
Separation of duties (SoD): no single person can complete a risky action alone (create a vendor and approve its payment).
Just-in-time (JIT) access: admin rights are granted for an hour when needed, then expire, instead of being permanent.
PAM (privileged access management): admin passwords live in a vault, sessions are recorded, credentials rotate after use (CyberArk, Delinea, open-source Teleport).
Access reviews: managers re-certify who has what every quarter. Leavers' accounts are disabled on their last day, like r.mehtashould have been.
Now design the roles yourself. MediSetu Hospital copied every permission from an old "Staff" group. Fix the matrix until all policy tests pass:
Doctors can read charts, write diagnoses and prescribe
Nurses can read charts and record vitals
Nurses cannot prescribe or diagnose
Receptionists can schedule but never see charts
Billing can view and edit bills, but not charts
IT Admins manage accounts and read the audit log, but no patient data
Separation of duties: nobody can both edit billing and manage accounts
Least privilege: no role holds a permission no rule asks for (10 grants total)
Answer the questions
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
+30 XP
TASK 04Federation, SSO and OAuth 2.0›
Single sign-on (SSO) lets you log in once to an identity provider (IdP), such as Microsoft Entra ID, Okta or Google, and then reach many apps without new passwords. Fewer passwords to steal, one place to enforce MFA and to disable leavers. The flip side: the IdP becomes a crown jewel.
Three protocols do the heavy lifting:
SAML 2.0: XML assertions, signed by the IdP, mostly for enterprise web apps.
OAuth 2.0:delegated authorisation. "Let this calendar app read my Google Calendar" without giving it your password. It issues access tokens, not identity.
OpenID Connect (OIDC): an identity layer on top of OAuth 2.0 that adds an ID token, so the app also learns who you are. "Log in with Google" is OIDC.
Step through the recommended flow, authorization code with PKCE:
OAuth 2.0 authorization code flow with PKCE step 1/8
App (client)
Browser
Authorisation server
Resource API
Click "Log in with Google"
The app creates a random code_verifier and sends its hash (code_challenge).
Why so many hops? The browser is an untrusted place. Only a one-time code passes through it; the actual tokens travel on the server-to-server back channel. PKCE (Proof Key for Code Exchange) stops a stolen code from being redeemed by anyone except the app that started the flow. The old implicit flow, which put tokens straight into the URL, is deprecated.
Most access tokens are JWTs (JSON Web Tokens). Decode one, then try to make yourself admin:
Base64url is encoding, not encryption: anyone can read a JWT. Only the signature stops edits.
Token risks to remember: bearer tokens work for whoever holds them (so steal-the-token = steal-the-session); keep lifetimes short, validate iss, aud, exp and the signature, and never accept alg: none. Watch out for consent phishing too: a malicious app asks for broad scopes like Mail.ReadWrite, and the user clicks Accept.
Answer the questions
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
TASK 05Active Directory architecture›
Active Directory Domain Services (AD DS) runs identity for most companies with Windows. Almost every major ransomware incident involves taking it over.
Active Directory: forest, domains, OUs click any object
forest: navbharat.local
The security boundary. Shares one schema and one global catalog. Enterprise Admins rule the whole forest.
Domain controller (DC): a server holding a copy of the AD database (NTDS.dit). It answers logins (Kerberos), directory queries (LDAP, ports 389/636) and replicates changes to the other DCs.
Domain: a group of objects (users, computers, groups) sharing one database and policy, e.g. navbharat.local.
Forest: one or more domains sharing a schema. The forest, not the domain, is the true security boundary.
Trust: a link letting users of one domain access another. Parent and child domains trust each other automatically.
OU (organisational unit): a folder for objects, used to delegate admin rights and to link policy.
GPO (Group Policy Object): settings pushed to every user and computer under an OU: password rules, screen lock, software, scripts. Powerful for admins, and for attackers who control a GPO.
High-value groups: Domain Admins (full control of a domain), Enterprise Admins (the forest), and quieter ones like Backup Operators, which can read every file including NTDS.dit.
One fact surprises beginners: any authenticated domain user can read most of the directory. That's by design (Outlook needs to look people up), but it means one phished intern can map the whole company.
Answer the questions
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
TASK 06Kerberos, and how it breaks›
Kerberos is AD's default authentication protocol. Its big idea: you prove your password once to the KDC (Key Distribution Centre, which runs on every DC) and from then on you carry tickets, so your password never travels to every server you use.
Step through it, then try the two attacks:
Kerberos, live AS-REQ
intern07 workstation
KDC (on DC01)
db01 (SQL service)
AS-REQ
intern07 asks the KDC for a TGT. Pre-auth: a timestamp encrypted with the user's password hash.
Message
Meaning
AS-REQ / AS-REP
Get a TGT (ticket-granting ticket), encrypted with the krbtgt account's key
TGS-REQ / TGS-REP
Swap the TGT for a service ticket to one SPN (service principal name)
AP-REQ
Present the service ticket to the service
How it's attacked:
Kerberoasting: any user can request a service ticket for any SPN. The ticket is encrypted with the service account's password hash, so it can be cracked offline, without lockouts. Windows logs it as event 4769; old RC4 encryption (type 0x17) is a red flag.
Pass-the-ticket: steal a ticket from memory and replay it elsewhere.
Golden ticket: with the krbtgt hash, an attacker can forge TGTs for anyone, with any lifetime. Recovery means resetting krbtgttwice.
DCSync: an account with replication rights asks a DC to "replicate" password hashes, including krbtgt's.
NTLM, the older challenge-response protocol, is weaker still: it enables pass-the-hash and relay attacks, and Microsoft is phasing it out.
Answer the questions
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
TASK 07Lab: enumerate the domain over LDAP›
You now are the attacker on Monday morning: you hold intern07's password and nothing else. This is an isolated lab domain. Let's see how much a normal user can learn.
Lab · Enumerate Active Directory over LDAP 0/5 goals
kali@lab: ~ (lab domain, isolated)
kali@lab:~$ connected to lab domain navbharat.local as intern07 · type 'help'
Enumeration goals
List every user account (people, not computers)
Show who is in Domain Admins
Find Kerberoastable users (user accounts with an SPN)
Find accounts whose password never expires (UAC bit 65536)
Find a password left in a description field
Tip: users are (objectCategory=person). Computers have objectClass=user too!
Hints
All people: ldapsearch "(objectCategory=person)" sAMAccountName
Group members: ldapsearch "(sAMAccountName=Domain Admins)" member
SPNs on users only: combine two conditions with (&(…)(…)).
"Password never expires" is bit 65536 of userAccountControl: (userAccountControl:1.2.840.113556.1.4.803:=65536)
Search descriptions with wildcards: (description=*pwd*)
Tools like BloodHound do exactly this at scale and draw the paths to Domain Admin as a graph. Defenders run the same tools first.
Answer the questions
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
+30 XP
TASK 08Securing identity›
How do you stop a single phished account from becoming domain-wide ransomware? Start with how admins work:
Tier 2Workstations, helpdesk, everyday usersDA hash cached here ☠
A Domain Admin fixed a printer on an intern's laptop. Their credentials stayed in memory, the laptop got phished, and the attacker lifted a Tier 0 credential from Tier 2.
The defender's identity checklist:
Phishing-resistant MFA everywhere, especially VPN, email, admin portals and the IdP itself.
Conditional access: allow sign-in only from managed devices and expected countries; block legacy protocols that can't do MFA.
Tiered administration (Tier 0 / 1 / 2) and PAWs: admin credentials never touch a normal workstation.
LAPS (Local Administrator Password Solution): a unique, rotating local admin password on every machine, so one hash doesn't unlock them all.
Service accounts: use gMSA (group managed service accounts, 120-character auto-rotating passwords), never Domain Admins, AES only.
Monitoring: alert on impossible travel, MFA spam, RC4 ticket requests (4769), replication from non-DCs (4662), changes to privileged groups (4728/4732) and GPO edits (5136).
Lifecycle: disable leavers the same day, review access quarterly, remove stale accounts.
Answer the questions
+10 XP
+10 XP
+10 XP
+10 XP
+10 XP
TASK 09Final mission: rebuild the 48 hours›
NavBharat's DC and proxy logs are in front of you. Label each event with the technique it shows, then choose the five identity controls that would have broken the chain:
Mission · Reconstruct the 48-hour AD compromise label each event
Day 1 09:12 · Proxy
intern07 POSTs username + password + OTP to m1crosoft-loginportal.example
Day 1 09:40 · VPN / 4624
intern07 signs in to the legacy VPN from 185.220.101.33 (no MFA on this VPN)
Day 1 10:05 · DC01 LDAP
2,300 queries from intern07 in 3 minutes incl. (servicePrincipalName=*) and (adminCount=1)
Day 1 10:07 · DC01 4769
Service ticket requested for MSSQLSvc/db01 with encryption type 0x17 (RC4)
Day 1 22:30 · 4624 type 3
svc_sql logs on to DB01, then FS01, then 14 ENG-LT-* laptops in 20 minutes
Day 2 03:14 · DC01 4662
DS-Replication-Get-Changes-All requested by ENG-LT-044, which is not a domain controller
Day 2 03:20 · DC01 4769
Ticket for 'administrator' presented with a 10-year lifetime; no matching AS-REQ was ever logged
Day 2 08:55 · DC01 5136
GPO 'Deploy-Update' edited to run \\fs01\it\payload.exe on every computer at login
Pick the five controls that would have stopped this (0/5 picked)
Notice how each step only worked because of an identity weakness: an MFA method that could be phished, a VPN without MFA, a Domain Admin service account with a crackable password, admin credentials cached on laptops, and no alerting on the loud parts.
Complete the mission for the Gatekeeper badge and the room's XP.