İçeriğe geç
← Networking and security architecture

Ders 3 / 4 · 8 dk

Network defense: IDS, IPS and network segmentation

How intrusion detection and prevention systems spot suspicious traffic, why encryption limits what they see, and how splitting a network into zones stops one breach from becoming a disaster.

Bu sayfa şimdilik İngilizce.

Firewalls decide what may pass. But traffic that is allowed can still be harmful: a permitted web connection might carry an attack, and a trusted laptop might already be compromised. Network defense adds two further ideas. The first is watching traffic for signs of trouble, the job of intrusion detection and prevention systems. The second is designing the network so that when something does go wrong, the damage stays small. That is segmentation.

Layers of network defense: the internet, a perimeter firewall, an IDS/IPS watching traffic, separate network segments for staff, servers and guests or IoT, and a host firewall on each device.
Defense in depth: each layer catches what the one before it missed.

IDS: the alarm system

An intrusion detection system (IDS) monitors network traffic or computer activity and raises an alert when it sees something suspicious. NIST’s guide to intrusion detection and prevention systems, SP 800-94, describes several kinds. A network IDS watches traffic on a network segment, usually from a copy of the traffic so it never slows it down. A host-based IDS watches activity on a single computer. An IDS only reports; a person or another system decides what to do.

How detection works

MethodHow it worksStrengthWeakness
Signature-basedMatches traffic against patterns of known attacksPrecise, few false alarms for known threatsBlind to new or modified attacks
Anomaly-basedLearns what “normal” looks like and flags deviationsCan catch never-seen-before behaviourMore false alarms; normal changes over time
Stateful protocol analysisChecks that protocols are used the way their standards describeSpots misuse of legitimate protocolsNeeds detailed protocol knowledge; resource-heavy

IPS: the alarm that can also lock the door

An intrusion prevention system (IPS) does everything an IDS does, but it sits in the path of the traffic and can act: drop a malicious packet, end a connection or block an address. The trade-off is risk. A false alarm in an IDS produces an unnecessary alert; a false alarm in an IPS blocks legitimate work. Many organisations therefore run new rules in detection-only mode first and switch to prevention once they trust them.

The encryption problem

Most traffic today is encrypted with TLS, which is excellent for privacy but means a network IDS can no longer read the content of web connections. Organisations respond in three ways. Some decrypt traffic at a proxy, which is invasive and breaks some apps. Some rely on metadata: which addresses talk, when, how much data flows, and what the connection announces before encryption starts, such as the server name. And some move detection onto the devices themselves, where traffic can be linked to the program that produced it.

FireAI follows the metadata and on-device approach on a Mac. It never decrypts your traffic. It reads what connections reveal in the clear, such as DNS lookups and the server name in a TLS handshake, and ties each connection to the app that made it. In Alert mode, the first time an app tries to reach a destination with no rule yet, FireAI pauses that connection and asks you, showing the app, the destination and, when it can tell, the country and company behind it, all without looking inside the encrypted content.

Segmentation: limiting the blast radius

In a flat network, every device can talk to every other device. If one is compromised, the attacker can move sideways, a technique called lateral movement, until they reach something valuable. Segmentation divides the network into zones and controls traffic between them. CISA recommends it as a core defense precisely because it contains intrusions: a compromised printer in one segment should not be able to reach the finance servers in another.

  • VLANs split one physical network into several logical ones.
  • Firewalls or access control lists between segments decide which zones may talk, and on which ports.
  • A DMZ holds internet-facing servers, so a breach there does not open the internal network.
  • Microsegmentation applies rules down to individual workloads or devices, a key idea in zero trust.

Segmentation at home and in small offices

You do not need an enterprise budget to use these ideas. Most home routers offer a guest network: put visitors, smart TVs, cameras and other IoT devices there, and keep your work computers on the main network. Change default passwords on routers and devices, and keep their firmware updated. On your Mac, a host firewall acts as a segment of one: FireAI’s Who’s online view lists the devices sharing your network, so an unexpected one stands out, and its rules decide what each app on your Mac may reach.

Akılda kalsın

  • An IDS detects and alerts; an IPS sits inline and can block, at the cost of blocking legitimate traffic on false alarms.
  • Signature detection catches known attacks precisely; anomaly detection can catch new ones but raises more false alarms.
  • Encryption hides content from network sensors, pushing detection towards metadata and the devices themselves.
  • Segmentation limits lateral movement so one compromised device does not expose the whole network.

Kendinizi sınayın

  1. 1. What is the key difference between an IDS and an IPS?

    • An IDS is hardware, an IPS is software
    • An IDS alerts; an IPS sits in the traffic path and can block — Doğru.
    • An IPS only works on Wi-Fi
    • There is no difference

    Both detect. Only an IPS is placed inline, so it can drop packets or end connections.

  2. 2. Which detection method is most likely to miss a brand-new attack?

    • Signature-based — Doğru.
    • Anomaly-based
    • Manual log review
    • Segmentation

    Signatures describe known attacks. A new or modified attack has no matching signature yet.

  3. 3. What is the main security benefit of network segmentation?

    • Faster internet speeds
    • It limits lateral movement, so a compromised device cannot reach everything — Doğru.
    • It removes the need for passwords
    • It encrypts all traffic

    By controlling traffic between zones, segmentation contains an intrusion to the segment where it started.

FireAI ile uygulayın

Bu dersi kendi Mac’inizde uygulamaya koyun.

Kaynaklar

Mac’inizde uygulayın

Tüm özellikleri 17 gün ücretsiz deneyin, kart gerekmez.

Mac için indir Belgeler