Unit 8 (1/2): Identity and Access Management (IAM)
Core Identity and Access Management Concepts and Terminology
Identity and Access Management (IAM):
Encompasses the business processes, security policies, and technologies that manage digital identities and control resource access across their entire operational lifecycle.
Controls who can utilize organizational resources, the precise mechanisms used to verify identities, the specific actions permitted on systems, and how system activity is captured and audited.
Directly reduces the risk of unauthorized access, privilege escalation, data breaches, and non-compliance with security standards.
Core Technical Definitions:
Identity: The digital representation of a specific person, physical hardware device, or software application service within an information system.
Subject: The active entity requesting access to a resource. A subject can be a human operator, a client workstation, a background process, or a software application.
Object: The passive system resource or entity being accessed. Examples include files, database tables, directory records, storage volumes, physical servers, or network segments.
Account: A formal system record linking an identity to its authentication credentials, contextual profile attributes, and assigned authorization permissions.
Credential: Specific data or evidence provided by a subject to prove identity during the authentication phase (e.g., a shared password, cryptographic token, or mathematical proof of possession of a private key).
Permission: A discrete, allowed action that can be performed on a specific resource (e.g., read, write, modify, delete, or execute).
Privilege: A system-level capability or security right assigned to an account, often granting administrative or broad operational control over underlying platforms and resources.
The Access Control Sequence and the AAA Framework
The Four-Stage Access Sequence:
Identification:
Focus question: Who do you claim to be?
Concrete execution: The subject asserts an identity to the system, typically by submitting a username, account ID, or network address.
Core limitation: A valid username establishes which account is being referenced but provides zero proof that the requester actually owns or is authorized to use that account.
Authentication:
Focus question: Can you prove that claim?
Concrete execution: The system verifies the identity claim by evaluating presented credentials (e.g., validating a submitted password against a stored cryptographic hash or confirming an asymmetric challenge-response via a hardware key).
System implication: Successful authentication establishes identity confidence but does not grant access to resources automatically.
Authorization:
Focus question: What may you do?
Concrete execution: The system evaluates permissions, organizational roles, security labels, or contextual attributes to decide whether to allow the requested operation (e.g., granting read access to course syllabi while blocking write access to the official gradebook).
Accounting:
Focus question: What did you do?
Concrete execution: The system records actions, access requests, parameter modifications, and security events in an audit log (e.g., logging an attempted, unauthorized access to a protected gradebook table with a precise timestamp and subject ID).
The AAA Model Structure:
Represents the three sequential security pillars: Authentication, Authorization, and Accounting.
Identification is the preliminary prerequisite step that invariably precedes the AAA workflow.
An authentic identity is completely distinct from an authorized identity: a user may hold valid credentials to sign into an enterprise platform but be denied permission to read sensitive payroll records.
Real-World and Course Management Parallels:
Physical Driver's License Analogy: A physical driver's license performs two distinct functions: it provides identity evidence (identification and authentication via photo and physical card) and indicates a driving entitlement (authorization). A computing system evaluates each function independently.
HuskyCT Platform Roles: Enrolled accounts have different roles; a student account and an instructor account possess distinct authorizations. Only an administrator account with elevated system privileges can reassign or alter these roles. Holding the title of professor in real life does not automatically confer technical administrative privileges in the software system.
Accounting in Academic Systems: Digital audit logs record logins, resource access attempts, time stamps, and submission actions. If an exam is interrupted, logs can confirm when the account accessed the system and submitted data, though logs alone cannot verify physical environmental conditions (e.g., Wi-Fi stability) or prove who physically operated the keyboard.
Authentication Factor Categories and Smart Card Architecture
Core Concept of Authentication Factors:
Authentication relies on corroborating evidence tied to a claimed identity.
Multi-Factor Authentication (MFA) strictly requires the simultaneous presentation of credentials drawn from two or more completely different factor categories.
Adding multiple sequential verification steps does not constitute MFA if all steps draw from the same category.
The Three Primary Authentication Categories:
Knowledge Factor (Something You Know):
Defined as information that a subject can recall, memorize, or reproduce.
Examples: Alphanumeric passwords, numeric PINs, pattern swipe paths, and answers to secret security questions.
Constraint: Combining two knowledge elements (such as a password and a mother's maiden name) represents Single-Factor Authentication (SFA) with multiple steps, not MFA.
Possession Factor (Something You Have):
Defined as a physical or cryptographic asset held by the subject.
Examples: Hardware tokens (e.g., TOTP fobs), cryptographic smart cards, physical security keys (e.g., FIDO2/U2F devices).
Constraint: The subject must actively demonstrate cryptographic or physical possession. Merely knowing a device serial number or software identifier is a knowledge element, not possession.
Biometric Factor (Something You Are / Something You Do):
Something You Are: Inherent physical and biological traits, such as fingerprints, facial features, retinal blood vessel layouts, and iris patterns.
Something You Do: Dynamic behavioral patterns, including typing cadence (keystroke dynamics) and signature pressure dynamics.
Classification rule: Both physical traits and behavioral characteristics fall under the overarching biometric factor classification.
Contextual Restrictions vs. Factors:
Attributes such as client IP geolocation or allowable login time windows can enforce contextual access restrictions.
Location and time parameters serve as authorization boundaries and contextual risk signals, but they do not substitute for the three core authentication factor categories.
Authentication Factor Combination Classifications:
Password + PIN: Not MFA. Both components are knowledge factors.
Password + Security-Question Answer: Not MFA. Both components are knowledge factors.
Smart Card + PIN: MFA. Combines a possession factor (cryptographic card) with a knowledge factor (PIN).
Two Different Fingerprints: Not MFA. Both inputs are biometric factors.
Hardware Authenticator Activated via Fingerprint: MFA. Combines possession of the cryptographic hardware key with a biometric activation factor.
Cryptographic Smart Card Architecture:
A cryptographic smart card houses a tamper-resistant microcontroller that securely stores a digital certificate and shields the corresponding private key from direct extraction.
The digital certificate binds the subject's identity data to their public key, signed by a trusted Certificate Authority (CA).
Authentication Mechanism: The host system challenges the card. The card uses its internal private key to sign the challenge, proving possession of the private key without ever transmitting the private key over the bus or network.
Component Separation:
Digital Certificate: Publicly verifiable file binding the user identity to the public key.
Private Key: Secret cryptographic asset kept secure inside the card's tamper-resistant hardware.
Card Reader: Physical hardware interface that supplies power and establishes data communication between the smart card and the host operating system.
PIN: Knowledge secret used locally to unlock the smart card microcontroller so it will execute cryptographic operations.
Domain Integration: In enterprise environments (such as Windows Server using Kerberos), smart card logons verify the certificate and private-key signature to issue initial Kerberos tickets.
Door Badges vs. Smart Cards: A passive RFID or proximity badge that simply broadcasts a static facility code or identifier does not perform cryptographic challenge-response authentication and is not equivalent to a cryptographic smart card.
Biometric Modalities, Error Metrics, and Decision Thresholds
Operational Principle of Biometrics:
Biometric systems compare newly presented physical or behavioral samples against a mathematical reference template created during enrollment.
Authentication decisions are probabilistic assessments of statistical similarity, never absolute mathematical proof that impersonation is impossible.
Biometric Technologies and Distinctions:
Fingerprint Recognition: Analyzes papillary ridge flows, core locations, deltas, and minutiae points (bifurcations and ridge endings). Susceptible to cuts, calluses, dirt, and low-quality capture sensors.
Facial Recognition: Measures geometric and structural facial features (e.g., distance between eyes, nose width, jawline contours). Highly dependent on ambient lighting, camera resolution, angle of presentation, and anti-spoofing liveness detection.
Retinal Scanning: Analyzes the complex neural blood vessel patterns situated at the back of the human eye. Requires close proximity to an infrared scanning sensor; difficult to spoof but highly invasive.
Iris Scanning: Analyzes the unique, intricate, pigmented muscular ring surrounding the pupil of the eye. Can be captured from a moderate distance. Critical distinction: The iris (colored exterior ring) and retina (internal blood vessel lining) are entirely different anatomical structures with non-interchangeable sensing methods.
Behavioral Biometrics: Measures dynamic patterns of human action (e.g., typing rhythm, touch screen stroke dynamics, signature velocity/pressure). Tracks continuous behavioral changes rather than fixed anatomical structures.
Biometric Operational Terminology:
Enrollment: The initial process of capturing raw biometric samples from a subject, extracting mathematical features, and saving them as a reference template for future comparison.
Verification: A one-to-one () comparison matching a newly captured biometric sample specifically against the enrolled reference template of a single claimed identity.
Identification: A one-to-many () search where a submitted biometric sample is compared across an entire database of enrolled templates to locate a matching identity without an initial claim.
Error Metrics and Tradeoffs:
False Acceptance: The erroneous scenario where an unauthorized, illegitimate individual is mistakenly verified as a valid subject.
False Rejection: The erroneous scenario where an authorized, legitimate individual is mistakenly rejected by the system.
Threshold Adjustments: Biometric matching occurs relative to a configurable numeric similarity score:
Setting a stricter (higher) matching threshold reduces false acceptance errors but simultaneously increases false rejection rates.
Setting a more lenient (lower) matching threshold lowers false rejections but elevates the rate of false acceptances.
Benefits, Vulnerabilities, and Fallback Risks:
Advantages: Biometrics provide high operational convenience and cannot be easily shared, handed off, or misplaced like physical fobs.
Vulnerabilities: Biometric traits cannot be reset if compromised; unlike a password, a compromised fingerprint or iris pattern is permanently compromised for life. Systems must employ presentation attack detection (PAD) / liveness detection to defeat synthetic replicas.
Fallback Flaws: Systems must provide fallback paths when a legitimate user is falsely rejected. If a biometric failure falls back to a weakly defended recovery channel (such as low-entropy security questions), the weak secondary path completely negates the primary biometric security.
Identity Lifecycle Management and Personnel Controls
The Joiner, Mover, and Leaver (JML) Identity Lifecycle:
Recruitment Stage:
Complete background checks tailored to the security tier of the job position.
Formalize contractual employment terms and establish operational responsibilities.
Constraint: Background checks vet human character but do not substitute for technical access boundaries.
Onboarding Stage (Joiner):
Formally provision approved user accounts across business systems based on operational role.
Issue baseline authentication credentials and allocate managed hardware assets.
Require security policy reviews, mandatory user training, and non-disclosure agreements (NDAs).
Failure Mode: Rapid onboarding by "cloning" an existing employee's account privileges frequently inherits unnecessary, unauthorized access rights.
Mover Stage:
Conduct security reviews whenever an employee transitions across departments, teams, or titles.
Explicitly revoke obsolete permissions tied to former duties before provisioning new access rights.
Failure Mode (Privilege Creep): The cumulative accumulation of permissions over time when staff receive new privileges for their new jobs without surrendering access from past roles.
Offboarding Stage (Leaver):
Promptly disable user accounts and administrative privileges across corporate directories and software.
Invalidate active session tokens, rotate shared secrets, and revoke cryptographic keys and certificates.
Collect corporate-owned laptops, hardware tokens, and physical access badges while returning personal items.
Securely archive and retain necessary business documents and audit trails for compliance.
Failure Mode: Disabling an account in the primary directory (e.g., Active Directory) while overlooking external software-as-a-service (SaaS) accounts, SSH authorized keys, or cloud access tokens.
Personnel Policies for Privilege and Operational Management:
Principle of Least Privilege: A subject must be granted only the absolute minimum permissions strictly necessary to perform assigned work tasks (e.g., a store cashier can process register sales but cannot view or alter payroll records).
Need to Know: Limits access to confidential data only to subjects who require it to carry out an active, approved business task, even if their broad role clearance would technically permit it (e.g., a caseworker can only review files for individuals directly assigned to their caseload).
Separation of Duties (SoD):
Dividing critical, high-risk operational steps across distinct individuals so that no single person possesses end-to-end control to perpetrate and conceal fraud.
Example: The staff member who adds a new vendor account into the financial system cannot be the same staff member authorized to approve payment disbursements to that vendor.
Shared Authority (Dual Authorization):
Mandates that two or more authorized individuals must independently approve or authenticate a sensitive, high-impact transaction before execution.
Example: Two authorized corporate officers must independently sign off before the system releases a wire transfer exceeding a defined financial threshold.
Standard Operating Procedures (SOP): Formal, documented protocols that mandate exact procedural steps for recurring operational tasks (e.g., a uniform, step-by-step technical offboarding checklist).
Job Rotation: Systematically rotating employees between distinct job assignments on a periodic basis. Promotes cross-training and increases the likelihood that irregularities or fraudulent actions hidden by a predecessor will be discovered by the incoming employee.
Mandatory Vacation: Policies requiring personnel in sensitive operational positions to take a continuous block of time away from work, during which their duties are completely assumed by others. Prevents continuous operational cover-ups of concealed malfeasance.
Detection Limits: Job rotation and mandatory vacations provide strong deterrent and detective controls, but they do not provide an absolute mathematical guarantee of detecting fraud.
Non-Disclosure Agreements (NDAs): Legal contracts establishing confidentiality boundaries and legal recourse regarding non-public information. NDAs define legal duty, not technical access barriers.
Account Archetypes and Credential Security Controls
Account Categories and Governing Controls:
Standard User Account: Used by regular human staff for daily business operations. Operates strictly under least privilege with standard, non-elevated user rights.
Guest Account: Temporary accounts intended for short-term visitors. Must have highly constrained permissions, short life spans, strict monitoring, and be disabled when not in use.
Administrator / Root / Superuser Account: Highly privileged identities possessing system-level capabilities, such as operating system configuration, policy definitions, and identity administration.
Must utilize uniquely named accounts for each administrator to maintain accountability.
Interactive daily tasks (browsing, email) must occur under standard accounts; administrative elevation should only be used when explicitly required.
Service Account: Used by background software services, operating system daemons, and automated tools to access system components.
Must be restricted to task-specific permissions, have non-interactive login shells configured (e.g.,
/sbin/nologin), and use strong, frequently rotated secrets.Shared Account: A single account used by multiple human operators.
Security Risk: Severely impairs individual accountability, as system audit logs cannot tie specific actions back to a single human.
Remediation: Avoid shared accounts entirely. If operationally unavoidable, manage access through a checked-out credential vault with fine-grained checkout logging.
Generic Account: An account named after a generalized function or role rather than an individual (e.g.,
info,reception,warehouse1). Must have a formally assigned owner and strictly restricted access.Device Account: Dedicated identities provisioned to identify network hardware, IoT equipment, or physical endpoints. Insecure factory default credentials must be replaced immediately upon deployment.
Credential and Group Security Management:
Privileged Account Governance and Group Nesting:
Administrative rights are frequently inherited via group memberships (e.g., Domain Admins). Security reviews must analyze recursive group nesting, rather than just inspect direct user assignments.
Keep day-to-day administrative accounts separate from standard user accounts, using temporary privilege elevation mechanisms.
Central Credential Rotation:
Managing credentials centrally limits unmanaged credential proliferation.
When updating credentials utilized by background services, all dependent systems and configuration pipelines must be coordinated to avoid service outages.
SSH Key Management:
Secure Shell (SSH) provides encrypted administrative channels using asymmetric key pairs.
The server stores the client's public key in an
authorized_keysfile; the client authenticates by proving mathematical possession of the corresponding private key.Private keys must remain encrypted at rest and must never leave the possession of the keyholder. Terminated employees must have their public keys removed immediately from all server
authorized_keysstores.Connecting clients must also verify the server's public host key to prevent Man-in-the-Middle (MitM) attacks.
Third-Party Credentials and Delegated API Keys:
Includes external vendor user accounts, programmatic API keys, and delegated OAuth tokens.
Must have assigned internal owners, explicit operational scopes, automated expiration dates, and immediate revocation upon contract completion.
Credentials and API secrets must never be committed to publicly accessible repositories, web pages, or unencrypted code files.
Account Attributes, Policy Restrictions, and Lockout Controls
Identity Attributes and Contextual Conditions:
Account Attributes: Metadata properties directly tied to an account record (e.g., username, employment status, department name, assigned security groups).
Extended Profile Attributes: Organizational metadata tracking external identity context (e.g., cost center, direct manager, employment classification such as full-time or contractor).
Access Policies: Deterministic rules that evaluate identity attributes against environmental factors to permit or deny system access (e.g., allowing payroll access only to active finance staff operating managed devices).
Attribute Hygiene: Account attributes must be maintained continuously; stale metadata (such as an incorrect department designation) leads directly to erroneous access decisions in attribute-based access control.
Access Restriction Mechanisms:
Network Restrictions: Limits access requests based on source network parameters, requiring connections to originate from corporate IP ranges or secured VPN concentrators.
Geolocation Restrictions: Uses IP-to-location mapping or GPS telemetry to restrict access requests originating from unauthorized countries or regions. Geolocation provides contextual defense-in-depth, not ironclad identity proof.
Time Restrictions: Enforces temporal boundaries by confining account usability to specific hours or shifts (e.g., an external contractor account permitted to authenticate only between 08:00 and 17:00 on weekdays).
Password Policy Parameters and Inherent Limits:
Minimum Length: Dictates the minimum number of characters required. Length provides a significant mathematical defense against brute-force attacks, though long, predictable strings can remain vulnerable.
Complexity Rules: Mandates the inclusion of multiple character sets (e.g., uppercase letters, lowercase letters, numbers, special symbols). Meeting complexity rules does not guarantee high entropy if the base words are easily guessed.
Password Aging (Expiration):
Mandates that passwords be changed after a fixed duration (e.g., every or days).
Forced frequent rotation often leads users to adopt predictable increment patterns (e.g.,
Spring2026!toSummer2026!), creating operational friction without necessarily improving security.Password Hints: Free-text reminders intended to assist users with password recall. Hints frequently expose private information to attackers, effectively subverting password complexity.
Account Lockout vs. Account Disablement:
Account Lockout:
An automated security state triggered when an account exceeds a threshold of sequential failed authentication attempts (e.g., five bad passwords within ten minutes).
Temporarily prevents further authentication attempts until an administrative unlock occurs or an automated lockout duration timer expires.
Tradeoff: Slows online automated password-guessing attacks, but exposes systems to Denial-of-Service (DoS) attacks if an adversary deliberately triggers lockouts across legitimate employee accounts.
Account Disablement:
A persistent administrative status change that deliberately prevents an account from authenticating or receiving access tokens under any circumstance.
Applied during employee terminations, extended leaves of absence, or active security incident investigations.
Operational Distinction: Unlocking an account, resetting an account password, and enabling a disabled account are separate operational tasks that alter different attributes of an account record.
Authorization Models, Group Memberships, and Effective Access
The Five Primary Authorization Models:
Discretionary Access Control (DAC):
Deciding Basis: The individual user who owns a resource has full discretion to grant, modify, or revoke permissions to other subjects.
Example: An employee authors a text file and grants read and write access to a colleague.
Role-Based Access Control (RBAC):
Deciding Basis: Access permissions are linked directly to formal organizational roles, and users are assigned to those roles based on job responsibilities.
Example: Any user assigned the
Help Desk Specialistrole automatically receives permission to execute user password resets.Mandatory Access Control (MAC):
Deciding Basis: Enforced by an operating system or central kernel based on fixed security clearances assigned to subjects and classification labels attached to objects.
Example: A subject with a
Secretclearance is blocked from accessing a file labeledTop Secretby mandatory system-level policy rules.Attribute-Based Access Control (ABAC):
Deciding Basis: Evaluates dynamic policies using multiple attributes from the subject (e.g., department, title), object (e.g., classification level, data owner), requested action (e.g., read, delete), and environmental context (e.g., time, location, device compliance state).
Example: Permitting human resources staff using corporate-managed laptops to view employee performance reviews only during regular business hours from the corporate network.
Rule-Based Access Control:
Deciding Basis: The system evaluates deterministic, globally applied technical rules configured by an administrator, independent of specific user identity or role.
Example: A network firewall or router rule that drops all inbound traffic originating from outside a defined subnet range.
Model Nuances and Vocabulary Overlaps:
RBAC vs. Rule-Based: RBAC refers specifically to Role-Based Access Control. Rule-based refers to procedural system rules. They are entirely different authorization models.
Model Intersection: Authorization implementations often combine models; for instance, rule-based logic is frequently incorporated within complex ABAC and MAC rule engines.
User vs. Group Permissions and Group Nesting:
Direct (User-Assigned) Privileges: Permissions bound directly to an individual user's account object. They increase administrative overhead and make broad permission tracking difficult.
Group-Based Privileges: Permissions assigned to a collective group container; any member added to the group automatically inherits its associated permissions.
Groups vs. Roles: A group is a static collection of user accounts. A role represents a defined operational function paired with specific permissions. While groups are frequently used to implement roles, simply creating groups does not mean an enterprise has successfully implemented a proper RBAC model.
Group Nesting and Stale Access: Placing groups inside other groups creates complex inheritance chains. When auditing access, administrators must trace the user's effective access across direct grants, nested group memberships, and inherited directory rights.
Privilege Elevation and Permission Auditing:
Privilege Escalation:
Approved Elevation: A authorized, temporary increase in administrative capabilities through a monitored mechanism (e.g., executing
sudoor utilizing a Privileged Access Management check-out tool).Unauthorized Privilege Escalation: An attacker or rogue user exploits a bug, misconfiguration, or architectural flaw to bypass security boundaries and gain unauthorized elevated rights.
Permission Auditing: In scenarios where a user's direct permission grant on a resource is removed but they can still access it, administrators must audit group memberships, role assignments, and inherited file permissions to find the root source of their effective access.
Filesystem Permissions, Access Control Lists, and Directory Services
Linux File and Directory Permissions:
Permissions are split into three subject classes: Owner (User), Group, and Others (World).
Numeric (Octal) Base Values:
Read () =
Write () =
Execute () =
No permission () =
Functional Permission Meanings:
On a Regular File:
Read (): Allows opening and viewing the file's data contents.
Write (): Allows altering, editing, or overwriting the file's data contents.
Execute (): Allows executing the file as an application binary or script.
On a Directory:
Read (): Allows viewing and listing the names of files inside the directory.
Write (): Allows creating, moving, or deleting files within the directory (typically requires execute permission to function).
Execute (): Allows traversing (entering) the directory and accessing metadata/contents of files within it.
Octal Permission Calculations:
Values sum across each permission triplet:
Command Interpretations:
chmod 640 report.txt: Sets permissions to Owner = (), Group = (), Others = (). The owner can read and write; group members can only read; all other users have no access.chmod 750 tool.sh: Sets permissions to Owner = (), Group = (), Others = (). The owner has full read, write, and execute; group members can read and execute; all others have no access.chmod u+x tool.sh: Modifies the user (owner) bits by adding execute permissions without altering existing read, write, or group permissions.chown: System utility used to change the user owner or group owner of a file or directory, distinct fromchmodwhich alters permission mode bits.Textbook Correction Note: Course materials correct an error in Chapter 7 of Tolboom's text, which erroneously swapped the numeric values for read and execute and provided a flawed octal example. The correct baseline values are strictly , , and . Therefore, assigning owner read-write-execute, group read-only, and others none evaluates mathematically to , not .
Access Control Lists (ACLs):
Filesystem ACLs: Extend standard POSIX permissions () by allowing granular read, write, and execute access assignments for specific named individual users or additional named groups.
Network ACLs: Packet-filtering rule sets implemented on routers, firewalls, and cloud subnets to allow or drop network traffic based on parameters such as source/destination IP addresses, port numbers, and protocols.
Architectural note: The presence of an ACL is a technical implementation mechanism; it does not in itself define which overarching authorization model (e.g., DAC vs. RBAC) is being enforced.
Directory Services and Protocols:
Active Directory (AD): A centralized directory service developed by Microsoft that stores, organizes, and manages domain objects, including user accounts, computer endpoints, security groups, and Group Policy configurations.
Domain Controller (DC): A physical or virtual server running Active Directory Domain Services that actively hosts directory partition data, responds to authentication requests, and enforces domain security policies.
Lightweight Directory Access Protocol (LDAP): An open industry-standard application protocol used to query, search, and modify identity records, organizational attributes, and group memberships stored within a directory service.
Kerberos: A trusted third-party cryptographic network authentication protocol that utilizes time-stamped tickets to verify identities without sending passwords across the network.
Protocol Distinction: An application searching for a user's department metadata submits an LDAP query; authenticating that user for access to an enterprise file share uses Kerberos.
Single Sign-On, Federation, and Modern Identity Protocols
Core Architectures: SSO vs. Federation:
Single Sign-On (SSO): An authentication workflow that allows an authenticated subject to log in once with a single set of credentials and access multiple distinct applications or services within the same security domain without re-entering credentials.
Identity Federation: The structural establishment of cross-domain trust agreements and technical protocols between distinct administrative organizations or disparate security domains, allowing identity assertions to be shared.
Distinction: Federation enables cross-boundary SSO across separate legal or operational entities, but SSO can also exist entirely within an isolated single domain.
Federation Terminology:
Identity Provider (IdP): The authoritative entity that holds identity accounts, handles user authentication, and issues cryptographically signed assertions or tokens confirming who the user is.
Service Provider (SP) / Relying Party (RP): The target business application or service that provides operational resources to the user, relying entirely on the IdP's authentication assertions.
Assertion: A structured data document issued by an IdP that presents factual security statements about a subject, such as proof of successful authentication, authentication timestamp, and identity attributes.
Attestation: A formal, cryptographically validated confirmation issued by a trusted entity confirming that a technical state, credential claim, or operational boundary is accurate.
Token: A compact data representation containing authorization rights, user identity, or cryptographic claims. Its operational function depends on its specific protocol type.
Security Assertion Markup Language (SAML):
An open standard based on the eXtensible Markup Language (XML) designed to exchange authentication and authorization data between an IdP and an SP.
Operational SAML Flow:
The client requests access to a protected resource hosted on the Service Provider.
The Service Provider redirects the client browser to the Identity Provider.
The client authenticates against the IdP using their credentials.
The IdP generates an XML-formatted, cryptographically signed SAML response containing authentication assertions and forwards it back to the client browser.
The client submits the SAML assertion to the SP.
The SP verifies the cryptographic digital signature of the IdP, checks time validity parameters, confirms audience restrictions, and grants session access.
Core Security Reality: The Service Provider receives a digitally signed SAML assertion; it never receives the user's actual password. The SP must validate the signing certificate, issuing authority, and time bounds.
OAuth 2.0 and OpenID Connect (OIDC):
OAuth 2.0 (Delegated Authorization):
An authorization framework that allows a third-party software client to obtain limited, delegated access to user-owned resources on an API without knowing the user's password.
Scope: A parameter that defines and constrains the specific access permissions granted to the client application (e.g., read-only access to calendar data).
Access Token: A credential token issued by the authorization server to the client application, which then presents it to resource servers to retrieve protected user data.
OpenID Connect / OIDC (Identity Authentication):
An identity verification layer built directly on top of the OAuth 2.0 protocol framework.
While OAuth 2.0 delegates authorization, OIDC provides authentication.
ID Token: A signed JSON Web Token (JWT) issued by the IdP containing structured identity assertions (e.g., user identifier, email, authentication time) that informs the application who signed in.
Token Ambiguity: An OAuth authorization token is an application-level credential; it is completely distinct from a physical MFA hardware token or credit-card payment tokenization.
Kerberos Architecture, Web Sessions, and Privileged Access Management
Kerberos Authentication Architecture:
A symmetric-key cryptographic network protocol operating on the premise of a trusted central third-party authority, allowing clients and servers to authenticate mutually without transmitting plaintext passwords.
Key Components:
Key Distribution Center (KDC): The central trusted authentication authority, typically housed on a Domain Controller. Composed of the Authentication Service (AS) and the Ticket-Granting Service (TGS).
Authentication Service (AS): The initial KDC component that verifies client identity and issues the initial Ticket-Granting Ticket.
Ticket-Granting Ticket (TGT): A time-limited, encrypted ticket issued by the AS that the client uses to prove their authenticated state when requesting future service tickets.
Ticket-Granting Service (TGS): The KDC component that evaluates presented valid TGTs and issues specific Service Tickets.
Service Ticket: An encrypted ticket issued by the TGS that a client presents directly to a target application service to gain access.
Service Principal Name (SPN): A unique, standardized string identifier assigned to a specific instance of a service running on a host.
Step-by-Step Kerberos Flow:
The client sends an authentication request to the AS.
The AS validates identity and returns an encrypted TGT along with an encrypted session key.
When the client requires access to an application, it presents the TGT and an authenticator to the TGS.
The TGS verifies the TGT and generates a Service Ticket specific to the target SPN.
The client transmits the Service Ticket to the target server hosting the service.
The target server decrypts the Service Ticket, establishes client authenticity, and evaluates access permissions.
Time Synchronization Requirement: Kerberos relies strictly on shared time stamps within tickets to defeat replay attacks. If system clocks between endpoints drift beyond an allowable threshold (typically five minutes), ticket validation fails and authentication ceases.
Golden Ticket Attack: An attack where an adversary compromises the long-term domain ticket-signing cryptographic secret (
KRBTGTkey). With this key, the adversary can forge valid Kerberos TGTs with arbitrary user identities, spoofing any domain privilege and bypassing standard authentication paths.
Web Application Sessions and Cookie Mechanics:
Upon successful web authentication, an application generates a session identifier stored within an HTTP cookie in the user's browser.
Session Hijacking: If an adversary steals an active session cookie (via cross-site scripting, network eavesdropping, or malware), they can present it to impersonate the victim, bypassing MFA and password prompts.
Cookie Defenses: Enforce short session expirations, deploy the
Secureflag (HTTPS only) andHttpOnlyflag (blocking script access), and invalidate server-side sessions immediately upon user logout.Credential Modification vs. Sessions: Changing an account password does not automatically destroy existing web application sessions unless the platform actively invalidates all active session tokens.
Privileged Access Governance: IAM vs. PAM vs. PIM:
Identity and Access Management (IAM): The overarching framework responsible for the complete lifecycle management of all organizational identities, groups, and permissions.
Privileged Access Management (PAM):
Specialized controls focused on protecting, vaulting, and monitoring accounts with high-level administrative or root privileges.
Features automated credential vaulting, rotation of root/admin passwords, privileged session recording, and credential isolation.
Privileged Identity Management (PIM):
Governance framework regulating the activation and eligibility of elevated roles.
Leverages Just-In-Time (JIT) access: an administrative account remains an unprivileged identity until an operational task requires elevated rights, at which point the user requests temporary, time-bound role activation subject to approval workflows.
Acronym Collision Note: Linux PAM stands for Pluggable Authentication Modules, a modular operating system framework for integrating authentication backends. It is unrelated to enterprise Privileged Access Management.
Security Auditing, Governance Policies, and Behavioral Training
The Structure of Security Auditing:
Accounting captures raw event telemetry; auditing systematically evaluates those records against baseline policies and regulatory standards.
Valid audit logging requires unique individual attribution, synchronized and tamper-proof timestamps, write-once storage protection, and regular log review.
Audit Classifications:
Account Audit: Evaluates account validity across directories to detect orphan accounts, missing account owners, or active accounts belonging to departed personnel.
Permission Audit: Reviews access control lists and role assignments to detect over-permissioned accounts, inappropriate administrator rights, and privilege creep.
Usage Audit: Examines operational system activity logs, analyzing logon frequency, executed processes, administrative changes, and outbound connections.
Access Recertification: A periodic compliance review requiring business managers and resource owners to formally re-approve or revoke permissions and group memberships for assigned personnel.
Log Event Context: A single failed login or access denial is not definitive proof of a cyberattack; it frequently stems from typos, forgotten passwords, or expired service credentials. Auditors evaluate log patterns and anomalies.
Event Categories:
Account-Management Events: Creating, modifying, disabling, deleting accounts, resetting passwords, and altering group memberships.
System-Integrity Events: Modifications to system clocks, audit configurations, host firewalls, and security policies.
Personnel Security and Conduct Policies:
Acceptable Use Policy (AUP): Explicitly defines what actions, software, and operational behaviors are authorized or prohibited when using corporate hardware, networks, and communication systems.
Rules of Behavior: Formal documentation detailing expected professional conduct and individual responsibilities when handling systems and institutional data.
Social Media Policy: Regulates external public communications to prevent disclosure of proprietary technical details, avoid organizational impersonation, and mitigate operational exposure.
Clean Desk and Screen-Lock Policies: Mandates that physical workspaces remain free from sensitive paper documents, physical tokens, and written passwords. Complemented by technical screen-lock policies that lock displays after idle timeouts.
Security Awareness, Roles, and Gamification:
General User Awareness: Training all employees on general threat recognition, secure credential management, basic phishing identification, and immediate incident reporting.
Role-Based Training: Tailored security instruction focused on the unique operational exposures of specific jobs:
Help Desk: Strict identity verification protocols before executing password resets.
Software Engineers: Secure coding, preventing hardcoded credentials, and secret management.
Systems Administrators: Secure privileged account handling and separation of administrative duties.
Finance / Payroll Personnel: Detecting business email compromise (BEC) and unauthorized vendor payment alterations.
Simulations and Gamification:
Periodic phishing simulations expose users to realistic social engineering tactics in a safe environment.
Gamified training leverages competitive scoring, badges, and recognition to promote sustained user engagement.
Evaluation Metric: Security training effectiveness is measured by observed behavioral improvements (e.g., rapid reporting of phishing emails) rather than raw module completion statistics.
Applied Scenarios and Review Case Studies
Scenario 1: Authenticated User Denied Document Edit:
Description: A user successfully logs into an enterprise platform but receives an error when attempting to alter another user's file.
Analysis: Identification and authentication were successful. Authorization evaluated the user's role/permissions and denied the action. Accounting should capture the attempted modification in an audit log.
Scenario 2: Password and Security Question at Login:
Description: An online portal asks a user to enter their account password followed by the name of their first childhood school.
Analysis: Both items rely strictly on "something you know." This configuration represents single-factor authentication across two steps, not MFA.
Scenario 3: Dual Authorization for Wire Transfers:
Description: Releasing an outbound corporate wire transfer requires authorization sign-offs from two independent finance managers.
Analysis: Implements shared authority (dual authorization). It may also involve separation of duties if one role enters the transaction and a separate role approves it.
Scenario 4: Lingering Access After Changing Roles:
Description: An employee transfers from payroll to human resources but discovers their old payroll modification rights remain active months later.
Analysis: Represents privilege creep stemming from an incomplete mover lifecycle process. The organization must review and revoke obsolete permissions during internal job transitions.
Scenario 5: Unattributed Records Deletion Under Shared Login:
Description: Several staff members log into a terminal using a shared
warehouse1account. A critical database entry is deleted, but logs cannot show which individual ran the command.Analysis: Represents a loss of individual attribution caused by shared accounts. Unique, named accounts or a secure privileged checkout vault must be deployed to re-establish accountability.
Scenario 6: Service Running with Root Privileges:
Description: An internal microservice runs under the administrative
rootaccount even though it only reads a single directory.Analysis: Violates the principle of least privilege. The service should run under a dedicated, low-privilege service account restricted solely to that directory with interactive logins disabled.
Scenario 7: File Creator Distributing Access:
Description: A project lead writes a technical project plan and shares read and write permissions with specific team members at their own discretion.
Analysis: Exemplifies Discretionary Access Control (DAC), where the data owner controls permission distribution.
Scenario 8: Help Desk Password Reset Tool Permissions:
Description: A newly hired support employee can use the active directory password reset tool because they were added to the Help Desk group.
Analysis: Exemplifies Role-Based Access Control (RBAC), where permissions are bound to assigned functional roles.
Scenario 9: Security Labels Governing Access:
Description: A government analyst with a
Secretsecurity clearance is automatically blocked from opening a document markedTop Secret.Analysis: Exemplifies Mandatory Access Control (MAC), enforced centrally via labels and clearances by the operating system kernel.
Scenario 10: Dynamic Resource Access Evaluation:
Description: Access to sensitive customer records requires that the user belongs to the billing department, uses an encrypted corporate laptop, connects during business hours, and is located in the home country.
Analysis: Exemplifies Attribute-Based Access Control (ABAC), which evaluates combinations of subject, object, action, and environmental attributes.
Scenario 11: Terminated Worker Retains SSH Access:
Description: A dismissed systems engineer has their directory account disabled, but their SSH public key remains inside a production server's
authorized_keysfile, granting terminal access.Analysis: Demonstrates incomplete deprovisioning during offboarding. The offboarding process must catalog and remove non-directory assets, including SSH authorized keys and API access tokens.
Scenario 12: External App Requesting Calendar Visibility:
Description: A third-party scheduling utility prompts a user to allow access to their cloud calendar without requesting their account password.
Analysis: Demonstrates OAuth 2.0 delegated authorization. If the scheduling tool also verifies user identity, it leverages OpenID Connect (OIDC).
Scenario 13: Enterprise Login Failure Following Clock Drift:
Description: Multiple client workstations cannot authenticate to network file shares using Kerberos after a daylight saving time update.
Analysis: Kerberos ticket validation relies heavily on synchronized time stamps to prevent replay attacks; excessive clock drift causes ticket rejection.
Scenario 14: Account Locked Out After Failed Attempts:
Description: An account displays an error stating it is temporarily locked after six incorrect password entries in two minutes.
Analysis: Illustrates an automated account lockout policy. It differs from administrative account disablement, which is an intentional, persistent status change.
Scenario 15: Manager Reviews Quarterly Group Membership:
Description: Once every quarter, department managers receive a generated report of all staff permissions and must sign off to confirm access remains appropriate.
Analysis: Represents access recertification (periodic access review), ensuring obsolete access is pruned and mitigating privilege creep.
Scenario 16: Authentication Bypass via Stolen Web Cookie:
Description: An employee uses an MFA hardware key to log into webmail. An attacker steals the resulting session cookie and accesses the inbox from another computer without entering a password or triggering MFA.
Analysis: Demonstrates a session hijacking attack. Stolen active session tokens bypass the need to repeat primary authentication. Defenses require short session lifespans, HTTPS-only bindings, and centralized session revocation.
Analytical Frameworks, Explainability Drills, and Course References
The Four-Part Explainability Drill Framework:
When evaluating and justifying a security control for any scenario, address four core elements:
Selected Control: State the precise technical, administrative, or physical control chosen.
Contextual Justification: Explain why the control directly addresses the asset, threat vector, vulnerability, or compliance requirement.
Security and Operational Outcome: Articulate how the control improves system confidentiality, integrity, availability, or organizational workflow.
Viable Alternative Analysis: Identify an alternative mechanism and explain what operational context would warrant its use instead.
Worked Explainability Example: Departing Contractor:
Scenario: A third-party software contractor completes their contracted work term and departs the organization.
Selected Control: Comprehensive technical deprovisioning (disabling accounts, revoking session cookies, removing SSH keys, and revoking OAuth API tokens).
Contextual Justification: Eliminates orphan credentials, prevents unauthorized access, and protects proprietary source code confidentiality and integrity.
Security Outcome: Reduces attack surface exposure and guarantees compliance with auditing frameworks.
Alternative Analysis: While periodic access reviews (recertification) help identify lingering accounts, they operate on a delayed cadence (monthly/quarterly) and are not a substitute for immediate, automated offboarding upon departure.
Course and Source Document References:
Fitzgerald, S.: OPIM 3207 002 Information Security, Course Schedule and Unit 8 Authentication and Identity/Account Management Outline (Supplied October 19, 2026; Classes held October 19 and 21, 2026; Activity 8 deadline October 25, 2026).
Tolboom, R.: Computer Systems Security Planning for Success. NJIT Open Access Textbooks and Open Textbook Collaborative. Chapter 7, pages 83–98 (CC BY-NC-SA 4.0). Key topics: directory services, Kerberos, SSH keys, sessions, IAM/PAM/PIM, and POSIX permissions.
NIST CSRC: Multi-factor authentication glossary and security frameworks.
OpenID Foundation: How OpenID Connect Works (OIDC core specifications).
GNU Coreutils: Numeric Modes (POSIX file permission calculation standards).