KORTHVEILSecurity firewall
Guides

Layered detection: one risk score per device, decoys, lateral movement and exfiltration

Download as PDF All guides

No single technique catches every attack. Signatures miss new malware, behaviour rules miss quiet malware, and a device's normal hides what looks normal. Korthveil therefore adds up every sign from every layer for each device, into one risk score. Several weak signs in different layers count more than many of the same kind, and a single strong sign is enough to act.

Security › Live attacks shows it:

  • Devices by risk: every device with a sign, the highest score first, with the timeline of its signs, their evidence, their MITRE ATT&CK technique and why the score is what it is;
  • Decoys: unused addresses where the firewall answers like a file share, a remote desktop, SSH and an admin page. No device has a reason to touch them, so any contact is a strong sign;
  • Risk score settings: when the score alerts and acts, the summaries, and lateral movement.

Network › Devices shows each device's score as a chip that opens its timeline.

At a glance:

Step Where What
1 Nothing to set up The score adds every sign from the start, in mode Act
2 Security › Live attacks › Decoys Add a decoy address, Pick a free address, tick Decoy services on; review and commit
3 Decoys › Allowed sources and Risk score settings › Allowed hosts Your network scanners, management and backup servers; review and commit
4 When a device's score rises Open it under Devices by risk: Why and the Timeline say what it did

The layers

Layer Its signs
Known bad Intrusion prevention signatures from the device, malware in its downloads (gateway anti-virus), the endpoint shield's matches of known-bad addresses and names, known-bad files on the computer
On the computer The Korthveil agent's signs: the ransomware guard, the remote-access watch (unknown listeners, reverse shells and tunnels, remote-control tools), persistence
Network behaviour Call-home beacons, DNS tunnels, lateral movement, exfiltration, ICMP tunnels, bulk DNS past the firewall's resolver, scanning, worm-like fan-out, dangerous destinations
Unusual for this device Uploads far above its own normal, an appliance's new port, a first-seen destination the destination check judged suspicious or dangerous
Deception Contacts with the decoys
Local network attack ARP and neighbour spoofing, rogue routers and DHCP servers (Security › Live attacks › LAN attacks)

Each sign has a strength (weak, medium or strong), its ATT&CK technique where it has one (for example T1021.002, SMB/Windows Admin Shares) and its evidence.

The score

  • A strong sign is worth 100 points, a medium one 35, a weak one 12.
  • A sign counts in full when it happens and halves every 6 hours; after 24 hours it no longer counts.
  • The second sign of the same kind counts half, the third a quarter, and so on: a thousand repeats can't make a score by themselves.
  • Every layer beyond the first adds 25 %: three weak signs in three layers (54) count more than ten weak signs of one kind (24).
Score Level What happens (mode Act)
20 Watch Shown on the device and here
50 Alert An alert by email and push, with why and the strongest signs
100 Act The endpoint actions run (below), with a critical alert

