JUMP TO SECTIONChoose a lesson section
A login is the beginning of a decision—not the end.
In Lesson 01, you learned to identify assets, vulnerabilities, threats and possible harm. Now consider a contractor who successfully signs in to Northstar Services with multifactor authentication. Does that mean the contractor may export payroll, change a firewall or delete protected backups?
No. The resource must still evaluate which operation the contractor is permitted to perform and under what conditions. This lesson starts with everyday examples; no experience with cloud identity administration, directory commands or enterprise licensing is required.
Identity is who or what requests access.
Before evaluating a request, understand which person, service, or device is making it.
An identity is the account or other identifier used to represent a person, workload, or device. An employee might sign in with a named user account; an automated backup job may run using a dedicated workload identity. Both deserve ownership, lifecycle controls and scoped permissions.
An identity is not the same as a device. A verified employee can use an unmanaged laptop; a healthy managed laptop can be used by someone who is not authorized. Describe those facts separately so a control is not assumed to establish trust it cannot prove.
A script runs nightly under svc-inventory and requests the device inventory API.
Defender's reasoningThe script needs a dedicated workload identity with read-only permission. Giving it a human administrator's credentials would couple automation to inappropriate privileges.
Check your understanding: Why is a managed workstation not proof that its current user may view payroll exports?
Device state and user authorization answer different questions. The requester still needs appropriate identity verification and explicitly granted permission.
Authentication checks the claim; authorization checks the action.
Successful sign-in is not permission to do everything.
Authentication asks whether a presented identity can be verified. Passwords, passkeys, certificate-based mechanisms and multifactor authentication (MFA) can contribute to that check. MFA uses independent factors in the chosen method; it does not automatically prevent every stolen session or compromised endpoint.
Authorization asks whether the authenticated principal is allowed to perform a particular operation on a particular resource. Viewing the dashboard, exporting all payroll records and modifying the payroll administrator role are distinct operations with potentially different permissions.
An authenticated employee opens the portal, then attempts to export the entire customer ledger.
Defender's reasoningThe employee may be properly authenticated and still be forbidden from bulk export. Grant only the operations required for the role; test the denial, not just whether sign-in succeeds.
Check your understanding: A user signs in using MFA but cannot download a restricted file. Which part of the process is likely enforcing the restriction?
Authorization. The sign-in established the identity claim, while resource permissions prevent the attempted action.
Every access decision needs a subject, resource and action.
Ask for the exact operation, not a vague label such as 'network access.'
A request can be described as subject (who), resource (what), action (what operation), and context (relevant conditions). For example: the Northstar help desk account requests 'read' for a workstation inventory; or a backup operator requests 'delete' for a recovery set.
Context can include the managed-device state, authentication method, network path, current risk signals or a valid change approval. These conditions help enforce policy, but they do not replace a defined permission for the exact resource and operation.
A technician can read firewall logs but asks to change a firewall rule.
Defender's reasoningThe subject is the technician, the resource is the firewall configuration and the requested action is modify. Read access must not be mistaken for write authority.
Check your understanding: If someone can read a file, does that prove they are allowed to delete it?
No. Authorization should evaluate the requested action. Read and delete permissions can be separated.
Least privilege means only the permissions needed.
A useful account should not become an all-purpose administrator by convenience.
Least privilege limits a principal to the resources and operations required for its current work. Need-to-know is the related idea that sensitive information is accessible only to people whose responsibilities require it. A help desk technician may need to reset a standard user password without having export access to payroll records.
Scope matters alongside privilege level. A regional administrator might manage one branch but not every branch. Temporary privileged access with expiration may be preferable to permanent broad membership. Removing privileges does not remove the need for audit and safe exception procedures.
A contractor needs to inspect one branch's switch interfaces during a scheduled change.
Defender's reasoningGrant a time-bounded read role on that branch rather than permanent global configuration access. The right scope and actions are as important as the role name.
Check your understanding: Which is safer for a report-only inventory script: full administrator permission or access limited to reading device health?
Read-only device health access, limited to the required inventory scope. The script should not be able to change configurations.
Roles simplify permissions; attributes refine conditions.
Understand RBAC, ABAC and the need to enforce both server-side.
Role-based access control (RBAC) associates permissions with roles such as Payroll.Reader or Network.Operator and assigns appropriate roles to principals. It is easier to maintain than granting unrelated permissions to every employee, but an overpowered role still creates unnecessary risk.
Attribute-based access control (ABAC) evaluates properties such as department, data classification, device posture and request time. Real systems may combine roles with conditional rules. The important lesson is that the resource itself must enforce permission checks; hiding a button in the interface does not stop a direct API request.
A general staff user cannot see the Export button, but the API still accepts /export requests from their account.
Defender's reasoningThis is broken authorization. Removing a button is a user-interface change, not a security boundary. The API must independently reject unpermitted exports.
Check your understanding: Does hiding an admin menu in a web page provide complete authorization?
No. The protected server or service must enforce the permission on each relevant operation.
Default deny and fail closed make missing permission safe.
If a policy cannot establish the required conditions, it should not silently grant access.
A default-deny policy allows only explicitly authorized operations; everything else is rejected. For example, a Helpdesk.Reader role may have 'view device health' granted, while 'delete backup' remains denied unless a separately approved role permits it.
Fail closed describes what to do when a crucial verification cannot succeed: do not treat a missing identity, unavailable approval record or incomplete policy result as permission. That does not mean every unavailable component should take down the whole business. Design deliberate, audited exception and recovery processes for critical operations.
A firewall modification requires a change ticket. The ticket service times out.
Defender's reasoningThe failed lookup is not a valid approval. Reject or defer the operation and follow the approved emergency procedure; do not infer 'approved' from a network error.
Check your understanding: If an approval API fails, should the system assume an administrator's action is approved?
No. A missing approval is not positive authorization. Use the organization's authorized exception procedure if urgent.
A trust boundary is where one set of assumptions must be checked again.
Moving from a user session to a sensitive service changes the decision you must make.
A trust boundary separates contexts with different security expectations or authority—for example, an employee's browser and the payroll API; a workstation VLAN and backup administration; a guest tenant and an internal data store. Crossings should make the system evaluate the operation rather than assuming previous access extends automatically.
Network segmentation creates intentional routes between groups of systems, often enforced using firewalls or policy. It can limit which hosts communicate, but it does not decide whether a logged-in person may export a record. Identity and resource authorization remain important even when network controls exist.
A technician's workstation can connect to the backup management IP, but the technician lacks backup-operator permission.
Defender's reasoningNetwork reachability must not grant backup deletion rights. Enforce authorization at the backup service and restrict paths to those required.
Check your understanding: Does being on an internal network guarantee permission to change the backup configuration?
No. Network reachability and resource authorization are distinct controls.
Zero Trust asks for explicit resource access decisions.
It is an architecture principle, not a product you simply turn on.
Zero Trust architecture challenges implicit trust based only on internal network location, VPN access or past authentication. It evaluates access to individual resources under current policy and context, using identity, device information, service permissions and other relevant signals.
It does not mean all systems must constantly prompt for passwords, every packet is suspect, or a compliant device is automatically safe. A successful request can still be monitored and reevaluated when conditions change. The goal is appropriate access with limited blast radius when an identity or endpoint is compromised.
A vendor is connected through the company VPN and tries to open the HR database.
Defender's reasoningThe VPN connection establishes a network path, not an HR permission. The HR service still needs a separate authorization decision.
Check your understanding: Does a VPN login alone authorize an external partner to view every internal application?
No. Connection to the network and authorization for a specific internal resource are different decisions.
Follow the access request through every required gate.
One successful gate cannot override another failed gate.
In the explorer below, four conditions form the fictional Northstar policy: verified identity and appropriate authentication, managed device where required, permission to perform the requested action, and a valid change approval for privileged changes. If any required gate fails, the resource denies the operation.
The model is purposely simple. Real systems may add detailed scopes, group assignments, risk signals, session lifetimes, exceptions and step-up authentication. Its purpose is to show why 'logged in' is not a complete security decision. Try making an allowed request fail and restoring only the missing condition.
An authorized backup operator has a strong sign-in and a managed device but no approved deletion window.
Defender's reasoningThe access request must be denied until a valid, scoped approval is established; other successful gates do not compensate for a failed approval.
Follow every access decision.
Now that you've learned the difference between authentication, permissions, scoped approvals and device checks, experiment with the controls below. The explorer is an educational policy model, not an active identity service.
A sign-in is not a permission slip.
Start with a fictional request. Change the authentication, device, permission or approval facts. Follow the five checks to see why it is allowed or denied.
LOCAL MODEL · NO REAL DIRECTORY, NETWORK OR ACCOUNTSAlex needs the payroll summary to reconcile the monthly figures. The policy requires strong sign-in and explicit reader permission, not separate change approval.
- ✓Verified identity
Requester has a valid identity and session.
- ✓Required authentication strength
The required stronger authentication is present.
- —Device requirement
Not required for this request. The value is not used to grant extra permission.
- ✓Scoped resource permission
Resource permission explicitly covers this action.
- —Approved privileged operation
Not required for this request. The value is not used to grant extra permission.
The fictional policy permits this exact operation. A real system must still log and continually enforce access.
Case takeaway: Allowed because required sign-in and scoped permission are present. No change approval is required for this read-only summary.
Try removing permission from an allowed request, or supplying just the missing approval on a denied request. Pay attention to which other gates still matter.
Check your understanding: Can a strong MFA sign-in override missing export permission?
No. Authentication strength is not an override for resource authorization.
A session is convenient—but it is not permanent permission.
Credentials, tokens and sessions carry time and context limits.
After authentication, many applications issue a session cookie or access token so the user does not reenter credentials for every screen. A session proves that some authentication happened under certain conditions; it does not automatically mean every operation is allowed forever.
Tokens may have scopes, audiences and expiry times. A token intended for one API should not be treated as valid everywhere. Session theft, terminated employment, changed roles and risky device signals can require reevaluation or revocation. A resource must apply its own authorization rules even when a token appears valid.
An employee leaves the company with an active browser session on a shared terminal.
Defender's reasoningDisabling new logins is not sufficient if active sessions remain usable. Review revocation, device state and audit evidence rather than assuming a password reset ends every session.
Check your understanding: Why should a resource check permissions even when a valid-looking session token is present?
The token may not grant the requested operation, may be scoped to a different audience or reflect permissions that changed.
Prove security with both allowed and denied tests.
A green success message is incomplete evidence when the wrong person can also succeed.
Positive testing verifies that a legitimate payroll reader can view a permitted payroll summary. Negative testing verifies that help desk and vendor identities cannot view or export sensitive records. Both outcomes matter: a system that denies every request is secure from some disclosures but useless; a system that allows every request is convenient but unsafe.
Use synthetic or authorized test identities and avoid testing against production accounts without scope and approval. Collect evidence that shows identity, resource, action, decision and relevant time, while minimizing confidential data in the logs. A denial without diagnostic context may be hard to investigate; logging sensitive token contents is not an acceptable shortcut.
QA confirms Payroll.Reader can export a sample report and Helpdesk.Reader cannot export any payroll rows.
Defender's reasoningTogether these tests demonstrate availability to an authorized role and denial to an unrelated role. The team should also verify logs do not expose tokens or salary values.
Check your understanding: Why isn't testing only the authorized Payroll.Reader enough?
You also need to prove inappropriate roles cannot access the protected resource; otherwise broad access can go unnoticed.
Emergency access still needs rules, evidence and recovery.
Fail closed and resilience must be planned together.
Sometimes the normal access path becomes unavailable during an incident. Emergency access (often called break-glass access) may allow designated operators to restore essential services. It should be protected, time-limited or otherwise controlled as appropriate, monitored and audited, with routine tests and clear ownership.
An undocumented permanent bypass is not an emergency procedure. Establish explicit triggers, responsible approvers, limits, monitoring and after-action review. If a technician cannot verify that a requested privilege or exception is authorized, the safe action is to escalate—not to improvise an insecure workaround.
Normal privileged access approval is unavailable during a critical outage. An operator proposes making everyone a global administrator.
Defender's reasoningUse the separately governed emergency access procedure with monitoring and review. Broad permanent elevation creates a dangerous and hard-to-reverse exception.
Check your understanding: Does an emergency automatically justify turning off authorization for every user?
No. Emergency access should be narrowly scoped and accountable, with evidence, monitoring and review.
Can you explain why an authenticated user is denied?
A vendor completes MFA on a managed laptop but receives an access-denied response from a payroll API. What do we know? They met some authentication and device conditions. What is not established? Their permission to export payroll data. The next step is to examine the actual resource policy—not to disable MFA or grant blanket access.
These distinctions become especially important in Incident Response Fundamentals, where an unusual login must not be mistaken for proof that privileged access was granted.
Keep authorization decisions grounded.
The lesson stands alone. These external sources explain Zero Trust architecture, authentication and the risks of broken resource authorization in more depth.
Now test these access decisions yourself.
Continue to Lesson 02 Practice before moving to attacks. You'll reason through permissions, policy failures and four real-world-style cases, without being shown the answers first.
