Yaml unsafe load

From zakirkun/ice-tea · View interactive version

Yaml unsafe load is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects YAML parsing using unsafe loaders that execute arbitrary Python or Ruby code embedded in YAML.

How to use this skill

Skill file

Unsafe YAML Deserialization

Overview

YAML loaders that support the full YAML specification (including !!python/object/apply:) can execute arbitrary code when parsing malicious YAML documents.

Python's yaml.load() without Loader=yaml.SafeLoader is the most common instance.

Malicious payload:

!!python/object/apply:os.system ["id"]

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.