Sh Kb Cryptoのロゴ

Sh Kb Crypto

コミュニティ
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.

概要

公開者dmdhrumilmistry
リポジトリsecurity-harness
スキル名sh-kb-crypto
スター
42
フォーク
11
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    dmdhrumilmistryがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Sh Kb Crypto」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-kb-crypto
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSh Kb Cryptoを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSh Kb Cryptoを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Sh Kb Cryptoは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでSh Kb Cryptoを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Sh Kb Cryptoはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSh Kb Cryptoをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-kb-cryptoを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Sh Kb Cryptoを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Sh Kb Cryptoで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSh Kb Cryptoを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Sh Kb Crypto」は無料ですか?

はい。dmdhrumilmistryがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