skill-security-audit – skill Bảo mật cho agent AI
Kiểm toán một Agent Skill, máy chủ MCP, connector hoặc desktop extension trước khi cài đặt bằng cách truy vết code, phụ thuộc, quyền truy cập, thông tin xác thực, luồng dữ liệu và các hành động không thể hoàn tác.
Cài skill skill-security-audit bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-security-audit-59925.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /skill-security-audit – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-security-audit-59925.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $skill-security-audit – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-security-audit-59925.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /skill-security-audit – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-security-audit-59925.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /skill-security-audit – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Skill Security Audit
Overview
Review a third-party Agent Skill, MCP server, connector, or desktop extension before installation. The default workflow is read-only: do not install dependencies, execute project code, sign in, provide credentials, or connect the project to a real account during static review.
When to Use This Skill
- Use before installing an unfamiliar Skill, MCP server, connector, plugin, or desktop extension.
- Use when a project handles files, credentials, browser sessions, external accounts, network requests, or destructive actions.
- Use when a release, binary, dependency, or remote installer cannot be independently verified.
How It Works
1. Record the exact repository, revision or release, license, archive status, latest meaningful update, and files reviewed. State any scope limitation.
2. Read the complete SKILL.md or equivalent instructions and every file it directly invokes. Follow references to scripts, hooks, manifests, package-install steps, binaries, remote URLs, environment variables, and bundled assets.
3. Inventory capabilities: filesystem access, command execution, network access, browser control, account actions, publishing, messaging, deletion, payment, credential access, persistence, and self-update behavior.
4. Trace sensitive data from its source to local stores, subprocesses, logs, models, APIs, MCP servers, analytics services, and other network destinations. Missing documentation is an unresolved question, not proof that data stays local.
5. Inspect dependency manifests, lockfiles, install scripts, and release provenance. Note unpinned remote execution, broad dependencies, opaque binaries, and mismatches between source and distributed artifacts.
6. Separate confirmed findings from contextual risks and unanswered questions. Cite file paths, line numbers, configuration fields, commands, or primary documentation for every material claim.
7. Propose a minimal-permission test using disposable data or accounts; do not run it without explicit user approval.
Output
Begin with the audited identity and one verdict:
- Lower observed risk: no material concern was found in the reviewed scope; this is not a guarantee.
- Review required: important behavior, provenance, permissions, or data flow remains unclear.
- High observed risk: confirmed behavior could expose sensitive data, weaken account or device security, cause irreversible action, or bypass informed control.
Then provide:
1. Scope and limitations.
2. A capability and permission table.
3. A data-flow table.
4. Findings ordered by severity, with evidence, impact, and mitigation.
5. Unanswered questions.
6. A minimal-permission test plan.
Examples
Example 1: A local, read-only Skill
Input: a repository containing only SKILL.md and Markdown references, with no scripts, dependencies, credentials, or network instructions.
Report: record the reviewed revision and files, mark command/network/credential capabilities as not observed in scope, note any missing license or provenance evidence, and recommend a disposable-data trial only if the remaining questions are resolved.
Example 2: An MCP server with a token
Input: a server whose setup reads API_TOKEN and whose tools can create or delete records.
Report: trace the token and request destinations, classify the write/delete capability separately from read access, require a least-privilege test account and action-time confirmation, and do not run the server with production credentials during review.
Best Practices
- ✅ Prefer implementation and current primary documentation over badges, screenshots, descriptions, or popularity.
- ✅ Pin revisions and inspect manifests, lockfiles, checksums, and release provenance.
- ✅ Use disposable data, least privilege, localhost binding, dry runs, backups, confirmation gates, and rollback where applicable.
- ✅ Mark unknown behavior explicitly and preserve the exact reviewed revision.
- ❌ Do not call a project safe, malicious, official, or compliant without evidence for that claim.
- ❌ Do not execute install commands, remote scripts, binaries, account actions, or credential flows during static review.
Security & Safety Notes
Static review cannot prove runtime behavior or the contents of an opaque remote service. Treat a green validator, marketplace entry, star count, or successful installation as evidence about only that narrow property, never as a safety certificate. Stop if the requested review would require real credentials, production data, or an unapproved external action.
Limitations
- The audit is evidence-led but bounded by the public revision and files that can be inspected.
- A missing policy or undocumented data destination remains unresolved; it must not be silently inferred away.
- Risk severity depends on capability, exposure, control, and reversibility, not on keywords alone.
Skill liên quan
- skill-skill – Viết, nâng cấp hoặc kiểm toán skill của Claude để thay đổi nội dung được tạo ra: forcing…
- soc2-compliance – Triển khai các Tiêu chí Dịch vụ Tin cậy SOC 2 (Trust Services Criteria). Cấu hình kiểm…
- solidity-security – Nắm vững các best practice bảo mật smart contract, phòng ngừa lỗ hổng và các mẫu phát…
- soroban-contract-audit – Sổ đăng ký kiểm toán bảo mật hợp đồng thông minh Soroban: kiểm tra phân quyền, đường dẫn…
- soroban-oracle-data-feed-audit – Sổ đăng ký kiểm toán tích hợp và an toàn của oracle giá DeFi: giới hạn heartbeat, hoàn…
- src-hunter – Quy trình săn lỗ hổng cho chương trình bug bounty/SRC: phương pháp năm giai đoạn (tiếp…
- stellar-asset-clawback-compliance – Kiến trúc thu hồi tài sản Stellar được quản lý: cờ ủy quyền của issuer, thu hồi…
- supply-chain-attack-recon – Rà soát chỉ đọc (read-only) có ủy quyền về mức độ phơi nhiễm chuỗi cung ứng phần mềm…