# JANUS: Synthesizing Cross-Layer Defenses Against Web Deserialization Attacks

arXiv: https://arxiv.org/abs/2610.35532 · HTML: https://mlsanity.com/paper/2610.35532/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 9 of its 48 references that are in the map.
- Submitted 26 Oct 2026.

## Builds on (most cited first, 9 of 9)

- [LLM Agents can Autonomously Exploit One-day Vulnerabilities](https://mlsanity.com/paper/2404.08144/) (2024)
- [APPATCH: Automated Adaptive Prompting Large Language Models for Real-World Software Vulnerability Patching](https://mlsanity.com/paper/2408.13597/) (2024)
- [PACEbench: A Framework for Evaluating Practical AI Cyber-Exploitation Capabilities](https://mlsanity.com/paper/2510.11688/) (2025)
- [WAF-A-MoLE: Evading Web Application Firewalls through Adversarial Machine Learning](https://mlsanity.com/paper/2001.01952/) (2020)
- [ODDFUZZ: Discovering Java Deserialization Vulnerabilities via Structure-Aware Directed Greybox Fuzzing](https://mlsanity.com/paper/2304.04233/) (2023)
- [An In-depth Study of Java Deserialization Remote-Code Execution Exploits and Vulnerabilities](https://mlsanity.com/paper/2208.08173/) (2022)
- [Improving Java Deserialization Gadget Chain Mining via Overriding-Guided Object Generation](https://mlsanity.com/paper/2303.07593/) (2023)
- [Talos: Neutralizing Vulnerabilities with Security Workarounds for Rapid Response](https://mlsanity.com/paper/1711.00795/) (2017)
- [WAFBOOSTER: Automatic Boosting of WAF Security Against Mutated Malicious Payloads](https://mlsanity.com/paper/2501.14008/) (2025)

## Abstract (arXiv)

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.
