Skip to content
cccskills
FreePublished on GitHub

security-audit

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

代码安全审计

触发条件

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

工作流程

  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 强制

输出格式

## 🔒 安全审计报告

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

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

🟡 中危问题

...

🟢 低危问题

...

依赖安全

依赖名当前版本建议版本风险

修复优先级建议

  1. 立即修复:...
  2. 本周修复:...
  3. 长期改进:...

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

依据真实 OpenAPI、路由实现和现有测试生成并验证 API 测试。用于用户要求测试接口、补集成测试、验证 API 契约、生成回归用例或排查接口兼容性时;区分“生成测试”和“执行请求”的授权,不猜测状态码、响应结构或 SLA,不在未确认环境中发送写请求。

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 20, 2026

Changelog 生成器 - 从 Git 历史自动生成 CHANGELOG

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 20, 2026

数据库迁移助手 - Schema 对比、迁移脚本生成

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 20, 2026

审计 Node.js、Python、Go、Rust、JVM、Ruby 项目的依赖漏洞、版本健康度与许可证事实;当用户要求检查 package.json、lockfile、requirements、go.mod、Cargo.toml、pom.xml、Gemfile.lock,或生成不改依赖的中文审计报告时使用

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 20, 2026

项目目录结构地图 - 生成带说明的可视化目录树,快速理解任意代码库

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 20, 2026

环境变量管理器:扫描、校验、同步 .env 文件,生成安全配置模板

The English summary is being prepared. Showing the original description.

laolaoshiren/claude-code-skills-zh893Updated Oct 20, 2026

See all skills by laolaoshiren

Report a problem with this skill