Jackson deserialization hardening

From XuShuwenn/RedAct · View interactive version

Jackson deserialization hardening is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Harden Java services that use Jackson against deserialization bypasses (e.g., empty JSON keys or injected-config overrides) and ship safe patches and builds.

How to use this skill

Skill file

Jackson Deserialization Hardening for Security Bypasses

Secure workflow for fixing vulnerabilities where crafted JSON input bypasses security controls during Jackson deserialization, including patterns like empty-string object keys or request JSON overriding injected configuration. This skill helps choose a robust, centralized patch strategy, implement it compatibly with the project's Jackson version, and verify both exploit blocking and normal behavior.

When to Use

Activate this skill when you see:

Core Workflow

  1. Establish Context and Constraints
  1. Trace the Vulnerable Code Path
  1. Choose a Centralized Mitigation Locus
  1. Implement the Fix Compatible with the Jackson Version
  1. Defense-in-Depth Safeguards
  1. Build and Package Patches
  1. Validate the Fix

Verification Checklist

Common Pitfalls and How to Avoid Them

Optional Script Usage

Use the helper script to quickly detect empty-string JSON keys in crafted payloads during verification:

Non-zero exit status indicates at least one empty key was found, with reported JSON pointer paths for triage.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.