KORTHVEILSecurity firewall
Guides

Malware protection: every layer, and a score

Download as PDF All guides

Korthveil finds malware, phishing and warez in several layers. Security › Malware protection shows them all on one page: which are on, which are current, and a score out of 100. The layers that protect every device without decryption count most; the layers that read files inside encrypted downloads are options.

At a glance:

Step Where What
1 Security › Malware protection See the score and which layers are off
2 Each layer's Turn on Switch it on on its own page, then commit
3 Optional Turn on TLS inspection and Gateway anti-virus to scan downloads too
Security › Malware protection on a test firewall with most layers off: score 10, each layer with Turn on
Security › Malware protection on a test firewall with most layers off: score 10, each layer with Turn on

Every device, no decryption needed

Layer What it catches Where
Malware and phishing names (DNS) Known malware, phishing and scam sites, before anything loads: URLhaus, HaGeZi Threat Intelligence, and optionally the DGA list (random-looking names malware uses to find its servers). From 1.6.1 also, each off until you add it: crypto-mining (NoCoin, UT1), parked domains, typosquatting names, and newly registered names Network › DNS › Ad & tracker blocking › Malware and phishing
Lookalike names (from 1.6.1) Names made to look like well-known sites and your own (paypa1.com, look-alike letters from other alphabets) that exist, found by a background check, one name a second; off by default Network › DNS › Ad & tracker blocking › Lookalike names
Malware, phishing and warez sites Whole categories of sites, including warez (pirated software, cracks and keygens, the most common source of infected downloads) Security › Content & app filtering › Web filtering
Known bad addresses Botnet servers and attackers from ten address feeds, and the addresses and domains of STIX/TAXII indicator feeds you add (from 1.5.4) Security › Intrusion prevention › Threat intelligence
Intrusion prevention Attacks and malware calling home Security › Intrusion prevention (with the Emerging Threats ruleset)
Botnet certificates, malware fingerprints, threat names (from 1.3.7) Inside encrypted connections, without decrypting: servers using certificates known from botnets (abuse.ch SSLBL), malware recognised by its TLS handshake fingerprint (JA3), and connections to threat names even when a device uses its own encrypted DNS Part of Intrusion prevention, on by default

With decryption (optional)

Layer What it catches Where
TLS inspection Lets the file scanners see encrypted downloads, for devices that trust its certificate (CipherGate installs it in browsers) Security › TLS inspection
Anti-virus (ClamAV) Known malware in downloads, and files whose hash is on a threat-intelligence indicator feed (from 1.5.4) Security › Malware protection › Gateway anti-virus
YARA rules (from 1.3.7) Malware families and disguised files signatures miss (YARA-Forge's curated open rules). Core has the fewest false alarms; Only report YARA matches reports without blocking Security › Malware protection › Gateway anti-virus
Sandbox Unknown files go to your own CAPE sandbox or VirusTotal Security › Malware protection › Sandbox
Gateway anti-virus: YARA rules, the rule set, and report-only
Gateway anti-virus: YARA rules, the rule set, and report-only

Step by step, with a harmless test file and the agent's share of the rules: YARA rules: scan downloads and computers for malware.

Sandbox wizard (from 1.3.9)

System › Wizards › Sandbox: check unknown files before they arrive sets up the last layer, in two steps:

  1. Service:
    • CAPEv2: your own sandbox. It runs each file in a virtual machine, and files stay in your network. Give its https address and API token.
    • VirusTotal: your API key. Only fingerprints are looked up unless you tick Upload files VirusTotal hasn't seen.
    • Webhook: your own service.

The key is stored as a secret.

  1. While checking:
    • Hold the file until the verdict (recommended), with how long to wait and what happens when no verdict arrives in time; or
    • Deliver at once and get an alert if a file turns out malicious.
The sandbox wizard: choose the service
The sandbox wizard: choose the service

The wizard turns the sandbox on and has the gateway anti-virus hand it the files it finds clean. Only files the firewall sees are checked: plain HTTP downloads, mail attachments, and HTTPS downloads where TLS inspection is on.

Daily self-test (from 1.3.9)

A layer can be switched on and still not protect: the anti-virus stopped answering, its signatures are missing, or a list stopped downloading. Once a day the firewall tries each layer that is on, for real, and raises an alert for any layer that stopped working. The first test runs 30 minutes after the firewall starts, then every 24 hours.

Layer (when it is on) What the test does Alert
Gateway anti-virus Checks that ClamAV answers, then scans the harmless EICAR test file inside the firewall. The test file is a short standard text every anti-virus must detect; it is never downloaded. Critical: Anti-virus is not answering, Anti-virus missed the test file, or Anti-virus self-test failed
YARA rules Checks that the rules are loaded Warning: YARA rules are not loaded
Intrusion prevention Checks that the ruleset downloaded in the last 3 days, and that its extras (botnet certificates, fingerprints, threat names) are loaded Warning: Intrusion prevention rules are out of date, Intrusion prevention extras not loaded
Malware and phishing lists (DNS) Checks that each list downloaded and holds entries Warning: Malware and phishing lists not loaded
Threat intelligence Checks that each feed downloads Warning: Threat intelligence feeds failing
  • A layer that is off is not a fault here: the score on this page shows it.
  • The alerts appear on Monitoring › Alerts and go to your phones and email like every alert: critical alerts always, warnings when Also send warnings is ticked (see Notifications). When the test passes, Monitoring › Logs & audit › System log shows malware protection self-test passed.
  • To switch the test off, untick Malware protection self-test, daily under Monitoring › Alerts › Checks. It is on by default.
  • From 1.7.4 the engine watchdog goes one step further: every 4 hours it sends a harmless test through intrusion prevention, the DNS filter, the web filter and TLS inspection themselves, and alerts after two failures in a row. See Self-healing checks.
  • Signatures downloaded from scratch (from 1.3.11). On a new firewall, or after the failsafe copy C was put back, the anti-virus first downloads its signatures (a few hundred MB). It starts by itself as soon as both signature files are there. Before 1.3.11 it could stay at ClamAV is not answering until Restart on Security › Malware protection › Gateway anti-virus (seen on a test firewall after its restore from C).
Monitoring › Alerts › Checks: the daily malware protection self-test, on by default
Monitoring › Alerts › Checks: the daily malware protection self-test, on by default

The score

Each layer has a weight; a layer that is on and current counts fully, one that needs attention (a list that hasn't downloaded recently, or a failed download) counts half, and one that is off counts nothing. The no-decryption layers make up 70 of the 100 points.

Good to know

  • Korthveil never runs malware on the firewall. A sandbox is a separate machine you run (CAPE) or VirusTotal.
  • ThreatFox and MalwareBazaar (abuse.ch) now need a key; they come later through korthveil.com, so no firewall needs its own.
  • Newly registered names (from 1.6.1) are offered as an opt-in only: off until you add a list, because they also block some legitimate new sites (a new shop, an event, a campaign). Start in Monitor. The lists are very large: Korthveil checks each against the firewall's memory and refuses one that does not fit, with a message (before 1.6.1 they were not offered at all).

Download as PDF All guides