Token导航 LogoToken导航

Agent Skill · 研究检索

sec-audit-remediate(SEC 审计补救)

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

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

总安装 245周安装 10GitHub Stars 11下载 78核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/parhumm/jaan-to --skill sec-audit-remediate

这个 Skill 是做什么的

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

用于辅助安全审计、权限检查、凭据风险和认证流程排查。适合梳理敏感配置、检查依赖风险或分析鉴权逻辑。sec-audit-remediate 属于研究检索类 Skill,可作为该场景下的辅助能力补充。使用时不能把工具输出直接当最终结论,应先确认最小权限和操作边界。涉及密钥、令牌或生产系统时需脱敏并确认操作范围。

建议结合原始 README 进一步核验具体用法。

来源仓库内路径:skills/sec-audit-remediate

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/parhumm/jaan-to --skill sec-audit-remediate;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

sec-audit-remediate 怎么安装?

在终端执行 npx skills add https://github.com/parhumm/jaan-to --skill sec-audit-remediate。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

sec-audit-remediate 支持哪些 AI 工具?

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

sec-audit-remediate 需要什么权限?

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

sec-audit-remediate 是免费的吗?

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

sec-audit-remediate 用的人多吗?

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

sec-audit-remediate 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
sec-audit-remediate

SEC 审计补救 · 本页

24511接触敏感数据未明确有提醒

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

SKILL.md 原文

sec-audit-remediate

Generate targeted security fixes from detect-dev SARIF findings with regression tests.

Context Files

  • $JAAN_LEARN_DIR/jaan-to-sec-audit-remediate.learn.md - Past lessons (loaded in Pre-Execution)
  • $JAAN_TEMPLATES_DIR/jaan-to-sec-audit-remediate.template.md - Output template
  • $JAAN_CONTEXT_DIR/tech.md - Tech stack (optional, auto-imported if exists)

- Uses sections: #current-stack, #frameworks, #constraints, #patterns

  • ${CLAUDE_PLUGIN_ROOT}/docs/extending/language-protocol.md - Language resolution protocol
  • ${CLAUDE_PLUGIN_ROOT}/docs/research/73-dev-sarif-security-remediation-automation.md - SARIF 2.1.0 parsing, CWE-to-fix mapping, remediation patterns
  • ${CLAUDE_PLUGIN_ROOT}/docs/research/72-dev-secure-backend-scaffold-hardening.md - jose JWT, httpOnly cookies, CSRF, rate limiting, OWASP Top 10

Output path: $JAAN_OUTPUTS_DIR/sec/remediate/{id}-{slug}/

DAG position: detect-dev + backend-scaffold + frontend-scaffold --> sec-audit-remediate --> devops-infra-scaffold (security in CI)

Input

Arguments: $ARGUMENTS

Parse arguments to identify:

  1. detect-dev output path -- Path to detect-dev SARIF/findings output (e.g., $JAAN_OUTPUTS_DIR/detect/dev/security.md or a .sarif file)
  2. scaffold type -- backend-scaffold or frontend-scaffold (determines which code to cross-reference for fixes)

If no arguments provided, search for detect-dev outputs:

  • Glob: $JAAN_OUTPUTS_DIR/detect/dev/security*.md
  • Glob: $JAAN_OUTPUTS_DIR/detect/dev/summary*.md
  • If not found, ask user for the path.

Pre-Execution Protocol

MANDATORY — Read and execute ALL steps in: ${CLAUDE_PLUGIN_ROOT}/docs/extending/pre-execution-protocol.md Skill name: sec-audit-remediate Execute: Step 0 (Init Guard) → A (Load Lessons) → B (Resolve Template) → C (Offer Template Seeding)

Also read tech context if available:

  • $JAAN_CONTEXT_DIR/tech.md - Know the tech stack for relevant fixes

Language Settings

Read and apply language protocol: ${CLAUDE_PLUGIN_ROOT}/docs/extending/language-protocol.md Override field for this skill: language_sec-audit-remediate

Language exception: Generated code output (fix files, test files, code blocks, schemas) is NOT affected by this setting and remains in the project's programming language.

PHASE 1: Analysis (Read-Only)

Thinking Mode

ultrathink

Use extended reasoning for:

  • Parsing SARIF findings and mapping to CWE categories
  • Determining root cause analysis for each finding
  • Planning fix strategies by vulnerability type
  • Assessing fix complexity and regression risk

Step 1: Parse Detect-Dev Output

Read the detect-dev output file(s) provided in $ARGUMENTS.

1.1: Extract Findings

For each finding, extract:

  • Rule ID / Finding ID (e.g., E-DEV-001)
  • Severity: Critical / High / Medium / Low / Info
  • Confidence: Confirmed / Firm / Tentative / Uncertain
  • CWE ID(s): e.g., CWE-79, CWE-89, CWE-352
  • File path and line range: Where the vulnerability exists
  • Description: What the vulnerability is
  • Evidence block: SARIF evidence or detect-dev evidence
  • OWASP Top 10 mapping: Which OWASP category it falls under

1.2: Sort by Severity

Sort all findings by severity (Critical first, then High, Medium, Low):

FINDINGS PARSED
---------------
Critical: {n}  |  High: {n}  |  Medium: {n}  |  Low: {n}

ID          Severity    CWE         File                    Description
E-DEV-001   Critical    CWE-89      src/api/users.ts:42     SQL injection in query
E-DEV-003   High        CWE-79      src/views/profile.tsx:18 XSS in user content
...

1.3: Map Findings to CWE Fix Categories

Group findings by CWE category and assign fix strategy:

Reference: See ${CLAUDE_PLUGIN_ROOT}/docs/extending/sec-audit-remediate-reference.md section "CWE-to-Fix Category Mapping" for CWE categories, fix strategies, complexity, and auto-fix eligibility.

Step 2: Cross-Reference with Scaffold Code

If scaffold output is provided (backend-scaffold or frontend-scaffold):

  1. Read scaffold code files that correspond to finding locations
  2. Identify vulnerable code patterns in the scaffold output
  3. Map each finding to the specific scaffold file and code block that needs fixing
  4. Note any findings that are NOT in scaffold code (pre-existing vulnerabilities vs scaffold-introduced)

If no scaffold reference, work directly with finding file paths.

Step 3: Generate Remediation Plan

For each finding, determine:

FieldDescription
Finding IDFrom detect-dev output
Fix TypeCode replacement / New middleware / Config change / Dependency update
Fix FilePath to the fix file to generate
Test FilePath to the regression test to generate
DependenciesNew packages needed (e.g., dompurify, csurf)
Breaking ChangesWhether the fix changes API behavior
ComplexityLow / Medium / High

Triage Matrix

Apply the severity/confidence triage matrix:

Reference: See ${CLAUDE_PLUGIN_ROOT}/docs/extending/sec-audit-remediate-reference.md section "Triage Matrix" for severity/confidence decision grid.

Step 4: Ask User Which Findings to Remediate

Present the remediation plan and ask:

REMEDIATION PLAN
----------------
Total findings: {n}
  Auto-fix eligible: {n} (Critical/High + Confirmed/Firm confidence)
  Manual review needed: {n} (Medium confidence or complex fixes)
  Skipped: {n} (Low confidence or informational)

FINDINGS TO REMEDIATE:

[x] E-DEV-001  Critical  CWE-89   SQL injection       -> parameterized query    [auto-fix]
[x] E-DEV-003  High      CWE-79   XSS vulnerability   -> DOMPurify sanitize     [auto-fix]
[x] E-DEV-007  High      CWE-352  Missing CSRF         -> csrf middleware        [auto-fix]
[x] E-DEV-012  High      CWE-327  Weak hash (MD5)     -> SHA-256 replacement    [auto-fix]
[ ] E-DEV-015  Medium    CWE-862  Missing auth check   -> RBAC guard            [needs design]
[ ] E-DEV-018  Low       CWE-798  Hardcoded API key   -> env variable           [manual]

New dependencies needed: dompurify, @types/dompurify, csurf
Estimated fix files: {n}
Estimated test files: {n}
"Which findings should I remediate? [all-auto / select / all]"
  • all-auto: Fix only auto-fix eligible findings (default)
  • select: Let user pick specific findings
  • all: Attempt all findings including manual-review ones

HARD STOP - Human Review Gate

Present complete remediation summary:

REMEDIATION SUMMARY
-------------------
Findings to fix: {n}
Fix files to generate: {n}
Test files to generate: {n}
New dependencies: {list}
Breaking changes: {yes/no, details}

OUTPUT STRUCTURE:
  $JAAN_OUTPUTS_DIR/sec/remediate/{id}-{slug}/
    {id}-{slug}.md                        <- Remediation report
    {id}-{slug}-readme.md                 <- Integration instructions
    fixes/
      auth-middleware.ts                   <- Fix: missing auth
      rate-limiter.ts                     <- Fix: rate limiting
      csrf-protection.ts                  <- Fix: CSRF
      sanitize-input.ts                   <- Fix: XSS/injection
      ...
    tests/
      auth-security.test.ts              <- Test: auth fixes
      rate-limit.test.ts                 <- Test: rate limiting
      csrf.test.ts                       <- Test: CSRF
      xss-prevention.test.ts             <- Test: XSS
      ...
"Proceed with generating {n} fix files and {n} test files? [y/n]"

Do NOT proceed to Phase 2 without explicit approval.


PHASE 2: Generation (Write Phase)

Step 5: Generate ID and Folder Structure

  1. Source ID generator utility:
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/id-generator.sh"
  1. Generate next ID and output paths:
SUBDOMAIN_DIR="$JAAN_OUTPUTS_DIR/sec/remediate"
mkdir -p "$SUBDOMAIN_DIR"

NEXT_ID=$(generate_next_id "$SUBDOMAIN_DIR")
OUTPUT_FOLDER="${SUBDOMAIN_DIR}/${NEXT_ID}-${slug}"
MAIN_FILE="${OUTPUT_FOLDER}/${NEXT_ID}-${slug}.md"
  1. Create subdirectories:
mkdir -p "$OUTPUT_FOLDER/fixes"
mkdir -p "$OUTPUT_FOLDER/tests"
  1. Preview for user:
Output Configuration - ID: {NEXT_ID} - Folder: $JAAN_OUTPUTS_DIR/sec/remediate/{NEXT_ID}-{slug}/ - Main file: {NEXT_ID}-{slug}.md - Fixes dir: fixes/ - Tests dir: tests/

Step 6: Generate Fix Files

For each finding selected for remediation, generate a targeted fix file in fixes/.

Fix Generation by CWE Category

Reference: See ${CLAUDE_PLUGIN_ROOT}/docs/extending/sec-audit-remediate-reference.md section "Per-CWE Fix Generation Patterns" for CWE-specific fix generation instructions (CWE-79 through CWE-862).

Fix File Naming Convention

Name fix files descriptively based on the vulnerability type:

  • {vulnerability-type}.ts (e.g., sql-injection-fix.ts, csrf-protection.ts, xss-sanitizer.ts)
  • If multiple findings share the same CWE, generate one consolidated fix file

Fix File Structure

Each fix file includes:

  1. File header comment with finding ID(s) and CWE reference
  2. Imports (including any new dependencies)
  3. The fix code (replacement function, middleware, utility)
  4. Usage example as JSDoc comment
  5. Integration notes as comments

Step 7: Generate Regression Tests

For each Critical and High finding that was fixed, generate a regression test in tests/.

Test Generation Strategy

For each fix, generate tests covering:

  1. Attack-replay tests -- Reproduce the original attack vector and verify it is blocked
  2. Negative tests -- Verify malicious input is rejected or sanitized
  3. Positive tests -- Verify legitimate input still works after the fix
  4. Boundary tests -- Edge cases around input limits and encoding

Reference: ${CLAUDE_PLUGIN_ROOT}/docs/research/73-dev-sarif-security-remediation-automation.md section "Regression Test Generation for Security Fixes".

Test File Naming Convention

  • {vulnerability-type}.test.ts (e.g., sql-injection.test.ts, xss-prevention.test.ts)
  • Match test file name to corresponding fix file name

Test File Structure

Each test file includes:

  1. Import from the fix file
  2. Describe block referencing finding ID and CWE
  3. Attack payload arrays (XSS payloads, SQL injection strings, SSRF URLs, etc.)
  4. "should block malicious input" tests with payload iteration
  5. "should allow legitimate input" tests with safe data
  6. Comment linking back to finding ID for traceability

CWE-Specific Test Patterns

Reference: See ${CLAUDE_PLUGIN_ROOT}/docs/extending/sec-audit-remediate-reference.md section "CWE-Specific Test Patterns" for per-CWE test payloads and verification patterns.

Step 8: Generate Remediation Report

Write the main report file: {id}-{slug}.md

Use template from: $JAAN_TEMPLATES_DIR/jaan-to-sec-audit-remediate.template.md

Fill template variables:

  • {{title}} - "Security Remediation Report" + project name
  • {{date}} - Current date (YYYY-MM-DD)
  • {{executive_summary}} - BLUF of findings fixed, risk reduction estimate
  • {{findings_table}} - All findings with status (fixed/pending/skipped)
  • {{fixes_generated}} - List of fix files with descriptions
  • {{tests_generated}} - List of test files with descriptions
  • {{new_dependencies}} - Dependencies to install
  • {{risk_reduction}} - Estimated risk reduction percentage
  • {{remaining_findings}} - Findings not addressed and why

