Skip to main content
CYBERSECURITY FOUNDATIONS / LESSON 02 / UNDERSTAND SECURITY

Security Principles & Trust Boundaries.

Learn how defenders decide which people and services may reach which resources—and why a successful sign-in never grants unrestricted access.

Beginner · Lesson 0255–70 min reading + explorerFour fictional access requests
00 / START HERE

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.

01Explain identity, authentication and authorization without treating them as interchangeable.
02Name the subject, resource, action and context of an access request.
03Choose least-privilege roles, scopes and policy requirements, including default-deny behavior.
04Understand why network segmentation and VPN membership do not grant resource permission.
05Test expected access and denial, including current approvals and emergency procedures.
Sequence matters: Read the principles and worked examples before using the explorer. Every new term required for the Practice module is introduced here. The examples use fictional Northstar accounts and never reach real infrastructure.
01 / CYBERSECURITY FOUNDATIONS

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.

IdentityA named principal used to represent a person, application, service or device.
PrincipalThe entity making a request; for example, a user or service account.
Workload identityAn identity used by software or automation rather than an interactive person.
WORKED EXAMPLE / NORTHSTAR / INVENTORY COLLECTOR

A script runs nightly under svc-inventory and requests the device inventory API.

Defender's reasoning

The 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.

02 / CYBERSECURITY FOUNDATIONS

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.

Authentication (AuthN)Verify a requester's identity claim using approved evidence or credentials.
Authorization (AuthZ)Decide whether this principal may perform this action on this resource.
MFAAuthentication using more than one distinct factor category; implementations and phishing resistance vary.
WORKED EXAMPLE / NORTHSTAR / EXPENSE PORTAL

An authenticated employee opens the portal, then attempts to export the entire customer ledger.

Defender's reasoning

The 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.

03 / CYBERSECURITY FOUNDATIONS

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.

SubjectPrincipal asking for access.
ResourceObject, service, dataset or capability being accessed.
ActionRequested operation, such as read, export, modify or delete.
ContextRelevant conditions the policy uses for this particular request.
WORKED EXAMPLE / NORTHSTAR / FIREWALL

A technician can read firewall logs but asks to change a firewall rule.

Defender's reasoning

The 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.

04 / CYBERSECURITY FOUNDATIONS

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.

Least privilegeGive only the access needed for assigned tasks.
Need-to-knowLimit sensitive data access to responsibilities that require it.
ScopeThe particular users, resources or systems over which a permission applies.
WORKED EXAMPLE / NORTHSTAR / TEMPORARY TECHNICIAN

A contractor needs to inspect one branch's switch interfaces during a scheduled change.

Defender's reasoning

Grant 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.

05 / CYBERSECURITY FOUNDATIONS

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.

RBACRole-based access control; permissions attached to roles.
ABACAttribute-based access control; evaluate attributes of subject, resource, action or environment.
Server-side enforcementThe authoritative service verifies access rather than relying only on what the browser displays.
WORKED EXAMPLE / NORTHSTAR / PAYROLL API

A general staff user cannot see the Export button, but the API still accepts /export requests from their account.

Defender's reasoning

This 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.

06 / CYBERSECURITY FOUNDATIONS

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.

Default denyReject requests unless a rule explicitly permits them.
Fail closedDo not grant access when a required security check fails or cannot be established.
Exception pathA controlled, documented route for necessary operations when normal conditions are unavailable.
WORKED EXAMPLE / NORTHSTAR / CHANGE APPROVAL

A firewall modification requires a change ticket. The ticket service times out.

Defender's reasoning

The 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.

07 / CYBERSECURITY FOUNDATIONS

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.

Trust boundaryPoint where requests cross between different security or authority contexts.
SegmentationSeparating networks or workloads and restricting permitted communication paths.
Lateral movementAn attacker moving from an initial foothold toward additional systems or privileges.
WORKED EXAMPLE / NORTHSTAR / HELP DESK SUBNET

A technician's workstation can connect to the backup management IP, but the technician lacks backup-operator permission.

Defender's reasoning

Network 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.

08 / CYBERSECURITY FOUNDATIONS

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.

Zero TrustApproach that avoids granting broad implicit access solely because of network location or earlier trust.
Explicit verificationEvaluate the subject, resource, requested action and relevant policy conditions.
Blast radiusThe scope of systems, data and capabilities one compromised principal or device could affect.
WORKED EXAMPLE / NORTHSTAR / VENDOR VPN

A vendor is connected through the company VPN and tries to open the HR database.

Defender's reasoning

The 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.

09 / CYBERSECURITY FOUNDATIONS

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.

Policy gateA required condition evaluated before access is allowed.
Step-up authenticationRequesting stronger authentication for a sensitive operation when policy requires it.
Negative testChecking that an explicitly unauthorized request is denied.
WORKED EXAMPLE / NORTHSTAR / BACKUP CONSOLE

An authorized backup operator has a strong sign-in and a managed device but no approved deletion window.

Defender's reasoning

The 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.

INTERACTIVE / ACCESS DECISION EXPLORER

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 ACCOUNTS
01 / Choose a request
SUBJECTAlex · Payroll.Reader
RESOURCEPayroll summary
ACTIONRead

Alex needs the payroll summary to reconcile the monthly figures. The policy requires strong sign-in and explicit reader permission, not separate change approval.

02 / Change the current access conditions
03 / Follow the policy evaluation
  1. ✓
    Verified identity

    Requester has a valid identity and session.

  2. ✓
    Required authentication strength

    The required stronger authentication is present.

  3. —
    Device requirement

    Not required for this request. The value is not used to grant extra permission.

  4. ✓
    Scoped resource permission

    Resource permission explicitly covers this action.

  5. —
    Approved privileged operation

    Not required for this request. The value is not used to grant extra permission.

RESOURCE DECISIONALLOW / REQUIRED GATES MET

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.

10 / CYBERSECURITY FOUNDATIONS

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.

SessionState allowing a recognized principal to continue interacting after authentication.
TokenCredential-like data representing claims or a limited authorization context for a service.
Scope (token)The operations or resources for which the token is intended, subject to service enforcement.
RevocationInvalidating existing access where the system supports it.
WORKED EXAMPLE / NORTHSTAR / ACCOUNT DEPARTURE

An employee leaves the company with an active browser session on a shared terminal.

Defender's reasoning

Disabling 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.

11 / CYBERSECURITY FOUNDATIONS

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.

Positive testConfirm authorized behavior succeeds.
Negative testConfirm unauthorized or out-of-scope behavior is denied.
Audit eventRecord of a security-relevant action or decision that may support investigation.
WORKED EXAMPLE / NORTHSTAR / EXPORT WORKFLOW

QA confirms Payroll.Reader can export a sample report and Helpdesk.Reader cannot export any payroll rows.

Defender's reasoning

Together 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.

12 / CYBERSECURITY FOUNDATIONS

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.

Break-glass accessControlled emergency capability used when normal access mechanisms cannot support essential work.
Separation of dutiesAvoid giving one principal unchecked control over a critical end-to-end process.
After-action reviewDocument what happened, whether controls worked and what should improve.
WORKED EXAMPLE / NORTHSTAR / IDENTITY OUTAGE

Normal privileged access approval is unavailable during a critical outage. An operator proposes making everyone a global administrator.

Defender's reasoning

Use 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.

13 / REVIEW YOUR THINKING

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.

1Identify the principal
2Name the resource and action
3Check required authentication and device conditions
4Verify scoped permissions and approval
5Test the allowed and denied results

These distinctions become especially important in Incident Response Fundamentals, where an unusual login must not be mistaken for proof that privileged access was granted.

AUTHORITATIVE REFERENCE / OPTIONAL DEEPER READING

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.

UP NEXT / INDEPENDENT PRACTICE

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.

Start Lesson 02 Practice →
NEXT REQUIRED STEP · CYBERSECURITY FOUNDATIONS

Complete the Practice milestone

You've reached the end of this written lesson. Your next step is practice—complete Security Principles & Trust Boundaries · Independent Practice before proceeding to a new lesson. This is milestone 4 of 26. You can revisit the explanation whenever you need it.