cryptography

Detect cryptography weaknesses and map findings to ASVS-aligned rules.

1|Updated Aug 29, 2025
One-click install
npx skills add https://github.com/CyberSecAI/genai-sec-agents --skill cryptography-cybersecai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cryptography
Source: https://github.com/CyberSecAI/genai-sec-agents/tree/main/.claude/skills/cryptography
Command: npx skills add https://github.com/CyberSecAI/genai-sec-agents --skill cryptography-cybersecai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides structured cryptography guidance to help teams identify and fix weak algorithms, insecure key management, and insecure random number generation across codebases, aligning with ASVS, OWASP, and NIST standards.

Core Features & Use Cases

  • Weak Algorithm Detection: Flag usage of MD5, SHA1, DES/3DES, and ECB mode, with secure alternatives like SHA-256 and AES-256-GCM.
  • Key Management & RNG: Guidance on secure key generation, storage, rotation, and using CSPRNGs, KMS, and envelope encryption patterns.
  • Password Hashing & Signatures: Recommendations for bcrypt, Argon2, PBKDF2, RSA-PSS, and ECDSA with proper padding.
  • Use Case: Review a web service credential flow, identify weak RNG and key handling, and propose secure replacements with sample code.

Quick Start

Use this skill to perform automated cryptography reviews by telling it to identify weaknesses, suggest ASVS-aligned fixes, and provide concrete code samples.

Frequently Asked Questions about cryptography

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

FAQPage Schema
How do I detect weak encryption algorithms like MD5 or DES in my codebase?

To detect weak encryption algorithms like MD5 or DES in your codebase, you can perform an automated cryptography review that flags insecure ciphers and ECB mode, mapping findings to ASVS rules and suggesting secure alternatives like SHA-256 and AES-256-GCM.

What is the best way to implement secure password hashing and digital signatures?

The best way to implement secure password hashing and digital signatures is to use ASVS-aligned recommendations like Argon2, bcrypt, or PBKDF2 for passwords, and RSA-PSS or ECDSA with proper padding for signatures, ensuring robust cryptographic security.

How do I fix insecure random number generation and improper key management?

To fix insecure random number generation and improper key management, replace weak RNG with CSPRNGs and adopt secure key generation, storage, and rotation patterns using KMS and envelope encryption to satisfy ASVS key management requirements.

Does this cryptography guidance align with OWASP and NIST standards?

Yes, this cryptography guidance explicitly aligns with ASVS, OWASP, and NIST standards. It maps detected cryptographic weaknesses in encryption, RNG, and digital signatures to these established security frameworks while providing concrete code examples for fixes.

Can I review a web service credential flow to identify weak key handling?

Yes, you can review a web service credential flow to identify weak key handling and RNG. The process analyzes the codebase, detects insecure cryptographic implementations, and proposes secure replacements with sample code mapped to ASVS requirements.

When should I not use ECB mode for encryption?

You should not use ECB mode for encryption because it is a weak cryptographic pattern that fails to hide data patterns. ASVS-aligned cryptography guidance flags ECB usage as a weakness and recommends adopting secure modes like AES-256-GCM instead.