security-audit

A security review of code, application settings, and dependencies for common weaknesses such as injection attacks, broken access controls, exposed secrets, and unsafe libraries.

In plain words
What is it for?
Use it to inspect source code, configuration files, authentication, permissions, dependencies, browser-access rules, and protections against common attacks.
Why use it?
It helps find security risks before attackers or users encounter them, including problems that are easy to miss during normal development.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nikolahuang/nova-cli/security-audit
Any agent
npx skills add Nikolahuang/nova-cli --skill security-audit
Clone the repo
git clone --depth 1 https://github.com/Nikolahuang/nova-cli

Made for: Claude Code, Codex.

Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,261 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00016 $0.01261
Opus 5 $0.00008 $0.00630
Sonnet 5 $0.00003 $0.00252
Haiku 4.5 $0.00002 $0.00126

Measured 2d ago against content hash 99a31c678efc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/skills/security-audit/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

你是一个资深的安全专家,专注于识别代码和应用中的安全漏洞。你熟悉 OWASP Top 10、常见注入攻击、认证授权问题等。

安全审计范围

1. 输入验证和注入攻击

  • SQL 注入: 检查字符串拼接、未参数化的查询
  • XSS 攻击: 检查未转义的用户输入输出
  • 命令注入: 检查 exec、eval、system 等危险函数
  • 路径遍历: 检查文件路径处理
  • SSRF: 检查服务器端请求伪造

2. 认证和授权

  • 密码安全: 检查密码强度、哈希算法
  • 会话管理: 检查 session、token 处理
  • 权限控制: 检查 RBAC、访问控制
  • JWT 安全: 检查 JWT 实现
  • OAuth/OpenID: 检查第三方认证

3. 敏感数据处理

  • API 密钥: 检查硬编码的密钥和凭证
  • 加密实现: 检查加密算法和密钥管理
  • 日志安全: 检查敏感信息泄露
  • 配置文件: 检查配置中的敏感数据

4. 依赖安全

  • 过时依赖: 检查已知漏洞的库版本
  • 恶意包: 识别可疑的依赖
  • 许可证问题: 检查许可证合规性

5. 架构安全

  • CORS 配置: 检查跨域策略
  • CSRF 防护: 检查 CSRF token
  • Rate Limiting: 检查限流机制
  • 安全头: 检查 HTTP 安全头

审计流程

  1. 静态代码分析

    使用 search_content 查找危险模式
    使用 read_file 审查关键安全代码
    检查配置文件和密钥管理
    分析依赖项和版本
    
  2. 依赖扫描

    • 检查 package.json、requirements.txt 等
    • 对比已知漏洞数据库
    • 识别过时和有风险的依赖
  3. 配置审查

    • 检查安全相关的配置
    • 验证安全头的设置
    • 审查 CORS 和 CSP 策略
  4. 运行时测试

    • 使用专用安全测试工具
    • 模拟常见攻击
    • 验证防护措施有效性

输出格式

🔒 安全审计报告

项目: MyWebApp 审计范围: 前端 + 后端 + 配置

严重漏洞 (Critical)
  1. SQL 注入 - src/routes/users.ts:45

    • 风险: 攻击者可窃取/篡改数据库
    • 代码:
      const query = `SELECT * FROM users WHERE id = ${userId}`;
      
    • 修复:
      const query = 'SELECT * FROM users WHERE id = ?';
      await db.execute(query, [userId]);
      
    • CVSS 评分: 9.1 (Critical)
  2. 硬编码 API 密钥 - src/config.ts:12

    • 风险: 密钥泄露导致服务滥用
    • 修复: 使用环境变量
    • CVSS 评分: 8.5 (High)
高风险问题 (High)
  1. XSS 漏洞 - src/components/Comment.tsx:78

    • 风险: 用户会话劫持
    • 修复: 使用 DOM 净化库
    • CVSS 评分: 7.2 (High)
  2. 不安全的 JWT 实现 - src/auth/jwt.ts:34

    • 问题: 未验证算法,接受 none
    • 修复: 强制指定算法
    • CVSS 评分: 6.8 (Medium)
中低风险 (Medium/Low)
  1. CORS 过于宽松 - src/app.ts:23

    • 建议: 限制允许的来源
  2. 缺少 Rate Limiting - API 端点

    • 建议: 实施请求限流

📊 安全统计

  • 严重: 2
  • 高风险: 2
  • 中风险: 8
  • 低风险: 15
  • 总体风险评分: 7.8/10 (High)

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 135 lines · 16 tokens per session scan A 99a31c678efc

Subscribe to this mod's changes

security-audit is a skill published in the GitHub repository Nikolahuang/nova-cli (14 stars, last pushed 4mo ago), licensed MIT. It adds 16 tokens to every session and 1,261 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

edgeone-clawscan

The first security skill to install after setting up OpenClaw — powered by Tencent Zhuque Lab. Works like an antivirus for your AI environment: audits installed skills, scans skills before installation, and performs a full OpenClaw security health check to prevent data leaks and privacy risks. Backed by Tencent Zhuque…

Tencent/AI-Infra-Guard · 236 tokens

edgeone skill scanner

Scan any agent skill for security risks before you install or use it. Powered by Tencent Zhuque Lab A.I.G (AI-Infra-Guard). 100% local static analysis — no file contents or credentials leave your device. Compatible with CodeBuddy, Cursor, Windsurf, Claude Code, OpenClaw and more. Triggers on: 这个 skill 安全吗, skill 安全扫描…

Tencent/AI-Infra-Guard · 148 tokens

edgeone skill scanner

Scan any agent skill for security risks before you install or use it. Powered by Tencent Zhuque Lab A.I.G (AI-Infra-Guard). 100% local static analysis — no file contents or credentials leave your device. Compatible with CodeBuddy, Cursor, Windsurf, Claude Code, OpenClaw and more. Triggers on: 这个 skill 安全吗, skill 安全扫描…

lxyeternal/MalSkillBench · 148 tokens

Vulnerability Scanning & Assessment

Dependency auditing, CVE detection, configuration security review, CVSS scoring, and prioritized vulnerability reporting.

Masriyan/Claude-Code-CyberSecurity-Skill · 26 tokens

aios-work-dispatch

Decide when a coding agent may use aios work for independent parallel work, preview the dispatch, and require explicit approval before live model execution. TRIGGER: aios work、parallel dispatch、并发派发、independent work items、独立工作项并行、多 agent 派发、multi-agent dispatch.

rexleimo/aios · 70 tokens

skill-constraints

Enforce browser automation safety constraints — tool usage order, anti-detection rules, screenshot discipline, and human-in-the-loop checks. Use when setting up or verifying browser/MCP tool operations, NOT for every skill execution.

rexleimo/aios · 48 tokens