security

Harden backend services with validation, hashing, and automated penetration testing.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Hashzin-0/Curion --skill security-hashzin-0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security
Source: https://github.com/Hashzin-0/Curion/tree/main/.opencode/skills/security
Command: npx skills add https://github.com/Hashzin-0/Curion --skill security-hashzin-0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents security vulnerabilities in any code path that handles user input, authentication, file uploads, API endpoints, database queries, sessions, or external data by enforcing server-side validation, hardening primitives, and automated testing before delivery.

Core Features & Use Cases

  • Wide attack coverage: Provides concrete defenses for injection, XSS, CSRF, SSRF, IDOR, ReDoS, zip bombs, open redirect, and other common vectors.
  • Secure primitives & patterns: Recommends argon2id for password hashing, JWT algorithm pinning and short expiry, Zod server-side validation, content-based MIME checks, EXIF stripping and re-encoding for uploads, strict security headers, and rate limiting.
  • Workflow integration: Includes a pre-delivery checklist, code examples, and instruction to run an automated security-tester against implemented routes and services before shipping.
  • Use Case: When building a login, registration, file upload handler, or API route, apply these controls and run penetration tests to ensure safe production release.

Quick Start

Run the security skill on backend endpoints handling authentication, file uploads, API routes, or database queries and request an automated penetration test report.

Frequently Asked Questions about security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent injection and XSS attacks in backend API routes?

To prevent injection and XSS attacks in backend API routes, enforce server-side Zod validation and apply strict security headers. This secures endpoints by rejecting malformed user input before it reaches database queries or application logic.

What is the best way to secure file uploads against malicious content?

The best way to secure file uploads is by performing content-based MIME checks and EXIF stripping with re-encoding. This neutralizes hidden payloads and zip bombs by validating actual file content rather than trusting client-provided extension metadata.

How does argon2id password hashing protect authentication flows?

Argon2id password hashing protects authentication flows by using a memory-hard key derivation function to secure credentials. This hardening primitive ensures that compromised login or registration databases remain resistant to brute-force cracking.

Can I run automated penetration testing against my endpoints before shipping?

Yes, you can run automated penetration testing against your endpoints before shipping. The workflow integrates an automated security-tester that validates implemented API routes, file upload handlers, and session management against common exploit vectors.

Does this approach protect against SSRF and CSRF vulnerabilities?

Yes, this approach protects against SSRF and CSRF vulnerabilities by enforcing specific SSRF and CORS protections alongside rate limiting. These controls prevent external data fetching exploits and cross-site request abuse across all server-side validation paths.

When do I need to pin JWT algorithms and set short expiry times?

You need to pin JWT algorithms and set short expiry times when managing sessions or tokens for API endpoints. This strict token management prevents algorithm confusion attacks and limits the window of opportunity if a session token is compromised.