본문으로 건너뛰기
Skillpedia
테스트35k · #8035

implementing-end-to-end-encryption-for-messaging

하는 일

이 도구는 대화하는 사람만 메시지를 읽을 수 있는 메시징 시스템을 만들도록 돕습니다. 메시지를 보내는 서버조차 읽을 수 없습니다. 보안을 위해 고급 암호화 방법을 사용합니다.

사용하는 경우

  • ✓안전한 메시징 앱을 만들 때.
  • ✓대화를 보호하기 위한 보안을 설정할 때.
  • ✓메시지가 감시당하지 않도록 보호하는 방법을 검토하는 경우.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-end-to-end-encryption-for-messaging/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-end-to-end-encryption-for-messaging/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 채팅 애플리케이션에 종단 간 암호화를 설정하려면 어떻게 해야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

‘Signal 프로토콜’이라는 방법을 사용해 각 메시지마다 고유한 보안 키를 만듭니다. 이 키 덕분에 누군가 메시지를 가로채더라도 읽을 수 없습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Implementing End-to-End Encryption for Messaging

Overview

End-to-end encryption (E2EE) ensures that only the communicating parties can read messages, with no intermediary (including the server) able to decrypt them. This skill implements a simplified version of the Signal Protocol's Double Ratchet algorithm, using X25519 for key exchange, HKDF for key derivation, and AES-256-GCM for message encryption.

When to Use

  • When deploying or configuring implementing end to end encryption for messaging 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 cryptography 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

Objectives

  • Implement X25519 Diffie-Hellman key exchange for session establishment
  • Build the Double Ratchet key management algorithm
  • Encrypt and decrypt messages with per-message keys
  • Implement forward secrecy (compromise of current key does not reveal past messages)
  • Handle out-of-order message delivery
  • Implement key agreement using X3DH (Extended Triple Diffie-Hellman)

Key Concepts

Signal Protocol Components

Component Purpose Algorithm
X3DH Initial key agreement X25519
Double Ratchet Ongoing key management X25519 + HKDF + AES-GCM
Sending Chain Per-message encryption keys HMAC-SHA256 chain
Receiving Chain Per-message decryption keys HMAC-SHA256 chain
Root Chain Derives new chain keys on DH ratchet HKDF

Forward Secrecy

Each message uses a unique encryption key derived from a ratcheting chain. After a key is used, it is deleted, ensuring that compromise of the current state does not reveal previously sent/received messages.

Security Considerations

  • Delete message keys immediately after decryption
  • Implement message ordering and replay protection
  • Use authenticated encryption (AES-GCM) for all messages
  • Protect identity keys with device-level security
  • Verify identity keys out-of-band (safety numbers)

Validation Criteria

  • X25519 key exchange produces shared secret
  • Messages encrypt and decrypt correctly between two parties
  • Different messages produce different ciphertexts
  • Forward secrecy: old keys cannot decrypt new messages
  • Out-of-order messages can be decrypted
  • Tampered messages are rejected by authentication
자주 묻는 질문

종단 간 암호화란 무엇인가요?

나와 대화 상대만 메시지를 읽을 수 있도록 보장하는 보안 방식입니다. 서비스를 제공하는 회사조차 읽을 수 없습니다.

‘전방 비밀성(forward secrecy)’이란 무엇인가요?

현재 보안 키가 유출되더라도 과거 메시지는 안전하게 유지되어 읽을 수 없다는 뜻입니다.

이것을 사용하려면 암호학 전문가여야 하나요?

기본 지식이 있으면 좋지만, 이 도구는 과정을 단순하게 만들어 전문가가 아니어도 보안을 적용할 수 있게 해 줍니다.

상세 정보

작성자의 원본 설명

Implements a simplified Signal Protocol-style end-to-end encryption scheme for messaging, covering key exchange, forward secrecy, and the core cryptographic components so no server or intermediary can decrypt messages. Use when designing or building E2EE messaging, or evaluating forward-secrecy and key-management tradeoffs for a messaging system.

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#8035
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