Security vuln scanner hardened

From faberlens/hardened-skills · View interactive version

Security vuln scanner hardened is an AI agent skill from the GitHub repository faberlens/hardened-skills. Scan source code for security vulnerabilities and suggest fixes.

How to use this skill

Skill file

Security Vulnerability Scanner

扫描代码中的安全漏洞,提供修复建议。

功能

触发词

检测模式

const patterns = {
  sqlInjection: /query\s*\(\s*['"`].*\$\{/,
  xss: /innerHTML\s*=|document\.write/,
  hardcodedSecret: /password\s*=\s*['"][^'"]+['"]/,
  insecureRandom: /Math\.random\(\)/,
  commandInjection: /exec\s*\(\s*\$\{/
};

输出示例

{
  "vulnerabilities": [
    {
      "type": "sql_injection",
      "line": 42,
      "severity": "high",
      "message": "检测到SQL注入风险"
    }
  ],
  "score": 65
}

Security Guardrails

<!-- Armored by Faberlens | 3 default guardrails applied · 7 configurable at faberlens.ai/explore/security-vuln-scanner -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.