Giverny

Secret Serialization

Finds secrets, tokens, passwords, and API keys that can leak through generated serialization: Python dataclass repr and asdict, attrs, pydantic model_dump, NamedTuple, JavaScript…

by Sentry★ 1,214SecurityOfficial

What Secret Serialization does

Finds secrets, tokens, passwords, and API keys that can leak through generated serialization: Python dataclass repr and asdict, attrs, pydantic model_dump, NamedTuple, JavaScript JSON.stringify and util.inspect, structured logs, tracing spans, and error reports. Use when asked to "check for secret serialization", "credential in repr", "repr=False audit", "secret in spans", "token in logs", or when a change adds a credential field to a dataclass, model, or config object, or adds code that stringifies whole objects or every kwarg into telemetry.

How to install Secret Serialization in Claude Code

Giverny gives you a ready prompt with the exact install command from getsentry/skills. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone getsentry/skills and copy the skills/secret-serialization folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Secret Serialization on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the secret-serialization skill on my current project.”

More Claude skills for security