Token导航 LogoToken导航

Agent Skill · 开发

security(安全)

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

security 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 20,462。

总安装 220周安装 9GitHub Stars 17下载 71核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/booch/config_files --skill security

这个 Skill 是做什么的

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

security 提供安全编码指导和漏洞识别建议,覆盖 OWASP Top 10 关键风险。强调纵深防御、最小权限、输入验证等原则,适用于代码审查场景。可辅助分析访问控制、凭据管理和依赖安全风险,生成复核清单。使用时应避免直接采信工具结论,尤其涉及生产数据或密钥时需人工复核边界。

security 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/security

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

security 怎么安装?

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

security 支持哪些 AI 工具?

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

security 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/booch/config_files --skill security 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

security 是免费的吗?

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

security 用的人多吗?

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

security 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

安全 · 本页

22017执行命令未明确通过

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

SKILL.md 原文

Security

This skill provides guidance on writing secure code and identifying security vulnerabilities during code review.

Core Principles

  • Defense in Depth: Layer multiple security controls; don't rely on a single defense
  • Least Privilege: Grant minimum permissions necessary for functionality
  • Don't Trust Input: Validate and sanitize all external input
  • Keep It Simple: Complex code is harder to secure
  • Fail Secure: When errors occur, fail closed rather than open

OWASP Top 10 (2025)

The OWASP Top 10 represents the most critical web application security risks.

A01: Broken Access Control

Failures in enforcing what authenticated users are allowed to do.

Vulnerabilities:

  • Missing access control checks on sensitive operations
  • Insecure Direct Object References (IDOR) — accessing resources by ID without authorization checks
  • Privilege escalation — users accessing admin functionality
  • CORS misconfiguration allowing unauthorized API access
  • Bypassing access control by modifying URLs, parameters, or JWT tokens

Prevention:

  • Deny by default; explicitly grant access
  • Implement access control checks server-side, not client-side
  • Use consistent access control mechanisms throughout the application
  • Log access control failures and alert on repeated failures
  • Invalidate sessions on logout and set appropriate timeouts

A02: Security Misconfiguration

Insecure default configurations, incomplete setups, or misconfigured security settings.

Vulnerabilities:

  • Default credentials left unchanged
  • Unnecessary features enabled (ports, services, pages, accounts)
  • Error messages exposing sensitive information (stack traces, database errors)
  • Missing security headers
  • Outdated or vulnerable software configurations

Prevention:

  • Automate secure configuration deployment
  • Remove unused features and dependencies
  • Review cloud storage permissions (S3 buckets, etc.)
  • Send security directives via headers (CSP, X-Content-Type-Options, etc.)
  • Use different credentials across environments

A03: Software Supply Chain Failures

Vulnerabilities introduced through dependencies, build systems, or distribution infrastructure.

Vulnerabilities:

  • Using components with known vulnerabilities
  • Outdated or unmaintained dependencies
  • Not verifying package integrity
  • Typosquatting attacks (malicious packages with similar names)
  • Compromised build pipelines

Prevention:

  • Maintain inventory of all dependencies and their versions
  • Continuously monitor for vulnerabilities (Dependabot, Snyk, etc.)
  • Only obtain packages from official sources
  • Verify package signatures and checksums
  • Review dependency changes in pull requests
  • Use lock files to pin dependency versions

A04: Cryptographic Failures

Failures related to cryptography that expose sensitive data.

Vulnerabilities:

  • Transmitting data in cleartext (HTTP, FTP, SMTP)
  • Using weak or deprecated algorithms (MD5, SHA1, DES)
  • Weak or default cryptographic keys
  • Not enforcing encryption (missing TLS, weak TLS configuration)
  • Improper key management (hardcoded keys, keys in source control)

Prevention:

  • Encrypt all sensitive data in transit and at rest
  • Use strong, current algorithms (AES-256, RSA-2048+, SHA-256+)
  • Generate keys using cryptographically secure random generators
  • Store keys securely, separate from encrypted data
  • Use TLS 1.2+ with strong cipher suites
  • Never implement custom cryptography

A05: Injection

Untrusted data sent to an interpreter as part of a command or query.

Vulnerabilities:

  • SQL Injection — malicious SQL in user input
  • NoSQL Injection — malicious queries in document databases
  • OS Command Injection — shell commands in user input
  • LDAP Injection — malicious LDAP queries
  • Cross-Site Scripting (XSS) — malicious scripts in web pages

Prevention:

  • Use parameterized queries or prepared statements (never string concatenation)
  • Use ORM frameworks correctly
  • Validate and sanitize all input (allowlist preferred over denylist)
  • Escape output appropriate to context (HTML, JavaScript, SQL, etc.)
  • Use Content Security Policy (CSP) headers
  • Apply least privilege to database accounts

A06: Insecure Design

Security flaws from missing or ineffective security controls in the design phase.

Vulnerabilities:

  • Missing threat modeling
  • No rate limiting on expensive operations
  • Missing input validation requirements
  • Inadequate segregation of duties
  • Business logic flaws

Prevention:

  • Establish secure development lifecycle
  • Use threat modeling for critical features
  • Define security requirements and acceptance criteria
  • Use secure design patterns and reference architectures
  • Integrate security testing into CI/CD

A07: Authentication Failures

Failures in authentication mechanisms.

Vulnerabilities:

  • Credential stuffing (using breached username/password lists)
  • Brute force attacks (no rate limiting)
  • Permitting weak passwords
  • Missing or ineffective multi-factor authentication
  • Session fixation or improper session invalidation
  • Exposing session IDs in URLs

Prevention:

  • Delegate authentication to trusted 3rd parties
  • Implement multi-factor authentication
  • Enforce strong password policies
  • Rate limit and lock out after failed attempts
  • Use secure session management (regenerate IDs on login)
  • Never ship with default credentials
  • Use secure (slow) password hashing (bcrypt, Argon2, scrypt)

A08: Data Integrity Failures

Failures to protect data and code from unauthorized modification.

Vulnerabilities:

  • Insecure deserialization — untrusted data deserialized without validation
  • Missing integrity checks on software updates
  • Unsigned or unverified CI/CD pipelines
  • Trusting serialized objects from untrusted sources

Prevention:

  • Use digital signatures to verify integrity
  • Validate all serialized data from untrusted sources
  • Implement integrity checks in CI/CD pipelines
  • Review code and configuration changes
  • Avoid serializing sensitive data

A09: Security Logging and Alerting Failures

Insufficient logging, monitoring, and alerting.

Vulnerabilities:

  • Not logging security-relevant events
  • Logs not containing enough detail for forensics
  • No monitoring or alerting on suspicious activity
  • Logs stored only locally, vulnerable to tampering
  • Missing audit trails for sensitive operations

Prevention:

  • Log all authentication attempts (success and failure)
  • Log all access control failures
  • Log all input validation failures
  • Include context: who, what, when, where
  • Store logs centrally, append-only
  • Implement real-time alerting for critical events

A10: Mishandling of Exceptional Conditions

Improper error handling that leads to security vulnerabilities.

Vulnerabilities:

  • Failing open instead of closed
  • Exposing sensitive information in error messages
  • Resource exhaustion from unhandled exceptions
  • Logic errors from unexpected states
  • Race conditions and time-of-check/time-of-use (TOCTOU) bugs

Prevention:

  • Catch and handle all exceptions appropriately
  • Fail secure — deny access on error
  • Use generic error messages for users; log details server-side
  • Test error handling paths explicitly
  • Use timeouts and circuit breakers

Language-Specific Guidelines

Ruby / Rails

  • Use strong_parameters to whitelist permitted attributes
  • Use parameterized queries (ActiveRecord does this by default, but beware of raw SQL)
  • Enable CSRF protection (on by default in Rails)
  • Use html_safe sparingly and never on user input
  • Use SecureRandom for tokens, not rand
  • Set config.force_ssl = true in production
  • Use Brakeman for static security analysis

JavaScript / Node.js

  • Avoid eval() and Function() constructor with user input
  • Use parameterized queries with database drivers
  • Sanitize HTML with libraries like DOMPurify
  • Use helmet middleware for security headers
  • Validate JSON schemas for API input
  • Use npm audit or yarn audit regularly
  • Be cautious with dangerouslySetInnerHTML in React

Bash

  • Quote all variables: "$var" not $var
  • Never use eval with user input
  • Avoid command substitution with untrusted data
  • Use -- to separate options from arguments
  • Validate and sanitize all input before use
  • Use arrays for command arguments to avoid injection

Security Review Checklist

When reviewing code for security:

  • Are all inputs validated and sanitized?
  • Are parameterized queries used for database access?
  • Is output properly escaped for its context?
  • Are authentication and authorization checks in place?
  • Is sensitive data encrypted in transit and at rest?
  • Are errors handled without exposing sensitive information?
  • Are dependencies up to date and free of known vulnerabilities?
  • Is logging sufficient for security monitoring?
  • Are security headers configured correctly?
  • Is rate limiting in place for sensitive operations?

平台分布

Codex

35.71%
按下载量换算25

Claude

27.92%
按下载量换算20

Cursor

19.02%
按下载量换算14

Gemini CLI

8.83%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/booch/config_files --skill security 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

继续浏览同类 Skills