ESPRIT · 4NIDS · Dr. Sarra Berrahal

Access Control & Identity Management

3 Chapters · Diagrams · Full Exams · Extended Quiz · Case Studies

Core Definition

IAM

Framework of policies, technologies, processes & programs to manage digital identities and govern user access.
Core: Right identity → right access → right resource → right time.

Identity — 3 Data Types

  • Identifiers — unique labels: employee ID, username
  • Credentials — proof: password, certificate, SAML assertion, biometric
  • Attributes — descriptive: name, role, department
4 IAM Pillars

1 Identification

Claiming identity. Must be: Unique · Non-descriptive · Secure

2 Authentication

Type I — Knowledge: password, PIN, OTP
Type II — Possession: token, smartcard
Type III — Biometrics: fingerprint, iris
MFA — 2+ DIFFERENT types

3 Authorization

Need-to-Know · Least Privilege · SoD · Implicit Deny · ACL

4 Accountability

Identity + Action + Object + Timestamp. Logs 1 year, no overwrite.

Access Control Types (7)
TypeWhenExamples
PreventiveStops BEFORELocks, firewalls, MFA, IPS
DetectiveDetects AFTERCCTV, IDS, honeypots, audit logs
CorrectiveFixes after incidentAV quarantine, reboot, backup restore
DeterrentDiscouragesGuards, warning signs, mantraps
RecoveryRestores resourcesBackups, clustering, VM shadowing
DirectiveGuides behaviorPosted policies, supervision
CompensatingAlternative when primary unavailableHardware token while waiting for smartcard
Access Control Models
ModelWho decidesKey featureUse case
MACOS/KernelClassification labelsMilitary
DACData ownerOwner sets permissionsFile sharing
RBACRole assignmentPermissions follow rolesHR records
ABACPolicy engineSubject + resource + envCloud context-aware
Formal Security Models

Bell-LaPadula

CONFIDENTIALITY
❌ No Read Up · ❌ No Write Down
✅ Military, HR salary data

Biba

INTEGRITY
❌ No Write Up · ❌ No Read Down
✅ Financial, transaction logs

⚠️ Bell-LaPadula = Confidentiality · Biba = Integrity · Chinese Wall = Conflict of interest
Zero Trust — NIST SP 800-207

3 Principles

  • Verify explicitly — auth on identity, location, device, risk
  • Least privileged access — JIT/JEA, risk-based policies
  • Assume breach — segment, encrypt all traffic, analytics

⚡ Zero Trust — NIST SP 800-207 Access Flow

👤 Subject
User / Device
→
🛡 PEP
Policy Enforcement
⇄
🧠 PDP
Policy Decision
⬆ Lives inside IAM
→
🗄 Resource
App / Data / API
PEP receives request → asks PDP → PDP (in IAM) decides allow/deny → PEP enforces
4 Pillars of Modern IAM

IGA

Identity Governance & Admin — lifecycle, access reviews

AM

Access Management — SSO, MFA, federation

PAM

Privileged Access Mgmt — vault, session monitoring

ADMgmt

Active Directory Management — AD security

Identity Management

ISO/IEC 24760

  • IdP — authenticates users, issues tokens. Ex: Okta, Azure AD
  • SP — provides services, delegates auth. Ex: Gmail, Salesforce
3 Identity Models
ModelHowPro / Con
IsolatedSeparate creds per domainIndependent ✅ / Complex ❌
FederatedShared creds across orgsCross-org SSO ✅ / Trust dep. ❌
CentralizedSingle credential sourceEasy mgmt ✅ / SPOF ❌
Exam Q: "Which approach for international company?" → Centralized
Identity Lifecycle — JML

♻️ JML Identity Lifecycle

🟢 JOINER
• HR "Hired" event
• Auto-provision AD, email
• Birthright Access Matrix
• Day-1 access
🟡 MOVER
• Most complex
• Remove old rights
• Assign new rights
• Enforce SoD
• Revoke orphaned
🔴 LEAVER
• Day 0 — immediate
• Disable ALL accounts
• Clean tokens/API keys
• Retain audit trail
Hire Event
→
Provision
→
Access Reviews
→
Role Change
→
Deprovision
Without lifecycle: orphaned accounts · privilege creep · unauthorized access · compliance failure
SoD Violations
  • Initiate payment + Approve payment → FRAUD RISK
  • Create vendor + Initiate payment → GHOST VENDOR
  • Create users + Assign roles + Disable logs → INSIDER THREAT
Key Technologies
TechPurposeKey detail
PAMSecure privileged accountsPassword vault + session monitoring + least privilege
WAMWeb access gatewayOn-prem only — no cloud/mobile/API
LDAPDirectory serviceX.500/TCP-IP. Stores identities, attributes, groups
PKIDigital certificates (X.509)CAs: Let's Encrypt, DigiCert — enables SSL/TLS
Compliance
RegulationScopeKey IAM requirement
HIPAAHealthcare e-PHIPrivacy + Security + Breach Notification. Fines $2.1M/yr
SOXPublic companiesSoD, audit logs, prove compliance past 90 days
GDPREU citizen dataConsent, right to be forgotten, breach notification
SSO Standards — Master Comparison
StandardTypeTokenUse Case
KerberosAuthNTGT / STInternal network (Windows/AD)
LDAPDirectoryDirectory entriesStore & query identities
SAMLAuthN + AuthZXML AssertionEnterprise web federated SSO
OAuthAuthZ onlyAccess Token (JWT)Third-party API resource access
OpenID ConnectAuthN (on OAuth)ID Token (JWT)"Sign in with Google" — identity
XACMLAuthZ policy lang.XACML policiesFine-grained ABAC policies
⚠️ OAuth = WHAT you access · OIDC = WHO you are · SAML = enterprise web SSO · Kerberos = internal only

