Algorithm Selectionのロゴ

Algorithm Selection

組織
RedHatProductSecurity
algorithm-selection

Apply when selecting, reviewing, or configuring cryptographic algorithms, cipher suites, protocol versions, or key exchange mechanisms. Covers banned/deprecated/recommended algorithms, post-quantum readiness, key management, and OpenSSL API migration.

Add to TypingMind

概要

公開者RedHatProductSecurity
リポジトリprodsec-skills
スキル名algorithm-selection
スター
56
フォーク
9
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RedHatProductSecurity/prodsec-skills.git /tmp/prodsec-skills
mkdir -p .claude/skills
cp -r /tmp/prodsec-skills/module/skills/algorithm-selection .claude/skills/algorithm-selection
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Cryptographic Algorithm Selection and Post-Quantum Readiness

Reference for which cryptographic algorithms to use, which to avoid, and how to prepare for post-quantum cryptography.

Banned (Insecure) Algorithms

NEVER use these algorithms. They are cryptographically broken.

TypeBanned
HashMD2, MD4, MD5, SHA-0
SymmetricRC2, RC4, Blowfish, DES, 3DES
Key ExchangeStatic RSA, Anonymous Diffie-Hellman

Deprecated (Legacy/Weak) Algorithms

Avoid in new designs. Prioritize migration away from these.

TypeDeprecatedIssue
HashSHA-1Collision attacks demonstrated
SymmetricAES-CBC, AES-ECBUnauthenticated; ECB leaks patterns
SignatureRSA with PKCS#1 v1.5 paddingPadding oracle attacks
Key ExchangeDHE with weak/common primesVulnerable to precomputation attacks

Recommended and Post-Quantum Ready Algorithms

Symmetric Encryption

  • Standard: AES-GCM (AEAD), ChaCha20-Poly1305
  • PQC requirement: prefer AES-256 keys -- resistant to Grover's algorithm
  • Avoid: custom crypto or unauthenticated modes

Key Exchange (KEM)

  • Standard: ECDHE (X25519 or secp256r1)
  • Hybrid key exchange (classical + PQC) when supported:
    • Preferred: X25519MLKEM768 (X25519 + ML-KEM-768)
    • Alternative: SecP256r1MLKEM768 (P-256 + ML-KEM-768)
    • High assurance: SecP384r1MLKEM1024 (P-384 + ML-KEM-1024)
  • Pure PQC: ML-KEM-768 (baseline) or ML-KEM-1024. Avoid ML-KEM-512 unless explicitly risk-accepted.
  • Use vendor-documented identifiers (RFC 9242/9370). Remove legacy/draft "Hybrid-Kyber" groups and hardcoded OIDs.

Signatures and Certificates

  • Standard: ECDSA (P-256)
  • PQC migration: continue using ECDSA (P-256) for mTLS and code signing until hardware-backed (HSM/TPM) ML-DSA is available.
  • Hardware requirement: do not enable PQC ML-DSA signatures with software-only keys. Require HSM/TPM storage.

Protocol Versions

  • (D)TLS: enforce (D)TLS 1.3 only (or later)
  • IPsec: enforce IKEv2 only
    • Use ESP with AEAD (AES-256-GCM)
    • Require PFS via ECDHE
    • Implement RFC 9242 and RFC 9370 for hybrid PQC (ML-KEM + ECDHE)
    • Ensure re-keys (CREATE_CHILD_SA) maintain hybrid algorithms
  • SSH: enable only vendor-supported PQC/hybrid KEX (e.g., sntrup761x25519)

Secure Implementation Guidelines

General Best Practices

  • Configuration over code: expose algorithm choices in config/policy to allow agility without code changes.
  • Key management:
    • Use KMS/HSM for key storage
    • Generate keys with a CSPRNG
    • Separate encryption keys from signature keys
    • Rotate keys per policy
    • NEVER hardcode keys, secrets, or experimental OIDs
  • Telemetry: capture negotiated groups, handshake sizes, and failure causes to monitor PQC adoption.
  • Avoid custom crypto: use well-vetted libraries; never implement your own primitives.

Deprecated OpenSSL APIs (C/C++)

Never use these deprecated functions. Use the EVP high-level APIs.

DeprecatedReplacement
AES_encrypt(), AES_decrypt()EVP_EncryptInit_ex() with EVP_aes_256_gcm()
RSA_new(), RSA_free(), RSA_get0_n()EVP_PKEY_new(), EVP_PKEY_free()
SHA1_Init()EVP_DigestInit_ex() with SHA-256 or stronger
HMAC() with SHA-1EVP_Q_MAC() with SHA-256 or stronger

AES-256-GCM Example (C/OpenSSL)

c
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);

HMAC-SHA256 Example (C/OpenSSL)

c
EVP_Q_MAC(NULL, "HMAC", NULL, "SHA256", NULL,
          key, key_len, data, data_len,
          out, out_size, &out_len);

Implementation Checklist

  • No banned algorithms (MD5, RC4, DES, 3DES) in use anywhere
  • SHA-1 and AES-CBC/ECB identified and scheduled for migration
  • AES-GCM or ChaCha20-Poly1305 used for symmetric encryption
  • ECDHE (X25519 or P-256) used for key exchange
  • Hybrid PQC key exchange evaluated and enabled where supported
  • TLS 1.3 enforced; TLS 1.0/1.1/1.2 disabled or on migration plan
  • Keys stored in KMS/HSM; no hardcoded keys or secrets
  • Algorithm choices in configuration, not hardcoded
  • Deprecated OpenSSL APIs replaced with EVP equivalents
  • PQC adoption telemetry in place

よくある質問

AIスキル「Algorithm Selection」では何ができますか?

Apply when selecting, reviewing, or configuring cryptographic algorithms, cipher suites, protocol versions, or key exchange mechanisms. Covers banned/deprecated/recommended algorithms, post-quantum readiness, key management, and OpenSSL API migration.

TypingMindでAlgorithm Selectionを使うメリットは何ですか?

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

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

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

Algorithm Selectionを使えるAIモデルはどれですか?

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

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

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

AIスキル「Algorithm Selection」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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