cs.CROct 26, 2026

JANUS: Synthesizing Cross-Layer Defenses Against Web Deserialization Attacks

Authors: Ruozhao Yang, Minglang Li, Jiongchi Yu, Xinfeng Li, Xiaofei Xie

Organizations: Singapore Management University, Singapore · UESTC, China · Nanyang Technological University, Singapore · The Hong Kong Polytechnic University, China

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, \sys 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.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Explainable Adaptive Zero Trust Framework for AWS with Adversarial Robustness Evaluation

    Aug 21, 2026Om Singh, Yagyaraj Pandey, Nandini PathakCybersecurityZero-Trust Security

  2. WADE: An LSTM-Based Anomaly Detection Engine for WebAssembly Applications

    Oct 22, 2026Ilaria Campestrini, Stefano Zanero, Engin KirdaSoftware SecurityAnomaly Detection

  3. Shielded Analysis: Certification and Characterization of Defensibility in Systems under Adversarial Interaction

    Jun 11, 2026Achraf Hsain, Sultan AlmuhammadiAutonomous Cyber DefenseAdversarial Robustness