Sh Kb Crypto logo

Sh Kb Crypto

Community
dmdhrumilmistry
sh-kb-crypto

Knowledge base for finding cryptographic failures - weak hashing/encryption, insecure randomness, hardcoded/static keys and IVs, ECB mode, missing integrity, and predictable tokens. Use when hunting crypto misuse. CWE-327/328/330/326/916, OWASP A02:2021-Cryptographic Failures.

Overview

Publisherdmdhrumilmistry
Repositorysecurity-harness
Skill namesh-kb-crypto
Stars
42
Forks
11
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dmdhrumilmistry on GitHub. Read the source before you install it.

Installation

Install the Sh Kb Crypto AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-kb-crypto
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dmdhrumilmistry/security-harness.git /tmp/security-harness
mkdir -p .claude/skills
cp -r /tmp/security-harness/plugins/security-harness/skills/sh-kb-crypto .claude/skills/sh-kb-crypto
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sh Kb Crypto in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sh Kb Crypto on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sh Kb Crypto is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Cryptographic Failures - Hunter Knowledge Base

Broken or misused cryptography: weak algorithms, predictable randomness, static keys/IVs, missing integrity, or protecting nothing (plaintext). Impact depends on what the crypto was meant to protect.

What to hunt

  • Weak/broken algorithms (CWE-327/328): MD5/SHA1 for passwords or signatures, DES/3DES/RC4, fast hashes for password storage (should be argon2/bcrypt/scrypt/PBKDF2).
  • Insecure randomness (CWE-330/338): Math.random(), random.random()/random.randint, rand(), java.util.Random, time-seeded RNG used for tokens/session ids/password-reset/OTP/nonces/keys.
  • Static/hardcoded key or IV (CWE-321/329): fixed AES key/IV in source; reused nonce; predictable salt.
  • ECB mode (CWE-327): AES/ECB leaks plaintext patterns.
  • Missing integrity / unauthenticated encryption: CBC without a MAC (padding-oracle risk); encrypt without authenticate; not using AEAD (AES-GCM/ChaCha20-Poly1305).
  • Bad TLS/cert handling: disabled verification (verify=False, rejectUnauthorized:false, InsecureSkipVerify:true, trust-all TrustManager/HostnameVerifier).
  • Weak KDF params: low PBKDF2 iterations, no salt.

Sinks (grep targets)

md5(|sha1(|MD5|SHA1|DES|RC4|Math.random|random\.(random|randint|choice)|util.Random|AES/ECB|ECB| verify=False|rejectUnauthorized|InsecureSkipVerify|createCipher\(|PBKDF2.*iterations|IV\s*=. Look near "password", "token", "key", "encrypt", "sign", "session".

Detection recipe

  1. Grep the patterns above; for each, determine what is being protected and the threat model.
  2. Password storage: which hash + salt + params? Token generation: which RNG? Encryption: algorithm, mode, key/IV source, integrity?
  3. Confirm the weakness is used on security-relevant data (a non-security CRC/md5 for a cache key is fine).

PoC / evidence

  • The code using the weak primitive at file:line. For randomness: show tokens derive from a predictable RNG (attacker can predict/brute future values). For static key: show the literal key/IV.
  • Padding oracle / ECB: describe the exploit conditions; a full oracle PoC is usually needs-runtime.

False-positive filters

  • MD5/SHA1 used for non-security purposes (ETags, cache keys, dedup checksums) - not a finding.
  • CSPRNG in use: secrets/os.urandom (Python), crypto.randomBytes (Node), SecureRandom (Java), crypto/rand (Go). Password hashing via argon2/bcrypt/scrypt with salt.
  • AEAD (AES-GCM/ChaCha20-Poly1305) or encrypt-then-MAC; per-message random IV/nonce; keys from a KMS/secret manager. TLS verification enabled (the insecure flags are dev-only and not shipped).

CWE / OWASP / severity

CWE-327/328/330/338/321/326/916, CWE-295 (cert validation). OWASP A02:2021. Forgeable tokens / broken auth crypto / disabled TLS verification -> high/critical; weak-but-limited -> medium.

Chaining hints

Predictable reset/session tokens -> auth account takeover; static JWT/HMAC key -> forge tokens; disabled TLS verification -> MITM -> credential capture; weak password hash + a secrets/sqli DB dump -> mass credential cracking.

Mitigation

Use argon2/bcrypt/scrypt (salted) for passwords; CSPRNG for all tokens/keys/IVs; AES-GCM or ChaCha20-Poly1305 (AEAD) with per-message nonces; keys from a KMS/secret manager, never hardcoded; enforce TLS certificate verification; drop MD5/SHA1/DES/RC4/ECB for security purposes.

Frequently asked questions

What does the Sh Kb Crypto AI skill do?

Knowledge base for finding cryptographic failures - weak hashing/encryption, insecure randomness, hardcoded/static keys and IVs, ECB mode, missing integrity, and predictable tokens. Use when hunting crypto misuse. CWE-327/328/330/326/916, OWASP A02:2021-Cryptographic Failures.

Why use Sh Kb Crypto on TypingMind?

Because you install it once and use it with any model. Sh Kb Crypto is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sh Kb Crypto in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-kb-crypto. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Sh Kb Crypto?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sh Kb Crypto?

As many as you like. As long as a model supports skills, you can use Sh Kb Crypto with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sh Kb Crypto AI skill free?

Yes. It is published on GitHub by dmdhrumilmistry under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