Why "trust" is the problem
Think about a medieval castle. It has a tall wall and a deep moat. Guards at the gate check everyone who comes in. But once you are inside the walls, nobody asks you anything. You can walk into the kitchen, the treasury, and the armory.
For many years, computer networks worked the same way. A network is a group of computers that are connected so they can share things. Companies and schools put a strong wall around theirs. Anyone who got past the wall, usually by logging in once, was trusted with almost everything inside.
Here is the problem. Passwords get stolen, tricked out of people, or guessed. If an attacker gets just one password, the "castle" lets them walk right in. And then there is no second guard.
Simple definition: Zero trust security is a way of protecting computers and data where nobody is trusted automatically, not even people who are already inside the network. Every request gets checked, every time. The slogan is "never trust, always verify."
Picture a school where every classroom door has its own badge reader, and it checks that you are the right person, that you have the right badge, and that you belong in that room. That is the zero trust idea. The next section lets you see the difference for yourself.
Castle and moat vs. zero trust
Below are two versions of the same school network. Each has six systems inside, like homework, grades, and payroll. An attacker (a person trying to break in) has stolen one password. Pick whose password it is, then press the button to drop the attacker in.
To keep it fair, we assume the worst: the stolen password works at the front door in both networks. The question is what happens next.
Attacker simulator
Castle and moat
One gate. Trusted once you are inside.
Zero trust
A check at every door. Least access needed.
Press "Drop the attacker in" to start.
Try this: switch off the "checkpoint at every door" box. Now zero trust has no checks between systems, so the attacker can roam freely. The checkpoints are what limit the damage. This is called micro-segmentation, and you will meet it again in a moment.
How zero trust works
Zero trust is not one gadget. It is a set of habits that work together. Here are the four big ones.
Castle and moat
Strong outside wall. Trust everyone inside. One stolen password can open almost everything.
Zero trust
No trusted "inside." Check every request, every time. One stolen password opens only a little.
1. Least privilege
Give each person only the access they need for their job. A student does not need the grade book. A teacher does not need payroll.
"Only the keys you need."
2. Verify explicitly
Check who is asking (a password, plus a second proof such as a code), what device they use (is it known and up to date?), and where the request comes from.
"Prove it, every time."
3. Micro-segmentation
Micro-segmentation cuts a network into many small zones with a checkpoint between them. It is like locked doors between rooms, not just one front door.
"Small rooms, locked doors."
4. Assume breach
Plan as if an attacker is already inside. Watch for strange behavior, log what happens, and design so one break-in stays small.
"It is not if, it is when."
Notice that none of these says "build a taller wall." Zero trust still uses walls and firewalls. It just stops depending on them alone.
Build the school's access badges
You are in charge of badges at a school. Each badge opens certain rooms. Pick a person, then click rooms to allow or remove access. The goal is least privilege: every room the person needs, and no room they do not.
Badge builder
The "blast radius" idea: if a badge is stolen, the rooms it opens are the blast radius, which means how much damage one break-in can do. Least privilege makes the blast radius small. Giving out every key makes it huge.
The access-decision engine
In a zero trust system, a program called a policy engine makes a decision each time someone asks for something. It looks at signals, which are clues about the request. Then it picks one of three answers:
- Allow: everything looks normal.
- Step-up: something looks a little odd, so ask for more proof, such as a code from your phone.
- Deny: too risky. Block it.
Flip the switches to change the signals. Watch the answer change.
Policy engine
Why this answer
Real systems use many more signals and smarter math, but the idea is the same. A wrong password is always a deny. Risky clues add up. The more sensitive the file, the less risk the engine will accept. And "step-up" shows why two-factor authentication fits zero trust so well: it is the extra proof you ask for when something looks off.
Words to know
- Perimeter
- The outer edge of a network, like the castle wall. Old security focused almost all its effort here.
- Authentication
- Proving who you are, for example with a password and a code.
- Authorization
- Deciding what you are allowed to do after you prove who you are. Being known is not the same as being allowed everywhere.
- Two-factor authentication (2FA)
- Using two different kinds of proof, such as something you know (a password) and something you have (your phone).
- Device health
- Whether a laptop or phone is safe to trust: updated, locked, and free of known problems.
- Lateral movement
- When an attacker gets into one spot and then sneaks sideways into other systems. Micro-segmentation is built to stop this.
- Blast radius
- How much can be harmed if one account or device is broken into.
Zero trust is also not a product you can buy in a box. It is a strategy. A school or company reaches it by combining many tools: stronger logins, device checks, small access zones, and good monitoring. You can read about one of those tools, the firewall, which still plays a role as one layer among several.
Quick answers
What is zero trust security in simple words?
It is a way of protecting data where nobody is trusted automatically, even if they are already inside the network. Every request is checked: who is asking, what device they use, and whether they need what they are asking for. The slogan is "never trust, always verify."
What is the difference between castle-and-moat security and zero trust?
Castle and moat builds a strong wall and trusts everyone inside it. Zero trust has no trusted inside. It checks identity and context at every door, so one stolen password does not open everything.
What is least privilege?
Giving each person or program only the access it needs to do its job, and nothing more. If a least-privilege account is stolen, the attacker can only reach the few things that account was allowed to use.
What is micro-segmentation?
Splitting a network into many small zones with a checkpoint between them. Like locked doors between rooms, it keeps an attacker who enters one zone from moving freely into the others.
Is zero trust a product I can buy?
No. It is a strategy, a way of designing security. Organizations use many tools to follow it, such as multi-factor authentication, device checks, and access rules, but no single product makes a network zero trust.
Quick quiz
1. What does "never trust, always verify" mean?
2. A student's password is stolen. Which setup limits the damage best?
3. A login has the right password but comes from an unknown laptop in a faraway place, asking for a private file. What should a zero trust engine most likely do?
Keep learning about staying secure
Zero trust builds on ideas you may already know. Explore the tools and goals that make it work.
Part of the CodeHS cybersecurity tutorials.