SkillAgentSearch skills...

codeguard-1-crypto-algorithms

Cryptographic Security Guidelines

Install / Use

npx skills add cisco-ai-defense/skill-scanner

Installs into whichever agent you are using.

About this skill
📐

Cursor Rules

Cursor IDE rules (v2)

Quality Score

80/100

Category

Security

Supported Platforms

Cursor

Our assessment of codeguard-1-crypto-algorithms

codeguard-1-crypto-algorithms scores 80/100 on our quality scale, 1007th of 1,108 Security skills we index.

Its Cursor Rules is 3.8 KB long, well organised into 17 sections with 1 code example: a solid amount of guidance for an agent.

With 2,549 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
17/20
Description
8/15
Adoption
14/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so codeguard-1-crypto-algorithms is actively maintained.
  • Our last check on 2026-11-08 found the source still online.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-10-01. Automated pattern scan on 2026-10-01. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

codeguard-1-crypto-algorithms compared with similar skills

All 4 of these similar skills score higher than codeguard-1-crypto-algorithms; compare them before choosing.

SkillScoreStarsUpdatedFormat
codeguard-1-crypto-algorithms (this skill)by cisco-ai-defense802.5k53d agoCursor Rules
diagram-designby cathrynlavery10063.5k20d agoSKILL.md
protocol-reverse-engineeringby wshobson10039.9k57d agoSKILL.md
anndataby K-Dense-AI10046.4k56d agoSKILL.md
codeqlby github10039.3k53d agoSKILL.md

Frequently asked questions

How do I install codeguard-1-crypto-algorithms?
Run npx skills add cisco-ai-defense/skill-scanner. The install tabs above show the steps for each supported agent.
Which AI agents does codeguard-1-crypto-algorithms work with?
It is written for Cursor, as a Cursor Rules file. Other agents that read the same format can often use it too.
Is codeguard-1-crypto-algorithms safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is codeguard-1-crypto-algorithms still maintained?
The repository was last updated about 2 months ago, so codeguard-1-crypto-algorithms is actively maintained.

description: Cryptographic Security Guidelines globs: */ version: 1.0.1 alwaysApply: true

rule_id: codeguard-1-crypto-algorithms

Cryptographic Security Guidelines

Banned (Insecure) Algorithms

The following algorithms are known to be broken or fundamentally insecure. NEVER generate or use code with these algorithms. Examples:

  • Hash: MD2, MD4, MD5, SHA-0
  • Symmetric: RC2, RC4, Blowfish, DES, 3DES
  • Key Exchange: Static RSA, Anonymous Diffie-Hellman
  • Classical: Vigenère

Deprecated (Legacy/Weak) Algorithms

The following algorithms are not outright broken, but have known weaknesses, or are considered obsolete. NEVER generate or use code with these algorithms. Examples:

  • Hash: SHA-1
  • Symmetric: AES-CBC, AES-ECB
  • Signature: RSA with PKCS#1 v1.5 padding
  • Key Exchange: DHE with weak/common primes

Deprecated SSL/Crypto APIs - FORBIDDEN

NEVER use these deprecated functions. Use the replacement APIs listed below:

Symmetric Encryption (AES)

  • Deprecated: AES_encrypt(), AES_decrypt()
  • Replacement: Use EVP high-level APIs:
    EVP_EncryptInit_ex()
    EVP_EncryptUpdate()
    EVP_EncryptFinal_ex()
    EVP_DecryptInit_ex()
    EVP_DecryptUpdate()
    EVP_DecryptFinal_ex()
    

RSA Operations

  • Deprecated: RSA_new(), RSA_up_ref(), RSA_free(), RSA_set0_crt_params(), RSA_get0_n()
  • Replacement: Use EVP key management APIs:
    EVP_PKEY_new()
    EVP_PKEY_up_ref()
    EVP_PKEY_free()
    

Hash Functions

  • Deprecated: SHA1_Init(), SHA1_Update(), SHA1_Final()
  • Replacement: Use EVP digest APIs:
    EVP_DigestInit_ex()
    EVP_DigestUpdate()
    EVP_DigestFinal_ex()
    EVP_Q_digest()  // For simple one-shot hashing
    

MAC Operations

  • Deprecated: CMAC_Init(), HMAC() (especially with SHA1)
  • Replacement: Use EVP MAC APIs:
    EVP_Q_MAC()  // For simple MAC operations
    

Key Wrapping

  • Deprecated: AES_wrap_key(), AES_unwrap_key()
  • Replacement: Use EVP key wrapping APIs or implement using EVP encryption

Other Deprecated Functions

  • Deprecated: DSA_sign(), DH_check()
  • Replacement: Use corresponding EVP APIs for DSA and DH operations

Banned Insecure Algorithms - STRICTLY FORBIDDEN

These algorithms MUST NOT be used in any form:

Hash Algorithms (Banned)

  • MD2, MD4, MD5, SHA-0
  • Reason: Cryptographically broken, vulnerable to collision attacks
  • Use Instead: SHA-256, SHA-384, SHA-512

Symmetric Ciphers (Banned)

  • RC2, RC4, Blowfish, DES, 3DES
  • Reason: Weak key sizes, known vulnerabilities
  • Use Instead: AES-128, AES-256, ChaCha20

Key Exchange (Banned)

  • Static RSA key exchange
  • Anonymous Diffie-Hellman
  • Reason: No forward secrecy, vulnerable to man-in-the-middle attacks
  • Use Instead: ECDHE, DHE with proper validation

Broccoli Project Specific Requirements

  • HMAC() with SHA1: Deprecated per Broccoli project requirements
  • Replacement: Use HMAC with SHA-256 or stronger:
    // Instead of HMAC() with SHA1
    EVP_Q_MAC(NULL, "HMAC", NULL, "SHA256", NULL, key, key_len, data, data_len, out, out_size, &out_len);
    

Secure Crypto Implementation Pattern

// Example: Secure AES encryption
EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new();
if (!ctx) handle_error();

if (EVP_EncryptInit_ex(ctx, EVP_aes_256_gcm(), NULL, key, iv) != 1)
    handle_error();

int len, ciphertext_len;
if (EVP_EncryptUpdate(ctx, ciphertext, &len, plaintext, plaintext_len) != 1)
    handle_error();
ciphertext_len = len;

if (EVP_EncryptFinal_ex(ctx, ciphertext + len, &len) != 1)
    handle_error();
ciphertext_len += len;

EVP_CIPHER_CTX_free(ctx);

Code Review Checklist

  • [ ] No deprecated SSL/crypto APIs used
  • [ ] No banned algorithms (MD5, DES, RC4, etc.)
  • [ ] HMAC uses SHA-256 or stronger (not SHA1)
  • [ ] All crypto operations use EVP high-level APIs
  • [ ] Proper error handling for all crypto operations
  • [ ] Key material properly zeroed after use

Related Skills

View on GitHub
GitHub Stars2.5k
CategorySecurity
Updated1mo ago
Forks322

Languages

Python

Trust signals

88/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium
codeguard-1-crypto-algorithms — Cursor Rules: Install & Safety Check | SkillAgent