EVOPEDIA

← all systems · see it in The System

Signature-based detection

boundaryInside: 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 levelA 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.
scaletechnological

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 at1987 (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 precisionyear

Measures (31) published science

characteristic clock: signature update cadenceweekly (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 flipsdaily (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 disclosure58 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 malwareover 45% drop in detection rate, year-old against day-old samples
N-version detection coverage98% 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 dayover 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 generatorabout 50% deliberate noise (against 80% accidental noise tolerated) percent of suspicious pool
analyst time saved by automatic Yara rules44-86% percent of analyst time
share of Sigma process-creation rules evadable129 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 layers4.4% of off-the-shelf packers percent
behaviour-model detection of unknown variants0.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 machine94% 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 knownat least 147 techniques

Open contentions (3) open contention

Where sources or readings disagree. Both stay on the map.

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.

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.

Partners and parts published science

Built from / builds (10)

Sits inside / holds (4)

expressed by (21)

floor filled by (22)

Kinds (14)

wired (4)

Notes published science

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)

  1. L1: The inspected units: files, boot records, memory, packets, log entries
  2. L2: Preparation: capture, unpacking, emulation, decoding, collection
  3. L3: The installed pattern set: signature database, rule chains, converted queries
  4. L4: Matching: exact, wildcard, fuzzy, multi-token, Boolean; many patterns matched at once by automata built off-line (Aho–Corasick)
  5. L5: Verdict: label, alert, quarantine
  6. L6: Authoring and curation of signatures from samples, disclosures, feedback and the clean corpus
  7. L7: The defender's choice of what to catch and what errors to bear

the boardroom (shared floors)

  1. 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)
  2. 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
  3. 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

  1. L1: Files, boot records, memory and other places executable code is stored
  2. L2: Read, unpacked and emulated so a packed or encrypted body shows its code
  3. L3: Scanning strategy by region: top-and-tail, entry point, PE sections
  4. L4: Exact, wildcard or fuzzy match against the signature database (and hashes)

way in: Log events (process creation and other host logs)

  1. L1: Process-creation events written by Windows or Sysmon (command line, image, parent image)
  2. L2: Collected centrally by the SIEM
  3. L3: Sigma rules converted into the SIEM's own query language
  4. L4: Search expressions matched on fields (CommandLine 45% of expressions, Image 29%, ParentImage 10%)

way in: Network traffic

  1. L1: Traffic at the gateway between an edge network and the Internet, or at a host
  2. L2: Captured by libpcap and a kernel filter
  3. 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
  4. 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)

  1. L1: New samples circulate among collectors and vendors
  2. 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
  3. L3: Code separated from data (instructions that execute are code)
  4. L4: Triage: scanned with the current database; known samples dismissed
  5. 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

  1. L1: Users, vendors of falsely accused software, sharing communities and multi-engine services report
  2. L2: Recorded as sightings and confirmed false positives on a sharing platform

way in: Shared indicators of compromise

  1. L1: Indicators published on sharing platforms (MISP: 1,048,405 attributes in one community)
  2. L2: Taken in with a base score from tags and source confidence
  3. L3: Aged: the score decays with time unless a sighting resets it; removed after a time-to-live
  4. L4: Installed in firewalls, IDS, antivirus and SIEMs as matchers

way in: The clean corpus ('self': legitimate programs, innocuous traffic)

  1. L1: A corpus of ordinary programs (half a gigabyte at IBM) or a pool of innocuous flows
  2. L2: Short byte-grams counted in the corpus
  3. L3: Combined into a probability that each candidate appears in clean programs
  4. L4: Candidate scored; lowest false-positive probability chosen
  5. L5: Released signatures re-run against the corpus before shipping

way in: Vulnerability and exploit disclosures

  1. L1: A vulnerability or exploit made public (mailing lists, advisories, CVE identifiers)
  2. L2: Read by rule writers, who write rules for the probes

way out: Alert a person

  1. L1: Read by the user or analyst
  2. L3: Sent to syslog, popup messages or an alert file
  3. L5: Alert raised on a match

way out: Delete, quarantine or block the matched file

  1. L1: File deleted or quarantined (a false positive here can disable the operating system)
  2. L5: Action chosen for the verdict

way out: Drop the traffic in-line (IPS mode)

  1. L1: Traffic filtered as a firewall would
  2. L5: Prevention action for the matched flow

way out: Repair the infected program

  1. L1: Program restored to its uninfected state
  2. L5: Repairer called with the virus identified

way out: Rescan the archive when a new signature arrives

  1. L1: Hosts infected earlier named to administrators
  2. L6: New signature applied to stored files

