krypton-mcp
🛡️ KryptonMCP
AI 에이전트를 위한 제로 트러스트 보안 및 개인정보 보호 게이트웨이
결정론적 PII 마스킹 • 프롬프트 인젝션 가드레일 • JIT 임시 자격 증명 • 서명된 머클 감사 원장
🤖 AI를 통한 즉시 프로젝트 통합
기존 프로젝트에 통합하고 계신가요? 저희는
KRYPTON_INTEGRATION_PROMPT.md에 바로 사용 가능한 AI 프롬프트를 제공합니다.프로젝트에서 Claude Code, Cursor Composer, Windsurf 또는 Antigravity에 프롬프트 전체를 복사하여 붙여넣기만 하면, AI 비서가 자동으로 도구를 감사하고
krypton.yaml을 생성하며 Ed25519 감사 키를 만들고 모든 MCP 클라이언트를 투명하게 연결합니다!
Related MCP server: Node9-Proxy
⚡ 왜 KryptonMCP인가?
AI 모델(Claude, Cursor, Windsurf, LangChain, AutoGen 등)을 데이터베이스, Redis 인스턴스, 기업 API에 직접 연결하면 치명적인 보안 문제가 발생합니다:
PII 및 데이터 유출: 고객 신용카드, 이메일, SSN, 개인 API 키가 평문 그대로 프롬프트 컨텍스트를 통해 클라우드 LLM 제공업체로 직접 전송됩니다.
프롬프트 인젝션 및 하이재킹: 악의적인 사용자 또는 간접 콘텐츠 인젝션이 모델을 속여 파괴적인 도구(
DROP TABLE,rm -rf, 데이터 유출)를 실행하게 합니다.정적 장기 자격 증명: AI 에이전트에 데이터베이스 비밀번호나 관리자 토큰을 부여하면 지속적인 백도어가 생성됩니다.
검증 가능한 컴플라이언스 부재: 기존 로깅은 변경되거나 삭제될 수 있어 SOC2, HIPAA, ISO27001 감사 기준을 충족하지 못합니다.
KryptonMCP는 AI 클라이언트와 다운스트림 MCP 도구 사이에 투명하게 위치하는 독립 실행형 단일 바이너리 제로 트러스트 게이트웨이로, HashiCorp Vault와 같은 외부 에이전트가 필요 없습니다.
🌟 핵심 축
flowchart TD
Client["🤖 AI Client (Claude / Cursor / Windsurf / LangChain)"]
subgraph InboundPipeline["🔒 Inbound Security Pipeline"]
G["1. Prompt-Injection Guardrails & RBAC"]
D["2. Inbound Detokenization Engine"]
B["3. JIT Ephemeral Credential Broker"]
A1["4. Merkle Audit Signer (Ed25519)"]
G --> D --> B --> A1
end
Downstream[("🗄️ Downstream Services (Postgres, Redis, Remote APIs)")]
subgraph OutboundPipeline["🎭 Outbound Privacy Pipeline"]
M["5. In-Flight PII Masker (AES-256-GCM Vault)"]
A2["6. Merkle Leaf Digest & JSONL Sync"]
M --> A2
end
Client -->|"1. JSON-RPC Tool Request (stdio / SSE)"| G
A1 -->|"2. Sanitized Cleartext Request"| Downstream
Downstream -->|"3. Raw Database / API Result"| M
A2 -->|"4. Protected Result with Surrogate Tokens ([EMAIL_REF_...])"| Client1. 🎭 전송 중 결정론적 PII 마스킹
투명한 편집: 페이로드가 LLM에 도달하기 전에 민감한 데이터(신용카드, SSN, 이메일, API 키, JWT, 전화번호, IPv4/IPv6)를 되돌릴 수 있는 대체 토큰(
[EMAIL_REF_a1b2c3d4],[CREDIT_CARD_REF_8f9e0a1b])으로 대체합니다.알고리즘 검증: Luhn Mod 10 체크섬, SSA 지역 검사, 표준 코드에 대한 오탐지 제로를 통한 고정밀 스캐닝.
되돌릴 수 있는 디토큰화: LLM이 대체 토큰으로 다운스트림 도구를 호출하면 Krypton이 전송 중에 매개변수를 다시 평문으로 디토큰화합니다.
인메모리 암호화 볼트: 디스크에 평문 저장 제로; 모든 대체 매핑은 임시 AES-256-GCM 키로 메모리에서 보호됩니다.
2. 🛡️ 프롬프트 인젝션 및 도구 실행 가드레일
다중 벡터 위협 탐지: 명령 재정의, DAN/개발자 모드 탈옥, 구분 기호 인젝션(
<|im_start|>,<<SYS>>), Base64로 난독화된 페이로드를 차단합니다.선언적 도구 RBAC: 와일드카드 허용 목록(
query_*) 및 차단 목록(drop_*,execute_shell).매개변수 제약 조건: 필드 수준 검증(정규식 패턴, 최소/최대 길이, 숫자 범위).
슬라이딩 윈도우 속도 제한: 통제 불능의 재귀 실행 루프를 방지합니다.
3. 🔑 JIT(Just-In-Time) 임시 자격 증명
동적 마이크로 자격 증명: 수요에 따라 1시간 미만의 TTL로 수명이 짧은 데이터베이스 및 캐시 사용자를 생성합니다.
자동 해지: 정밀한 백그라운드 타이머가 임대 만료 시 백엔드 세션을 자동으로 종료하고 임시 역할을 제거합니다.
내장 드라이버: PostgreSQL(
CREATE ROLE ... VALID UNTIL,pg_terminate_backend,DROP ROLE) 및 Redis(ACL SETUSER,CLIENT KILL USER,ACL DELUSER)용 네이티브 드라이버.네이티브 MCP 도구:
krypton_request_credential,krypton_revoke_credential,krypton_list_leases를 노출합니다.
4. 🔏 암호화 서명된 머클 감사 원장
RFC 6962 도메인 분리: 모든 요청, 응답, 도구 호출 및 자격 증명 임대를 기록하는 추가 전용 바이너리 머클 트리.
Ed25519 비대칭 서명: 머클 루트 체크포인트를 수학적으로 서명합니다.
변조 탐지: 과거 로그 기록의 변경 또는 삭제는 즉시 암호화 검증을 깨뜨립니다.
CLI 검증기 및 증명 내보내기: 컴플라이언스 감사자를 위한
krypton audit verify및krypton audit proof.
🚀 빠른 시작 (30초)
설치
# Option 1: Install with Go (Zero dependencies)
go install github.com/krypton-mcp/krypton/cmd/krypton@v0.1.0-alpha
# Option 2: Pull the production Docker image
docker pull ghcr.io/muhammetemirerkut/krypton-mcp:latest
# Option 3: Build from source
git clone https://github.com/MuhammetEmirErkut/krypton-mcp.git
cd krypton-mcp
go build -o krypton ./cmd/krypton구성 및 감사 키 초기화
# 1. Generate production configuration template
krypton config init --out krypton.yaml
# 2. Generate Ed25519 cryptographic audit signing keypair
krypton audit keygen --out-dir ./security-keys⚙️ 클라이언트 통합
1. Claude Desktop 구성 (Stdio 프록시 모드)
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) 또는 %APPDATA%\Claude\claude_desktop_config.json(Windows)에서 Krypton을 투명 프록시로 추가하세요:
{
"mcpServers": {
"postgres-secure": {
"command": "/usr/local/bin/krypton",
"args": [
"start",
"--config", "/path/to/krypton.yaml",
"--",
"npx", "-y", "@modelcontextprotocol/server-postgres", "postgresql://admin:password@localhost:5432/mydb"
]
}
}
}2. Cursor IDE / 원격 MCP 통합 (HTTP 및 SSE 모드)
컨테이너화 또는 원격 설정의 경우 Krypton을 보안 네트워크 게이트웨이로 실행하세요:
# Launch SSE gateway on port 8080 proxying a remote MCP service
krypton start --transport sse --host 0.0.0.0 --port 8080 --downstream-url http://downstream-service:8001/rpc작업 공간의 .cursor/mcp.json에 추가하세요:
{
"mcpServers": {
"secure-gateway": {
"command": "krypton",
"args": ["start", "--config", "./krypton.yaml"]
}
}
}📋 구성 사양 (krypton.yaml)
version: "v1"
server:
transport: "stdio" # "stdio" or "sse"
host: "127.0.0.1"
port: 8080
log_level: "info"
downstream:
transport: "stdio" # "stdio" or "http"
# url: "http://localhost:8001/rpc"
command: ""
args: []
security:
masking_enabled: true
guardrails_enabled: true
audit_enabled: true
ephemeral_creds_enabled: true
masking:
mode: "tokenize" # "tokenize", "redact", or "hash"
builtin_rules:
- "email"
- "credit_card"
- "ssn"
- "api_key"
- "jwt"
- "phone"
- "ip_address"
guardrails:
block_injection: true
block_exfiltration: true
max_prompt_size_bytes: 1048576 # 1 MB
# Declarative Tool RBAC
allowed_tools:
- "*"
denied_tools:
- "drop_*"
- "delete_database"
- "execute_raw_shell"
audit:
log_path: "./audit.jsonl"
sign_enabled: true
signing_key_path: "./krypton_audit.key"
public_key_path: "./krypton_audit.pub"💻 CLI 명령 매트릭스
Command | Description |
| 게이트웨이 프록시 또는 독립 실행형 서버 시작 |
| 프로덕션 구성 템플릿 생성 |
| 구성 구문 및 스키마 규칙 검증 |
| 암호화 감사 서명용 Ed25519 키 쌍 생성 |
| 머클 원장 무결성을 암호화 방식으로 검증 |
| 리프에 대한 암호화 포함 증명 내보내기 |
| 바이너리 빌드 버전 및 커밋 메타데이터 출력 |
📊 성능 벤치마크
Apple M2(arm64, Go 1.26)에서 측정:
Benchmark Operation | Throughput | Latency | Memory Allocs |
전송 중 PII 마스킹 및 토큰화 | ~30,000 ops/sec | 33.4 μs / op | 20 allocs / op |
프롬프트 인젝션 및 가드레일 스캔 | ~33,000 ops/sec | 30.3 μs / op | 3 allocs / op |
RFC 6962 머클 트리 리프 추가 | ~2,000 ops/sec | 489 μs / op | 5,074 allocs / op |
엔드투엔드 전체 게이트웨이 파이프라인 | ~1,800 ops/sec | 550 μs / op | 5,110 allocs / op |
🔒 보안 및 취약점 공개
KryptonMCP는 보안 취약점을 중요하게 생각합니다. 취약점을 발견한 경우 GitHub Private Vulnerability Reporting을 통해 신고하거나 security@krypton-mcp.org로 이메일을 보내주세요. 제로데이 취약점은 공개 이슈로 올리지 마세요.
📄 라이선스
Apache License 2.0. 자세한 내용은 LICENSE를 참조하세요.
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceA 7-layer security system for AI agents that detects and blocks prompt injection, data exfiltration, and malicious tool calls. It enables real-time scanning of inputs, outputs, and tool definitions to protect agentic workflows from emerging AI-specific threats.1MIT
- AlicenseNot gradedqualityAmaintenanceThe Execution Security Layer for the Agentic Era. Providing deterministic "Sudo" governance and audit logs for autonomous AI agents.2,111209Apache 2.0
- AlicenseAqualityAmaintenanceLocal zero-trust permission gateway for AI agents. Enforces policy-based tool authorization, human approvals, scoped permissions, and cryptographically verifiable audit logs.45Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides a privacy-preserving security framework for AI agents using the Model Context Protocol, enabling transparent anonymization of sensitive data and blockchain-like audit trails for regulated domains.MIT
Related MCP Connectors
Protect AI agents from API-key exposure with secretless credentials and signed execution proofs.
Sovereign Agent OS — Persistent Memory, Governance & Compliance for AI Agents.
Verifiable provenance for AI agents — ZK proofs over confidential documents, no plaintext exposure.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MuhammetEmirErkut/krypton-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server