So one strong sign acts (a decoy touched, a DNS tunnel, a trojan's control traffic), two medium signs in two layers alert, and weak signs alone only watch.

Devices by risk on Security › Live attacks: one device acted on (a decoy touched and lateral movement in two layers) with Why, the points and the timeline; one at alert, one at watch (example devices, documentation addresses)
Devices by risk on Security › Live attacks: one device acted on (a decoy touched and lateral movement in two layers) with Why, the points and the timeline; one at alert, one at watch (example devices, documentation addresses)

When a device reaches Act, the firewall, in one incident under Endpoint detections and infection traces:

  1. blocks the outside counterparts of its strong signs for every device, both ways (an exfiltration's destination, a tunnel's server);
  2. quarantines the device (it reaches only the firewall and your remediation servers) and isolates it through its Korthveil agent when it has one;
  3. traces where the infection came from.

Never-block addresses and exempt devices are never acted on by themselves. A never-block address gets Block anyway, an exempt device Isolate anyway, and you get a top-priority alert. When another feature already handled the device within the hour (an endpoint detection, a trace, the infected device quarantine), the score adds its reasons to that incident and does nothing twice.

Modes (Risk score settings): Act (default), Alert only (alerts at alert and act, never acts), Watch (shown only), Off. When the endpoint actions are in mode alert (Endpoint detections), the score alerts but acts on nothing either.

Risk score settings: the mode, the watch, alert and act thresholds, the summaries, and lateral movement with its allowed hosts
Risk score settings: the mode, the watch, alert and act thresholds, the summaries, and lateral movement with its allowed hosts

Decoys

Each decoy is an unused address in a zone you choose, IPv4, IPv6 or both. The firewall answers there with:

Service Port What it does
File share (SMB) TCP 445 Answers the negotiation like a file server, then refuses every sign-in
Remote desktop (RDP) TCP 3389 Confirms the connection request, then closes
SSH TCP 22 Sends its greeting, closes once the key exchange starts: no sign-in is possible
Admin web page TCP 80 and 443 A plain sign-in page that never accepts

Rules the decoys keep:

  • No real sign-in, no credential. Of what was tried, only the fact is kept, with the user name's length and a hash keyed per start (it tells whether two tries used the same name, until the firewall restarts). Never the name, never a password.
  • Only from inside. They answer only the inside zones you tick under Answer these zones, never a zone facing the internet. Everything else sent to a decoy address is dropped, and nothing of the firewall itself answers there.
  • Never handed out. The DHCP server leaves the decoy addresses out of its pools and refuses a reservation on one. Pick a free address finds an address nothing uses.
  • Bounded. 64 connections at once, 10 seconds and 64 KB each; 20 touches per device and 600 in all a minute are recorded.

Any contact is a strong sign: Live attacks (kind Decoy touched), the score (which then acts), and the list under Decoys › Touches with what was tried. A port scan that only knocks (a half-open scan) counts too: the firewall sees it in its connection table.

What is not a sign:

  • an allowed source (Decoys › Allowed sources): your network scanners and management hosts. Their touches are listed with "not counted";
  • a SentinelOps-managed computer that only connects (its agent looking around the network): one that talked to a SentinelOps server within the hour. One that speaks the protocol (an SMB negotiation, an SSH greeting, a sign-in) is a sign.

On a failover pair decoys are not available in this release: both firewalls would answer the same address.

Decoys: a decoy address in zone lan (IPv4 and IPv6), the four services, the zones answered, an allowed source, the listeners, and the touches: two strong signs and one allowed scanner not counted (example touches, documentation addresses)
Decoys: a decoy address in zone lan (IPv4 and IPv6), the four services, the zones answered, an allowed source, the listeners, and the touches: two strong signs and one allowed scanner not counted (example touches, documentation addresses)

Lateral movement and exfiltration

Where traffic crosses the firewall, IPv4 and IPv6:

Sign Strength
A device reaches 5 inside devices it never reached before on admin protocols (SMB, RDP, WinRM, SSH, RPC) within 10 minutes medium (strong at 15)
The first-ever admin-protocol connection between two inside devices weak
An hour's upload to a first-seen or rare destination above 100 MB and 3x the device's busiest normal hour medium (strong above 5x, or when the destination check judged it dangerous)
ICMP carrying data (large echoes, over 256 KB) medium (strong over 4 MB)
DNS sent straight to an outside server, over 4 MB an hour medium
A first-seen destination the destination check judged suspicious or dangerous weak or medium

Normal admin and backup traffic doesn't alarm:

  • For the first 7 days the firewall learns the usual admin connections (a backup server's targets, an administrator's servers) and each device's destinations without signs. Those pairs stay normal afterwards.
  • A device's own upload normal is learned by the anomaly detection: a backup server's nightly upload is its normal.
  • Allowed hosts (Risk score settings) are never judged; so are devices exempt from the anomalies.
  • SentinelOps operations pass: a computer that talked to a SentinelOps server within the hour is not judged for lateral movement (its agents deploy over WinRM and SSH), and uploads to the SentinelOps servers and your management servers are never exfiltration.

The DNS filter's own tunnel detection (names that hide data) and the anomaly detection's scans of the LAN feed the score too.

Summaries

A daily summary (and every Monday a weekly one) goes through your alert channels as the message detection summary: how many devices showed signs, how many were alerted and acted on, the decoy touches, the signs by layer, the ATT&CK techniques seen and the highest scores. Set the hour (UTC) or turn them off under Risk score settings › Summaries; turn the message off under Monitoring › Alerts.

In your SIEM

With the event type Detection signs on a log export destination, every sign goes to your SIEM with its ATT&CK technique and the device's score: CEF cs5, LEEF technique, JSON techniques, Elastic threat.technique.id. See Logs to your SIEM.

Measured, not promised

Every detection claim is measured with harmless simulations (adr/0308 §6). On a test firewall in network namespaces (no real network), 13 of 13 simulated techniques were detected, each within seconds, and both normal-traffic tests (SentinelOps-like traffic, a learned backup job) stayed quiet:

Simulated technique ATT&CK Detected by
SMB negotiation and sign-in on a decoy T1021.002 Decoy
RDP connection request on a decoy T1021.001 Decoy
SSH key exchange on a decoy, over IPv6 T1021.004 Decoy
Sign-in on the decoy admin page; HTTPS over IPv6 T1110, T1046 Decoy
Port scan of a lab subnet T1046 Anomaly scan, lateral movement
SMB to 16 new servers; WinRM to 6 over IPv6 T1021.002, T1021.006 Lateral movement
150 MB to a first-seen address T1048 Exfiltration
Data in ICMP; bulk DNS past the resolver; a DNS tunnel T1095, T1071.004 Network behaviour, the DNS filter
A test beacon every minute T1071 App-ID's call-home detection

The computers' side (the EICAR test file, a test encryptor, an encoded PowerShell line, an unknown listener, a reverse shell) is measured on Windows, macOS and Linux test computers before it is claimed.

Limits

  • The firewall sees what crosses it. Two devices on the same switch and network talk directly; the computers' agents and separate zones (VLANs) close that gap.
  • Lateral movement is judged after the learning week; a new legitimate management or backup server raises signs until you add it to Allowed hosts.
  • A decoy is a strong sign by design: a discovery app on a phone (a network scanner) touching it counts too. Add such devices to Allowed sources.
  • Exfiltration needs the device's upload normal (learned for 3 days); a device without it isn't judged.
  • The signs and scores are kept on the firewall for 14 days (300 devices, 60 signs each).

Download as PDF All guides