Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 1161

Signature-Based Detection

Reviewed byCybersecurity entrepreneur & security researcher

What is Signature-Based Detection?

Signature-Based DetectionA detection method that compares observed traffic, files, or behaviour against a database of known-bad patterns (signatures) to flag malicious activity.


Signature-based detection identifies threats by matching observed artefacts — byte sequences in packets, cryptographic file hashes, regular expressions on URLs, YARA rules, or Snort/Suricata network rules — against a curated database of known-bad indicators. Signatures range from a simple SHA-256 of a malware sample to context-rich rules that assert on protocol fields, byte offsets, and payload patterns. Because a match is deterministic, the method is fast and produces very few false positives, which is why it remains the workhorse of antivirus, IDS/IPS, web application firewalls, and secure email gateways. The industry even standardised a harmless probe — the EICAR test string, authored by Padgett Peterson and Paul Ducklin for EICAR and CARO — so defenders can confirm a scanner's signature engine fires without handling live malware.

Its structural weakness is coverage: a signature can only match a threat someone has already analysed and published. Polymorphic and metamorphic malware rewrite their own code on each infection, packers and crypters mutate payloads, and genuinely novel zero-days have no signature at all — leaving a "window of exposure" between first use in the wild and signature distribution. Adversaries exploit this gap deliberately, a behaviour catalogued as MITRE ATT&CK T1027 (Obfuscated Files or Information). Modern stacks therefore layer signatures with anomaly and behaviour detection, machine-learning classifiers, reputation scoring, and threat-intel feeds, keeping signatures for cheap, precise coverage of the known-bad set.

flowchart TD
  OBS[Observed file / packet / URL] --> EXT[Extract features<br/>hash, bytes, regex]
  EXT --> DB{Match in<br/>signature DB}
  DB -->|yes| ALERT[Flag and block<br/>known threat]
  DB -->|no| GAP[No signature yet]
  GAP --> OTHER[Anomaly / ML /<br/>behaviour engines]
  GAP -.window of exposure.-> NEW[Analyst writes<br/>new signature]
  NEW --> DB

● Examples

  1. 01

    ClamAV identifying a file by SHA-256 against its malware database.

  2. 02

    Suricata triggering on the regex inside an HTTP body that matches a known web-shell signature.

● Frequently asked questions

What is Signature-Based Detection?

A detection method that compares observed traffic, files, or behaviour against a database of known-bad patterns (signatures) to flag malicious activity. It belongs to the Network Security category of cybersecurity.

What does Signature-Based Detection mean?

A detection method that compares observed traffic, files, or behaviour against a database of known-bad patterns (signatures) to flag malicious activity.

How do you defend against Signature-Based Detection?

Defences for Signature-Based Detection typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for Signature-Based Detection?

Common alternative names include: Pattern matching detection.

● Related terms

● See also