JANUS: Synthesizing Cross-Layer Defenses Against Web Deserialization Attacks
Ruozhao Yang, Minglang Li, Jiongchi Yu, Xinfeng Li, Xiaofei Xie
Abstract
Unsafe deserialization turns untrusted data into attacker-controlled execution, and a single vulnerability can admit diverse exploit variants that evade defenses tailored to a known exploit. Existing defenses typically operate at a single enforcement point with limited visibility into the full attack. Combining controls across layers offers complementary protection, but coordinating them to preserve legitimate functionality and adapting them to new variants requires substantial expert effort. We propose JANUS, a red-blue adversarial framework for automated cross-layer defense synthesis. Starting from a known exploit, iteratively refines deployment-specific policies in an isolated offline environment. A black-box attacker probes the current policy for exploit variants using only externally observable feedback. The defender summarizes each verified variant into its security-relevant effects, uses counterfactual replay to separate complementary coverage from redundant enforcement, and jointly selects and scopes controls across layers. Each candidate policy is validated against accumulated exploits and benign workflows. We evaluate JANUS on sixteen vulnerability deployments across six Java and PHP applications against gateway, application, system, and cross-layer defenses. JANUS reduces held-out attack success to 6.2%, compared with 18.8-55.0% for the baselines, fully mitigates 13 of 16 deployments, and preserves 98.4% of benign functionality tests at a 6.9% targeted P95 latency increase.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.SE
Related papers
Weight-Space Backdoors in Open-Weight LLMs: Cross-Architecture Attacks and Blind Model Forensics
Shared title terminologycs.CRMohammed Tanveer
Development of an Effective Federated Learning-Based Defense System Against Phishing Attacks on Mobile Platforms
Shared title terminologycs.CREren Dogan, Busra Buyuktanir, Gozde Karatas Baydogmus et al.
Poisoning Attacks and Collaborative Defense Framework for LightRAG-Based Construction Regulation Knowledge
Shared title terminologycs.CRYingyan He
BlockJack: Cross-Tenant Redirection Fault Attacks on Paged KV Cache Address Translation in LLM Serving
Shared title terminologycs.CRQifan Wang, Jeremy Boy, Jonas Sander et al.
MetaScanner: An Empirical Study and Proactive Defense against Deceptive UI Attacks in Social VR
Shared title terminologycs.CRJunhee Lee, Seungwon Woo, Minseok Kim et al.
Attacks and Defenses in Decentralized Multi-Agent Systems with Hop-by-Hop Task Decomposition and Delegation
Shared title terminologycs.CRMatthew D. Laws, Maria Lazou, Alina Oprea et al.