Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问clear审计提醒

software-security-appsec软件安全应用安全

Agent Skill

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

总安装

3,288

周安装

133

GitHub Stars

59

下载量

1,032
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/vasilyu1983/ai-agents-public --skill software-security-appsec

简介

用于辅助安全审计、权限检查和常见漏洞排查。

  • 适合梳理敏感配置、检查依赖风险或分析鉴权逻辑。
  • 可生成安全复核清单,但不能将工具输出直接作为最终结论。
  • 安装命令:npx skills add https://github.com/vasilyu1983/ai-agents-public --skill software-security-appsec
  • 涉及密钥或生产系统时需先确认最小权限和操作边界。

SKILL.md

Software Security & AppSec — Quick Reference

Production-grade security patterns for building secure applications in Jan 2026. Covers OWASP Top 10:2025 (stable) https://owasp.org/Top10/2025/ plus OWASP API Security Top 10 (2023) https://owasp.org/API-Security/ and secure SDLC baselines (NIST SSDF) https://csrc.nist.gov/publications/detail/sp/800-218/final.


When to Use This Skill

Activate this skill when:

  • Implementing authentication or authorization systems
  • Handling user input that could lead to injection attacks (SQL, XSS, command injection)
  • Designing secure APIs or web applications
  • Working with cryptographic operations or sensitive data storage
  • Conducting security reviews, threat modeling, or vulnerability assessments
  • Responding to security incidents or compliance audit requirements
  • Building systems that must comply with OWASP, NIST, PCI DSS, GDPR, HIPAA, or SOC 2
  • Integrating third-party dependencies (supply chain security review)
  • Implementing zero trust architecture or modern cloud-native security patterns
  • Establishing or improving secure SDLC gates (threat modeling, SAST/DAST, dependency scanning)

When NOT to Use This Skill

  • General backend development without security focus → use software-backend
  • Infrastructure/cloud security (IAM, network security, container hardening) → use ops-devops-platform
  • Smart contract auditing as primary focus → use software-crypto-web3
  • ML model security (adversarial attacks, data poisoning) → use ai-mlops
  • Compliance-only questions without implementation → consult compliance team directly

Quick Reference Table

Security TaskTool/PatternImplementationWhen to Use
Primary AuthPasskeys/WebAuthnnavigator.credentials.create()New apps (2026+), phishing-resistant, broad platform support
Password Storagebcrypt/Argon2bcrypt.hash(password, 12)Legacy auth fallback (never store plaintext)
Input ValidationAllowlist regex/^[a-zA-Z0-9_]{3,20}$/All user input (SQL, XSS, command injection prevention)
SQL QueriesParameterized queriesdb.execute(query, [userId])All database operations (prevent SQL injection)
API AuthenticationOAuth 2.1 + PKCEoauth.authorize({code_challenge})Third-party auth, API access (deprecates implicit flow)
Token AuthJWT (short-lived)jwt.sign(payload, secret, {expiresIn: '15m'})Stateless APIs (always validate, 15-30 min expiry)
Data EncryptionAES-256-GCMcrypto.createCipheriv('aes-256-gcm')Sensitive data at rest (PII, financial, health)
HTTPS/TLSTLS 1.3Force HTTPS redirectsAll production traffic (data in transit)
Access ControlRBAC/ABACrequireRole('admin', 'moderator')Resource authorization (APIs, admin panels)
Rate Limitingexpress-rate-limitlimiter({windowMs: 15min, max: 100})Public APIs, auth endpoints (DoS prevention)
Security RequirementsOWASP ASVSChoose L1/L2/L3Security requirements baseline + test scope

Authentication Decision Matrix (Jan 2026)

MethodUse CaseToken LifetimeSecurity LevelNotes
Passkeys/WebAuthnPrimary auth (2026+)N/A (cryptographic)HighestPhishing-resistant, broad platform support
OAuth 2.1 + PKCEThird-party auth5-15 min accessHighReplaces implicit flow, mandatory PKCE
Session cookiesTraditional web apps30 min - 4 hrsMedium-HighHttpOnly, Secure, SameSite=Strict
JWT statelessAPIs, microservices15-30 minMediumAlways validate signature, short expiry
API keysMachine-to-machineLong-livedLow-MediumRotate regularly, scope permissions

Jurisdiction notes (verify): Authentication assurance requirements vary by country, industry, and buyer. Prefer passkeys/FIDO2; treat SMS OTP as recovery-only/low assurance unless you can justify it.

OWASP Top 10:2025 Quick Checklist

#RiskKey ControlsTest
A01Broken Access ControlRBAC/ABAC, deny by default, CORS allowlistBOLA, BFLA, privilege escalation
A02Security MisconfigurationHarden defaults, disable unused features, error handlingDefault creds, stack traces, headers
A03Supply Chain Failures (NEW)SBOM, dependency scanning, SLSA, code signingOutdated deps, typosquatting, compromised packages
A04Cryptographic FailuresTLS 1.3, AES-256-GCM, key rotation, no MD5/SHA1Weak ciphers, exposed secrets, cert validation
A05InjectionParameterized queries, input validation, output encodingSQLi, XSS, command injection, LDAP injection
A06Insecure DesignThreat modeling, secure design patterns, abuse casesDesign flaws, missing controls, trust boundaries
A07Authentication FailuresMFA/passkeys, rate limiting, secure password storageCredential stuffing, brute force, session fixation
A08Integrity FailuresCode signing, CI/CD pipeline security, SRIUnsigned updates, pipeline poisoning, CDN tampering
A09Logging FailuresStructured JSON, SIEM integration, correlation IDsMissing logs, PII in logs, no alerting
A10Exceptional Conditions (NEW)Fail-safe defaults, complete error recovery, input validationError handling gaps, fail-open, resource exhaustion

Decision Tree: Security Implementation

Security requirement: [Feature Type]
    ├─ User Authentication?
    │   ├─ Session-based? → Cookie sessions + CSRF tokens
    │   ├─ Token-based? → JWT with refresh tokens (references/authentication-authorization.md)
    │   └─ Third-party? → OAuth2/OIDC integration
    │
    ├─ User Input?
    │   ├─ Database query? → Parameterized queries (NEVER string concatenation)
    │   ├─ HTML output? → DOMPurify sanitization + CSP headers
    │   ├─ File upload? → Content validation, size limits, virus scanning
    │   └─ API parameters? → Allowlist validation (references/input-validation.md)
    │
    ├─ Sensitive Data?
    │   ├─ Passwords? → bcrypt/Argon2 (cost factor 12+)
    │   ├─ PII/financial? → AES-256-GCM encryption + key rotation
    │   ├─ API keys/tokens? → Environment variables + secrets manager
    │   └─ In transit? → TLS 1.3 only
    │
    ├─ Access Control?
    │   ├─ Simple roles? → RBAC (assets/web-application/template-authorization.md)
    │   ├─ Complex rules? → ABAC with policy engine
    │   └─ Relationship-based? → ReBAC (owner, collaborator, viewer)
    │
    └─ API Security?
        ├─ Public API? → Rate limiting + API keys
        ├─ CORS needed? → Strict origin allowlist (never *)
        └─ Headers? → Helmet.js (CSP, HSTS, X-Frame-Options)

Security ROI & Business Value (Jan 2026)

Security investment justification and compliance-driven revenue. Full framework: references/security-business-value.md

Quick Breach Cost Reference

Indicative figures (source: IBM Cost of a Data Breach 2024; refresh for current year): https://www.ibm.com/reports/data-breach

MetricGlobal AvgUS AvgImpact
Avg breach cost$4.88M$9.36MBudget justification baseline
Cost per record$165$194Data classification priority
Detection time204 days191 daysSIEM/monitoring ROI
DevSecOps adoption-$1.68M-34%Shift-left justification
IR team-$2.26M-46%Highest ROI control

Compliance → Enterprise Sales

CertificationDeals UnlockedSales Impact
SOC 2 Type II$100K+ enterpriseTypically reduces security questionnaire friction
ISO 27001$250K+ EU enterprisePreferred vendor status
HIPAAHealthcare verticalMarket access
FedRAMP$1M+ governmentUS gov market entry

ROI Formula (Quick Reference)

Security ROI = (Risk Reduction - Investment) / Investment × 100

Risk Reduction = Breach Probability × Avg Cost × Control Effectiveness
Example: 15% × $4.88M × 46% = $337K/year risk reduction

Incident Response Patterns (Jan 2026)

Security Incident Playbook

PhaseActions
DetectAlert fires, user report, automated scan
ContainIsolate affected systems, revoke compromised credentials
InvestigateCollect logs, determine scope, identify root cause
RemediatePatch vulnerability, rotate secrets, update defenses
RecoverRestore services, verify fixes, update monitoring
LearnPost-mortem, update playbooks, share lessons

Security Logging Requirements

What to LogFormatRetention
Authentication eventsJSON with correlation ID90 days minimum
Authorization failuresJSON with user context90 days minimum
Data access (sensitive)JSON with resource ID1 year minimum
Security scan resultsSARIF format1 year minimum

Do:

  • Include correlation IDs across services
  • Log to SIEM (Splunk, Datadog, ELK)
  • Mask PII in logs

Avoid:

  • Logging passwords, tokens, or keys
  • Unstructured log formats
  • Missing timestamps or context

Common Security Mistakes

