本文へスキップ
Skillpedia
セキュリティ35k · #8076

implementing-mtls-for-zero-trust-services

できること

このツールは、ソフトウェアシステム内のさまざまな部分(マイクロサービスと呼ばれます)の間に、追加のセキュリティ層を設定するのに役立ちます。各サービスの身元を確認することで、許可されたサービスだけが互いに通信できるようにします。

使う場面

  • ✓「ゼロトラスト」環境でサービス間の安全な通信を設定するとき
  • ✓ルールや規制に準拠するためのセキュリティ対策を導入するとき
  • ✓マイクロサービスを使ったシステムを構築または強化するとき

スキルのリンク

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-mtls-for-zero-trust-services/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-mtls-for-zero-trust-services/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“サービス間のmTLS認証を設定してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、各サービスごとにデジタル証明書(身分証のようなもの)と認証局を生成します。その後、通信を許可する前にこれらの証明書を確認するようにサービスを設定し、双方が互いを確実に識別できるようにします。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Implementing mTLS for Zero Trust Services

When to Use

  • When deploying or configuring implementing mtls for zero trust services capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Familiarity with security operations concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Instructions

Generate CA certificates, issue service certificates, and configure mutual TLS verification for service-to-service authentication.

from cryptography import x509
from cryptography.x509.oid import NameOID
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import rsa
import datetime

# Generate CA key and certificate
ca_key = rsa.generate_private_key(public_exponent=65537, key_size=4096)
ca_cert = (x509.CertificateBuilder()
    .subject_name(x509.Name([x509.NameAttribute(NameOID.COMMON_NAME, "Internal CA")]))
    .issuer_name(x509.Name([x509.NameAttribute(NameOID.COMMON_NAME, "Internal CA")]))
    .public_key(ca_key.public_key())
    .serial_number(x509.random_serial_number())
    .not_valid_before(datetime.datetime.utcnow())
    .not_valid_after(datetime.datetime.utcnow() + datetime.timedelta(days=3650))
    .add_extension(x509.BasicConstraints(ca=True, path_length=None), critical=True)
    .sign(ca_key, hashes.SHA256()))

Examples

import ssl
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
context.load_cert_chain("client.pem", "client-key.pem")
context.load_verify_locations("ca.pem")
context.verify_mode = ssl.CERT_REQUIRED
よくある質問

mTLSとは何ですか?

mTLSは「Mutual Transport Layer Security(相互TLS)」の略です。安全な接続を確立する前に、クライアントとサーバーの双方が互いを確認する仕組みです。

「ゼロトラスト」とは何ですか?

ユーザーやサービスは、たとえ社内ネットワークの中にいても、初期状態では信頼されないとする考え方です。すべてのものを検証する必要があります。

このツールを使うのにプログラミングの知識は必要ですか?

ツールの裏側ではPythonのコードが使われていますが、手順をできるだけ簡単にすることを目指しています。手順書に従って進める必要があり、できればテスト環境を用意しておくとよいでしょう。

詳細

作者による元の説明

Configures mutual TLS (mTLS) authentication between microservices using Python cryptography library for certificate generation and ssl module for TLS verification. Validates certificate chains, checks expiration, and audits mTLS deployment status. Use when implementing zero-trust service-to-service authentication. '

repo: mukul975/Anthropic-Cybersecurity-Skills

人気

GitHubのスター
35k
ランキング
#8076
ライセンス
Apache-2.0
更新日
2026/8/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル