Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计通过

security-audit安全审计

Agent Skill

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

总安装

392

周安装

16

GitHub Stars

1

下载量

125
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/factorial-io/skills --skill security-audit

简介

security-audit 系统化审查权限配置、凭据风险与常见漏洞,生成结构化报告。

  • 覆盖敏感配置梳理、依赖风险分析与鉴权流程审计等核心环节。
  • 必须完整执行方法论,不可因时间压力跳过关键检查项以免遗漏隐患。
  • 涉及生产系统时应采用最小权限原则,所有输出需脱敏处理防止信息泄露。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Security Audit

Overview

Security audits require systematic investigation, not surface-level checks. This skill provides a methodology for thorough security reviews with proper severity assessment, structured documentation, and security-focused ticket creation.

Core Principle: Follow the complete methodology regardless of time pressure. Cutting corners means missing vulnerabilities.

When to Use

Use when:

  • Conducting security reviews or audits
  • Investigating reported vulnerabilities
  • Creating security documentation
  • Writing security-related Jira tickets
  • Assessing authentication/authorization flows

Don't use for:

  • Feature development
  • Performance optimization
  • General bug fixes

Investigation Methodology

1. Systematic Code Review

Follow this checklist regardless of time pressure:

  • Identify entry point (reported file, authentication flow, etc.)
  • Trace complete flow (frontend → backend → database)
  • Search for pattern repetition across codebase
  • Check related configurations
  • Review dependencies for known vulnerabilities
  • Examine runtime behavior (not just static code)
  • Document all findings with evidence (file paths, line numbers, code snippets)

Under time pressure: Ask user to prioritize scope, don't silently cut corners.

2. Severity Assessment

SeverityCriteria
CRITICALAuthentication bypass, RCE, direct data exposure, affects most sensitive data
HIGHPrivilege escalation, XSS with token access, weak crypto, data breach potential
MEDIUMInformation disclosure, CSRF, weak policies, requires multiple steps to exploit
LOWMinor leaks, missing hardening, defense-in-depth gaps

Consider:

  • Impact: What can attacker do?
  • Exploitability: How easy to exploit?
  • Data Sensitivity: What data is exposed?

3. Documentation Structure

Create TWO documents:

Client-Facing Report (docs/security-report-client.md):

  • What security controls ARE implemented
  • Architecture and security measures
  • Positive framing
  • No vulnerability details

Internal Findings (docs/security-findings-internal.md):

  • All vulnerabilities with severity
  • Code evidence and file locations
  • Attack scenarios
  • Remediation steps
  • Prioritized roadmap
  • Links to Jira tickets

Jira Integration

Epic Creation

When user requests Jira ticket creation:

  1. First, get available Jira priorities from the project:

- Query Jira to get available priority values - Map security severity to Jira priorities based on what's available - Common mappings: CRITICAL→Highest, HIGH→High, MEDIUM→Medium, LOW→Low

  1. Create an Epic that represents the security audit:

- Title: "Security Report: [Application Name] from [Date]" - Description: Link to security report (Confluence or markdown docs) - Type: Epic - Priority: Based on highest severity finding

  1. Then create individual tickets as children of this epic:

- Link each ticket to parent epic - All vulnerability tickets grouped under one audit epic - Use Jira's priority field with values from step 1 - Use Jira's acceptance criteria custom field (customfield_13523) when available

Example:

Epic: PROJ-100 "Security Report: Example Application from 2025-01-15"
├── PROJ-101 (CRITICAL: Sensitive Keys in Version Control)
├── PROJ-102 (CRITICAL: CORS Misconfiguration)
├── PROJ-103 (HIGH: Missing Trusted Host Patterns)
└── PROJ-104 (HIGH: Secrets in Version Control)

Confluence Integration

If Confluence pages are created:

  1. Create both client and internal pages on Confluence
  2. Add Confluence links to EVERY ticket:

- Link to internal findings page (full vulnerability details) - Optionally link to client report (security controls overview)

Ticket format with Confluence:

## Description
[Vulnerability details]

## Link to Security Report
[Internal Security Findings](https://confluence.../internal-findings)

Ticket Creation Rules

CRITICAL: Security tickets focus on acceptance criteria, NOT implementation.

Jira Custom Fields

Acceptance Criteria Field (customfield_13523):

If available, use Jira's acceptance criteria custom field instead of adding criteria to description. Format as Atlassian Document Format (ADF):

{
  "customfield_13523": {
    "type": "doc",
    "version": 1,
    "content": [
      {
        "type": "paragraph",
        "content": [
          {"type": "text", "text": "- [Criterion 1]"},
          {"type": "hardBreak"},
          {"type": "text", "text": "- [Criterion 2]"},
          {"type": "hardBreak"}
        ]
      }
    ]
  }
}

Each criterion should be:

  • Action-oriented (what must be done/verified)
  • Testable (can be checked off as complete)
  • Security-focused (what MUST/MUST NOT happen)

What to Include in Ticket

If using customfield_13523 for acceptance criteria:

## Description
[Vulnerability explanation]

## Security Impact
- What can attacker do?
- What data is exposed?
- Attack scenario

## Affected Components
- File paths
- Code evidence (showing vulnerable pattern)

## Link to Security Report
[Internal Security Findings](https://confluence-url)

If NOT using custom field, include in description:

## Description
[Vulnerability explanation]

## Security Impact
- What can attacker do?
- What data is exposed?
- Attack scenario

## Affected Components
- File paths
- Code evidence (showing vulnerable pattern)

## Acceptance Criteria
1. [Security requirement] MUST [not] happen
2. [Authentication tokens] MUST NOT be accessible to JavaScript
3. [Cookies] MUST include httpOnly, secure, and sameSite flags
4. Verification: Security testing confirms [specific requirement]

## Link to Security Report
[Internal Security Findings](https://confluence-url)

What to EXCLUDE

  • ❌ Code examples showing how to fix
  • ❌ Implementation details
  • ❌ Step-by-step fix instructions
  • ❌ Specific library/function recommendations

Exception: Only include fixes if user explicitly requests "show me how to fix this."

Questions to Ask BEFORE Creating Tickets

STOP: Do not create ANY ticket content until these questions are answered:

  • "Should I create Confluence pages for the security reports?"
  • "Do you want tickets for all findings or only CRITICAL/HIGH?"
  • "Should I include remediation options or just acceptance criteria?"

Don't ask about epic creation - always create it when creating tickets.

No exceptions:

  • Don't create "draft" tickets
  • Don't create tickets "for review"
  • Don't create tickets "to show what they would look like"
  • Ask questions FIRST, create tickets AFTER answers received

Pattern Investigation

Don't stop at the reported issue:

  1. Search for same pattern across codebase (grep, ripgrep)
  2. Check if pattern exists in:

- Multiple modules - Both frontend and backend - Different authentication flows - Configuration files

  1. Document ALL instances, not just the first one

Red Flag: "Already documented" - verify if NEW patterns exist.

Workflow Summary

1. Systematic investigation → findings list
2. Severity assessment → categorize findings
3. Create documentation:
   - Markdown: docs/security-report-client.md
   - Markdown: docs/security-findings-internal.md
   - (Optional) Confluence: client + internal pages
4. If Jira requested:
   a. Create Epic for security audit
   b. Create tickets as children of epic
   c. Add Confluence links to all tickets (if pages exist)
5. Update internal findings doc with ticket links

Common Mistakes

MistakeFix
"Time pressure" → cut cornersAsk to prioritize scope, don't skip steps
"Out of scope" → stop investigatingAsk if deeper investigation needed
"Already documented" → stop earlyCheck for new patterns, ask if update needed
Include code examples in ticketsFocus on acceptance criteria only
Forget to create epicAlways create epic first, then tickets
Skip Confluence links in ticketsAdd links if Confluence pages exist
Ask about epic creationDon't ask - always create it

Rationalizations to Avoid

If you think ANY of these, STOP:

  • "This is just a quick review, I'll skip X"
  • "Out of scope" (without asking)
  • "Already documented, no need to investigate further"
  • "Being helpful by including code examples"
  • "Time pressure means I should prioritize"
  • "The user said 'include fixes' so I should add code"
  • "I'll skip the epic and just create tickets"
  • "I'll add Confluence links later"
  • "Let me create a draft ticket to show what it would look like"
  • "I'll create the ticket content and ask questions after"

All of these mean: Follow the complete methodology. Ask questions if scope unclear.

Quick Reference

1. Systematic investigation (complete checklist)
2. Severity assessment (CRITICAL/HIGH/MEDIUM/LOW)
3. Dual documentation (client + internal)
4. Jira workflow:
   a. Create Epic (always)
   b. Create tickets as children
   c. Add Confluence links (if pages exist)
5. Acceptance-focused tickets (NO code examples)
6. Pattern search (don't stop at first instance)
7. Ask clarifying questions (scope, Confluence, priorities)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

30.69%
按下载量换算38

Codex

24.61%
按下载量换算31

Claude Code

15.78%
按下载量换算20

windsurf

10.82%
按下载量换算14

Cursor

7%
按下载量换算9

Antigravity

3.41%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills