用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vinilana/dotcontext --skill security-audit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Implement or review bounded MCP inputs and responses. Use for gateway response helpers, MCP Zod schemas, list actions, cursor pagination, maxEvents, JSON serialization, audit logging, response metadata, artifact exports, or payload-size and client-compatibility changes.
Implement or review child-process execution with bounded stdout and stderr memory. Use for Node spawn wrappers, sensors, test runners, acceptance commands, timeout handling, output tails, truncation, or any change that captures subprocess output in the dotcontext harness.
Design, implement, or review bounded cache and persistent-index lifecycle. Use for ContextCache, SemanticContextBuilder, tree-sitter analysis cache, MCP session cache, hook host-session bindings, checkpoints, TTL, LRU, byte budgets, invalidation, cleanup timers, disposal, migration, or runtime retention configuration.
基于 SOC 职业分类
正在显示 SKILL.md
| type | skill |
| name | Security Audit |
| description | Security review checklist for code and infrastructure |
| skillSlug | security-audit |
| phases | ["R","V"] |
| generated | "2026-03-18T00:00:00.000Z" |
| status | filled |
| scaffoldVersion | 2.0.0 |
Security review checklist specific to the @dotcontext/cli CLI tool and MCP server.
The @dotcontext/cli tool has a specific threat surface:
| Asset | Risk | Location |
|---|---|---|
| AI provider API keys | Exposure via logs, config files, or provider helpers | src/services/ai/providerFactory.ts, env vars |
| File system access | Path traversal, reading outside repo boundaries | src/services/mcp/gateway/explore.ts, readFileTool.ts |
| MCP server stdio | Command injection via tool parameters | src/services/mcp/mcpServer.ts |
| Generated scaffold content | Inclusion of secrets in .context/ output | src/services/ai/tools/, src/services/autoFill/, src/generators/ |
| User repository content | Unintended exposure via exported context | src/services/export/, src/services/sync/ |
| Dependencies | Supply chain vulnerabilities | package.json |
src/services/ai/providerFactory.ts helpers.context/ outputsrc/utils/contentSanitizer.ts) strips potential secrets from generated content.env files are in .gitignorepath.resolve() before access../ sequences that escape the repo rootreadFileTool.ts validates paths are within the project boundaryread action bounds access to the repo pathlist and search actions respect exclude patterns.context/ by default)repoPath parameter is resolved and optionally cached, not used rawprocess.stderr, not process.stdout (which is the MCP transport)wrapWithActionLogging does not log sensitive parameter valuesThe contentSanitizer.ts utility filters generated content:
npm audit shows no high/critical vulnerabilitiestree-sitter and tree-sitter-typescript are optional dependencies (native binaries)@ai-sdk/anthropic, @ai-sdk/openai, @ai-sdk/google) are from official sources@modelcontextprotocol/sdk is from the official MCP organizationaxios usage (if any) validates URLs and does not follow arbitrary redirectsexportRules and exportContext actions do not include API keys in outputreverseSync validates imported file content before writing to .context/dryRun: true) never writes filesgitService.ts does not expose credentialscommitPhase action stages only files matching the provided patterns[".context/**"] -- not ["**"]/[A-Za-z0-9]{32,}/, /sk-[a-zA-Z0-9]+/, /AKIA[A-Z0-9]{16}/path.resolve() or path.join()console.log() in MCP server code pathsnpm audit and address any high/critical findingssrc/services/mcp/gateway/ for input validationsrc/utils/contentSanitizer.ts for completeness of sanitization patternssrc/services/ai/providerFactory.ts and any prompt/default helpers for key handling.gitignore includes .env, *.pem, credentials*.context/ does not contain repo-external pathssrc/services/ai/tools/ for file access boundariesIf a security issue is found:
contentSanitizer.ts if the issue involves generated content### Security