简介
Automated security vulnerability remediation, CVE patching, cryptographic hardening, Zero-Trust protocol implementation, and compliance upgrades.
通过你的 Agent 添加
安装目录:security-patching/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: security-patching
description: Automated security vulnerability remediation, CVE patching, cryptographic hardening, Zero-Trust protocol implementation, and compliance upgrades.
version: 1.0.0
Security Protocol Implementation & Automated Patching Skill
This skill defines the methodology for automatically detecting vulnerabilities, applying surgical security patches, upgrading dependencies safely, and hardening enterprise security protocols.
1. Automated Security Protocol Implementation
A. Authentication & Zero-Trust Protocols
- mTLS (Mutual TLS): Enforce bi-directional certificate verification between internal microservices.
- Strict OIDC / OAuth 2.1: Implement PKCE (Proof Key for Code Exchange), refresh token rotation, and asymmetric token signing (RS256/ES256).
- Zero-Trust Network Access (ZTNA): Never trust requests by network perimeter; validate tenant identity and role token on every RPC/HTTP hop.
B. Cryptographic Standards & Key Management
- Password Hashing: Enforce Argon2id or bcrypt (cost factor >= 12).
- Data Encryption:
- In Transit: TLS 1.3 only (disable TLS 1.0/1.1 and insecure ciphers).
- At Rest: AES-256-GCM with cloud KMS (AWS KMS, GCP Cloud KMS, HashiCorp Vault) and automated key rotation.
- Sensitive Field Masking: Hash or encrypt PII (SSN, credit card, health data) before database storage.
C. Web & API Boundary Hardening
- Enterprise Security Headers:
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; frame-ancestors 'none';
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: geolocation=(), microphone=(), camera=()
- Rate Limiting & Anti-DDoS: Distributed token bucket (Redis) per IP and authenticated tenant.
- Strict CORS Policy: Disallow wildcard
* with credentials; whitelist explicit verified origins.
2. Automated CVE Patching & Dependency Upgrades
- In Transit: TLS 1.3 only (disable TLS 1.0/1.1 and insecure ciphers).
- At Rest: AES-256-GCM with cloud KMS (AWS KMS, GCP Cloud KMS, HashiCorp Vault) and automated key rotation.
- Sensitive Field Masking: Hash or encrypt PII (SSN, credit card, health data) before database storage.
- Enterprise Security Headers:
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; frame-ancestors 'none'; X-Frame-Options: DENY X-Content-Type-Options: nosniff Referrer-Policy: strict-origin-when-cross-origin Permissions-Policy: geolocation=(), microphone=(), camera=() - Rate Limiting & Anti-DDoS: Distributed token bucket (Redis) per IP and authenticated tenant.
- Strict CORS Policy: Disallow wildcard
*with credentials; whitelist explicit verified origins.
2. Automated CVE Patching & Dependency Upgrades
When a vulnerability or CVE is flagged (via SAST, Snyk, Dependabot, or Trivy):
[Step 1: CVE Impact Assessment]
↳ Extract CVE identifier, severity (CVSS), and vulnerable call stack
↓
[Step 2: Dependency Graph Resolution]
↳ Identify direct vs transitive dependency path
↓
[Step 3: Surgical In-Place Patch or Version Bump]
↳ Bump package version or patch package via lockfile override
↓
[Step 4: Breaking Change & Contract Verification]
↳ Run typecheck, unit tests, and API contract tests to guarantee zero regressions