Token导航 LogoToken导航

Agent Skill · 开发

shared-security-auth-security(共享安全 身份验证安全)

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

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

总安装 282周安装 12GitHub Stars 5下载 99核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/agents-inc/skills --skill shared-security-auth-security

这个 Skill 是做什么的

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

用于辅助安全审计、权限检查和认证流程分析。适合让 Agent 梳理敏感配置、检查依赖风险或生成安全复核清单。使用时不能把工具输出直接当最终结论。shared-security-auth-security 属于开发类 Skill,可作为该场景下的辅助能力补充。涉及密钥、令牌或生产系统时,应先确认最小权限和脱敏方式。

当前无额外底部简介内容,可参考来源仓库进一步了解功能细节。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

shared-security-auth-security 怎么安装?

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

shared-security-auth-security 支持哪些 AI 工具?

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

shared-security-auth-security 需要什么权限?

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

shared-security-auth-security 是免费的吗?

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

shared-security-auth-security 用的人多吗?

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

shared-security-auth-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有提醒
shared-security-auth-security

共享安全 身份验证安全 · 本页

2825接触敏感数据未明确通过

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

SKILL.md 原文

Security Patterns

Quick Guide: Managing secrets? Use.env.local (gitignored), CI secrets, rotate on compromise or team changes. Dependency security? Enable automated scanning (Dependabot), patch critical vulns within 24hrs. XSS prevention? Modern frameworks auto-escape output by default - never bypass with raw HTML injection unless sanitized with DOMPurify. Set CSP headers. CODEOWNERS? Require security team review for auth/,.env.example, workflows.

Detailed Resources:

Additional Examples:


<critical_requirements>

CRITICAL: Before Using This Skill

All code must follow project conventions in CLAUDE.md (kebab-case, named exports, import ordering, import type, named constants)

(You MUST NEVER commit secrets to the repository - use.env.local and CI secrets only)

(You MUST sanitize ALL user input before rendering raw HTML - use DOMPurify before any HTML injection)

(You MUST patch critical/high vulnerabilities within 24 hours - use Dependabot for automated scanning)

(You MUST use HttpOnly cookies for authentication tokens - NEVER localStorage or sessionStorage)

(You MUST configure CODEOWNERS for security-sensitive files - require security team approval)

</critical_requirements>


Auto-detection: security, secrets management, XSS prevention, CSRF protection, Dependabot, vulnerability scanning, authentication, DOMPurify, CSP headers, CODEOWNERS, HttpOnly cookies

When to use:

  • Managing secrets securely (never commit, use.env.local and CI secrets)
  • Setting up Dependabot for automated vulnerability scanning
  • Preventing XSS attacks (framework auto-escaping, DOMPurify, CSP headers)
  • Configuring CODEOWNERS for security-sensitive code
  • Implementing secure authentication and token storage

When NOT to use:

  • For general code quality reviews (not a security concern)
  • For performance optimization (different domain)
  • For CI/CD pipeline setup (security patterns here are for code, not infrastructure)
  • When security review would delay critical hotfixes (document for follow-up)

Key patterns covered:

  • Never commit secrets (.gitignore, CI secrets, rotation policies quarterly)
  • Automated dependency scanning with Dependabot (critical within 24h)
  • XSS prevention (framework auto-escaping, DOMPurify for HTML, CSP headers)
  • CSRF protection with tokens and SameSite cookies
  • CODEOWNERS for security-sensitive areas (.env.example, auth code, workflows)
  • Secure token storage (HttpOnly cookies, in-memory access tokens)

Philosophy

Security is not a feature - it's a foundation. Every line of code must be written with security in mind. Defense in depth means multiple layers of protection, so if one fails, others catch the attack.

When to use security patterns:

  • Always - security is not optional
  • When handling user input (sanitize and validate)
  • When managing secrets (environment variables, rotation)
  • When storing authentication tokens (HttpOnly cookies)
  • When setting up CI/CD (vulnerability scanning, CODEOWNERS)

When NOT to compromise:

  • Never skip HTTPS in production
  • Never trust client-side validation alone
  • Never commit secrets to repository
  • Never use localStorage for sensitive tokens
  • Never bypass security reviews for critical code

Core principles:

  • Least privilege: Grant minimum necessary access
  • Defense in depth: Multiple layers of security
  • Fail securely: Default to deny, not allow
  • Don't trust user input: Always validate and sanitize
  • Assume breach: Plan for when (not if) attacks happen

Core Patterns

Pattern 1: Secret Management

Never commit secrets to the repository. Use environment variables in.env.local (gitignored) for development, and CI/CD secret managers for production. Rotate secrets quarterly or on team member departure.

What Are Secrets

Secrets include: API keys, tokens, passwords, database credentials, private keys, certificates, OAuth client secrets, encryption keys, JWT secrets.

Where to Store Secrets

Development:

  • .env.local (gitignored)
  • Per-developer local overrides
  • Never committed to repository

CI/CD:

  • GitHub Secrets
  • Vercel Environment Variables
  • GitLab CI/CD Variables
  • Other platform secret managers

Production:

  • Environment variables (injected by platform)
  • Secret management services (AWS Secrets Manager, HashiCorp Vault)
  • Never hardcoded in code
Rotation Policies

Note: NIST SP 800-63-4 (2025) recommends against mandatory periodic password rotation for users. Instead, use event-based rotation (on compromise, team member departure, or security incident). Periodic rotation is still recommended for service accounts and privileged access.

Secret TypeRotation Frequency
Service account credentials90 days (quarterly)
API keys365 days (annually) or on compromise
User passwordsOn compromise only (NIST 2025 guidance)
Privileged account passwords90 days (quarterly)
Certificates30 days warning before expiry
All secretsImmediately on team member departure

See examples/core.md for code examples.


Pattern 2: Dependency Security

Enable automated vulnerability scanning with Dependabot to catch security issues in dependencies. Patch critical vulnerabilities within 24 hours, high within 1 week, medium within 1 month.

Update Policies

Security updates:

  • Critical vulnerabilities - Immediate (within 24 hours)
  • High vulnerabilities - Within 1 week
  • Medium vulnerabilities - Within 1 month
  • Low vulnerabilities - Next regular update cycle

Regular updates:

  • Patch updates (1.2.3 -> 1.2.4) - Auto-merge if tests pass
  • Minor updates (1.2.0 -> 1.3.0) - Review changes, test, merge
  • Major updates (1.0.0 -> 2.0.0) - Plan migration, test thoroughly

See examples/dependency-security.md for Dependabot configuration and CI security check scripts.


Pattern 3: XSS Prevention

Modern UI frameworks auto-escape user input by default. Never bypass this protection with raw HTML injection unless sanitized with DOMPurify. Configure Content Security Policy (CSP) headers to block unauthorized scripts.

Framework Auto-escaping

Most frameworks escape text content automatically. Only explicit HTML injection APIs (e.g., dangerouslySetInnerHTML, v-html, {@html}) bypass this protection.

DOMPurify Sanitization

When HTML rendering is required, use DOMPurify with a whitelist of allowed tags and attributes.

Content Security Policy

Configure CSP headers to prevent unauthorized script execution even if XSS occurs.

See examples/xss-prevention.md for DOMPurify and CSP code examples.


OWASP Top 10:2025 Coverage

This skill addresses the following OWASP Top 10:2025 categories:

OWASP CategoryCoverage
A01: Broken Access ControlCODEOWNERS, branch protection, rate limiting
A02: Security MisconfigurationCSP headers, security headers, Dependabot
A03: Software Supply Chain FailuresDependabot, CI security audits, dependency review
A04: Cryptographic FailuresHttpOnly/Secure cookies, HTTPS enforcement
A05: InjectionDOMPurify, framework auto-escaping, CSP
A07: Authentication FailuresHttpOnly cookies, session management
A10: Mishandling of Exceptional ConditionsFail securely principle, error handling

Defense in depth layers:

  • Secrets:.env.local (dev) -> CI secrets -> Environment variables (production)
  • XSS: Framework auto-escaping -> DOMPurify sanitization -> CSP headers
  • CSRF: Tokens -> SameSite cookies -> Server-side validation
  • Dependencies: Automated scanning -> CI security audit -> Manual review

<red_flags>

RED FLAGS

High Priority Issues:

  • Committing secrets to repository (.env files, API keys in code)
  • Injecting raw HTML with unsanitized user input (enables XSS attacks)
  • Storing authentication tokens in localStorage/sessionStorage (accessible to XSS)
  • No CSRF protection on state-changing operations (allows forged requests)
  • Critical/high vulnerabilities unpatched (exploit window open)

Medium Priority Issues:

  • No Dependabot configuration (manual vulnerability detection only)
  • Missing CODEOWNERS for security-sensitive files (no automatic review)
  • No CSP headers configured (no script execution controls)
  • Individual CODEOWNERS instead of teams (single point of failure)
  • Trusting client-side validation only (easily bypassed)
  • Exposing internal error details to users (information leakage)

Gotchas & Edge Cases:

  • .env.local is gitignored by default in some frameworks but not all - verify your .gitignore
  • DOMPurify's default config allows <style> and <form> tags - use explicit whitelist
  • SameSite=Strict blocks legitimate cross-site requests - use Lax for general session cookies
  • CSP nonces must be unique per request - generate fresh nonces server-side
  • X-XSS-Protection header is deprecated - set to "0" or omit, use CSP instead

See reference.md for common mistakes, anti-patterns with code examples, and decision frameworks.

</red_flags>


<critical_reminders>

CRITICAL REMINDERS

All code must follow project conventions in CLAUDE.md

(You MUST NEVER commit secrets to the repository - use.env.local and CI secrets only)

(You MUST sanitize ALL user input before rendering raw HTML - use DOMPurify before any HTML injection)

(You MUST patch critical/high vulnerabilities within 24 hours - use Dependabot for automated scanning)

(You MUST use HttpOnly cookies for authentication tokens - NEVER localStorage or sessionStorage)

(You MUST configure CODEOWNERS for security-sensitive files - require security team approval)

Failure to follow these rules will create security vulnerabilities enabling XSS attacks, token theft, CSRF attacks, and data breaches.

</critical_reminders>

平台分布

Codex

37.63%
按下载量换算37

Claude

28.42%
按下载量换算28

Cursor

17.62%
按下载量换算17

Gemini CLI

9.44%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills