← all systems · see it in The System
Signature-based detection
| boundary | Inside: the stored patterns (byte signatures, hashes, wildcard and generic signatures, IDS rules, YARA and Sigma rules, indicators of compromise), the matching engines that compare them with observed units (files, boot records, memory, packets, log entries), the preparation that lets a pattern show (unpacking, emulation, decoding), the verdict, the people and programs that make signatures from samples (analysts, automatic extractors, triage machines, decoys) and the corpus of clean programs they test against, and the curation that ages and retires them. Outside: the hosts, networks and logs inspected; the malware and threat actors matched against; the products that carry the method (antivirus software, intrusion detection and prevention systems, SIEMs); the update channel that carries new signatures to sensors (Software update channel); threat-intelligence sharing that supplies indicators; anomaly- and behaviour-based detectors, which sit beside it and often in the same product (the edge is a contention: NIST keeps stateful protocol analysis out, others include behavioural signatures). |
| nested level | A detection method (rung 12) run inside security products: the 'know thine enemy' half of anti-virus and the misuse half of intrusion detection; it runs on computers and networks and on people who write and tune the patterns; its patterns travel on update channels and sharing platforms. |
| scale | technological |
From the walk
In IBM's virus lab in 1994, each newly received sample was run beside six 'decoy' programs so that it would infect clean copies, and a program then picked a 16- or 24-byte signature least likely to turn up in half a gigabyte of ordinary software; with that machinery one expert working half-time kept pace with the flood of new viruses (src:kephart-1994-immune).
Definition. Recognising a threat by matching what is observed against stored patterns of the known: 'A signature is a pattern that corresponds to a known threat. Signature-based detection is the process of comparing signatures against observed events to identify possible incidents' (src:nist-sp800-94). Walked as the method and the practice around it: the stored patterns (antivirus byte signatures and hashes, intrusion-detection rules such as Snort and Suricata, YARA and Sigma rules, indicators of compromise), the engines that match them against files, packets and log events, the analysts and extractors that make them from samples, the tests against clean programs, and their distribution, decay and retirement. Definition drawn from the encyclopedia entries listed under Sources (Wikipedia, CC BY-SA).
On this page: Properties 2 · Measures 31 · Open contentions 3 · Cross-scale patterns 19 · Valence partners 12 · Partners and parts 75 · Notes 3 · Layers 54 · Sources 41
Properties published scienceour proposal
Sourced fields, and our own readings.
| born at | 1987 (first documented removal of an in-the-wild virus, Vienna; first VirusScan at the end of 1987; G Data, UVK, NOD the same year) |
| born precision | year |
Measures (31) published science
| characteristic clock: signature update cadence | weekly (McAfee DAT archive, 2006-2007); monthly updates the typical timescale in 1994 updates per period |
| time from public disclosure to a Snort rule (1999 example) | a few hours |
| characteristic clock: anti-malware label flips | daily (over 50% of flips reverse the next day) per day |
| signature length (1990s virus scanners) | 16 to 32 bytes |
| time to make a signature by hand (1994) | several hours or days hours to days |
| new viruses per day (1994) | 2 to 3 a day; about 2000 DOS viruses known viruses per day |
| signatures extracted automatically (IBM, 1991-1994) | about 1500 signatures |
| zero-day detection rate of a signature NIDS (Snort, 2006 rule set) | 17% (31 of 183); 8.2% counting only signatures with no known false positives and hard to evade percent of attacks |
| detection rate for known attacks (Snort, same test) | 54% (93 of 173) percent of attacks |
| Snort official rule set size (November 2006) | 9128 signatures (against 9104 high-severity and 21166 total disclosed vulnerabilities) |
| duration of zero-day attacks before disclosure (18 vulnerabilities) | 19 days to 30 months; median 8 months; mean about 10 months (312 days) |
| share of zero-day exploit signatures still active years after disclosure | 58 percent |
| vulnerability window: sample seen to first signature detection (one engine) | about 48 (for 5147 of 7220 samples eventually detected) days |
| detection loss on the newest malware | over 45% drop in detection rate, year-old against day-old samples |
| N-version detection coverage | 98% with ten engines; 83% with one; 35% better on recent threats percent of 7220 samples |
| signature update cadence (McAfee DAT files, 2006-2007) | about 100 (sd 57) newly detected samples per week |
| share of anti-malware label flips that reverse the next day | over 50% (1,760,484 hazard flips against 811,325 others) percent of flips |
| false-positive rate of a polymorphic-worm signature (Polygraph, Apache-Knacker) | 0.0008% (token subsequence) against 92.5% (longest single substring) percent of innocuous flows |
| noise level that misleads a signature generator | about 50% deliberate noise (against 80% accidental noise tolerated) percent of suspicious pool |
| analyst time saved by automatic Yara rules | 44-86% percent of analyst time |
| share of Sigma process-creation rules evadable | 129 of 292 (44%) rules |
| MISP community sightings and confirmed false positives (January 2018) | 10,219 sightings, 30 confirmed false positives; 8686 events, 1,048,405 attributes, 1646 users, 845 organisations count |
| indicators ever sighted (one environment, 2018-2020) | 5,789 of about 14 million; 892,240 sightings over 724 days indicators |
| indicator time-to-live for 90% of sightings (email indicators) | 38 days (a 95% cut in monitoring cost for a 10% loss of coverage) |
| packers with more than 50 unpacking layers | 4.4% of off-the-shelf packers percent |
| behaviour-model detection of unknown variants | 0.23 for unknown variants, 0.92 for known variants, 0.64 overall detection effectiveness |
| unique malware signatures reported per day (vendor report via survey) | over 100,000 signatures per day |
| share of program files seen on only one machine | 94% of billions of files on 100 million computers over 12 months; benign singletons outnumber malicious 80:1 percent of files |
| false alarm rate an IDS must reach (base-rate argument) | less than 1 in 100,000 per event false alarms per event |
| signature length chosen by the automatic extractor (IBM, 1994) | 16 or 24 bytes |
| atomic evasions against network intrusion detection known | at least 147 techniques |
Open contentions (3) open contention
Where sources or readings disagree. Both stay on the map.
- C-4612 What counts as a 'signature' in attack detection: only fixed patterns of known attacks, or also patterns of program behaviour and checks on how network rules are followed?
booked: The map keeps both readings side by side and rules on neither.
the other reading: NIST: signatures exclude stateful protocol analysis and the term 'misuse detection' is avoided; behaviour models are not signatures (Kolbitsch sets them against 'byte (or instruction) signatures'); some count stateful protocol analysis as signature-based - C-4613 Is spotting attacks by matching known patterns outdated, or still the main and dependable method that security teams use?
booked: The map keeps both readings side by side and rules on neither.
the other reading: signature detection is outdated and being replaced by behaviour, anomaly and machine-learning detection; anomaly detection is overrated: its premise of finding novel attacks does not hold as generally as implied, it gives prohibitive false alerts, and static machine learning fails on packing as signatures do (Sommer and Paxson; Uetz; Aghakhani 2020); 'signature-less' as a market label applied by the media and analyst firms (encyclopedia), while rule formats (YARA, Sigma, Suricata) that are signatures by NIST's definition keep growing; in deployment the methods run side by side (specialist's framing; the marketing reading is his, the 'next-generation' label is sourced) - C-4614 Can matching against known attack patterns catch zero-day attacks (attacks on flaws nobody knew about yet)?
booked: The map keeps both readings side by side and rules on neither.
the other reading: signature systems cannot detect zero-day attacks (the claim Holm quotes from the anomaly-detection literature; NIST 'largely ineffective at detecting previously unknown threats'; Bilge: while a vulnerability is unknown anti-virus cannot detect the attack through signature scanning)
Cross-scale patterns seen here (19) our proposal
Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Signature-based detection. Each links to every other system that shows it.
- causal ceiling (structural)
No algorithm can detect every possible virus (Cohen 1987, through the encyclopedia); Adleman: detecting the set of viruses is Pi-2 complete, 'quite intractable'. A limit set by computation, not by the detector's means. Signature detection lives below it by detecting only the known. The ceiling bound - red-queen (structural)
Move and counter-move over three decades, in escalation form: byte signatures, then encrypted bodies; then decryptor-only signatures, then polymorphic decryptors (1990, 1992); then emulation and wildcards, then metamorphic rewriting and many-layered packers; on the network side single-substring worm - same role, different builds (structural)
Recognising a known intruder by a held pattern of a small part of it: anti-virus byte signatures and, in Kephart's own comparison, antibodies and receptors binding small epitopes. Kephart: 'an exact match to the entire antigen is not attempted'; 'Similarly, in the computer immune system, a particula - templating (structural)
One rule format reused unchanged across products: Sigma rules converted to queries for any SIEM; one indicator used in firewalls, IDS, AV and SIEMs; one signature shipped to every installation. And one agreed test pattern every compliant scanner carries: the EICAR string, set 'as a verified virus, s - trade one property for another (structural)
Specificity bought with coverage: a longer or exact pattern (a whole-file hash) has few false positives and misses any change; a short or wildcard pattern catches variants and fires on innocent data. The kinds sit along the trade: hashes, byte strings, generic wildcard signatures, multi-token signat - who opens the door (structural)
Every match happens at a door the receiver built ahead of time: the signature installed by the last update, the rule chains built before capture starts, the decoys placed where viruses look so a sample walks in. - borrowed-then-held (partial)
Signature making first done outside the machine (collectors, a central lab, human experts), then designed to be held at each computer (decoys, extractor and kill signal at the host). The held phase is proposed and partly built in the lab, not shown on hosts. - cephalization (partial)
Network signature engines placed at the gateway between the edge network and the Internet, where traffic first enters; host scanners also run everywhere, so the gathering is partial. - conservation law plus closure (partial)
The detection rate alone does not say what an alarm means: it needs the base rate of intrusions to close it (Axelsson); signature detectors may sit near the needed false-alarm point, anomaly detectors orders of magnitude off. - same shape, opposite sign (partial)
One process, comparing what is observed against a held set, with the decision reversed: signatures alarm on a match to the known bad ('know thine enemy'); integrity monitors and self databases alarm on a mismatch to the known good ('know thyself'). Kephart names both strategies and runs them togethe - The carry (partial)
The wait face: everything downstream waits on the pattern-maker. Analysts carry a growing backlog; triage passes only the unknown overflow to experts; one engine took about 48 days on average from a sample's first sighting to its detection; Kephart: monthly updates two orders of magnitude slower tha - The Payment to Entropy (partial)
Signal form: each hand-off of a signature loses part of its reach. Made at the vendor, distributed, installed (or not: many customers run definitions over a year old); in sharing, most indicators are never sighted (5,789 of about 14 million); half of engines' label flips are noise that reverses the - the whole sets the local reference (partial)
The vendor's central database (and the clean corpus behind it) sets what every host's scanner counts as a threat; each host reads true locally while running a reference that can be a year old. - Umwelt: each system carves its own slice of one shared medium (partial)
Each detector sees only its slice: byte patterns in files, packets on a link, fields in log events. Network detectors cannot see malware that sends no traffic; a signature sees only the stretch of bytes it names. On a network the detector must model another system's slice before its own pattern mean - lightning (surface)
Disclosure as a discharge: knowledge held by a few released at once, after which attacks and variants exploiting the flaw grow by up to five orders of magnitude while signatures are released. The firing is a social event, not a stored physical difference. - namespace completeness (the map predicts its gaps) (surface)
Holm: the Snort rule count tracks the count of disclosed high-severity vulnerabilities (9128 against 9104), so the vulnerability list marks where rules should be; zero-days are the slots no list holds yet. A census match, not a structure that predicts members' properties. Holm's own caveat, same par - nested ladder (surface)
The Pyramid of Pain orders indicators (hashes, addresses, domains, artefacts, tools, TTPs) by how costly each is for an attacker to change; an order by cost, not each rung implying the ones below. - partner-becomes-part (surface)
Scanners, repairers, activity monitors and integrity checkers once sold apart are integrated into one product; no inheritance or fused identity shown. - same toolkit, independent builds (surface)
Byte strings, regular expressions and Boolean logic assembled separately into antivirus signatures, Snort rules, YARA rules and Sigma rules.
Valence: what it trades, and with whom (12) published science
Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.
- Human (Homo sapiens) via Human society (from local community up to societies) · Signature-based detection mixed
- Malware via Software · Signature-based detection mixed
- Intrusion detection system via Written record (durable external marks: texts, archives, canon) · Signature-based detection gain
- Threat actor via Software · Signature-based detection loss
- Computer network via Electromagnetic field · Signature-based detection gain
- Zero-day vulnerability via Software · Signature-based detection loss
- Anomaly-based detection via Software · Signature-based detection mixed
- Security information and event management (SIEM) via Written record (durable external marks: texts, archives, canon) · Signature-based detection gain
- Antivirus software via Written record (durable external marks: texts, archives, canon) · Signature-based detection gain
- Cyber threat intelligence via Written record (durable external marks: texts, archives, canon) · Signature-based detection gain
- Software update channel via Software · Signature-based detection mixed
- Multi-engine scanning services (VirusTotal) via Written record (durable external marks: texts, archives, canon) · Signature-based detection mixed
Partners and parts published science
Built from / builds (10)
- Signatures and rules
- Indicators of compromise
- Signature database (definitions, rule sets, indicator lists)
- Matching engine (scanner, rule chains)
- Generic unpacking and emulation before matching
- Malware analysts and rule writers
- Automatic signature extractors and generators
- Corpus of legitimate programs or innocuous traffic ('self')
- Competition for undetected presence on hosts (malware vs antivirus)
- Evasion against network and log rules
Sits inside / holds (4)
- Computer security
- Intrusion detection system
- Security information and event management (SIEM)
- Antivirus software
expressed by (21)
- Generation/Synthesis
- Templating / Standardization
- Interoperability/Transduction (Bridging)
- Amplification/Scale-Up (Manufacture & Distribution)
- Evolvability/Plasticity Engineering (Design for Future Variation)
- Sensing/Scanning
- Uncertainty Reduction/Learning
- Multi-Scale Data Fusion / Triangulation
- Trail-Marking / Externalized Memory (Stigmergy)
- Frontier Outposts / Sensing Extension
- Social Learning / Public Information Use
- Reactive Response
- Proactive Defense
- Technique-Based Identification (a.k.a. Technique-Based Detection)
- Validation of Identity/Intention
- Validation of Effectiveness
- Deception
- Resilience & Repair
- Redundancy & Diversity
- Triage & Prioritized Allocation
- Quality Control & Error Correction
floor filled by (22)
- Human (Homo sapiens)
- Operating system
- Malware
- Intrusion detection system
- Security operations center (SOC)
- Emulation
- Computer network
- Packet capture (network taps, port mirroring, promiscuous and host capture)
- Signatures and rules
- Security information and event management (SIEM)
- Antivirus software
- Cyber threat intelligence
- Indicators of compromise
- Signature database (definitions, rule sets, indicator lists)
- Matching engine (scanner, rule chains)
- Generic unpacking and emulation before matching
- Malware analysts and rule writers
- Automatic signature extractors and generators
- Corpus of legitimate programs or innocuous traffic ('self')
- YARA rules
- Sigma rules
- Multi-engine scanning services (VirusTotal)
Kinds (14)
- Signatures and rules
- Intrusion detection system
- Malware detection method
- Indicators of compromise
- Byte-string (virus) signature scanning
- File-hash matching
- Generic (wildcard) signatures
- YARA rules
- Sigma rules
- Behavioural signatures (API-call sets)
- Automatically generated signatures (Kephart's extractor, Polygraph, AutoYara)
- Packer signatures (PEiD, Sigbuster)
- Similarity (fuzzy) hashes (ssdeep)
- Vulnerability signatures
wired (4)
Notes published science
- In IBM's virus lab in 1994, each newly received sample was run beside six 'decoy' programs so that it would infect clean copies, and a program then picked a 16- or 24-byte signature least likely to turn up in half a gigabyte of ordinary software; with that machinery one expert working half-time kept pace with the flood of new viruses (src:kephart-1994-immune).
- The frequent claim that signature systems cannot catch never-before-seen attacks had not been validated: when Holm ran 183 zero-day exploits past Snort with a rule set older than all of them, rules matched about one in six (one in twelve on a strict count, and half the alarms came from rules written for other software); one old generic rule for runs of filler bytes gave a 'detection possibility' for an exploit Stuxnet later used (src:holm-2014-zero-day).
- Of billions of program files seen on 100 million computers in a year, 94% appeared on just one machine (benign files outnumber malicious ones among them 80 to 1), so an exact fingerprint of one file often never meets a second copy; rules such as YARA's describe whole families instead, which 'survives file mutations that defeat hash matching' (src:li-2017-singletons, src:wp:yara).
Layers
The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.
signature-based detection as security researchers describe it: the files, packets and log events it inspects, up to the defender's choice of what to catch (reader's view)
- L1: The inspected units: files, boot records, memory, packets, log entries
- L2: Preparation: capture, unpacking, emulation, decoding, collection
- L3: The installed pattern set: signature database, rule chains, converted queries
- L4: Matching: exact, wildcard, fuzzy, multi-token, Boolean; many patterns matched at once by automata built off-line (Aho–Corasick)
- L5: Verdict: label, alert, quarantine
- L6: Authoring and curation of signatures from samples, disclosures, feedback and the clean corpus
- L7: The defender's choice of what to catch and what errors to bear
the boardroom (shared floors)
- L5: Verdict: on a match, further checks, then a label, alert or log entry naming the threat (scanners name the virus and where it is; Snort and Suricata alert; engines' labels, which can flip)
- L6: Authoring and curation: analysts and automatic extractors make signatures from samples and disclosures, test them against the clean corpus, revise them on feedback, and age out indicators
- L7: The defender's choice of what to catch: which threats count, how many false alarms against how many misses, which priorities alert, what a miss costs against keeping a pattern
way in: Files, boot records and memory on a host
- L1: Files, boot records, memory and other places executable code is stored
- L2: Read, unpacked and emulated so a packed or encrypted body shows its code
- L3: Scanning strategy by region: top-and-tail, entry point, PE sections
- L4: Exact, wildcard or fuzzy match against the signature database (and hashes)
way in: Log events (process creation and other host logs)
- L1: Process-creation events written by Windows or Sysmon (command line, image, parent image)
- L2: Collected centrally by the SIEM
- L3: Sigma rules converted into the SIEM's own query language
- L4: Search expressions matched on fields (CommandLine 45% of expressions, Image 29%, ParentImage 10%)
way in: Network traffic
- L1: Traffic at the gateway between an edge network and the Internet, or at a host
- L2: Captured by libpcap and a kernel filter
- L3: Decoded and reassembled into flows; the reassembly must guess how the end host will read the same packets (target-based reassembly per host, or normalising the traffic), since the detector and the host can rebuild different data
- L4: Matched against the rule chains: content strings at any or fixed offsets, regular expressions, header tests
way in: New samples (the unknown, to be learned)
- L1: New samples circulate among collectors and vendors
- L2: Captured: in the 1994 lab each received sample was run beside six decoy programs so it infected clean copies (decoys at users' machines were proposed); samples stored so they cannot run
- L3: Code separated from data (instructions that execute are code)
- L4: Triage: scanned with the current database; known samples dismissed
- L5: Analysis of what is left: disassembly by an expert, or the algorithmic analyzer (useful for about 90% of viruses seen)
way in: Reports back: false positives, misses and sightings
- L1: Users, vendors of falsely accused software, sharing communities and multi-engine services report
- L2: Recorded as sightings and confirmed false positives on a sharing platform
way in: Shared indicators of compromise
- L1: Indicators published on sharing platforms (MISP: 1,048,405 attributes in one community)
- L2: Taken in with a base score from tags and source confidence
- L3: Aged: the score decays with time unless a sighting resets it; removed after a time-to-live
- L4: Installed in firewalls, IDS, antivirus and SIEMs as matchers
way in: The clean corpus ('self': legitimate programs, innocuous traffic)
- L1: A corpus of ordinary programs (half a gigabyte at IBM) or a pool of innocuous flows
- L2: Short byte-grams counted in the corpus
- L3: Combined into a probability that each candidate appears in clean programs
- L4: Candidate scored; lowest false-positive probability chosen
- L5: Released signatures re-run against the corpus before shipping
way in: Vulnerability and exploit disclosures
- L1: A vulnerability or exploit made public (mailing lists, advisories, CVE identifiers)
- L2: Read by rule writers, who write rules for the probes
way out: Alert a person
- L1: Read by the user or analyst
- L3: Sent to syslog, popup messages or an alert file
- L5: Alert raised on a match
way out: Delete, quarantine or block the matched file
- L1: File deleted or quarantined (a false positive here can disable the operating system)
- L5: Action chosen for the verdict
way out: Drop the traffic in-line (IPS mode)
- L1: Traffic filtered as a firewall would
- L5: Prevention action for the matched flow
way out: Repair the infected program
- L1: Program restored to its uninfected state
- L5: Repairer called with the virus identified
way out: Rescan the archive when a new signature arrives
- L1: Hosts infected earlier named to administrators
- L6: New signature applied to stored files
way out: Ship new signatures to every installation
- L1: Installed (or not) at each host: many run definitions more than a year old
- L3: Carried by the update channel (weekly DAT files at McAfee in 2006-2007; per vendor; one indicator shared to many)
- L6: Databases updated and a new version released