security-audit SKILL.md skillA

security-audit from laolaoshiren/claude-code-skills-zh is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add laolaoshiren/claude-code-skills-zh/security-audit@git:20260421.27394be

Pins git:20260421.27394be in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
laolaoshiren/claude-code-skills-zh
Path
skills/security-audit/SKILL.md
Versions recorded
2
Latest version
git:20260421.27394be, committed Apr 21, 2026
First version recorded
Apr 14, 2026
Size
2,054 bytes
Repository stars
869
License
MIT

代码安全审计 - 漏洞扫描、依赖检查、安全最佳实践.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 代码安全审计

## 触发条件
当用户要求安全检查、漏洞扫描、安全审计、依赖安全检查时激活此技能。

## 工作流程

1. **确定审计范围** — 根据用户指定的目录/文件/代码段进行分析
2. **静态安全扫描** — 按检查清单逐项排查
3. **依赖安全检查** — 检查 package.json / requirements.txt / go.mod 等依赖文件
4. **生成审计报告** — 按严重程度分类输出

## 检查清单

### 🔴 高危
- [ ] 硬编码密钥/密码/API Key
- [ ] SQL 注入风险(字符串拼接 SQL)
- [ ] 命令注入(未过滤的 shell 命令)
- [ ] 路径遍历(未校验的文件路径)
- [ ] 反序列化漏洞
- [ ] 未校验的 JWT/Token 验证

### 🟡 中危
- [ ] XSS 风险(未转义的用户输入)
- [ ] CSRF 保护缺失
- [ ] 不安全的随机数生成
- [ ] 敏感信息日志泄露
- [ ] 过宽的权限设置
- [ ] 缺少 Rate Limiting

### 🟢 低危
- [ ] 缺少输入验证
- [ ] 依赖版本过旧
- [ ] 缺少安全头部(CSP, HSTS, X-Frame-Options)
- [ ] 错误信息泄露内部细节
- [ ] 缺少 HTTPS 强制

## 输出格式

```markdown
## 🔒 安全审计报告

### 审计概览
- 审计范围:xxx
- 发现问题:🔴 高危 X 个 / 🟡 中危 X 个 / 🟢 低危 X 个

### 🔴 高危问题
#### 1. [文件路径:行号]
- **漏洞类型**:xxx
- **风险描述**:xxx
- **攻击场景**:攻击者可以通过 xxx 方式...
- **修复方案**:
  ```code
  // 修复前
  // 修复后
  ```

### 🟡 中危问题
...

### 🟢 低危问题
...

### 依赖安全
| 依赖名 | 当前版本 | 建议版本 | 风险 |
|--------|---------|---------|------|

### 修复优先级建议
1. 立即修复:...
2. 本周修复:...
3. 长期改进:...
```

## 注意事项
- 提供修复前后的代码对比
- 对于每条漏洞,说明具体的攻击向量
- 优先级基于可利用性和影响范围判断

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add laolaoshiren/claude-code-skills-zh/security-audit@sha256:c6a811d71b218478

The line at the top of this page pins the label git:20260421.27394be, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_hgs7ezgtvrgyph52.svg)](https://markdownregistry.com/a/art_hgs7ezgtvrgyph52)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Apr 14, 2026 and Apr 21, 2026, about one every 7 days.

versioncommittedcommitsizeaudit
git:20260421.27394be latest2026-04-21 27394be 2,054 BA view · diff
git:20260414.35838392026-04-14 3583839 969 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2054 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

laolaoshiren/claude-code-skills-zh · 869 stars · license MIT · pushed 2026-09-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_hgs7ezgtvrgyph52
GET https://markdownregistry.com/api/v1/resolve?ref=laolaoshiren/claude-code-skills-zh/security-audit
GET https://markdownregistry.com/api/v1/blob/c6a811d71b218478b51fb15b916e13112755b654310b35ffd79879b1410f785a

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from laolaoshiren/claude-code-skills-zh

api-tester SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/api-tester/SKILL.md · 依据真实 OpenAPI、路由实现和现有测试生成并验证 API 测试。用于用户要求测试接口、补集成测试、验证 API 契约、生成回归用例或排查接口兼容性时;区分“生成测试”和“执行请求”的授权,不猜测状态码、响应结构或…
git:20260716.e06495d · audit A · 869 stars
changelog-gen SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/changelog-gen/SKILL.md · Changelog 生成器 - 从 Git 历史自动生成 CHANGELOG
git:20260713.6d2b008 · audit A · 869 stars
db-migrator SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/db-migrator/SKILL.md · 数据库迁移助手 - Schema 对比、迁移脚本生成
git:20260713.6d2b008 · audit A · 869 stars
dep-auditor SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/dep-auditor/SKILL.md · 审计 Node.js、Python、Go、Rust、JVM、Ruby 项目的依赖漏洞、版本健康度与许可证事实;当用户要求检查 package.json、lockfile、requirements、go.mod、Cargo.toml、pom…
git:20260718.456f951 · audit A · 869 stars
ds-mapper SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/ds-mapper/SKILL.md · 项目目录结构地图 - 生成带说明的可视化目录树,快速理解任意代码库
git:20260421.2086438 · audit A · 869 stars
env-manager SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/env-manager/SKILL.md · 环境变量管理器:扫描、校验、同步 .env 文件,生成安全配置模板
git:20260713.6d2b008 · audit A · 869 stars
error-translator SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/error-translator/SKILL.md · 编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案
git:20260421.c1b858a · audit A · 869 stars
eslint-fix SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/eslint-fix/SKILL.md · 安全诊断并修复 ESLint error、warning 和配置兼容问题。用于用户要求运行 lint、解释 ESLint 报错、限定范围自动修复或迁移 ESLint…
git:20260715.81812dc · audit A · 869 stars
git-workflow SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/git-workflow/SKILL.md · 安全处理 Git 状态检查、提交信息、commit、分支、push、PR 和 rebase。用于用户要求检查改动、生成或创建提交、管理分支、推送、发起 PR 或整理历史时;严格区分每个动作的授权,并保护工作树中已有和无关的修改。
git:20260715.81812dc · audit A · 869 stars
github-actions-gen SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/github-actions-gen/SKILL.md · 分析真实项目并生成或修订安全、可验证的 GitHub Actions workflow;当用户要求创建 CI、测试矩阵、构建、Release、部署、缓存、Secrets、OIDC、PR 自动化或排查 workflow 配置时使用
git:20260722.bac2f9d · audit A · 869 stars
i18n-helper SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/i18n-helper/SKILL.md · 国际化/本地化助手 — 扫描代码中的硬编码文本、生成 i18n 配置、批量翻译
git:20260415.28119e9 · audit A · 869 stars
log-analyzer SKILL.md skill
laolaoshiren/claude-code-skills-zh · skills/log-analyzer/SKILL.md · 日志分析助手 — 智能解析日志文件,识别异常模式,定位问题根因
git:20260415.28119e9 · audit A · 869 stars

Every file in laolaoshiren/claude-code-skills-zh

Other files named security-audit

security-audit SKILL.md skill
davepoon/buildwithclaude · plugins/agent-triforce/skills/security-audit/SKILL.md · Deep security audit covering OWASP Top 10, authentication, authorization, data protection, dependency vulnerabilities…
git:20260307.756e327 · audit A · 3,704 stars
security-audit SKILL.md skill
maxmiksa/auto-company · .claude/skills/security-audit/SKILL.md · Use when reviewing code security, auditing dependencies for CVEs, checking configuration or secret security, assessing…
git:20250919.3118c12 · audit A · 3,174 stars
security-audit SKILL.md skill
opencrabs/opencrabs · src/docs/reference/templates/skills/security-audit/SKILL.md · Run a comprehensive language-agnostic security & CVE audit, scored 0-100
git:20260501.09a3f3d · audit A · 1,020 stars
security-audit SKILL.md skill
borghei/claude-skills · engineering/security-audit/SKILL.md · Multi-agent source security audit with a coverage ledger, independently verified findings, and machine-checked records…
v1.0.0 · audit A · 1,019 stars
security-audit SKILL.md skill
decebals/claude-code-java · skills/security-audit/SKILL.md · Java security checklist covering OWASP Top 10, input validation, injection prevention, and secure coding. Works with…
git:20260828.702770a · audit B · 763 stars
security-audit SKILL.md skill
cowork-os/cowork-os · resources/skills/security-audit/SKILL.md · Answer security questions about code, review a file or change for vulnerabilities, or run a full multi-agent audit of a…
v2.0.0 · audit A · 517 stars
security-audit SKILL.md skill
josstei/maestro-orchestrate · plugins/maestro/skills/security-audit/SKILL.md · Run a Maestro-style security assessment for authentication, authorization, data exposure, secret handling, and…
git:20260410.f5a5165 · audit A · 485 stars
security-audit SKILL.md skill
josstei/maestro-orchestrate · claude/skills/security-audit/SKILL.md · Run a Maestro-style security assessment for authentication, authorization, data exposure, secret handling, and…
git:20260410.f5a5165 · audit A · 485 stars

Browse by kind, by grade A, or by owner.