way out: Ship new signatures to every installation

  1. L1: Installed (or not) at each host: many run definitions more than a year old
  2. L3: Carried by the update channel (weekly DAT files at McAfee in 2006-2007; per vendor; one indicator shared to many)
  3. L6: Databases updated and a new version released

Sources (41) published science

Scarfone, K. & Mell, P. (2007). Guide to Intrusion Detection and Prevention Systems (IDPS). NIST Special Publication 800-94. doi:10.6028/NIST.SP.800-94
Kephart 1994, A Biologically Inspired Immune System for Computers (Artificial Life IV) (behind its links)
Brezinski, K. & Ferens, K. (2023). Metamorphic Malware and Obfuscation: A Survey of Techniques, Variants, and Generation Kits. Security and Communication Networks, doi:10.1155/2023/8227751 (read: introduction, signature analysis and creation, oligomorphism to metamorphism, generation kits) (behind its links)
Newsome, J., Karp, B. & Song, D. (2005). Polygraph: Automatically Generating Signatures for Polymorphic Worms. IEEE S&P, doi:10.1109/sp.2005.15 (read: introduction, design goals, algorithms, evaluation tables) (behind its links)
Bilge, L. & Dumitras, T. (2012). Before We Knew It: An Empirical Study of Zero-Day Attacks in the Real World. ACM CCS, doi:10.1145/2382196.2382284 (author copy; read: abstract, introduction, summary of findings, lifecycle, results section 5) (behind its links)
Iklody A, Wagener G, Dulaunoy A, Mokaddem S, Wagner C (2018) Decaying Indicators of Compromise (CIRCL draft). arXiv:1803.11052 (behind its links)
Jia, J., Chen, K., Chen, J., Zhou, D. & Ma, W. (2019). Detection and Recognition of Atomic Evasions Against Network Intrusion Detection/Prevention Systems. IEEE Access, doi:10.1109/ACCESS.2019.2925639 (read via the paper portal: introduction and related work) (behind its links)
Uetz, R., Herzog, M., Hacklaender, L., Schwarz, S. & Henze, M. (2023). You Cannot Escape Me: Detecting Evasions of SIEM Rules in Enterprise Networks. arXiv:2311.10197 (USENIX Security 2024) (read: introduction, section 3 Sigma rule evasions, evaluation summary) (behind its links)
Antivirus software (Wikipedia, via Wikimedia Enterprise snapshot) (behind its links)
Oberheide, J., Cooke, E. & Jahanian, F. (2008). CloudAV: N-Version Antivirus in the Network Cloud. 17th USENIX Security Symposium (read: abstract, introduction, section 2 vulnerability window, section 6 evaluation and retrospective detection) (behind its links)
Roesch, M. (1999). Snort: Lightweight Intrusion Detection for Networks. LISA XIII, USENIX (behind its links)
Zhu et al. 2020, Measuring and Modeling the Label Dynamics of Online Anti-Malware Engines (USENIX Security) (behind its links)
Holm, H. (2014). Signature Based Intrusion Detection for Zero-Day Attacks: (Not) A Closed Chapter? HICSS, doi:10.1109/hicss.2014.600 (read in full via the paper portal); re-read in step 3 for the coverage caveat, alarms on other software, tuning and the Metasploit rewriting (behind its links)
Perdisci, R., Dagon, D., Lee, W., Fogla, P. & Sharif, M. (2006). Misleading worm signature generators using deliberate noise injection. IEEE S&P, doi:10.1109/sp.2006.26 (abstract only: the portal reached no body and listed no open copy) (behind its links)
Raff, E., Zak, R., Lopez Munoz, G., Fleming, W. et al. (2020). Automatic Yara Rule Generation Using Biclustering. ACM AISec, doi:10.1145/3411508.3421372 (read: introduction, related work, design, results against analysts) (behind its links)
Tostes, B., Ventura, L., Lovat, E., Martins, M. & Menasche, D. S. (2023). Learning When to Say Goodbye: What Should be the Shelf Life of an Indicator of Compromise? IEEE CSR, doi:10.1109/csr57506.2023.10224937 (read: introduction, findings, trace statistics, TTL analysis) (behind its links)
Ugarte-Pedrero, X., Balzarotti, D., Santos, I. & Bringas, P. G. (2015). SoK: Deep Packer Inspection: A Longitudinal Study of the Complexity of Run-Time Packers. IEEE S&P, doi:10.1109/sp.2015.46 (read: introduction, results on off-the-shelf and custom packers, discussion) (behind its links)
Kolbitsch, C., Milani Comparetti, P., Kruegel, C., Kirda, E., Zhou, X. & Wang, X. (2009). Effective and Efficient Malware Detection at the End Host. 18th USENIX Security Symposium (read: abstract, introduction, evaluation) (behind its links)
Li, B., Roundy, K., Gates, C. & Vorobeychik, Y. (2017). Large-Scale Identification of Malicious Singleton Files. ACM CODASPY, doi:10.1145/3029806.3029815 (abstract only: the portal reached no body, arXiv search found no preprint; the 94% figure is also reported in src:raff-nicholas-2020-survey, read in the body) (behind its links)
Axelsson, S. (2000). The Base-Rate Fallacy and the Difficulty of Intrusion Detection. ACM Transactions on Information and System Security 3(3):186-205. doi:10.1145/357830.357849 (behind its links)
Indicator of compromise (Wikipedia, via Wikimedia Enterprise) (behind its links)
Suricata (software) (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01; read: lead and features) (behind its links)
Kephart, J. O., Sorkin, G. B., Arnold, W. C., Chess, D. M., Tesauro, G. J. & White, S. R. (1995). Biologically Inspired Defenses Against Computer Viruses. IJCAI-95, pp. 985-996 (read: sections 1-4.4, introduction, background, generic detection with the neural-network boot-virus classifier, the immune system up to decoys; IJCAI open proceedings PDF) (behind its links)
Patch Tuesday (Wikipedia, via Wikimedia Enterprise snapshot 2026-11-01) (behind its links)
Polymorphic code (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01; read in full) (behind its links)
Sommer, R. & Paxson, V. (2010). Outside the Closed World: On Using Machine Learning For Network Intrusion Detection. IEEE Symposium on Security and Privacy. doi:10.1109/SP.2010.25 (behind its links)
Computer virus (Wikipedia, rev 1373473633, 2026-09-06, via Wikimedia Enterprise) (behind its links)
YARA (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01; read: lead and history) (behind its links)
Aboaoja, F. A., Zainal, A., Ghaleb, F. A., Al-rimy, B. A. S., Eisa, T. A. E. & Elnour, A. A. H. (2022). Malware Detection Issues, Challenges, and Future Directions: A Survey. Applied Sciences 12(17):8482, doi:10.3390/app12178482 (read: related reviews, signature-based and behavioural-based sections) (behind its links)
Kornblum, J. D. (2006). Identifying almost identical files using context triggered piecewise hashing. Digital Investigation 3S, doi:10.1016/j.diin.2006.06.015 (read via the paper portal: abstract, introduction, spamsum algorithm) (behind its links)
Brumley, D., Newsome, J., Song, D., Wang, H. & Jha, S. (2006). Towards automatic generation of vulnerability-based signatures. IEEE S&P, doi:10.1109/sp.2006.41 (read via the paper portal: abstract, introduction, section 2 signature representations and Table 1 bounds) (behind its links)
Forrest, Hofmeyr and Somayaji, Computer Immunology, Communications of the ACM 40(10), 1997 (doi:10.1145/262793.262811) (behind its links)
Song, Y., Locasto, M. E., Stavrou, A., Keromytis, A. D. & Stolfo, S. J. (2009). On the infeasibility of modeling polymorphic shellcode. Machine Learning, doi:10.1007/s10994-009-5143-5 (read: introduction, history of polymorphic engines, conclusions; the engine-building sections were not used) (behind its links)
Metamorphic code (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01; read in full) (behind its links)
Adleman, L. M. (1990). An Abstract Theory of Computer Viruses. CRYPTO '88, LNCS 403, doi:10.1007/0-387-34799-2_28 (read: definitions and Theorem 2 on detecting the set of viruses) (behind its links)
Raff, E. & Nicholas, C. (2020). A Survey of Machine Learning Methods and Challenges for Windows Malware Classification. arXiv:2006.09271 (read: introduction, evaluation section on class ratios) (behind its links)
Aghakhani, H. et al. (2020). When Malware is Packin' Heat: Limits of Machine Learning Classifiers Based on Static Analysis Features. NDSS, doi:10.14722/ndss.2020.24310 (read: abstract and conclusions with their tables) (behind its links)
EICAR test file (Wikipedia, via Wikimedia Enterprise snapshot; read: lead) (behind its links)
Ptacek, T. H. & Newsham, T. N. (1998). Insertion, Evasion, and Denial of Service: Eluding Network Intrusion Detection. Secure Networks, Inc. technical report (behind its links)
Venkataraman, S., Blum, A. & Song, D. (2008). Limits of Learning-Based Signature Generation with Adversaries. Carnegie Mellon KiltHub repository copy, doi:10.1184/r1/6468965 (read via the paper portal: introduction, results summary, related work on attacks; the conference venue was not checked) (behind its links)
National Software Reference Library (Wikipedia, via Wikimedia Enterprise snapshot; read: lead) (behind its links)