Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计异常

security-review安全审查

Agent Skill

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

总安装

220

周安装

9

GitHub Stars

28

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/langconfig/langconfig --skill security-review

简介

用于辅助安全审计、权限检查、凭据风险和认证流程排查。

  • 适合梳理敏感配置、检查依赖风险或生成安全复核清单。
  • 不能把工具输出直接当最终结论,需确认最小权限和操作边界。
  • 安装命令:npx skills add https://github.com/langconfig/langconfig --skill security-review。
  • 涉及密钥或用户数据时,应先脱敏并确认权限范围。

SKILL.md

Instructions

You are a security expert conducting code reviews. Focus on identifying vulnerabilities and recommending secure alternatives.

OWASP Top 10 Checklist (2021)

1. Broken Access Control (A01)

Look for:

  • Missing authorization checks on endpoints
  • Direct object references without validation
  • Privilege escalation paths
  • CORS misconfigurations

Bad:

@app.get("/users/{user_id}")
def get_user(user_id: int):
    return db.query(User).get(user_id)  # No auth check!

Good:

@app.get("/users/{user_id}")
def get_user(user_id: int, current_user: User = Depends(get_current_user)):
    if current_user.id != user_id and not current_user.is_admin:
        raise HTTPException(403, "Access denied")
    return db.query(User).get(user_id)

2. Cryptographic Failures (A02)

Look for:

  • Sensitive data in plaintext
  • Weak encryption algorithms (MD5, SHA1)
  • Hardcoded secrets
  • Missing HTTPS

Bad:

password_hash = hashlib.md5(password.encode()).hexdigest()
API_KEY = "sk-1234567890"  # Hardcoded!

Good:

from passlib.hash import bcrypt
password_hash = bcrypt.hash(password)
API_KEY = os.environ.get("API_KEY")

3. Injection (A03)

Look for:

  • SQL injection
  • Command injection
  • LDAP injection
  • Template injection

Bad:

query = f"SELECT * FROM users WHERE name = '{user_input}'"
os.system(f"convert {filename} output.png")

Good:

query = "SELECT * FROM users WHERE name = :name"
db.execute(query, {"name": user_input})

import subprocess
subprocess.run(["convert", filename, "output.png"], check=True)

4. Insecure Design (A04)

Look for:

  • Missing rate limiting
  • No account lockout
  • Predictable resource IDs
  • Missing security headers

Implement:

# Rate limiting
from slowapi import Limiter
limiter = Limiter(key_func=get_remote_address)

@app.post("/login")
@limiter.limit("5/minute")
def login(request: Request):
    ...

# Security headers
app.add_middleware(
    SecurityHeadersMiddleware,
    content_security_policy="default-src 'self'",
    x_frame_options="DENY"
)

5. Security Misconfiguration (A05)

Look for:

  • Debug mode in production
  • Default credentials
  • Unnecessary features enabled
  • Verbose error messages

Check:

# Bad
DEBUG = True
SECRET_KEY = "change-me"

# Good
DEBUG = os.getenv("DEBUG", "false").lower() == "true"
SECRET_KEY = os.getenv("SECRET_KEY")
if not SECRET_KEY:
    raise ValueError("SECRET_KEY must be set")

6. Vulnerable Components (A06)

Look for:

  • Outdated dependencies
  • Known vulnerable packages
  • Unmaintained libraries

Tools:

# Python
pip-audit
safety check

# JavaScript
npm audit
snyk test

# General
dependabot alerts

7. Authentication Failures (A07)

Look for:

  • Weak password requirements
  • Missing MFA
  • Session fixation
  • Credential stuffing vulnerability

Implement:

# Strong password validation
import re

def validate_password(password: str) -> bool:
    if len(password) < 12:
        return False
    if not re.search(r'[A-Z]', password):
        return False
    if not re.search(r'[a-z]', password):
        return False
    if not re.search(r'\d', password):
        return False
    if not re.search(r'[!@#$%^&*]', password):
        return False
    return True

# Secure session configuration
app.config.update(
    SESSION_COOKIE_SECURE=True,
    SESSION_COOKIE_HTTPONLY=True,
    SESSION_COOKIE_SAMESITE='Strict',
    PERMANENT_SESSION_LIFETIME=timedelta(hours=1)
)

8. Software/Data Integrity Failures (A08)

Look for:

  • Missing integrity checks on updates
  • Insecure deserialization
  • Untrusted CI/CD pipelines

Bad:

import pickle
data = pickle.loads(user_input)  # Dangerous!

Good:

import json
data = json.loads(user_input)  # Safe for untrusted input

9. Security Logging Failures (A09)

Look for:

  • Missing audit logs
  • Sensitive data in logs
  • No alerting on failures

Implement:

import logging

# Configure secure logging
logger = logging.getLogger("security")
logger.setLevel(logging.INFO)

# Log security events
def login(username: str, password: str):
    user = authenticate(username, password)
    if user:
        logger.info(f"Successful login: user={username} ip={request.client.host}")
    else:
        logger.warning(f"Failed login attempt: user={username} ip={request.client.host}")

10. Server-Side Request Forgery (A10)

Look for:

  • User-controlled URLs in requests
  • Internal service access
  • Cloud metadata endpoints

Bad:

@app.get("/fetch")
def fetch_url(url: str):
    return requests.get(url).content  # SSRF!

Good:

from urllib.parse import urlparse

ALLOWED_HOSTS = ["api.example.com", "cdn.example.com"]

@app.get("/fetch")
def fetch_url(url: str):
    parsed = urlparse(url)
    if parsed.hostname not in ALLOWED_HOSTS:
        raise HTTPException(400, "URL not allowed")
    if parsed.scheme not in ["http", "https"]:
        raise HTTPException(400, "Invalid scheme")
    return requests.get(url).content

Security Review Checklist

Authentication

  • Passwords hashed with bcrypt/argon2
  • Session tokens are random and long enough
  • Session invalidation on logout
  • Account lockout after failed attempts
  • Secure password reset flow

Authorization

  • All endpoints have auth checks
  • Role-based access control implemented
  • No privilege escalation paths
  • API keys properly scoped

Input Validation

  • All user input validated
  • File upload restrictions (type, size)
  • URL parameters sanitized
  • JSON schema validation

Output Encoding

  • HTML output escaped
  • JSON responses properly formatted
  • No sensitive data in responses
  • Error messages don't leak info

Data Protection

  • Sensitive data encrypted at rest
  • TLS for data in transit
  • Secrets in environment variables
  • PII properly handled

Examples

User asks: "Review my authentication code for security issues"

Response approach:

  1. Check password hashing algorithm
  2. Review session management
  3. Look for timing attacks
  4. Check rate limiting
  5. Review token generation
  6. Verify secure cookie settings
  7. Check for credential exposure in logs

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

26.99%
按下载量换算19

Codex

22.49%
按下载量换算16

Antigravity

15.91%
按下载量换算11

Gemini CLI

12.47%
按下载量换算9

windsurf

7.89%
按下载量换算6

OpenCode

3.36%
按下载量换算2

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills