Verifying Graceful Degradation in a Distributed Malware-Detection System with SPIN
Abstract
Modern endpoint malware detection is distributed: a lightweight agent on each endpoint collects features from a scanned file or process, sends them to a remote server for analysis, and then enforces the returned verdict locally by blocking, quarantining, or disinfecting. Because the endpoint acts on the verdict, the distributed machinery surrounding detection must never turn a transient server failure into a wrong action. We present a formal model, in Promela, of the endpoint decision pipeline of such a system, abstracted from a production architecture at Bitdefender. The model captures the system's graceful-degradation fallback chain: when the primary analysis server times out, the endpoint falls back to an older legacy-protocol server, and failing that to a reduced-signature local scan, before enforcing a verdict. Assuming detection signatures are sound, we specify six safety and liveness properties in linear temporal logic (LTL) and verify them exhaustively with the SPIN model checker. We prove that the fallback machinery never causes a false positive (an enforcement action against a benign file), commits to exactly one verdict per scan even when timed-out responses arrive late, weakens detection strength only in an explicit and ordered way, and always terminates in an enforcement decision, so the pipeline is deadlock-free. Each property is checked to hold non-vacuously, and we report how the state space grows with concurrent scans and endpoints. The work shows how model checking can give strong correctness guarantees for the failure-handling logic of a production security system, a layer that has received little direct formal attention.
Create a lesson
Metadata
- Journal
- EPTCS 452, 2026, pp. 158-171
- Comments
- In Proceedings FROM 2026, arXiv:2609.30324
Related papers
Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoning
Shared title terminologycs.SEZichen Xie, Mrigank Pawagi, Lize Shao et al.
Verifiable Software Development & Operations
Shared title terminologycs.SETakaaki Higashi, Kai Otsuki
Horizontal Models, Vertical Systems: A Position on Where Domain Knowledge Belongs in Enterprise Agents
Shared title terminologycs.SELuciano Lucindo Chaves
When Diagnostics Mislead in Verified Code Repair
Shared title terminologycs.SEJunyi Yang
Does Training-Free Delegation Improve Cost Efficiency in Multi-Agent Software Engineering Systems? An Empirical Study
Shared title terminologycs.SEMootez Saad, Mohammad Masudur Rahman, Tushar Sharma
A Causal Loop Diagram supporting tool to bridge System Thinking and Software Engineering
Shared title terminologycs.SEThiago Felippe Neitzke Lahass, Júlia de Souza Borges, Amanda B. Apolinário et al.