📄 SAML SP-Initiated Authentication Flow

👤 User
🏢 SP
Service Provider
🔑 IdP
Identity Provider
1 User → SP: Requests access to protected resource
2 SP → User → IdP: SP detects unauthenticated → redirects with AuthnRequest
3 User → IdP: Authenticates (username + password)
4 IdP: Generates & digitally signs SAML Assertion (XML)
5 IdP → Browser → SP: Sends SAML Response to SP's ACS URL
6 SP: Validates signature → creates session → grants access ✅
Key: AuthnRequest SAML Assertion (XML) Digital Signature (IdP Private Key) ACS URL (SP endpoint)

🎫 Kerberos Authentication Flow

👤 Client
🔐 AS
Auth Server
🎫 TGS
Ticket Granting
🖥 Server
Resource
1
Client → AS: Request TGT (with credentials)
2
AS → Client: TGT + Session Key (encrypted with TGS secret key)
3
Client → TGS: Request Service Ticket + TGT
4
TGS → Client: Service Ticket + Session Key (encrypted with service secret key)
5
Client → Server: Service Request + Service Ticket
6
Server → Client: ✅ Access Granted (no password ever sent in clear)
⚠️ KDC (AS+TGS) = Single Point of Failure — compromised → all secret keys exposed
Kerberos Attacks

🔴 Kerberoasting

Request TGTs for SPN accounts → crack hashes offline. Tools: Mimikatz, Rubeus.

🔴 Golden Ticket

Forge TGT with stolen krbtgt key → admin access to ALL services.

🔴 Silver Ticket

Forge ST from computer account → ONE service, no KDC contact (stealthier).

🔴 Pass-the-Ticket

Replay stolen TGT/ST to impersonate user — no password needed.

FIM vs SSO
AspectSSOFIM
ScopeSingle orgCross-org
TrustCentralizedFederated (mutual agreements)
ProtocolKerberos, LDAPSAML, WS-Federation, OIDC
Use caseInternal appsPartner portals, B2B

40+ questions covering the full course — drawn from real exams 2022, 2023, 2025.

0/0
correct

Select an exam. Click Show All Answers for the full correction.

Topics that always appear on every exam — know these cold.

🔥 MCQ Guaranteed Topics

Preventive vs Detective vs Corrective — Firewall = preventive. IDS/CCTV = detective. Revoking access = corrective. Forensics = detective.
Bell-LaPadula vs Biba — BLP = confidentiality (no read up / no write down). Biba = integrity (no write up / no read down).
MAC vs DAC vs RBAC — MAC = OS enforces labels. DAC = owner decides. RBAC = permissions follow roles.
Identity vs Credential vs Attribute — Identifier = unique label. Credential = proof (password, token). Attribute = description (role, dept).
Subject vs Object — Subject = active (user, process). Object = passive (file, DB).
IdP vs SP — IdP authenticates (Okta, Azure AD). SP provides services (Gmail, Salesforce).
MFA rule — Must use 2+ DIFFERENT factor types. Two passwords = NOT MFA.
Administrative control — Policies, training, procedures. Not firewalls (those are technical).

🔥 Case Study Guaranteed Questions

IAM approach for international company? → Centralized. Eliminates silos, uniform control, audit trail.
Kerberos flow (TGT/TGS 6 steps) — Always appears. Know: AS → TGT, TGS → ST, ST → server.
Compare SSO standards table — LDAP / Kerberos / SAML / XACML / OIDC / OAuth. Know type + token + use case.
JML lifecycle (Joiner/Mover/Leaver) — Know what triggers each. Mover = most complex. Leaver = Day 0.
After a promotion → Mover process — Remove old permissions + assign new + SoD check. Risk: privilege escalation.
Bell-LaPadula for HR files? → Yes — confidentiality model protects salaries & personal records.
Biba for financial systems? → Yes — integrity model prevents tampering of transaction data.
RBAC scenario for HR team — Assistant (read-only), Manager (full access), Director (all + audit logs).
Golden Ticket attack — Forge TGT using krbtgt hash → admin access to ALL. Requires DC compromise.
SAML vs Kerberos — Kerberos = internal network. SAML = external web/SaaS SSO.

🔥 Definitions to Know Word-for-Word

IAM — Framework of policies, technologies, processes & programs to manage digital identities and govern user access.
Orphaned account — Active account with no legitimate owner. Result of delayed deprovisioning.
Privilege creep — Accumulation of access rights across role changes without revoking old ones.
SoD (Separation of Duties) — Sensitive tasks split across 2+ people to prevent fraud and insider threats.
Implicit Deny — Access denied unless explicitly granted. Default = deny.
Least Privilege — Minimum rights + permissions needed to perform the job. Includes action rights, not just data access.
KDC — Key Distribution Center = AS + TGS. Single Point of Failure in Kerberos.
SSI (Self-Sovereign Identity) — Individual controls own identity data with no central authority (blockchain/decentralized).
Quick Reference — Access Control Types
ScenarioType
Firewall blocks unauthorized trafficPreventive
IDS alerts on suspicious loginDetective
Forensic analysis after breachDetective
Antivirus removes virusCorrective
Revoking access after intrusion detectedCorrective
Security guard at doorDeterrent / Preventive
Backup restore after ransomwareRecovery
Security awareness trainingDirective (Administrative)
Hardware token while waiting for smartcardCompensating
CCTV recording server roomDetective

5 full case studies. Tap any question to reveal the model answer.