Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计通过

security安全

Agent Skill

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

总安装

220

周安装

9

GitHub Stars

17

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

security 提供安全编码指导和漏洞识别建议,覆盖 OWASP Top 10 关键风险。

  • 强调纵深防御、最小权限、输入验证等原则,适用于代码审查场景。
  • 可辅助分析访问控制、凭据管理和依赖安全风险,生成复核清单。
  • 使用时应避免直接采信工具结论,尤其涉及生产数据或密钥时需人工复核边界。
  • security 属于开发类 Skill,可作为该场景下的辅助能力补充。

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?

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

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