Ruby marshal

From zakirkun/ice-tea · View interactive version

Ruby marshal is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects Marshal.load() or Marshal.restore() on untrusted data, enabling code execution.

How to use this skill

Skill file

Ruby Marshal Deserialization

Overview

Ruby's Marshal.load() deserializes a binary format that can instantiate arbitrary Ruby objects. Attackers can craft malicious payloads that invoke initialize, [], and other methods during deserialization, leading to code execution.

This affected Rails versions using Marshal for cookie sessions before 4.x.

Remediation

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.