Instiq
Chapter 4 · Security controls·v1.0.0·Updated 7/9/2026·~16 min

What's changed: Initial version

4.2Malware and unauthorized-access countermeasures

Key points

Covers malware detection techniques—pattern matching, the behavior method, the heuristic method, dynamic analysis, and static analysis—the concepts of entry-point (ingress) controls, exit-point (egress) controls, and defense in depth, quarantine networks for isolating infected endpoints, the DMZ, vulnerability management (patching), hardening, and secret sharing for splitting a key across multiple holders.

"Preventing all intrusions" can no longer be assumed. Given targeted attacks and zero-day exploits, a design philosophy of assuming intrusion will happen and deciding what to stop at each layer is essential. This section studies malware and unauthorized-access countermeasures from the perspective of a security officer deciding what to place at each layer of defense in depth and how to minimize damage if an intrusion does occur.

4.2.1Malware detection techniques

  • Pattern matching (signature-based detection) compares files against known malware's characteristic byte sequences (signatures). It is highly accurate and fast against known threats, but has the fundamental limitation of being unable to detect unknown malware whose signature is not yet registered.
  • The behavior method runs a program and monitors its actual runtime behavior—registry changes, suspicious communication—to judge maliciousness. The heuristic method estimates the likelihood of maliciousness statistically or by rule-of-thumb from a program's code structure or patterns. Both can potentially detect unknown malware without relying on signatures.
  • Dynamic analysis observes behavior by actually running the sample (often inside a sandbox). Static analysis examines the code or binary structure without executing it. Dynamic analysis can capture behavior that only appears at runtime, but its effectiveness can diminish against malware that evades sandbox detection (behaving benignly once it detects an analysis environment).

Continue reading — free sign-up

You're reading the free preview. Sign up free to read this section in full, plus every chapter (including 4+) and all questions.