Security Hardeningのロゴ

Security Hardening

組織
DevelopersGlobal
security-hardening

Applies OWASP Top 10, secrets management, and least-privilege principles before any code ships. Security is a build step, not an afterthought.

Add to TypingMind

概要

公開者DevelopersGlobal
リポジトリai-agent-skills
スキル名security-hardening
スター
212
フォーク
33
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Overview

Security vulnerabilities are almost always cheaper to prevent than to remediate. This skill embeds security review as a required gate in the development workflow — not a separate audit that happens later (and often never).

When to Use

  • Before any code involving user input
  • Before any code touching authentication, authorization, or sessions
  • Before any API endpoint is created or modified
  • Before any code that handles secrets, credentials, or PII
  • Before any code that makes outbound network requests

Process

Step 1: Threat Model the Change

  1. Ask: Who are the attackers? What are they trying to achieve?
  2. Identify all trust boundaries in the code:
    • Where does user-controlled data enter the system?
    • Where does that data flow?
    • Where is it stored or transmitted?
  3. For each trust boundary, name the top 3 attack vectors.

Verify: You can name at least one realistic attack scenario for this code.

Step 2: Apply OWASP Top 10 Checklist

  1. For each applicable item, confirm it is addressed:
OWASP ItemCheck
A01 Broken Access ControlAuthorization checked at every endpoint? Principle of least privilege applied?
A02 Cryptographic FailuresNo plaintext PII/secrets? Using modern algorithms (AES-256, SHA-256+)? TLS everywhere?
A03 InjectionAll user input parameterized/sanitized? No raw SQL/shell construction?
A04 Insecure DesignThreat model done? Secure defaults? Fail closed (not open)?
A05 Security MisconfigurationNo default credentials? Unnecessary features disabled? Error messages don't leak internals?
A06 Vulnerable ComponentsDependencies up to date? Known CVEs checked?
A07 Auth FailuresBrute-force protection? Session management correct? MFA available?
A08 Software IntegrityDependencies verified? Supply chain integrity?
A09 Logging FailuresSecurity events logged? No secrets in logs? Logs protected from tampering?
A10 SSRFOutbound requests validated? Internal IPs blocked from user-controlled URLs?

Verify: Each applicable item is either addressed or explicitly accepted as a known risk.

Step 3: Secrets Management

  1. No hardcoded secrets — ever. Not even in dev/test code.
  2. Secrets are stored in: environment variables, secrets manager (Vault, AWS Secrets Manager, etc.), or encrypted config.
  3. Secrets are never logged, printed, or included in error messages.
  4. Secrets are never committed to git (check .gitignore and use pre-commit hooks).

Verify: git grep -i 'password\|secret\|key\|token' returns no hardcoded values in code.

Step 4: Input Validation

  1. Every piece of external input is validated:
    • Type check
    • Length/size limits
    • Allowlist of expected values (not blocklist)
    • Reject and log unexpected input — never silently ignore
  2. User-controlled data is never concatenated into SQL, shell commands, HTML, or file paths without proper escaping/parameterization.

Verify: All external input has explicit validation with reject-by-default behavior.

Step 5: Least Privilege

  1. Database connections use the minimum required permissions.
  2. API tokens have the minimum required scopes.
  3. Service accounts cannot access resources they don't need.
  4. Default deny — access must be explicitly granted, not implicitly inherited.

Verify: List every permission granted by this code. Is each one required?

Common Rationalizations (and Rebuttals)

ExcuseRebuttal
"It's internal only"Internal services get breached too. Zero-trust applies internally.
"We'll add auth later"Auth bolted on later is always broken. Design it in from the start.
"The input is from our own frontend"Attackers don't use your frontend. Validate on the server, always.
"It's a dev environment"Dev environments get credentials from prod. Treat them accordingly.
"The secret is in a config file, not code"Is the config file in git? Is it world-readable? Config files are not safe.

Red Flags

  • User input directly interpolated into queries or commands
  • Authentication middleware that can be bypassed
  • Error messages that include stack traces or SQL queries
  • API keys or passwords in source code or comments
  • Missing authorization check on any endpoint
  • HTTP used instead of HTTPS for any sensitive data

Verification

  • OWASP Top 10 checklist reviewed for applicable items
  • No hardcoded secrets (git grep clean)
  • All external input validated (type, length, allowlist)
  • No raw SQL/shell from user input
  • Least privilege applied to all credentials
  • Security events are logged (but secrets are not)
  • Dependency vulnerabilities checked

References

よくある質問

AIスキル「Security Hardening」では何ができますか?

Applies OWASP Top 10, secrets management, and least-privilege principles before any code ships. Security is a build step, not an afterthought.

TypingMindでSecurity Hardeningを使うメリットは何ですか?

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

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

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

Security Hardeningを使えるAIモデルはどれですか?

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

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

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

AIスキル「Security Hardening」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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