deserialization-review

Review JSON, YAML, protobuf, and binary deserialization boundaries for security and robustness.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Pandaala/Edgion --skill deserialization-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deserialization-review
Source: https://github.com/Pandaala/Edgion/tree/main/skills/04-review/deserialization
Command: npx skills add https://github.com/Pandaala/Edgion --skill deserialization-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Prevent security and reliability failures caused by unsafe deserialization of untrusted data by providing a structured review checklist and decision notes.

Core Features & Use Cases

  • Threat-model-driven review for deserialization boundaries in admin API bodies, Kubernetes CRD spec, gRPC config streams, and DSL bytecode loading.
  • Concrete safety checks covering framing-level size limits, recursion depth risk, error-path non-panicking requirements, and serde flatten/unknown-field behavior.
  • Targeted guidance for regex-backed payloads to mitigate ReDoS and pathological recompilation during Deserialize-time construction.

Quick Start

Review a suspected JSON/YAML/protobuf/binary deserialization call by mapping it to the correct trust-boundary bucket, then applying the size-limit, recursion-depth, unknown-field, error-handling, and regex recompilation checks from this skill.

Frequently Asked Questions about deserialization-review

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

FAQPage Schema
How do I audit Rust serde deserialization for security and resilience?

Audit Rust serde deserialization by mapping untrusted input boundaries to trust buckets, then applying checks for size limits, recursion depth, deny_unknown_fields, and non-panicking error paths.

What are common deserialization vulnerabilities in Kubernetes CRD spec re-deserialization?

Kubernetes CRD spec re-deserialization vulnerabilities include missing framing-level size limits, uncontrolled recursion depth, unsafe flatten footguns, and panicking error paths that compromise reliability.

How does regex recompilation cause ReDoS during serde Deserialize-time construction?

Regex recompilation during Deserialize-time construction triggers ReDoS by allowing pathological patterns to execute against untrusted payloads, requiring targeted bounds to mitigate recompilation risk.

How do I prevent panics when deserializing untrusted gRPC config sync payloads?

Prevent panics deserializing gRPC config sync payloads by enforcing non-panicking requirements on error paths and applying strict recursion depth control and unknown-field validation.

Does using serde flatten introduce safety risks when parsing JSON or YAML payloads?

Yes, serde flatten introduces safety risks by obscuring unknown-field behavior and bypassing strict structural validation, requiring dedicated flatten footgun auditing during deserialization reviews.

What is the best way to review DSL bytecode base64 deserialization boundaries?

Review DSL bytecode base64 deserialization by applying threat-model-driven checks for framing-level size limits, recursion depth, and ensuring deserialization errors do not panic.