security-review-owasp-deserialization

Analyze deserialization attack surfaces across Java, Python, PHP, and .NET.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/sjinks/ai-owasp-skillset --skill security-review-owasp-deserialization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-review-owasp-deserialization
Source: https://github.com/sjinks/ai-owasp-skillset/tree/main/.github/skills/security-review-owasp-deserialization
Command: npx skills add https://github.com/sjinks/ai-owasp-skillset --skill security-review-owasp-deserialization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps reviewers find unsafe deserialization paths that can lead to remote code execution, gadget-chain abuse, or arbitrary type materialization.

Core Features & Use Cases

  • Reviews native object streams, pickle, unserialize, binary serializers, and polymorphic type handling.
  • Checks request handlers, queues, file loaders, caches, and database reads that accept untrusted serialized data.
  • Useful when validating library configuration, class allowlists, custom deserializers, signed payload handling, or migrations away from native object serialization.

Quick Start

Ask the skill to review the specified code, configuration, or service for deserialization risks and focus it on the relevant language or files.

Frequently Asked Questions about security-review-owasp-deserialization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find unsafe deserialization vulnerabilities in Java or Python APIs?

To find unsafe deserialization vulnerabilities, review native object streams, pickle, or unserialize handlers that accept untrusted data in APIs, queues, and caches. This analysis flags polymorphic type control issues and gadget-chain abuse paths to prevent remote code execution.

What is a deserialization gadget chain and how does it lead to remote code execution?

A deserialization gadget chain is a sequence of methods triggered when untrusted serialized data is materialized into objects. Unsafe object instantiation allows attackers to chain methods, leading to arbitrary type materialization and remote code execution during native deserialization.

How do I secure polymorphic typing and prevent arbitrary object materialization in .NET or PHP?

To secure polymorphic typing, implement class allowlists and validate library configuration to prevent arbitrary object materialization. Review custom deserializers and migrate to safer data-only alternatives instead of using native binary serializers for untrusted serialized data.

Does this deserialization security review work with file loaders and database reads?

Yes, this deserialization security review checks file loaders, database reads, request handlers, and queues that process untrusted serialized data. It evaluates signed payload handling and library hardening gaps across Java, Python, PHP, and .NET serialization flows.

When should I migrate away from native object serialization to data-only formats?

You should migrate away from native object serialization when request handlers or file loaders accept untrusted serialized data. Replacing native deserializers with safer data-only alternatives eliminates gadget-chain risks and prevents arbitrary type materialization vulnerabilities.