Step 9: Generate Integration Instructions

Write the readme file: {id}-{slug}-readme.md

Include:

  1. Prerequisites -- Dependencies to install
  2. Fix Application Order -- Which fixes to apply first (auth before route-level)
  3. Per-Fix Instructions -- For each fix file:

- What it does - Where to integrate it (which file/module) - Code snippet showing integration point - Before/after comparison

  1. Test Execution -- How to run the regression tests
  2. CI Integration -- How to add security tests to CI pipeline
  3. Verification Checklist -- Steps to verify each fix is working
  4. Rollback Plan -- How to revert each fix if issues arise

Step 10: Quality Check

Before writing, verify:

Coverage:

  • Every Critical finding has a fix file AND a test file
  • Every High finding has a fix file AND a test file
  • Medium findings have fix files (tests optional)
  • No finding is left without a status (fixed/pending/skipped with reason)

Fix Quality:

  • Fix files compile (valid TypeScript/JavaScript syntax)
  • No hardcoded credentials or secrets in fix files
  • Fixes use the project's tech stack (from tech.md if available)
  • Fixes follow the project's coding patterns (from scaffold if available)
  • Fix files include proper imports

Test Quality:

  • Tests include both positive (safe input) and negative (attack payload) cases
  • Test file names match fix file names
  • Tests reference finding IDs for traceability
  • Attack payloads cover OWASP test vectors

Report Quality:

  • Executive Summary present
  • All findings listed with status
  • Risk reduction estimate provided
  • Integration instructions are actionable

Output Structure:

  • ID generated using scripts/lib/id-generator.sh
  • Folder created: sec/remediate/{id}-{slug}/
  • Main file named: {id}-{slug}.md
  • Subdirectories: fixes/, tests/
  • Index updated

If any check fails, revise before preview.

Step 11: Preview and Write

Show file listing with sizes:

OUTPUT FILES
------------
$JAAN_OUTPUTS_DIR/sec/remediate/{id}-{slug}/
  {id}-{slug}.md                    (remediation report)
  {id}-{slug}-readme.md             (integration instructions)
  fixes/
    {fix-file-1}.ts                 (CWE-89: SQL injection fix)
    {fix-file-2}.ts                 (CWE-79: XSS sanitization)
    ...
  tests/
    {test-file-1}.test.ts           (SQL injection regression)
    {test-file-2}.test.ts           (XSS prevention regression)
    ...

Total: {n} files
"Write all {n} files to $JAAN_OUTPUTS_DIR/sec/remediate/{id}-{slug}/? [y/n]"

If approved:

  1. Create output folder and subdirectories
  2. Write all fix files to fixes/
  3. Write all test files to tests/
  4. Write remediation report
  5. Write integration instructions
  6. Update subdomain index:
source "${CLAUDE_PLUGIN_ROOT}/scripts/lib/index-updater.sh"
add_to_index \
  "$SUBDOMAIN_DIR/README.md" \
  "$NEXT_ID" \
  "${NEXT_ID}-${slug}" \
  "{Title}" \
  "{Executive summary text}"
  1. Confirm:
Output written to: $JAAN_OUTPUTS_DIR/sec/remediate/{NEXT_ID}-{slug}/ Index updated: $JAAN_OUTPUTS_DIR/sec/remediate/README.md Fix files: {n} | Test files: {n} | Report: 1 | Readme: 1

Step 12: Capture Feedback

"Any feedback on the security remediation? [y/n]"

If yes:

"[1] Fix now [2] Learn for future [3] Both"
  • Option 1: Update output, re-preview, re-write
  • Option 2: Run /jaan-to:learn-add sec-audit-remediate "{feedback}"
  • Option 3: Do both

Skill Alignment

  • Two-phase workflow with HARD STOP for human approval
  • Single source of truth (no duplication)
  • Plugin-internal automation
  • Maintains human control over changes

Definition of Done

  • Detect-dev output parsed and findings extracted
  • Findings sorted by severity with CWE mapping
  • Remediation plan generated and user approved scope
  • Fix files generated for all selected findings
  • Regression tests generated for all Critical and High findings
  • Every Critical finding has both fix AND test
  • Remediation report written with executive summary
  • Integration instructions written with per-fix guidance
  • Output written to correct path with ID-based folder structure
  • Index updated
  • User approved final result

平台分布

Codex

34.9%
按下载量换算27

Claude

29.36%
按下载量换算23

Cursor

21.68%
按下载量换算17

Gemini CLI

9.21%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills