Cybersecurity from the Ground Up · Course book
Chapter 2: Identity, Access and Zero Trust
When an organisation had a single office, security could be pictured as a castle: strong walls at the network edge, and trust for anyone already inside. That picture no longer fits. Staff work from home and from phones, applications run in cloud data centres owned by someone else, and partners, contractors and automated services all need some access. In this world the most important security boundary is no longer the office network but identity: who or what is asking for access, and whether they should have it right now. This chapter explains the core goals of security, the principles that govern access, the common models for granting permissions, the Zero Trust approach that many organisations now follow, and the shared responsibility and compliance obligations that come with using cloud services.
The goals of security: confidentiality, integrity, availability
Security professionals describe their goals with three words, often called the CIA triad. Confidentiality means information is seen only by those entitled to see it; a leaked medical record is a confidentiality failure. Integrity means information and systems are accurate and have not been altered without authorisation; a tampered bank transfer or an exam mark changed in a database is an integrity failure. Availability means systems and data are usable when needed; a website knocked offline by a flood of traffic, or files locked by ransomware, is an availability failure.
The three goals sometimes pull against each other. Encrypting everything and requiring several approvals improves confidentiality and integrity but can slow people down and, if keys are lost, destroy availability. Good security design balances the three according to what matters most for each system. For a hospital's patient records, availability in an emergency may matter as much as confidentiality; for a password database, confidentiality and integrity dominate.
Alongside the triad sits a second set of ideas, sometimes called AAA: authentication (proving identity), authorisation (deciding what that identity may do) and accounting or auditing (recording what was done, so that actions can be reviewed and people held responsible). Without accounting, an organisation may never learn that something went wrong, or be unable to show who did it.
Principles of access control
A handful of principles guide almost every access decision. The principle of least privilege says that each person, program or device should have only the access it needs to do its job, and no more. A payroll clerk needs to edit salaries but not to install software on servers; a backup program needs to read files but not to delete user accounts. If an account with least privilege is compromised, the damage, often called the blast radius, is limited.
Separation of duties divides sensitive tasks so that no single person can complete them alone. The person who requests a payment should not be the one who approves it. Need to know narrows access further, so that even people with a high clearance see only the information relevant to their task. Defence in depth layers several independent controls, so that a single failure does not expose everything.
Permissions also tend to accumulate. When people change roles they often gain new access without losing the old, a problem called privilege creep. After a few years, a long-serving employee may hold far more access than any current role requires. Regular access reviews, in which managers confirm or remove each person's permissions, and prompt removal of access when someone leaves, keep this under control.
Models for granting access
Organisations need a systematic way to decide who may do what. Several models are in common use, and real systems often combine them.
| Model | How access is decided | Typical use | Main weakness |
|---|---|---|---|
| Discretionary (DAC) | The owner of a file or resource chooses who may use it | Shared folders, personal documents | Owners may share too widely |
| Mandatory (MAC) | A central policy compares labels, such as Secret, with each user's clearance | Military and government systems | Rigid and costly to administer |
| Role-based (RBAC) | Permissions belong to roles such as Nurse or Teacher; people are assigned roles | Most businesses and schools | Too many roles over time ("role explosion") |
| Attribute-based (ABAC) | Rules combine attributes of the user, resource and context, such as department, location and time | Large organisations, cloud platforms | Rules can become hard to understand and test |
Role-based access control is the most widely used because it matches how organisations think: a new nurse is given the Nurse role and immediately has the right access, and when they move to management the role is swapped. Attribute-based control adds context, so that a rule might allow a finance manager to approve payments only from a company device during working hours.
Identity itself is increasingly managed centrally. An identity provider holds each person's account and authenticates them once; other applications then trust that decision through single sign-on (SSO), using standards such as SAML or OpenID Connect. SSO means fewer passwords to manage and one place to enforce MFA and to switch off access when someone leaves. The trade-off is that the identity provider becomes extremely valuable to attackers and must be protected accordingly. Special care is also given to privileged accounts, such as system administrators, which are often protected with extra approval steps, separate admin-only accounts and time-limited access granted only when needed.
Zero Trust: never trust, always verify
Zero Trust is a security approach built on the assumption that no user, device or network location should be trusted automatically, even inside the organisation. Every request for access is evaluated on its own merits, using as much information as is available. Its core ideas are usually summarised in three statements: verify explicitly, using identity, device health, location and behaviour; use least-privilege access, granting just enough access for just long enough; and assume breach, designing systems so that an attacker who gets in somewhere cannot move freely everywhere.
In practice, Zero Trust is a direction of travel rather than a product. Organisations move towards it by requiring MFA everywhere, checking that devices are updated and encrypted before they connect, dividing networks into small segments so that a compromised laptop cannot reach every server, and monitoring for unusual behaviour such as a login from two countries within an hour. Conditional access rules put this into effect: a login from a managed laptop in the usual city might go straight through, while the same login from an unknown device abroad triggers an extra check or is blocked.
Zero Trust also changes how organisations think about failure. Instead of asking only how to keep attackers out, designers ask what an attacker could reach after stealing one password or one laptop, and then shrink that reach. Short-lived access tokens that expire after an hour, administrator rights granted for a single task and then withdrawn, and logs that record every access decision all follow from the assume-breach mindset. None of these measures is dramatic on its own, but together they turn a single stolen credential from a disaster into a contained incident that can be spotted and reversed quickly.
Cloud responsibility and compliance
When an organisation uses cloud services, security duties are divided under a shared responsibility model. The provider always secures the physical data centres, hardware and core infrastructure. What the customer must secure depends on the service type. With infrastructure as a service, the customer manages operating systems, applications, data and access. With platform as a service, the provider also manages the operating system and runtime. With software as a service, such as hosted email, the provider runs nearly everything, but the customer is still responsible for its own data, its users' accounts and how access is configured. Many cloud data leaks have happened not because a provider was breached but because a customer left storage publicly readable or failed to require MFA.
Organisations must also meet legal and industry obligations, known as compliance. Data protection laws, such as the European Union's General Data Protection Regulation (GDPR), set rules for how personal data is collected, stored and shared, and require many breaches to be reported to regulators. Card payment systems must follow the Payment Card Industry Data Security Standard. Standards such as ISO/IEC 27001 describe how to run an information security management system. Compliance is not identical to security, since an organisation can tick every box and still be breached, but the requirements usually push organisations towards good practice: knowing what data they hold, controlling who can access it, keeping records and planning for incidents.
Practice tasks
- For each event, say which part of the CIA triad has failed: a stolen customer list; a website offline for six hours; an altered delivery address on an online order.
- Design three roles for a small school's information system and list the permissions each role needs, applying least privilege.
- Explain how separation of duties would reduce the risk of fraud in a company that pays supplier invoices.
- Write two conditional access rules for a company whose staff sometimes travel abroad.
- A business stores customer files in a cloud storage service. List two security tasks that remain the business's responsibility under the shared responsibility model.
- Explain why Zero Trust is described as an approach rather than a product.
This course book is available to read online only at chrysolites.org.