Micro-segmentation, intrusion detection and zero trust

8 min 5 sections 4 practice questions 4 sources citedISC2 objective 4.1

A firewall at the edge guards the way in. Once an intruder is inside, most networks let them move from machine to machine unchecked. Micro-segmentation puts a guard at every machine, intrusion detection watches traffic for attacks, and zero trust stops treating a place on the network as a reason to trust anyone. No background is assumed. A security professional needs these to limit how far one break-in can spread.

By the end of this unit you will be able to:

  • Explain what micro-segmentation controls that an edge firewall cannot
  • Explain how an overlay such as VXLAN carries one network inside another
  • Tell apart an intrusion detection system and an intrusion prevention system by where each sits and what each can do
  • Tell apart signature-based and anomaly-based detection, and a false positive from a false negative
  • Explain the main ideas of zero trust and what the policy decision and enforcement points do

One infected till, forty shops

An illustrative example

A chain of shops links every till in every branch to head office over one network. A member of staff charges a phone from a till, and malicious software on the phone copies itself to the till.

By morning it has reached tills in forty shops. Any till could connect to any other till, and nothing in between asked why. The firewall at head office recorded nothing unusual, because none of this traffic crossed it.

A till never needs to talk to another till. What kind of control would have made use of that fact?

A lock on every room as well as the front door

Traffic is described by its direction. North-south traffic crosses the edge of a network or data centre, in or out. East-west traffic moves between systems inside. An intruder's progress from the first machine taken to others inside is lateral movement, and it travels , where an edge never sees it.

A workload is one running system: a server, a container or a virtual machine. A virtual machine is a complete computer run as software on a larger computer, under a program called a hypervisor.

Micro-segmentation divides the inside of a network into very small segments, down to a single workload, and gives each its own rules about what it may talk to. A groups many machines, and those machines can still attack each other. places between any two workloads.

A hotel keycard

In one hotel the keycard opens the front door, and every room inside is unlocked. In another the card opens the front door and one room. A thief who gets past reception in the second hotel has gained a corridor.

The rules name workloads by what they are, such as the shop's web server, and not by address. The rule then follows the workload when it is moved or copied.

Overlays: one network carried inside another

An overlay network is a virtual network built on top of a physical one. It works by encapsulation: a whole frame from the virtual network is wrapped inside a new , carried across the physical network as cargo and unwrapped at the far end. The physical network reads only the outer addresses.

The usual overlay in data centres is the Virtual Extensible LAN (VXLAN). It wraps a frame in a packet. Its segment number is 24 bits long, which allows about 16 million segments where VLANs allow 4,094.

Overlays let segments be created in software in seconds and stretched between sites, so a segment can follow a workload wherever it runs. They change two things for security. A firewall or sensor on the physical network sees only the outer packet, so inspection has to happen where the traffic is unwrapped. And encapsulation is not : VXLAN adds no protection of its own.

Distributed firewalls and routers

A traditional firewall is one device at a crossing point. Two servers in the same segment exchange traffic without ever reaching it.

A distributed firewall enforces the rules at every workload instead. The enforcement runs in the hypervisor beside each virtual machine, or in a small program, called an agent, on each host. A central controller holds the policy once and sends it everywhere.

A distributed router applies the same idea to routing. Each host routes traffic for its own virtual machines, so traffic between two of them takes the shortest path and does not travel out to one physical router and back. and prevention can be distributed in the same way.

  • The central controller becomes a prize: whoever controls it controls every rule.
  • A wrong rule is copied everywhere at once, so changes are tested before release.
  • The rules depend on knowing which workloads really need to talk to which, so traffic is mapped before anything is blocked.

Detecting and preventing intrusion

An intrusion detection system (IDS) watches traffic or activity for signs of attack and raises an alert. An intrusion prevention system (IPS) does the same and can also block what it finds. The difference comes from where each sits.

IDS: passive
It receives a copy of the traffic. It cannot stop a packet that has already gone by, and if it fails the traffic is unaffected.
IPS: inline
The traffic passes through it, so it can drop an attack. If it fails, or raises a false alarm, it can block legitimate traffic.

Only the device a packet passes through can drop it

Only the device a packet passes through can drop itInternet traffic runs through a mirror port and an IPS to the protected servers. The mirror port sends a copy down to an IDS, which raises an alert. The IPS, in the path, drops a hostile packet before it arrives.Internettrafficsome of ithostileMirrorportcopies eachpacketIPSin the path;if it fails,traffic can stopProtectedserversget only whatthe IPS passesIDSgets a copy;if it fails,traffic flows onAlertafter thepacket hasgone onDroppedthe hostilepacket neverarrivescopy onlydrops itOnly the device a packet passes through can drop itInternet traffic runs through a mirror port and an IPS to the protected servers. The mirror port sends a copy down to an IDS, which raises an alert. The IPS, in the path, drops a hostile packet before it arrives.Internettrafficsome of ithostileMirrorportcopies eachpacketIPSin the path;if it fails,traffic can stopProtectedserversget only whatthe IPS passesIDSgets a copy;if it fails,traffic flows onAlertafter thepacket hasgone onDroppedthe hostilepacket neverarrivesdrops it
Read this figure as text

An intrusion detection system and an intrusion prevention system look for the same signs of attack. The difference comes from where each sits: the IDS is passive and receives a copy, while traffic passes through the IPS.

  1. Traffic from the internet, some of it hostile, reaches a switch.
  2. The original packet carries on along the path towards the servers.
  3. The IPS is in the path, so the protected servers receive only what it passes.
  4. The switch's mirror port sends a copy of the traffic to the IDS. If the IDS fails, the traffic is unaffected.
  5. The IDS raises an alert, but the original packet has already gone on, so a person or another system must act on it.
  6. The IPS can drop a hostile packet before it arrives. If it fails, or raises a false alarm, it can block legitimate traffic.

A network-based system watches the traffic of many machines from one point, but cannot read encrypted content. A host-based system runs on one machine. It sees traffic after , along with that machine's files, programs and logs.

How a detection system decides that something is an attack
MethodCompares activity withStrengthWeakness
Signature-based, also called knowledge-basedPatterns of known attacksAccurate on known attacksMisses a new attack that has no signature yet
Anomaly-based, also called behaviour-basedA profile of normal activityCan catch attacks never seen beforeRaises many false alarms when normal activity varies
Stateful protocol analysisHow each protocol is meant to behaveFinds misuse of a protocolNeeds a great deal of processing

A false positive is an alert for harmless activity. A false negative is an attack that raised no alert. Adjusting a system to reduce one usually increases the other. A false negative is the more dangerous. Too many false positives waste analysts' time until real alerts are ignored.

Zero trust: location is not a reason to trust

Older networks trusted whatever was inside the edge firewall. Zero trust removes that assumption. No user or device is trusted because of where it sits on the network, and every request to every resource is checked.

  • All communication is secured, whatever network it crosses.
  • Access is granted for one session to one resource, with the needed.
  • Each decision uses current facts: who the user is, the health of the device and how it has been behaving.
  • The state of every device is monitored continuously.
  • Authentication and are enforced before access, every time.

Two parts carry this out. The policy decision point (PDP) weighs the request against policy and decides. The policy enforcement point (PEP) stands in the path between the user and the resource, and opens or closes the connection as the decision point instructs.

A software-defined perimeter applies the idea to access. Resources are invisible on the network until a user and device have been authenticated and authorised. A connection is then made to that one resource and nothing else.

Never trust, always verify. Assume a breach has already happened, and limit how far it can go.

Common misconception

“Zero trust is a product that can be bought and switched on.”

Zero trust is a way of designing access. Micro-segmentation and a software-defined perimeter are two techniques for building it, and identity, device health and monitoring all have to be in place as well.

A question, worked through

A hospital group runs 300 virtual servers in one data centre behind an edge firewall and an inline intrusion prevention system. An investigation finds that an intruder entered through a phishing email to an administrator's desktop and then moved from server to server for three weeks. None of that movement crossed the edge. The chief information security officer asks what would do most to prevent a repeat.

Which control would MOST reduce the chance of a repeat?

  1. A second firewall of a different make outside the existing edge firewall
  2. Micro-segmentation rules limiting which servers may talk to each other
  3. More frequent signature updates for the prevention system at the edge
  4. An anomaly-based detection sensor placed on the internet-facing link
Decide on your answer, then open the reasoning
  1. The question asks which control would have limited this intruder. The deciding fact is that the movement was between servers and never crossed the edge.
  2. Rule out a and c: both strengthen the edge. The intruder's traffic was east-west and did not pass either device.
  3. Between b and d: an anomaly-based sensor can catch attacks that have no signature, which is useful. Placed on the internet link, it still watches the wrong traffic.
  4. Micro-segmentation acts where the intruder moved. A server that may talk only to the few servers it needs gives an intruder very little to reach next, so b is the answer.

Answer: B. Micro-segmentation rules limiting which servers may talk to each other

Choosing between good answers

An intruder is already inside and moving between servers
choose a control on east-west traffic: micro-segmentation or a distributed firewall. A stronger edge is the wrong place.
A question asks which system can stop an attack as it happens
choose the intrusion prevention system, which is inline. A detection system only alerts.
A system must catch attacks that have never been seen before
choose anomaly-based detection, and expect more false positives.
A question asks which error is worse for security
the false negative is worse: the attack was missed. False positives cost time.
An answer grants access because a device is on the internal network
it is not zero trust. Choose the option that checks identity and device health for each request.

Check your understanding

4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 4

A network sensor receives a copy of the traffic entering a data centre. It raised an alert for a known attack, but the attack still reached the target server.

Which change would let the system stop such an attack as it happens?

What to remember

  • North-south traffic crosses the edge. East-west traffic moves inside, and so does an intruder's lateral movement.
  • Micro-segmentation gives each workload its own rules, so a break-in at one machine does not open the rest.
  • An overlay such as VXLAN carries a virtual network inside packets of the physical one. Encapsulation is not encryption.
  • An IDS is passive and alerts. An IPS is inline and can block.
  • Signature-based detection knows past attacks. Anomaly-based detection knows normal activity and flags departures from it.
  • Zero trust grants nothing for network location. A policy decision point decides and a policy enforcement point enforces.

Say it from memory

  1. What is micro-segmentation, and what do overlays, distributed devices, IDS and IPS, and zero trust each add?

    Micro-segmentation divides the inside of a network into segments as small as one workload, each with its own rules, to stop lateral movement. Overlays such as VXLAN carry virtual networks inside packets of the physical one. Distributed firewalls, routers and IDS or IPS enforce and inspect at every host. Zero trust grants nothing for network location and checks every request.

    Read this part again

  2. How many segments does VXLAN allow compared with VLANs, and which two security points do overlays change?

    VXLAN's segment number is 24 bits long, which allows about 16 million segments where VLANs allow 4,094. A firewall or sensor on the physical network sees only the outer packet, so inspection has to happen where the traffic is unwrapped. Encapsulation is not encryption: VXLAN adds no protection of its own.

    Read this part again

  3. Where does a distributed firewall enforce its rules, and what three cautions come with it?

    At every workload: in the hypervisor beside each virtual machine, or in an agent on each host, with a central controller holding the policy. Whoever controls that controller controls every rule. A wrong rule is copied everywhere at once, so changes are tested first. Traffic is mapped before anything is blocked.

    Read this part again

  4. How does an IDS differ from an IPS, and what are false positives and false negatives?

    An IDS is passive: it receives a copy of the traffic, raises alerts and cannot stop a packet already gone by. An IPS is inline: traffic passes through it, so it can drop an attack, but a failure or false alarm can block legitimate traffic. A false positive is an alert for harmless activity; a false negative is an attack that raised no alert.

    Read this part again

  5. In zero trust, what do the policy decision point and policy enforcement point do, and what is a software-defined perimeter?

    The policy decision point weighs each request against policy and decides. The policy enforcement point stands in the path between the user and the resource, and opens or closes the connection as instructed. A software-defined perimeter keeps resources invisible until a user and device are authenticated and authorised, then connects them to that one resource only.

    Read this part again

Sources