Insecure random iv

From zakirkun/ice-tea · View interactive version

Insecure random iv is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects initialization vectors generated using non-cryptographic random functions, compromising cipher security.

How to use this skill

Skill file

Insecure Random IV Generation

Overview

Even when an IV is generated dynamically (not hardcoded), using a non-cryptographic PRNG makes it predictable:

A predictable IV defeats the purpose of encryption for modes that rely on IV uniqueness.

Remediation

Use OS-provided cryptographic random for IV generation:

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.