FAIL Bad PracticePASS Correct ApproachRisk
query = "SELECT * FROM users WHERE id=" + userIddb.execute("SELECT * FROM users WHERE id=?", [userId])SQL injection
Storing passwords in plaintext or MD5bcrypt.hash(password, 12) or Argon2Credential theft
res.send(userInput) without encodingres.send(DOMPurify.sanitize(userInput))XSS
Hardcoded API keys in source codeEnvironment variables + secrets managerSecret exposure
Access-Control-Allow-Origin: *Explicit origin allowlistCORS bypass
JWT with no expirationexpiresIn: '15m' + refresh tokensToken hijacking
Generic error messages to logsStructured JSON with correlation IDsDebugging blind spots
SMS OTP as primary factorPasskeys/WebAuthn or TOTP (keep SMS for recovery-only)Credential phishing

Optional: AI/Automation Extensions

Note: Security considerations for AI systems. Skip if not building AI features.

LLM Security Patterns

ThreatMitigation
Prompt injectionInput validation, output filtering, sandboxed execution
Data exfiltrationOutput scanning, PII detection
Model theftAPI rate limiting, watermarking
JailbreakingConstitutional AI, guardrails

AI-Assisted Security Tools

ToolUse Case
SemgrepStatic analysis with AI rules
Snyk CodeAI-powered vulnerability detection
GitHub CodeQLSemantic code analysis

.NET/EF Core Crypto Integration Security

For C#/.NET crypto/fintech services using Entity Framework Core, see:

Key rules summary:

  • No secrets in code — use configuration/environment variables
  • No sensitive data in logs (tokens, keys, PII)
  • Use decimal for financial values, never double/float
  • EF Core or parameterized queries only — no dynamic SQL
  • Generic error messages to users, detailed logging server-side

Navigation

Core Resources (Updated 2024-2026)

Security Business Value & ROI

2025 Updates & Modern Architecture

API Security, Incident Response & Threat Modeling

Foundation Security Patterns

External References

Templates by Domain

Web Application Security

API Security

Cloud-Native Security

Blockchain & Web3 Security

Related Skills

Security Ecosystem

AI/LLM Security

Quality & Resilience


Trend Awareness Protocol

IMPORTANT: When users ask recommendation questions about application security, you MUST use WebSearch to check current trends before answering. If WebSearch is unavailable, use data/sources.json + web browsing and state what you verified vs assumed.

Trigger Conditions

  • "What's the best approach for [authentication/authorization]?"
  • "What should I use for [secrets/encryption/API security]?"
  • "What's the latest in application security?"
  • "Current best practices for [OWASP/zero trust/supply chain]?"
  • "Is [security approach] still recommended in 2026?"
  • "What are the latest security vulnerabilities?"
  • "Best auth solution for [use case]?"

Required Searches

  1. Search: "application security best practices 2026"
  2. Search: "OWASP Top 10 2025 2026"
  3. Search: "[authentication/authorization] trends 2026"
  4. Search: "supply chain security 2026"

What to Report

After searching, provide:

  • Current landscape: What security approaches are standard NOW
  • Emerging threats: New vulnerabilities or attack vectors
  • Deprecated/declining: Approaches that are no longer secure
  • Recommendation: Based on fresh data and current advisories

Example Topics (verify with fresh search)

  • OWASP Top 10 updates
  • Passkeys and passwordless authentication
  • AI security concerns (prompt injection, model poisoning)
  • Supply chain security (SBOMs, dependency scanning)
  • Zero trust architecture implementation
  • API security (BOLA, broken auth)

Pre-Implementation Security Gate

Before building any feature that involves storage, uploads, or user-generated content:

  1. Threat model first: Identify what an attacker could do with this feature (file upload → malware, storage → data exfiltration, user content → XSS).
  2. Check OWASP mapping: Map the feature to relevant OWASP Top 10 categories above.
  3. Define constraints before coding: Set file type allowlist, size limits, storage isolation, and access controls before writing the first line.
  4. Review existing security patterns: Check if the project already has upload/storage security utilities to reuse.

Building storage/upload features without upfront security constraints leads to retroactive hardening that is more expensive and error-prone.

Operational Playbooks

Fact-Checking

  • Use web search/web fetch to verify current external facts, versions, pricing, deadlines, regulations, or platform behavior before final answers.
  • Prefer primary sources; report source links and dates for volatile information.
  • If web access is unavailable, state the limitation and mark guidance as unverified.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

28.06%
按下载量换算290

Cursor

23.17%
按下载量换算239

Gemini CLI

19.71%
按下载量换算203

Antigravity

12.87%
按下载量换算133

Codex

8.18%
按下载量换算84

OpenCode

3.27%
按下载量换算34

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills