Token导航 LogoToken导航

Agent Skill · 研究检索

security-auditing(安全审计)

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

security-auditing 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 60,488。

总安装 367周安装 15GitHub Stars 31下载 119核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/charlesjones-dev/claude-code-plugins-dev --skill security-auditing

这个 Skill 是做什么的

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

静态分析代码库中的安全风险,包括 SQL 注入、硬编码凭证与授权缺陷等问题。适用于开发自测、代码复审或上线前的自动化安全验证环节。提供严重性分级标准与修复示例,支持快速定位高危漏洞。仅限客户端可见信息分析,无法检测需源码访问的深层逻辑漏洞。

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

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

security-auditing 怎么安装?

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

security-auditing 支持哪些 AI 工具?

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

security-auditing 需要什么权限?

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

security-auditing 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

security-auditing 用的人多吗?

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

security-auditing 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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-auditing

安全审计 · 本页

36731接触敏感数据MIT有提醒

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

SKILL.md 原文

Security Audit Skill

This skill provides elite security expertise for identifying and eliminating vulnerabilities before malicious actors can exploit them.

When to Use This Skill

Invoke this skill when:

  • Reviewing authentication and authorization mechanisms
  • Auditing code for injection vulnerabilities (SQL, NoSQL, command, XSS)
  • Validating input sanitization and data protection measures
  • Assessing cryptographic implementations and key management
  • Analyzing API security, rate limiting, and authorization controls
  • Conducting security reviews of new features or code changes
  • Auditing payment processing, file uploads, or sensitive data handling
  • Investigating potential security vulnerabilities reported by users or tools

Core Security Expertise

1. Authentication & Authorization Vulnerabilities

To identify authentication and authorization issues, examine:

  • Password policies and storage mechanisms (bcrypt, argon2 vs plaintext)
  • Session management and token expiration
  • Authorization checks at every protected resource
  • JWT token implementation (secret strength, expiration, algorithm)
  • OAuth/SAML flows for common implementation errors
  • Multi-factor authentication bypass opportunities

Key Rules:

  • Never trust client-side authorization checks alone
  • Every protected endpoint must verify both authentication AND authorization
  • Session tokens should have appropriate timeouts and secure flags

2. Injection Attacks

To detect injection vulnerabilities, trace user input through:

  • Database queries (SQL injection, NoSQL operator injection)
  • System commands (command injection, path traversal)
  • Template engines (template injection, SSTI)
  • XML parsers (XXE injection)
  • LDAP queries (LDAP injection)

Key Rules:

  • User input must be validated, sanitized, and parameterized
  • Never concatenate user input directly into queries or commands
  • Use ORM/query builders with parameterization, not string concatenation

3. Input Validation & Sanitization

To validate input handling, check for:

  • Whitelist-based validation on all user inputs
  • Proper encoding for output contexts (HTML, JavaScript, URL, SQL)
  • File upload restrictions (type, size, content validation)
  • Mass assignment protection on data models
  • Type validation to prevent coercion attacks

Key Rules:

  • Validate on the server side, never trust client-side validation alone
  • Use context-appropriate encoding when outputting user data
  • Implement file upload validation beyond just file extension checks

4. Data Protection & Cryptography

To assess data protection, evaluate:

  • Sensitive data identification and classification (PII, credentials, tokens)
  • Encryption at rest (database fields, file storage)
  • Encryption in transit (HTTPS enforcement, certificate validation)
  • Cryptographic algorithm strength (avoid MD5, SHA1, DES, ECB mode)
  • Key management and rotation procedures
  • Timing attack vulnerabilities in comparison operations

Key Rules:

  • Never store passwords in plaintext or with reversible encryption
  • Use industry-standard libraries (not custom cryptography)
  • Enforce HTTPS for all sensitive data transmission

5. API Security

To audit API security, review:

  • Rate limiting implementation on all endpoints
  • Object-level authorization (IDOR prevention)
  • Excessive data exposure in API responses
  • Security headers (CORS, CSP, HSTS, X-Frame-Options)
  • API key rotation and secure storage
  • Mass assignment vulnerabilities in request handlers

Key Rules:

  • Implement rate limiting based on business requirements
  • Return only the data the user is authorized to see
  • Use security headers to enforce browser-side protections

6. Business Logic Vulnerabilities

To find business logic flaws, analyze:

  • Race conditions in critical operations (TOCTOU issues)
  • Price manipulation opportunities
  • Privilege escalation paths through workflow abuse
  • State transition validation
  • Anti-automation controls (CAPTCHA, rate limiting)

Key Rules:

  • Critical operations should be atomic and idempotent
  • Validate state transitions, not just individual states
  • Implement transaction-level integrity checks

Audit Methodology

When reviewing code, follow this systematic approach:

  1. Threat Modeling: Identify attack surfaces and potential threat actors
  2. Code Flow Analysis: Trace data flow from user input to sensitive operations
  3. Vulnerability Scanning: Systematically check for known vulnerability patterns
  4. Attack Simulation: Think like an attacker - how would this be exploited?
  5. Defense Verification: Validate that security controls are properly implemented
  6. Compliance Check: Ensure adherence to standards (OWASP Top 10, PCI-DSS, GDPR)

Report Output Format

IMPORTANT: The section below defines the COMPLETE report structure that MUST be used. Do NOT create your own format or simplified version.

Location and Naming

  • Directory: /docs/security/
  • Filename: YYYY-MM-DD-HHMMSS-security-audit.md
  • Example: 2025-10-29-143022-security-audit.md

Report Template

🚨 CRITICAL INSTRUCTION - READ CAREFULLY 🚨

You MUST use this exact template structure for ALL security audit reports. This is MANDATORY and NON-NEGOTIABLE.

REQUIREMENTS:

  1. ✅ Use the COMPLETE template structure below - ALL sections are REQUIRED
  2. ✅ Follow the EXACT heading hierarchy (##, ###, ####)
  3. ✅ Include ALL section headings as written in the template
  4. ✅ Use the finding numbering format: C-001, H-001, M-001, L-001, etc.
  5. ✅ Include the tables, code examples, and checklists as shown
  6. ❌ DO NOT create your own format or structure
  7. ❌ DO NOT skip or combine sections
  8. ❌ DO NOT create abbreviated or simplified versions
  9. ❌ DO NOT number issues as "1, 2, 3" - use C-001, H-001, M-001 format

If you do not follow this template exactly, the report will be rejected.

Audit Overview

  • Target System: [Application Name/System]
  • Analysis Date: [Date Range]
  • Analysis Scope: [Web Application/API/Full Codebase]
  • Technology Stack: [e.g.,.NET 8, Umbraco CMS, Azure AD B2C, SQL Server, Elasticsearch]

Risk Assessment Summary

Risk LevelCountPercentage
CriticalXX%
HighXX%
MediumXX%
LowXX%
TotalX100%

Key Findings

  • Critical Issues: X findings requiring immediate attention
  • OWASP Top 10 Compliance: X/10 categories compliant
  • Overall Security Score: X/100 (based on vulnerability severity and coverage)

Analysis Methodology

Security Analysis Approach

  • Code Pattern Analysis: Comprehensive source code review for security anti-patterns
  • Dependency Vulnerability Assessment: Analysis of package dependencies and known CVEs
  • Configuration Security Review: Examination of configuration files and settings
  • Architecture Security Analysis: Review of authentication, authorization, and data flow patterns

Analysis Coverage

  • Files Analyzed: X source files across Y projects
  • Dependencies Reviewed: X packages and libraries
  • Configuration Files: X config files examined
  • Security Patterns Checked: OWASP Top 10, common vulnerability patterns

Analysis Capabilities

  • Pattern Detection: SQL injection, XSS, authentication bypasses, insecure configurations
  • Dependency Analysis: Outdated packages, known vulnerabilities, licensing issues
  • Code Flow Analysis: Authentication flows, authorization checks, data handling
  • Configuration Assessment: Security headers, secrets management, encryption settings

Security Findings

Critical Risk Findings

C-001: SQL Injection Vulnerability

Location: src/Website.Data/Services/UserService.cs:45 Risk Score: 9.8 (Critical) Pattern Detected: Direct string concatenation in SQL query construction Code Context:

var query = $"SELECT * FROM Users WHERE id = {userId}";

Impact: Complete database compromise, data exfiltration, system takeover Recommendation: Replace with parameterized queries using Entity Framework or SqlParameter Fix Priority: Immediate (within 24 hours)

C-002: Authentication Bypass

Location: src/Website.Security/Middleware/AuthMiddleware.cs:67 Risk Score: 9.1 (Critical) Pattern Detected: JWT token validation can be bypassed with null/empty checks Code Context: Missing signature verification in token validation logic Impact: Unauthorized access to protected resources Recommendation: Implement proper JWT signature validation and expiration checks Fix Priority: Immediate (within 48 hours)

High Risk Findings

H-001: Hardcoded Secrets

Location: Multiple configuration files and source files Risk Score: 7.5 (High) Pattern Detected: API keys, connection strings, and secrets in source code Affected Files:

  • src/Website.Web/appsettings.json
  • src/Website.Core/Services/ExternalApiService.cs:23 Impact: Credential compromise, unauthorized system access Recommendation: Move all secrets to secure configuration (Azure Key Vault, environment variables) Fix Priority: Within 1 week
H-002: Insufficient Access Controls

Location: src/Website.Core/Controllers/AdminController.cs Risk Score: 7.2 (High) Pattern Detected: Administrative endpoints lack proper role-based authorization Code Context: Missing [Authorize(Roles = "Admin")] attributes on sensitive operations Impact: Privilege escalation, unauthorized administrative access Recommendation: Implement granular role-based access control with proper attribute decorations Fix Priority: Within 2 weeks

Medium Risk Findings

M-001: Cross-Site Scripting (XSS)

Location: Multiple view templates and API responses Risk Score: 6.1 (Medium) Pattern Detected: Unencoded user input rendered in HTML responses Affected Areas: User profile pages, search results, comment sections Impact: Session hijacking, credential theft, phishing attacks Recommendation: Implement automatic HTML encoding and Content Security Policy headers Fix Priority: Within 1 month

M-002: Insecure Direct Object References

Location: src/Website.Core/Controllers/DocumentController.cs:89 Risk Score: 5.4 (Medium) Pattern Detected: Document access by ID without ownership validation Code Context: Direct parameter usage without authorization checks Impact: Unauthorized access to sensitive documents Recommendation: Implement object-level authorization checks before resource access Fix Priority: Within 1 month

Low Risk Findings

L-001: Missing Security Headers

Location: Web server configuration Risk Score: 3.7 (Low) Pattern Detected: Security headers not configured in middleware pipeline Missing Headers: HSTS, X-Frame-Options, X-Content-Type-Options, CSP Impact: Reduced defense against clickjacking and MITM attacks Recommendation: Configure comprehensive security headers in startup configuration Fix Priority: Within 2 months


Architecture Security Assessment

Authentication & Authorization Analysis

  • Azure AD B2C Integration: ✅ Properly configured with secure redirect URIs
  • Session Management: ⚠️ Security stamp validation implementation needs improvement
  • Role-Based Access Control: ❌ Insufficient granularity, missing authorization checks
  • API Authentication: ❌ Bearer token validation inconsistent across controllers

Data Protection Analysis

  • Sensitive Data Handling: ❌ Personal data logged in plain text, insufficient encryption
  • Input Validation: ⚠️ Some endpoints lack comprehensive validation
  • Output Encoding: ❌ XSS vulnerabilities in multiple view templates
  • Error Handling: ⚠️ Some error messages expose internal system information

Dependency Security Analysis

  • Package Vulnerabilities: ⚠️ 3 high-severity CVEs detected in NuGet packages
  • Outdated Dependencies: ❌ 12 packages with available security updates
  • License Compliance: ✅ All dependencies use compatible licenses
  • Supply Chain Security: ⚠️ Some packages from unofficial sources

OWASP Top 10 2021 Compliance Analysis

Risk CategoryCompliance StatusAssessment
A01 - Broken Access Control❌ Non-Compliant5 instances of missing authorization checks
A02 - Cryptographic Failures⚠️ PartialSome data encrypted, but secrets management insufficient
A03 - Injection❌ Non-CompliantSQL injection vulnerabilities detected
A04 - Insecure Design✅ CompliantGood separation of concerns and architecture
A05 - Security Misconfiguration❌ Non-CompliantMissing security headers and default configurations
A06 - Vulnerable Components⚠️ PartialSome outdated dependencies with known CVEs
A07 - Identity & Auth Failures❌ Non-CompliantAuthentication bypass and weak session management
A08 - Data Integrity Failures⚠️ PartialSome validation present but inconsistent
A09 - Security Logging Failures⚠️ PartialBasic logging but insufficient security event coverage
A10 - Server-Side Request Forgery✅ CompliantNo SSRF patterns detected

Overall OWASP Compliance: 40% (4/10 categories fully compliant)


Technical Recommendations

Immediate Code Fixes

  1. Replace all string concatenation in SQL queries with parameterized queries
  2. Remove hardcoded secrets from source code and configuration files
  3. Add missing authorization attributes to administrative endpoints
  4. Fix JWT token validation to include proper signature verification

Security Enhancements

  1. Implement comprehensive input validation using data annotations and custom validators
  2. Add automatic HTML encoding for all user-generated content
  3. Configure security headers middleware in the application pipeline
  4. Update vulnerable dependencies to latest secure versions

Architecture Improvements

  1. Implement centralized secrets management using Azure Key Vault
  2. Add comprehensive security logging for authentication and authorization events
  3. Implement rate limiting for API endpoints
  4. Add automated security testing to the CI/CD pipeline

Code Remediation Examples

SQL Injection Fix

Before (Vulnerable):

var query = $"SELECT * FROM Users WHERE id = {userId}";
var user = context.Database.SqlQuery<User>(query).FirstOrDefault();

After (Secure):

var user = context.Users.FirstOrDefault(u => u.Id == userId);
// OR using parameterized query if raw SQL needed
var query = "SELECT * FROM Users WHERE id = @userId";
var user = context.Database.SqlQuery<User>(query, new SqlParameter("@userId", userId)).FirstOrDefault();

Authorization Fix

Before (Vulnerable):

[HttpDelete]
public IActionResult DeleteUser(int id)
{
    // No authorization check
    userService.Delete(id);
    return Ok();
}

After (Secure):

[HttpDelete]
[Authorize(Roles = "Admin")]
public IActionResult DeleteUser(int id)
{
    userService.Delete(id);
    return Ok();
}

Risk Mitigation Priorities

Phase 1: Critical Vulnerability Remediation

  • Fix SQL injection in UserService.cs:45
  • Patch authentication bypass in AuthMiddleware.cs:67
  • Remove hardcoded API keys from configuration files
  • Add missing authorization checks to admin endpoints

Phase 2: High Risk Resolution

  • Implement proper secrets management
  • Fix XSS vulnerabilities in view templates
  • Update vulnerable NuGet packages
  • Add comprehensive input validation

Phase 3: Medium Risk and Configuration

  • Configure security headers middleware
  • Implement object-level authorization
  • Add security event logging
  • Fix insecure direct object references

Phase 4: Security Hardening

  • Implement rate limiting
  • Add automated security testing
  • Complete OWASP compliance review
  • Document security procedures

Summary

This security analysis identified X critical, Y high, Z medium, and W low risk vulnerabilities across the codebase. The analysis focused on code patterns, dependency vulnerabilities, and configuration security without requiring manual penetration testing or third-party tools.

Key Strengths Identified:

  • Good architectural separation of concerns
  • Proper use of modern authentication framework (Azure AD B2C)
  • No SSRF vulnerabilities detected

Critical Areas Requiring Immediate Attention:

  • SQL injection vulnerabilities requiring immediate patching
  • Authentication bypass issues
  • Hardcoded secrets in source code
  • Missing authorization controls

Severity Assessment Framework

When determining severity, apply these criteria:

  • CRITICAL: Can an unauthenticated attacker access sensitive data or compromise the system?
  • HIGH: Can an authenticated user escalate privileges or access other users' data?
  • MEDIUM: Does exploitation require specific conditions or insider knowledge?
  • LOW: Is this a defense-in-depth improvement or minor information disclosure?

Examples

Example 1: SQL Injection

Bad approach:

const query = `SELECT * FROM users WHERE email = '${userEmail}'`;
db.query(query);

Good approach:

const query = 'SELECT * FROM users WHERE email = ?';
db.query(query, [userEmail]);

Example 2: Password Storage

Bad approach:

user.password = md5(password);

Good approach:

user.password = await bcrypt.hash(password, 12);

Example 3: Authorization Check

Bad approach:

// Only checking authentication, not authorization
if (req.user) {
  return db.getOrder(req.params.orderId);
}

Good approach:

// Check both authentication and authorization
if (req.user) {
  const order = await db.getOrder(req.params.orderId);
  if (order.userId !== req.user.id) {
    throw new ForbiddenError();
  }
  return order;
}

Best Practices

  1. Assume Breach Mentality: Design systems assuming attackers will gain some level of access. Implement defense-in-depth with multiple layers of security.
  2. Validate Context: Consider the specific project architecture, technology stack, and business requirements when assessing vulnerabilities. A vulnerability's severity depends on context.
  3. Provide Actionable Fixes: Every finding should include specific, implementable remediation steps with code examples where possible.
  4. Balance Security and Usability: Recommend security measures that don't break functionality. Verify proposed fixes work with the existing architecture.
  5. Think Like an Attacker: For each vulnerability, demonstrate concrete exploit scenarios to illustrate the real-world impact.
  6. Acknowledge Good Security: Recognize properly implemented security controls to reinforce positive patterns and build trust.

Quality Assurance Checklist

Before finalizing a security audit, verify:

  • ✓ Have all user input points been identified and traced?
  • ✓ Have sensitive data flows been traced end-to-end?
  • ✓ Have both authenticated and unauthenticated attack vectors been considered?
  • ✓ Are remediation recommendations specific and actionable?
  • ✓ Have recommendations been validated to ensure they don't break functionality?
  • ✓ Has business context and risk tolerance been factored into severity assessments?

Context-Aware Analysis

When project-specific context is available in CLAUDE.md files, incorporate:

  • Project Architecture: Understand security boundaries and trust zones
  • Technology Stack: Identify framework-specific vulnerabilities and security features
  • Business Logic: Recognize domain-specific security requirements
  • Compliance Requirements: Note regulatory constraints (PCI-DSS, HIPAA, GDPR)
  • Existing Security Measures: Build upon established security patterns

Communication Guidelines

When reporting findings:

  • Be direct and precise about security risks
  • Use technical terminology accurately
  • Provide concrete exploit scenarios to demonstrate impact
  • Include code snippets showing both vulnerable and secure implementations
  • Balance thoroughness with clarity - reports should be actionable
  • Acknowledge properly implemented security controls
  • Escalate critical findings immediately with clear urgency

Remember: The goal is not to criticize but to protect. Every vulnerability found and fixed is a potential breach prevented. Be thorough, be precise, and always think like an attacker while defending like a guardian.

平台分布

OpenCode

29.69%
按下载量换算35

Claude Code

22.93%
按下载量换算27

windsurf

19.03%
按下载量换算23

trae

12.73%
按下载量换算15

Codex

8.71%
按下载量换算10

Antigravity

3.23%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills