Defense in depth and least privilege

Defense in depth and least privilege

Published September 28, 2026

Defense in depth and least privilege

On this page

Layers do not replace need-to-know

Rina is a payroll analyst assigned to six customer files.

Her managed, patched laptop passes the device check, and she connects through the company VPN with MFA.

Her approved payroll application can open all 18 customer files, although her work needs only six.

Most people would approve access to all 18 files because the user, device, network, and application look secure.

That answer is wrong because defense in depth does not remove the need-to-know and least-privilege limits.

The device, VPN, MFA, and approved application are useful security layers, but each answers a different question. The rules must separate those controls from the records Rina actually needs.

Defense in depth and access rules

The definitions separate identity, data need, permission scope, code approval, and layered protection.

  1. Defense in depth: NIST defines it as “The application of multiple countermeasures in a layered or stepwise manner to achieve security objectives.” The layers may be physical, technical, and administrative. They should be independent or complementary. (NIST SP 800-160 Volume 1.)

  2. Least privilege: “Employ the principle of least privilege, allowing only authorized accesses for users or processes acting on behalf of users which are necessary to accomplish assigned organizational tasks.” (NIST SP 800-53 Revision 5, AC-6.)

  3. Zero trust: “Zero trust assumes there is no implicit trust granted to assets or user accounts based solely on their physical or network location.” Authentication and authorization of both subject and device are discrete functions performed before a session begins. (NIST SP 800-207.)

  4. Application whitelisting: It is a security approach in which only applications that are known and approved are permitted to execute, and all other applications are blocked. (NIST SP 800-167.)

  5. Need-to-know: “The necessity for access to, or knowledge or possession of, specific information required to carry out official duties.” (NIST CSRC Glossary.)

Defense in depth is the overall design principle. For an access decision, the applicable conditions form a sequence, and all must pass. A failed condition stops, narrows, or blocks the request.

Whitelisting controls whether code may execute. It does not grant permission to read every file. Network protection and vulnerability management supplies VPN, segmentation, endpoint, and intrusion-control layers. Acceptable use and control types supplies administrative policy. Authentication and authorization models supplies identity, authentication, and authorization concepts.

These definitions turn the secure-looking request into separate tests. The sequence does not treat a VPN or MFA as a complete decision.

Separate identity, need, scope and layers

The flowchart applies the definitions in a practical sequence. NIST does not prescribe this exact visual order.

The request must pass subject-and-device authentication, need-to-know, least-privilege scope, approved application status, and the defense-in-depth design check. A failed condition ends the path until the control is fixed.

Loading diagram…

The flowchart keeps identity, data need, permission scope, code approval, and layered protection separate. Authentication and authorization models supplies the first decision, while Network protection and vulnerability management supplies the layers decision.

Security layers do not expand data access

The table tests each fact against its own criterion. It shows why security layers do not replace data-level limits.

FactCriterion it touchesMet or not met
Rina is assigned six customer files.Need-to-knowMet for the six assigned files.
Her laptop is managed, patched, and protected by endpoint controls.Defense in depth and device protectionMet as a technical layer.
She connects through the company VPN.Defense in depth and zero trustAdds a network layer; the VPN does not create implicit trust.
The device check and MFA both pass.Zero trustMet for subject and device authentication before the session.
The payroll application is approved.WhitelistingMet for application execution; this does not set the data scope.
The manager requests all 18 files, although Rina needs only six.Need-to-know and least privilegeNot met for the 12 extra files.
Verdict: grant access only to the six assigned files, not all 18. The wrong answer came from treating VPN, MFA, device controls, and whitelisting as a substitute for data-level limits.Combining ruleThe request must be narrowed before access is granted.

Rina passes the identity, device, network, and application checks, but the requested scope still fails need-to-know and least privilege.

An approved scope cannot authorize unapproved code

Omar's case changes the failed condition from excessive data scope to unapproved code. The table keeps each control separate.

FactCriterion it touchesVerdict
Omar must review four assigned vendor files.Need-to-know?
His managed laptop passes the device check, and his identity is authenticated with MFA.Zero trust and defense in depth?
His role permits read-only access to those four files, with no write access or access to other vendors.Least privilege?
The document portal is approved, but the USB macro is not on the known-and-approved application list.Whitelisting?
Verdict on running the USB macroCombining rule?

The data need and read-only scope pass, but the unapproved macro still fails the whitelisting condition.

Practice

The system should allow Omar's unapproved USB macro to run because his identity, device, need-to-know, and read-only scope are approved.

Which control permits or blocks access

These cases isolate the principles combined in the worked case. Each choice identifies the criterion that permits, narrows, or blocks the request.

Practice

A temporary analyst must compare one client's invoices. The database team offers read access to every client and says the analyst's role is approved. What access should be granted?

A user is on the corporate LAN and enters the correct password for a sensitive system. The device has not been authenticated. What should happen before the session begins?

An employee has need-to-know for a report and passes MFA. The employee wants to launch a macro from a USB drive, but the macro is not on the approved application list. What should the system do?

Which design best demonstrates defense in depth for sensitive payroll data?

An unmanaged device adds another failure

Was: Rina needs six files, but requests all 18 through a VPN with MFA on a managed, patched laptop and an approved payroll application.

Now: Her laptop is unmanaged, although it is patched. Does the verdict change?

Answer: No. Zero-trust device authentication is now unsatisfied, while need-to-know and least privilege still fail for the 12 extra files.

The changed device fact adds another reason to stop the request. Fixing that condition would still leave the unnecessary 12 files outside Rina's need.

All applicable security conditions must pass

Defense in depth uses multiple countermeasures in complementary layers.

Least privilege allows only authorized access necessary for assigned tasks.

Zero trust grants no implicit trust based on location and checks both subject and device before a session.

Whitelisting permits only known and approved applications to execute.

Need-to-know permits access to specific information required for official duties.

Combining rule: All applicable conditions must pass in sequence. A failure stops, narrows, or blocks the action, while defense in depth ensures that several layers support the decision.

Commonly skipped criterion: Need-to-know is often skipped when a managed device, VPN, MFA, approved application, or manager request appears to justify access to extra data.

Unlock the full lesson and continue reading

Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more

Scan to download app

Scan to download
UNLOCK FREE ACCESS

Practice Questions: Defense in depth and least privilege

  1. 1. On June 11, 2026, a regional CPA firm detected unusual activity on its on-premises file server after an employee opened a phishing email that installed remote-access malware. The incident-response coordinator must classify the incident, evaluate the evidence, determine notification obligations, and document the response. Use Exhibits 1 through 4 to complete the tasks.

    • 2. A company using the NIST Cybersecurity Framework 2.0 has documented its existing cybersecurity outcomes in a Current Profile and its desired outcomes in a Target Profile. Management has identified several gaps between the profiles. Which of the following actions is the most appropriate use of this comparison?

      • A. Prioritize a risk-based action plan to close and monitor the identified gaps
      • B. Treat completion of the Target Profile as certification of regulatory compliance
      • C. Replace the entity-wide risk assessment with the outcomes in the Target Profile
      • D. Restrict remediation to technical controls operated by the information technology department
      Show answer

      Answer: A. Prioritize a risk-based action plan to close and monitor the identified gaps

      Prioritize a risk-based action plan to close and monitor the identified gaps - The Current Profile describes existing cybersecurity outcomes, while the Target Profile describes desired outcomes. - Comparing them identifies gaps that management can prioritize by risk, address through an action plan, and monitor for progress. Treat completion of the Target Profile as certification of regulatory compliance - A Target Profile states desired outcomes; completing it does not certify compliance with laws or regulations. - Regulatory compliance must be evaluated against applicable requirements, not inferred from the profile comparison. Replace the entity-wide risk assessment with the outcomes in the Target Profile - The Target Profile helps identify desired cybersecurity outcomes but does not replace an entity-wide risk assessment. - Risk assessment informs which gaps matter most and how management should prioritize its response. Restrict remediation to technical controls operated by the information technology department - Profile gaps can involve governance, personnel, suppliers, and processes as well as technology. - Limiting the action plan to information technology controls could leave identified gaps outside that department unaddressed.

    • 3. A company discovers that an unauthorized user changed vendor bank-routing data in its accounts-payable database. Authorized users could access the database throughout the incident, the records remained readable, and investigators found no evidence that information was viewed by unauthorized persons. Which security objective was directly compromised?

      • A. Integrity
      • B. Availability
      • C. Confidentiality
      • D. Purpose limitation
      Show answer

      Answer: A. Integrity

      Integrity - The unauthorized change to vendor bank-routing data compromised the records’ accuracy and integrity. - Integrity protects data against unauthorized alteration, even when the records remain readable. Availability - Availability concerns whether authorized users can access the database when needed. - Authorized users could access it throughout the incident, so access was not directly compromised. Confidentiality - Confidentiality concerns preventing unauthorized disclosure of information. - Investigators found no evidence that an unauthorized person viewed the records; the identified breach was an alteration. Purpose limitation - Purpose limitation concerns using personal information only for authorized purposes. - Changing vendor bank-routing data without authorization is a failure to protect record integrity, not a change in the permitted purpose of its use.

    • 4. On Monday, April 6, at 10:00 a.m., an EU online merchant determines that an unauthorized party accessed unencrypted customer names, addresses, and account passwords. The merchant is the data controller, and the incident is not unlikely to result in risk to individuals. Which action satisfies the controller's applicable GDPR timing obligation?

      • A. Notify affected individuals within 72 hours after becoming aware of the incident
      • B. Notify the merchant's data processor within 72 hours after becoming aware of the incident
      • C. Notify the competent supervisory authority by Thursday, April 9, at 10:00 a.m.
      • D. Notify the competent supervisory authority within 72 hours after confirming misuse of the data
      Show answer

      Answer: C. Notify the competent supervisory authority by Thursday, April 9, at 10:00 a.m.

      Notify the competent supervisory authority by Thursday, April 9, at 10:00 a.m. - Under the GDPR, a controller must notify the competent supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware of a breach that is not unlikely to result in risk to individuals. - Seventy-two hours after the merchant became aware of this breach on Monday, April 6, at 10:00 a.m., is Thursday, April 9, at 10:00 a.m. Notify affected individuals within 72 hours after becoming aware of the incident - Notice to affected individuals is required when a breach is likely to result in high risk, rather than merely the risk stated here. - When required, that notice is due without undue delay, not under the 72-hour deadline for notifying the supervisory authority. Notify the merchant's data processor within 72 hours after becoming aware of the incident - The merchant is the controller, so its applicable breach-notification duty is to the competent supervisory authority. - Under the GDPR, a processor notifies its controller of a breach; notifying a processor does not fulfill the controller’s duty. Notify the competent supervisory authority within 72 hours after confirming misuse of the data - The 72-hour period begins when the controller becomes aware of the breach, which occurred Monday at 10:00 a.m. - Waiting for confirmation that the exposed names, addresses, and passwords were misused would incorrectly postpone the deadline.

    • 5. A company receives daily reports showing that its cloud backups completed without errors. Management nevertheless lacks evidence that the backups can satisfy the four-hour recovery-time objective for the general ledger system. Which procedure would provide the most relevant evidence?

      • A. Restore a selected backup in an isolated environment, reconcile the restored data, and measure elapsed time
      • B. Scan the backup server for unpatched software and rank the identified vulnerabilities
      • C. Conduct a tabletop exercise in which managers discuss responsibilities during a system outage
      • D. Review quarterly access certifications for administrators authorized to configure backup jobs
      Show answer

      Answer: A. Restore a selected backup in an isolated environment, reconcile the restored data, and measure elapsed time

      Restore a selected backup in an isolated environment, reconcile the restored data, and measure elapsed time - An actual restore tests whether the general ledger backup is recoverable, rather than merely showing that the backup job reported no errors. - Reconciling the restored data checks its integrity, while measuring elapsed time shows whether recovery meets the four-hour objective. Scan the backup server for unpatched software and rank the identified vulnerabilities - A vulnerability scan identifies security weaknesses but does not test whether the general ledger backup can be restored. - Ranking vulnerabilities provides no evidence of the elapsed recovery time. Conduct a tabletop exercise in which managers discuss responsibilities during a system outage - A tabletop exercise tests whether managers understand their outage responsibilities, not whether backed-up data is intact. - Discussion alone cannot establish that the general ledger can be restored within four hours. Review quarterly access certifications for administrators authorized to configure backup jobs - Access certifications address whether the administrators who configure backup jobs are appropriately authorized. - They do not demonstrate that a backup is recoverable or that restoration meets the four-hour objective.

    • 6. A development pipeline requested an approved internal package named ledger-utils. The resolver instead downloaded a public package with the same name and a higher version number. The public package executed code that transmitted build credentials. Which change would most directly prevent recurrence?

      • A. Conduct an annual penetration test of the completed application
      • B. Place a web application firewall in front of the production application
      • C. Encrypt completed build artifacts before transferring them to production
      • D. Restrict resolution to an approved private registry and validate locked package hashes
      Show answer

      Answer: D. Restrict resolution to an approved private registry and validate locked package hashes

      Restrict resolution to an approved private registry and validate locked package hashes - Restricting the resolver to an approved private registry prevents it from selecting a same-named public package merely because that package has a higher version number. - Validating locked package hashes checks that the downloaded dependency matches the approved package before its code can run during the build. Conduct an annual penetration test of the completed application - An annual test examines the completed application, not the resolver’s package selection during each build. - It would not directly prevent a public ledger-utils package from executing code and transmitting build credentials. Place a web application firewall in front of the production application - A web application firewall filters production web traffic, whereas the malicious package ran in the development pipeline. - It does not stop the resolver from downloading a higher-version public ledger-utils package. Encrypt completed build artifacts before transferring them to production - Encrypting completed artifacts protects them during transfer, after the dependency has already run in the build. - It does not verify that ledger-utils came from the approved registry or prevent transmission of build credentials.

    • 7. A CPA on the incident-response team of Meridian Claims Services is assisting with an exposure involving a cloud object-storage bucket. The bucket contained claims files and a public marketing brochure. Management must evaluate the timeliness and adequacy of evidence preservation, assess whether the cloud host's vendor role affects Meridian's own notification obligations, contain the exposure, and apply the supplied notification criteria. Use Exhibits 1 through 4 for all responses.

      Flashcards: Defense in depth and least privilege

      1. 1. What purpose does a validity check serve?

        Show answer

        It confirms that data entries match predefined set criteria. For example, it ensures that numeric fields contain no alphabetic characters.

      2. 2. What does an output control ensure in a data system?

        Show answer

        Output control ensures data is valid, properly distributed, and used with authorization.

      3. 3. What does a processing control verify?

        Show answer

        A processing control verifies that data processing results in correct outputs.

      4. 4. What is the purpose of a field check in data entry?

        Show answer

        A field check prevents invalid characters from being entered into a data field. For example, it ensures that only numbers are entered in a Social Security number field.

      5. 5. What does a limit check do in data validation?

        Show answer

        A limit check ensures that numeric values do not exceed predefined limits, such as verifying that age does not exceed 110 years.

      Everything you need for CPA prep

      Get full Oncourse access with lessons, practice questions, flashcards and AI study tools.

      GET STARTED FOR FREE
      75% OFFLimited time offer
      GET 75% OFF