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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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란 무엇인가요?
‘Mutual Transport Layer Security’의 약자입니다. 보안 연결을 맺기 전에 클라이언트와 서버가 서로의 신원을 확인하는 방식입니다.
‘제로 트러스트’란 무엇인가요?
사용자나 서비스가 이미 네트워크 안에 있더라도 기본적으로 신뢰하지 않는다는 보안 모델입니다. 모든 것을 검증해야 합니다.
이것을 사용하려면 코딩을 알아야 하나요?
이 도구는 뒤에서 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. '
인기도
- GitHub 스타
- 35k
- 순위
- #8076
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 8. 31.
댓글
- …
이 저장소의 다른 스킬
abusing-dpapi-for-credential-access
35kAI 에이전트에게 특정 작업을 위한 준비된 지침을 제공해, 더 잘하고 더 빠르게 처리하도록 합니다.
abusing-shadow-credentials-for-privesc
35kAI 에이전트가 명확하고 잘 구성된 텍스트를 쓰도록 가르칩니다.
achieving-cmmc-level-2-compliance
35kCMMC Level 2 규정 준수를 위한 환경을 준비하도록 돕습니다. 보안 요구 사항을 구현하고 필요한 문서를 관리합니다.
acquiring-disk-image-with-dd-and-dcfldd
35k에이전트가 하드 드라이브의 정확한 복사본을 만들도록 돕습니다. 조사 중 정보가 손실되거나 변경되지 않도록 하는 데 유용합니다.