Declarative .mdcCursor/Claude/Windsurf 규칙 및 n8n 워크플로IDE 규칙제로 비밀 유출 감사
Zero-Secret MCP 매니페스트 및 에이전트 보안 구성
선언적 .mdc 및 CLAUDE.md 보안 정책은 mcp.json에서 하드코딩된 API 토큰을 차단하고 매개변수화된 SQL을 적용하며 개인 CIDR SSRF 호출을 제한합니다.
선언적 에이전트 및 IDE 규칙 파일
---
description: Prevent hardcoded credentials in MCP manifests, enforce parameterized SQL, and block SSRF to RFC1918 networks
globs: **/{*mcp*.json,.env*,*.go,*.ts,*.py}
alwaysApply: true
---
# Zero-Secret MCP & Agentic Security Policy
- NEVER hardcode literal API keys (`sk-*`, `ghp_*`, `github_pat_*`, `AKIA*`, `xoxb-*`) or database passwords in `.cursor/mcp.json`, `.vscode/mcp.json`, or `claude_desktop_config.json`.
- Reference host keychain or `.env` variables exclusively via `${ENV_VAR}` syntax, and omit the `"env"` object entirely when no secret is required.
- Pin exact package versions or container image SHA-256 digests for production STDIO servers; never wrap MCP commands in `sh -c` or `bash -c`.
- Block outbound agent HTTP fetchers from reaching loopback (`127.0.0.0/8`), link-local cloud metadata (`169.254.169.254`), and RFC1918 private subnets.
- Bind database inspection MCP servers to read-only PostgreSQL/MySQL roles with `SET default_transaction_read_only = on` and `statement_timeout = '5s'`.
## Verification Check
```bash
git grep -En '(sk-[A-Za-z0-9_-]{16,}|ghp_[A-Za-z0-9]{20,}|AKIA[0-9A-Z]{16})' && exit 1 || echo 'Zero secret leaks detected'
```커뮤니티 설정 참고 사항 및 제작 리뷰 (0)
아직 커뮤니티 메모가 없습니다. 아래에서 프로덕션 구성 팁을 공유하세요.
노출된 MCP 도구 및 리소스 스키마 검사기
| 도구/자원 식별자 | 입력 매개변수 | 실행 동작 |
|---|---|---|
| forbid_plaintext_mcp_env | .cursor/mcp.json, claude_desktop_config.json | Rejects literal sk-*, ghp_*, AKIA*, and DSN credentials inside MCP env blocks; mandates ${VAR} interpolation. |
| enforce_readonly_db_roles | db/**/*.sql, internal/db/**/*.go | Mandates read-only database sessions with bounded statement_timeout for analytical agent tools. |