Token导航 LogoToken导航

Agent Skill · 开发

security-assessment(安全评估)

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

security-assessment 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 20,060。

总安装 242周安装 10GitHub Stars 265下载 79核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rsmdt/the-startup --skill security-assessment

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于辅助安全审计、权限检查和常见漏洞排查,适合梳理敏感配置和生成安全复核清单。支持凭据风险分析、认证流程审查和依赖安全检查,帮助识别潜在安全隐患。使用时不能直接采信工具输出,需结合最小权限原则和操作边界进行人工确认。

安装命令:npx skills add https://github.com/rsmdt/the-startup --skill security-assessment 涉及密钥或生产系统时,应先确认脱敏方式和操作权限范围。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

security-assessment 怎么安装?

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

security-assessment 支持哪些 AI 工具?

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

security-assessment 需要什么权限?

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

security-assessment 是免费的吗?

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

security-assessment 用的人多吗?

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

security-assessment 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
security-assessment

安全评估 · 本页

242265接触敏感数据MIT通过

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

SKILL.md 原文

Security Assessment

A specialized skill for systematic security evaluation of code, architecture, and infrastructure. Combines threat modeling methodologies with practical code review techniques to identify and remediate security vulnerabilities.

When to Use

  • Reviewing code changes for security vulnerabilities
  • Designing new features with security requirements
  • Performing threat analysis on system architecture
  • Validating security controls in infrastructure
  • Assessing third-party integrations and dependencies
  • Preparing for security audits or compliance reviews

Threat Modeling with STRIDE

STRIDE is a threat modeling framework that categorizes threats by their nature. Apply this model during architecture review and feature design.

Spoofing (Authentication)

Threat: Attacker pretends to be another user or system.

Questions to ask:

  • How do we verify the identity of users and systems?
  • Can authentication tokens be stolen or forged?
  • Are there any authentication bypass paths?

Mitigations:

  • Strong authentication mechanisms (MFA)
  • Secure token generation and validation
  • Session management with proper invalidation

Tampering (Integrity)

Threat: Attacker modifies data in transit or at rest.

Questions to ask:

  • Can data be modified between components?
  • Are database records protected from unauthorized changes?
  • Can configuration files be altered?

Mitigations:

  • Input validation at all boundaries
  • Cryptographic signatures for critical data
  • Database integrity constraints and audit logs

Repudiation (Non-repudiation)

Threat: Attacker denies performing an action.

Questions to ask:

  • Can we prove who performed an action?
  • Are audit logs tamper-resistant?
  • Is there sufficient logging for forensics?

Mitigations:

  • Comprehensive audit logging
  • Secure, immutable log storage
  • Digital signatures for critical operations

Information Disclosure (Confidentiality)

Threat: Attacker gains access to sensitive information.

Questions to ask:

  • What sensitive data exists in this system?
  • How is data protected at rest and in transit?
  • Are error messages revealing internal details?

Mitigations:

  • Encryption for sensitive data (TLS, AES)
  • Proper access controls and authorization
  • Sanitized error messages

Denial of Service (Availability)

Threat: Attacker makes the system unavailable.

Questions to ask:

  • What resources can be exhausted?
  • Are there rate limits on expensive operations?
  • How does the system handle malformed input?

Mitigations:

  • Rate limiting and throttling
  • Input validation and size limits
  • Resource quotas and timeouts

Elevation of Privilege (Authorization)

Threat: Attacker gains higher privileges than intended.

Questions to ask:

  • Can users access resources beyond their role?
  • Are privilege checks performed consistently?
  • Can administrative functions be accessed by regular users?

Mitigations:

  • Principle of least privilege
  • Role-based access control (RBAC)
  • Authorization checks at every layer

OWASP Top 10 Review Patterns

Systematic patterns for identifying the most critical web application security risks.

A01: Broken Access Control

Review pattern:

  1. Identify all endpoints and their expected access levels
  2. Trace authorization logic from request to resource
  3. Test for horizontal privilege escalation (accessing other users' data)
  4. Test for vertical privilege escalation (accessing admin functions)
  5. Verify CORS configuration restricts origins appropriately

Red flags:

  • Authorization based on client-side state
  • Direct object references without ownership verification
  • Missing authorization checks on API endpoints

A02: Cryptographic Failures

Review pattern:

  1. Map all sensitive data flows (credentials, PII, financial)
  2. Verify encryption at rest and in transit
  3. Check for hardcoded secrets in code or configuration
  4. Review cryptographic algorithm choices
  5. Verify key management practices

Red flags:

  • Sensitive data in logs or error messages
  • Deprecated algorithms (MD5, SHA1, DES)
  • Secrets in source control

A03: Injection

Review pattern:

  1. Identify all user input entry points
  2. Trace input flow to database queries, OS commands, LDAP
  3. Verify parameterized queries or proper escaping
  4. Check for dynamic code execution (eval, exec)
  5. Review XML parsing for XXE vulnerabilities

Red flags:

  • String concatenation in queries
  • User input in system commands
  • Disabled XML external entity protection

A04: Insecure Design

Review pattern:

  1. Verify threat modeling was performed
  2. Check for abuse case handling (rate limits, quantity limits)
  3. Review business logic for security assumptions
  4. Assess multi-tenancy isolation
  5. Verify secure defaults

Red flags:

  • No rate limiting on authentication
  • Trust assumptions without verification
  • Security as an afterthought

A05: Security Misconfiguration

Review pattern:

  1. Review default configurations for security settings
  2. Check for unnecessary features or services
  3. Verify error handling does not expose details
  4. Review security headers (CSP, HSTS, X-Frame-Options)
  5. Check cloud resource permissions

Red flags:

  • Debug mode in production
  • Default credentials unchanged
  • Overly permissive cloud IAM policies

A06: Vulnerable Components

Review pattern:

  1. Inventory all dependencies and their versions
  2. Check for known vulnerabilities (CVE databases)
  3. Verify dependencies from trusted sources
  4. Review for unused dependencies
  5. Check for version pinning

Red flags:

  • Unpinned dependencies
  • Known critical vulnerabilities
  • Dependencies from unofficial sources

A07: Authentication Failures

Review pattern:

  1. Review password policy enforcement
  2. Check session management implementation
  3. Verify brute force protection
  4. Review token generation and validation
  5. Check credential storage mechanisms

Red flags:

  • Weak password requirements
  • Sessions that do not invalidate on logout
  • Predictable session tokens

A08: Integrity Failures

Review pattern:

  1. Review CI/CD pipeline security
  2. Check for unsigned code or dependencies
  3. Review deserialization of untrusted data
  4. Verify update mechanism security
  5. Check for code review requirements

Red flags:

  • Deserialization without integrity checks
  • Unsigned updates or dependencies
  • No code review before deployment

A09: Logging and Monitoring Failures

Review pattern:

  1. Verify authentication events are logged
  2. Check for authorization failure logging
  3. Review log content for sensitive data
  4. Verify log integrity protection
  5. Check alerting configuration

Red flags:

  • Missing authentication failure logs
  • Sensitive data in logs
  • No alerting on suspicious patterns

A10: SSRF

Review pattern:

  1. Identify all server-side URL fetching
  2. Verify URL validation against allowlist
  3. Check for internal network blocking
  4. Review URL scheme restrictions
  5. Verify response handling

Red flags:

  • User-controlled URLs without validation
  • Internal addresses not blocked
  • Raw responses returned to users

Secure Coding Practices

Input Validation

Always validate on the server side, regardless of client validation:

function validateInput(input) {
  // Type validation
  if (typeof input !== 'string') {
    throw new ValidationError('Input must be a string');
  }

  // Length validation
  if (input.length > MAX_LENGTH) {
    throw new ValidationError('Input exceeds maximum length');
  }

  // Format validation (allowlist approach)
  if (!ALLOWED_PATTERN.test(input)) {
    throw new ValidationError('Input contains invalid characters');
  }

  return sanitize(input);
}

Output Encoding

Context-appropriate encoding prevents injection:

  • HTML context: Encode <, >, &, ", '
  • JavaScript context: Use JSON.stringify or hex encoding
  • URL context: Use encodeURIComponent
  • SQL context: Use parameterized queries (never encode manually)

Secrets Management

Never commit secrets to source control:

// Bad: Hardcoded secret
const apiKey = "sk-1234567890abcdef";

// Good: Environment variable
const apiKey = process.env.API_KEY;
if (!apiKey) {
  throw new ConfigurationError('API_KEY not configured');
}

Error Handling for Security

Separate internal logging from user-facing errors:

try {
  await processRequest(data);
} catch (error) {
  // Log full details internally
  logger.error('Request processing failed', {
    error: error.message,
    stack: error.stack,
    userId: user.id,
    requestId: request.id
  });

  // Return generic message to user
  throw new UserError('Unable to process request');
}

Infrastructure Security Considerations

Network Security

  • Segment networks to limit blast radius
  • Use private subnets for internal services
  • Implement network policies in Kubernetes
  • Restrict egress traffic to known destinations

Container Security

  • Use minimal base images (distroless, Alpine)
  • Run as non-root user
  • Set read-only root filesystem where possible
  • Scan images for vulnerabilities
  • Limit container capabilities

Secrets in Infrastructure

  • Use secret management services (Vault, AWS Secrets Manager)
  • Inject secrets as environment variables, not files
  • Rotate secrets regularly
  • Audit secret access

Cloud IAM

  • Apply principle of least privilege
  • Use service accounts with minimal permissions
  • Audit IAM policies regularly
  • Avoid using root/admin accounts for routine operations

Code Review Security Focus Areas

Priority areas for security-focused code review:

  1. Authentication and session management - Token generation, validation, session lifecycle
  2. Authorization checks - Access control at all layers
  3. Input handling - All user input paths
  4. Data exposure - Logs, errors, API responses
  5. Cryptography usage - Algorithm selection, key management
  6. Third-party integrations - Data sharing, authentication
  7. Error handling - Information leakage, fail-secure behavior

Best Practices

  • Perform threat modeling before implementation
  • Apply defense in depth (multiple security layers)
  • Assume breach: design for detection and containment
  • Automate security testing in CI/CD
  • Keep dependencies updated and audited
  • Document security decisions and accepted risks
  • Train developers on secure coding practices

References

  • checklists/security-review-checklist.md - Comprehensive security review checklist

平台分布

Claude Code

25.2%
按下载量换算20

windsurf

23.12%
按下载量换算18

OpenCode

17.34%
按下载量换算14

Gemini CLI

12.89%
按下载量换算10

Codex

6.75%
按下载量换算5

Antigravity

3.03%
按下载量换算2

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills