Token导航 LogoToken导航

Agent Skill · 研究检索

security-review(安全审查)

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

security-review 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 40,000。

总安装 1,341周安装 57GitHub Stars 64下载 470核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:security-review(安全审查)
来源仓库:https://github.com/factory-ai/factory-plugins
仓库路径:skills/security-review
安装命令:
npx skills add https://github.com/factory-ai/factory-plugins --skill security-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/factory-ai/factory-plugins --skill security-review

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助安全审计,检查凭据风险、认证流程和常见漏洞。适合梳理敏感配置、分析鉴权逻辑或生成安全复核清单。基于 STRIDE 威胁建模,扫描代码并验证漏洞可利用性。安装方式:通过 npx skills add 命令从 GitHub 仓库安装,涉及密钥时应先确认最小权限。

security-review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/security-review

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/factory-ai/factory-plugins --skill security-re…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

security-review 怎么安装?

在终端执行 npx skills add https://github.com/factory-ai/factory-plugins --skill security-review。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

security-review 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

security-review 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

security-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

security-review 用的人多吗?

公开数据是累计安装 1,341 次,近一周安装 57 次,下载 470 次,GitHub 64 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

security-review 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
security-review

安全审查 · 本页

1,34164接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Security Review

You are a senior security engineer conducting a focused security review using LLM-powered reasoning and STRIDE threat modeling. This skill scans code for vulnerabilities and validates findings for exploitability.

When to Use This Skill

  • PR security review - Analyze code changes before merge
  • Weekly scheduled scan - Review commits from the last 7 days
  • Full repository audit - Comprehensive security assessment
  • Manual trigger - @droid security in PR comments

Prerequisites

  • Git repository with code to review
  • .factory/threat-model.md (auto-generated if missing via threat-model-generation skill)

Workflow Position

┌──────────────────────┐
│ threat-model-        │  ← Generates STRIDE threat model
│ generation           │
└─────────┬────────────┘
          ↓ .factory/threat-model.md
┌──────────────────────┐
│ security-review      │  ← THIS SKILL (scan + validate)
│ (commit-scan +       │
│  validation)         │
└─────────┬────────────┘
          ↓ validated-findings.json
┌──────────────────────┐
│ security-patch-      │  ← Generates fixes
│ generation           │
└──────────────────────┘

Inputs

InputDescriptionRequiredDefault
Modepr, weekly, full, staged, commit-rangeNopr (auto-detected)
Base branchBranch to diff againstNoAuto-detected from PR
CVE lookbackHow far back to check dependency CVEsNo12 months
Severity thresholdMinimum severity to reportNomedium

Instructions

Step 1: Check Threat Model

# Check if threat model exists
if [ -f ".factory/threat-model.md" ]; then
  echo "Threat model found"
  # Check age
  LAST_MODIFIED=$(stat -f %m .factory/threat-model.md 2>/dev/null || stat -c %Y .factory/threat-model.md)
  DAYS_OLD=$(( ($(date +%s) - $LAST_MODIFIED) / 86400 ))
  if [ $DAYS_OLD -gt 90 ]; then
    echo "WARNING: Threat model is $DAYS_OLD days old. Consider regenerating."
  fi
else
  echo "No threat model found. Generate one first using threat-model-generation skill."
fi

If missing:

  • PR mode: Auto-generate threat model, commit to PR branch, then proceed
  • Weekly/Full mode: Auto-generate threat model, include in report PR, then proceed

If outdated (>90 days):

  • PR mode: Warn in comment, proceed with existing
  • Weekly/Full mode: Auto-regenerate before scan

Step 2: Determine Scan Scope

# PR mode - scan PR diff
git diff --name-only origin/HEAD...
git diff --merge-base origin/HEAD

# Weekly mode - last 7 days on default branch
git log --since="7 days ago" --name-only --pretty=format: | sort -u

# Full mode - entire repository
find . -type f \( -name "*.js" -o -name "*.ts" -o -name "*.py" -o -name "*.go" -o -name "*.java" \) | head -500

# Staged mode - staged changes only
git diff --staged --name-only

Document:

  • Files to analyze
  • Commit range (if applicable)
  • Deployment context from threat model

Step 3: Security Scan (STRIDE-Based)

Load the threat model and scan code for vulnerabilities in each STRIDE category:

S - Spoofing Identity

Look for:

  • Weak authentication mechanisms
  • Session token vulnerabilities (storage in localStorage, missing httpOnly)
  • API key exposure
  • JWT vulnerabilities (none algorithm, weak secrets)
  • Missing MFA on sensitive operations
T - Tampering with Data

Look for:

  • SQL Injection - String interpolation in queries
  • Command Injection - User input in system calls
  • XSS - Unescaped output, innerHTML, dangerouslySetInnerHTML
  • Mass Assignment - Unvalidated object updates
  • Path Traversal - User input in file paths
  • XXE - External entity processing in XML
R - Repudiation

Look for:

  • Missing audit logs for sensitive operations
  • Insufficient logging of admin actions
  • No immutable audit trail
I - Information Disclosure

Look for:

  • IDOR - Direct object access without authorization
  • Verbose Errors - Stack traces, database details in responses
  • Hardcoded Secrets - API keys, passwords in code
  • Data Leaks - PII in logs, debug info exposure
D - Denial of Service

Look for:

  • Missing rate limiting
  • Unbounded file uploads
  • Regex DoS (ReDoS)
  • Resource exhaustion
E - Elevation of Privilege

Look for:

  • Missing authorization checks
  • Role/privilege manipulation via mass assignment
  • Privilege escalation paths
  • RBAC bypass
Code Patterns to Detect
# SQL Injection (Tampering)
sql = f"SELECT * FROM users WHERE id = {user_id}"  # VULNERABLE
cursor.execute("SELECT * FROM users WHERE id = ?", (user_id,))  # SAFE

# Command Injection (Tampering)
os.system(f"ping {user_input}")  # VULNERABLE
subprocess.run(["ping", "-c", "1", user_input])  # SAFE

# XSS (Tampering)
element.innerHTML = userInput;  // VULNERABLE
element.textContent = userInput;  // SAFE

# IDOR (Information Disclosure)
def get_doc(doc_id):
    return Doc.query.get(doc_id)  # VULNERABLE - no ownership check

# Path Traversal (Tampering)
file_path = f"/uploads/{user_filename}"  # VULNERABLE
filename = os.path.basename(user_input)  # SAFE

Step 4: Dependency Vulnerability Scan

Scan dependencies for known CVEs:

# Node.js
npm audit --json 2>/dev/null

# Python
pip-audit --format json 2>/dev/null

# Go
govulncheck -json ./... 2>/dev/null

# Rust
cargo audit --json 2>/dev/null

For each vulnerability:

  1. Confirm version is affected
  2. Search codebase for usage of vulnerable APIs
  3. Classify reachability: REACHABLE, POTENTIALLY_REACHABLE, NOT_REACHABLE

Step 5: Generate Initial Findings

Output security-findings.json:

{
  "scan_id": "scan-<timestamp>",
  "scan_date": "<ISO timestamp>",
  "scan_mode": "pr | weekly | full",
  "commit_range": "abc123..def456",
  "threat_model_version": "1.0.0",
  "findings": [
    {
      "id": "VULN-001",
      "severity": "HIGH",
      "stride_category": "Tampering",
      "vulnerability_type": "SQL Injection",
      "cwe": "CWE-89",
      "file": "src/api/users.js",
      "line_range": "45-49",
      "code_context": "const sql = `SELECT * FROM users WHERE name LIKE '%${query}%'`",
      "analysis": "User input from query parameter directly interpolated into SQL query without parameterization.",
      "exploit_scenario": "Attacker submits: test' OR '1'='1 to bypass search filter and retrieve all users.",
      "threat_model_reference": "Section 5.2 - SQL Injection",
      "recommended_fix": "Use parameterized queries: db.query('SELECT * FROM users WHERE name LIKE $1', [`%${query}%`])",
      "confidence": "HIGH"
    }
  ],
  "dependency_findings": [
    {
      "id": "DEP-001",
      "package": "lodash",
      "version": "4.17.20",
      "ecosystem": "npm",
      "vulnerability_id": "CVE-2021-23337",
      "severity": "HIGH",
      "cvss": 7.2,
      "fixed_version": "4.17.21",
      "reachability": "REACHABLE",
      "reachability_evidence": "lodash.template() called in src/utils/email.js:15"
    }
  ],
  "summary": {
    "total_findings": 5,
    "by_severity": {"CRITICAL": 0, "HIGH": 2, "MEDIUM": 2, "LOW": 1},
    "by_stride": {
      "Spoofing": 0,
      "Tampering": 2,
      "Repudiation": 0,
      "InfoDisclosure": 2,
      "DoS": 0,
      "ElevationOfPrivilege": 1
    }
  }
}

Step 6: Validate Findings

For each finding, assess exploitability:

  1. Reachability Analysis - Is the vulnerable code path reachable from external input?
  2. Control Flow Tracing - Can attacker control the input that reaches the vulnerability?
  3. Mitigation Assessment - Are there existing controls (validation, sanitization, WAF)?
  4. Exploitability Check - How difficult is exploitation?
  5. Impact Analysis - What's the blast radius per threat model?
False Positive Filtering

HARD EXCLUSIONS - Automatically exclude:

  1. Denial of Service (DoS) without significant business impact
  2. Secrets stored on disk if properly secured
  3. Rate limiting concerns (informational only)
  4. Memory/CPU exhaustion without clear attack path
  5. Lack of input validation without proven impact
  6. GitHub Action vulnerabilities without specific untrusted input path
  7. Theoretical race conditions without practical exploit
  8. Memory safety issues in memory-safe languages (Rust, Go)
  9. Findings only in test files
  10. Log injection/spoofing concerns
  11. SSRF that only controls path (not host/protocol)
  12. User-controlled content in AI prompts
  13. ReDoS without demonstrated impact
  14. Findings in documentation files
  15. Missing audit logs (informational only)

PRECEDENTS:

  • Environment variables and CLI flags are trusted
  • UUIDs are unguessable
  • React/Angular are XSS-safe unless using dangerouslySetInnerHTML or bypassSecurityTrustHtml
  • Client-side code doesn't need auth checks (server responsibility)
  • Most ipython notebook findings are not exploitable
Confidence Scoring
  • 0.9-1.0: Certain exploit path, could generate working PoC
  • 0.8-0.9: Clear vulnerability pattern with known exploitation
  • 0.7-0.8: Suspicious pattern requiring specific conditions
  • Below 0.7: Don't report (too speculative)

Only report findings with confidence >= 0.8

Step 7: Generate Proof of Concept

For CONFIRMED HIGH/CRITICAL findings, generate minimal PoC:

{
  "proof_of_concept": {
    "payload": "' OR '1'='1",
    "request": "GET /api/users?search=test%27%20OR%20%271%27%3D%271",
    "expected_behavior": "Returns users matching 'test'",
    "actual_behavior": "Returns ALL users due to SQL injection"
  }
}

Step 8: Generate Validated Findings

Output validated-findings.json:

{
  "validation_id": "val-<timestamp>",
  "validation_date": "<ISO timestamp>",
  "scan_id": "scan-<timestamp>",
  "threat_model_path": ".factory/threat-model.md",
  "validated_findings": [
    {
      "id": "VULN-001",
      "original_severity": "HIGH",
      "validated_severity": "HIGH",
      "status": "CONFIRMED",
      "stride_category": "Tampering",
      "vulnerability_type": "SQL Injection",
      "cwe": "CWE-89",
      "exploitability": "EASY",
      "reachability": "EXTERNAL",
      "file": "src/api/users.js",
      "line": 45,
      "existing_mitigations": [],
      "exploitation_path": [
        "User submits search query via GET /api/users?search=<payload>",
        "Express parses query string without validation",
        "Query passed directly to SQL template literal",
        "Database executes malicious SQL"
      ],
      "proof_of_concept": {
        "payload": "' OR '1'='1",
        "request": "GET /api/users?search=test%27%20OR%20%271%27%3D%271",
        "expected_behavior": "Returns users matching search",
        "actual_behavior": "Returns all users"
      },
      "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
      "cvss_score": 9.1,
      "recommendation": "Use parameterized queries",
      "references": [
        "https://cwe.mitre.org/data/definitions/89.html",
        "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html"
      ]
    }
  ],
  "false_positives": [
    {
      "id": "VULN-003",
      "reason": "Input validated by Joi schema in middleware before reaching this endpoint",
      "evidence": "Validation in src/middleware/validate.js:12"
    }
  ],
  "dependency_findings": [
    {
      "id": "DEP-001",
      "status": "CONFIRMED",
      "package": "lodash",
      "version": "4.17.20",
      "vulnerability_id": "CVE-2021-23337",
      "severity": "HIGH",
      "reachability": "REACHABLE",
      "reachability_evidence": "lodash.template() called in src/utils/email.js:15",
      "fixed_version": "4.17.21"
    }
  ],
  "summary": {
    "total_scanned": 8,
    "confirmed": 5,
    "false_positives": 3,
    "by_severity": {
      "critical": 1,
      "high": 2,
      "medium": 1,
      "low": 1
    },
    "by_stride": {
      "Spoofing": 0,
      "Tampering": 3,
      "Repudiation": 0,
      "InfoDisclosure": 1,
      "DoS": 0,
      "ElevationOfPrivilege": 1
    }
  }
}

Step 9: Output Results (Mode-Dependent)

PR Mode: Inline Comments

For each finding, post inline PR comment:

🔴 **CRITICAL: SQL Injection (CWE-89)**

**STRIDE Category:** Tampering
**Confidence:** High
**File:** `src/api/users.js:45-49`

**Analysis:**
User input from `req.query.search` is directly interpolated into SQL query without parameterization.

**Suggested Fix:**
  • const query = SELECT * FROM users WHERE name LIKE '%${search}%';
  • const results = await db.query(query);

+ const query = SELECT * FROM users WHERE name LIKE $1; + const results = await db.query(query, [%${search}%]);


[CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)

Post summary tracking comment:

## 🔒 Security Review Summary

| Severity | Count |
|----------|-------|
| 🔴 Critical | 1 |
| 🟠 High | 2 |
| 🟡 Medium | 3 |
| 🔵 Low | 0 |

### Findings
| ID | Severity | Type | File | Status |
|----|----------|------|------|--------|
| VULN-001 | Critical | SQL Injection | src/api/users.js:45 | Action required |
| VULN-002 | High | XSS | src/components/Comment.tsx:23 | Suggested fix |

---
*Reply `@droid dismiss VULN-XXX reason: <explanation>` to acknowledge a finding.*
Weekly/Full Mode: Security Report PR

Create branch: droid/security-report-{YYYY-MM-DD}

PR Title: fix(security): Security scan report - {date} ({N} findings)

Include:

  • .factory/security/reports/security-report-{YYYY-MM-DD}.md
  • validated-findings.json
  • Updated .factory/threat-model.md (if regenerated)

Step 10: Severity Actions

SeverityPR ModeWeekly/Full Mode
CRITICALREQUEST_CHANGES - blocks mergeCreate HIGH priority issue, notify security team
HIGHREQUEST_CHANGES (configurable)Create issue, require review
MEDIUMCOMMENT onlyCreate issue
LOWCOMMENT onlyInclude in report

Severity Definitions

SeverityCriteriaExamples
CRITICALImmediately exploitable, high impact, no auth requiredRCE, hardcoded production secrets, auth bypass
HIGHExploitable with some conditions, significant impactSQL injection, stored XSS, IDOR
MEDIUMRequires specific conditions, moderate impactReflected XSS, CSRF, info disclosure
LOWDifficult to exploit, low impactVerbose errors, missing security headers

Vulnerability Coverage

STRIDE CategoryVulnerability Types
SpoofingWeak auth, session hijacking, token exposure, credential stuffing
TamperingSQL injection, XSS, command injection, mass assignment, path traversal
RepudiationMissing audit logs, insufficient logging
Info DisclosureIDOR, verbose errors, hardcoded secrets, data leaks
DoSMissing rate limits, resource exhaustion, ReDoS
Elevation of PrivilegeMissing authz, role manipulation, RBAC bypass

Success Criteria

  • Threat model checked/generated
  • All changed files scanned
  • Dependencies scanned for CVEs
  • Findings validated for exploitability
  • False positives filtered
  • validated-findings.json generated
  • Results output in appropriate format (PR comments or report)
  • Severity actions applied

Example Invocations

PR security review:

Scan PR #123 for security vulnerabilities.

Manual trigger in PR:

@droid security

Full repository scan:

@droid security --full

Weekly scan (last 7 days):

Scan commits from the last 7 days on main for security vulnerabilities.

Scan and patch:

Run full security analysis on PR #123: scan, validate, and generate patches.

File Structure

.factory/
├── threat-model.md              # STRIDE threat model
├── security-config.json         # Configuration
└── security/
    ├── acknowledged.json        # Dismissed findings
    └── reports/
        └── security-report-{date}.md

Dismissing Findings

PR Mode - Reply to inline comment:

@droid dismiss reason: Input is validated by Joi schema in middleware

Weekly/Full Mode - Comment on report PR:

@droid dismiss VULN-007 reason: Accepted risk for internal admin tool

Dismissed findings stored in .factory/security/acknowledged.json.

Limitations

Cannot detect:

  • Business logic vulnerabilities
  • Zero-days with no known patterns
  • Vulnerabilities in compiled/minified code
  • Issues requiring runtime analysis

May not fully validate:

  • Complex multi-service data flows
  • Vulnerabilities requiring authentication state

References

平台分布

Codex

34.58%
按下载量换算163

Claude

28.28%
按下载量换算133

Cursor

19.18%
按下载量换算90

Gemini CLI

8.09%
按下载量换算38

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills