Scalable Program Analysis via Static Filtering and Dynamic Verification

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 2152 papers163 conceptsfrozen 2026-10-04

In the world of software security and program understanding, researchers face a fundamental "speed-versus-fidelity" trade-off. On one hand, static analysis—examining code without running it—is incredibly fast and scalable, but it is easily fooled by code obfuscation and often lacks the context to understand complex runtime behaviors. On the other hand, dynamic analysis—executing code in a controlled environment—provides high-fidelity "ground truth" by observing exactly what a program does.

The problem is that dynamic analysis is computationally expensive. Running a single application in a sandbox or emulator can take minutes or even hours, making it impossible to scan millions of apps or web pages in real-time. To bridge this gap, a recurring research direction has emerged: multi-stage triage pipelines that use fast static filters to "triage" data, reserving expensive dynamic verification only for the most suspicious or complex samples.

The Bottleneck of High-Fidelity Analysis

Dynamic analysis is slow because it requires a heavy infrastructure. To safely observe malicious behavior, researchers must use isolated virtual machines or sandboxes to prevent host infection, as noted in Discovering Malicious Signatures in Software from Structural Interactions. Furthermore, techniques like dynamic taint tracking or fine-grained instrumentation introduce massive performance overheads—sometimes slowing programs down by 20x to 100x—making them impractical for production environments Eventually Sound Points-To Analysis with Missing Code.

This computational wall creates a scalability crisis. As Guozhu Meng and colleagues point out in their work on AndroVault, while static analysis can process millions of files efficiently, the time required for runtime execution prevents comprehensive behavioral coverage at scale.

Triage as a Scalability Engine

The solution popularized by researchers like Davide Canali and Christopher Kruegel is the "filter-then-verify" architecture. Their tool, Prophiler, acts as a high-speed static filter for web pages. By using machine learning to analyze HTML and JavaScript features without executing them, Prophiler reduces the workload of expensive dynamic "honeyclients" by over 85%.

This "early exit" strategy is a core mechanism for making security systems practical. Instead of treating every input as equally deserving of deep inspection, these systems use a hierarchy:

  1. Fast Signatures: Catch known threats instantly.
  2. Static ML Filters: Use structural features (like GNNs or RGB image representations) to identify "suspicious" candidates.
  3. Dynamic Verification: Perform the final, high-cost execution only on the small fraction of samples that pass the first two stages.

Andrea Ponte and the team behind SLIFER formalized this into a sequential pipeline that balances detection rates with computational efficiency, ensuring that the "hot path" of analysis remains as fast as possible.

Learning from Behavior

While static filters provide speed, the features they look for are increasingly derived from dynamic insights. Researchers have found that models trained on execution traces are significantly more accurate and resilient to code refactoring than those trained on raw source code.

For instance, Ke Wang demonstrated in Dynamic Neural Program Embedding for Program Repair that neural networks trained on runtime behavior can identify programming errors with 99% accuracy, far outperforming syntax-based methods. Similarly, BinSeeker, developed by Jian Gao and others, uses a two-stage approach where a fast deep learning model prunes the search space before precise dynamic emulation confirms a vulnerability.

The Future of Hybrid Systems

The recurring theme across these 115 papers is that neither static nor dynamic analysis is sufficient on its own. The research direction is moving toward eventual soundness—a concept explored by Lazaro Clapp and Alex Aiken—where an analysis starts with fast, optimistic static assumptions and uses lightweight runtime monitoring to refine its understanding over time.

By treating static analysis as a "probabilistic filter" and dynamic analysis as a "deterministic validator," researchers are building systems that can finally handle the scale of the modern internet without sacrificing the precision needed to catch sophisticated threats.

Papers in this version

Showing 60 of 152 papers.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 74 papers
  2. Version 1 · 2026-10-04 · 152 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_dynamic_analysis_overhead_cb7d4241,
  title = {dynamic analysis overhead},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/dynamic-analysis-overhead/rdr_cb7d4241784848a2a969ca01b50b8e68},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-02},
}

This exact version (version 1, frozen text):

@misc{lacuna_scalable_program_analysis_via_static_fil_cb7d4241_v1,
  title = {Scalable Program Analysis via Static Filtering and Dynamic Verification},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/scalable-program-analysis-via-static-filtering-and-dynamic-verification/rdr_cb7d4241784848a2a969ca01b50b8e68/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-02},
}