application-security
Application security covering threat modeling (STRIDE), OWASP Top 10 (2025), OWASP API Security Top 10 (2023), secure coding review, authentication/authorization patterns, input validation, encryption, security headers, supply chain security, compliance (GDPR/HIPAA/SOC2/PCI-DSS), and security monitoring. Use when reviewing code for vulnerabilities, implementing auth patterns, securing APIs, configuring security headers, hardening supply chain, preventing injection attacks, or preparing for compliance audits.
What this skill does
# Security Security is built-in, not bolted-on. Every feature, endpoint, and data flow must consider security implications. ## OWASP Top 10 (2025) | # | Vulnerability | Prevention | | --- | ---------------------------------- | ----------------------------------------------- | | 1 | Broken Access Control | Verify permissions server-side, default deny | | 2 | Security Misconfiguration | Secure defaults, remove unused features | | 3 | Software Supply Chain Failures | SBOM, dependency scanning, signed builds | | 4 | Cryptographic Failures | Use TLS, hash passwords (argon2id), encrypt PII | | 5 | Injection | Parameterized queries, input validation | | 6 | Insecure Design | Threat modeling, security requirements | | 7 | Authentication Failures | Strong passwords, MFA, secure session mgmt | | 8 | Software or Data Integrity | Verify dependencies, sign releases | | 9 | Logging and Alerting Failures | Log security events, set up alerts | | 10 | Mishandling Exceptional Conditions | Fail securely, generic errors to clients | ## Security Principles | Principle | Rule | | ------------------ | --------------------------------------------------------- | | Defense in Depth | Multiple layers: firewall, auth, authz, encryption, audit | | Least Privilege | Minimum permissions needed, nothing more | | Zero Trust | Never trust, always verify. Assume breach. | | Secure by Default | HTTPS, strict passwords, secure cookies out of the box | | Fail Securely | Access denied on error, no internal details to users | | Validate on Server | Client validation is UX, server validation is security | ## Pre-Deployment Checklist | Area | Requirements | | ------------- | ------------------------------------------------------------------- | | Passwords | Hashed with argon2id (preferred) or bcrypt (12+ rounds) | | Tokens | JWT with EdDSA/ES256, 15min access / 7d refresh, httpOnly cookies | | Sessions | HttpOnly, Secure, SameSite=Strict cookies | | Rate Limiting | Auth endpoints: 5 attempts/15min | | Authorization | All routes check auth server-side, default deny | | Input | Validated with schema (Zod), parameterized SQL | | Uploads | Whitelist types, enforce size limits | | Secrets | No secrets in code or VCS | | Headers | CSP (with nonces), HSTS, Permissions-Policy, X-Content-Type-Options | | CORS | Configured restrictively | | Encryption | PII encrypted at rest (AES-256) and in transit (TLS 1.3) | | Logging | Audit logging for security events | | Dependencies | SBOM generated, `npm audit` clean, Dependabot enabled | ## Threat Modeling (STRIDE) | Threat | Category | Key Mitigations | | ---------------------- | --------------- | ------------------------------------------------------ | | Spoofing | Authentication | MFA, strong passwords, JWT with short expiry | | Tampering | Integrity | Input validation, HTTPS/TLS, signed tokens | | Repudiation | Accountability | Audit logging, digital signatures | | Info Disclosure | Confidentiality | Encryption, least privilege, secret management | | Denial of Service | Availability | Rate limiting, input validation, CDN/DDoS protection | | Elevation of Privilege | Authorization | Authz checks on every request, ABAC, permission audits | ## Risk Levels | Level | Action | | -------- | ------------------------- | | Critical | Immediate action required | | High | Address before launch | | Medium | Address post-launch | | Low | Monitor, may accept risk | ## Compliance Overview | Framework | Scope | Key Requirements | | --------- | ------------------ | ------------------------------------------------------------------ | | GDPR | EU data subjects | Consent, data subject rights, breach notification (72h), DPIA | | HIPAA | US healthcare data | PHI encryption, RBAC, audit logs, BAA with providers | | SOC 2 | SaaS customer data | Security policies, MFA, encryption, incident response | | PCI-DSS | Credit card data | Use payment processor (Stripe), tokenization, network segmentation | ## Anti-Patterns | Anti-Pattern | Fix | | --------------------------------------------- | ------------------------------------------------ | | Security as afterthought | Integrate from design phase | | Client-side authorization | Always verify permissions server-side | | Trusting client data (e.g., userId from body) | Get user ID from authenticated session | | Rolling your own crypto | Use proven libraries (argon2, bcrypt, libsodium) | | Compliance = security | Compliance is the minimum; security is ongoing | | Verbose error responses | Generic messages to clients, details server-side | ## Common Mistakes | Mistake | Correct Pattern | | ------------------------------------------------------------- | ------------------------------------------------------------------- | | Performing authorization checks only on the client side | Always verify permissions server-side; client checks are UX only | | Trusting user-supplied IDs from request body (e.g., userId) | Derive user identity from the authenticated session or token | | Rolling custom cryptography instead of using proven libraries | Use argon2id, bcrypt, or libsodium for all cryptographic operations | | Treating compliance certification as equivalent to security | Compliance is the minimum bar; security requires ongoing review | | Returning verbose error messages with stack traces to clients | Show generic messages to clients; log details server-side only | ## Delegation - **Scan codebase for OWASP Top 10 vulnerabilities and insecure patterns**: Use `Explore` agent to search for SQL injection, XSS, and hardcoded secrets - **Implement authentication, authorization, and security headers end-to-end**: Use `Task` agent to configure JWT, RBAC, CSP, HSTS, and rate limiting - **Design a threat model and security architecture for new features**: Use `Plan` agent to apply STRIDE methodology and map trust boundaries > For database-layer security (RLS policies, Postgres/Supabase hardening, audit trails), use the `database-security` skill. For AI/LLM security (prompt injection defense, agentic zero-trust, MCP tool hardening), use the `secure-ai` skill. ## References - [Threat Modeling](references/threat-modeling.md) — STRIDE methodology, risk assessment process, trust boundaries - [Authentication and Authorization](references/auth.md) — JWT, session-based, OAuth, RBAC, ABAC, IDOR protection - [API Security](references/api-security.md) — OWASP API Security Top 10, object-level authorization, rate limiting, SSRF prevention, security testing - [Input Validat
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.