security-convex

Scan Convex applications for authentication, authorization, and input validation vulnerabilities.

Updated Feb 9, 2025
One-click install
npx skills add https://github.com/xeon826/dotfiles --skill security-convex-xeon826
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-convex
Source: https://github.com/xeon826/dotfiles/tree/main/opencode/skill/security-convex
Command: npx skills add https://github.com/xeon826/dotfiles --skill security-convex-xeon826

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers identify and fix common security vulnerabilities in Convex applications, ensuring robust authentication, authorization, and data validation.

Core Features & Use Cases

  • Auth Auditing: Detects missing authentication checks in queries and mutations.
  • Authorization Checks: Identifies potential Insecure Direct Object References (IDOR) and improper access controls.
  • Input Validation: Flags functions lacking proper argument validation.
  • Use Case: Review your Convex codebase to ensure that sensitive data is only accessible by authenticated users and that all data mutations are properly validated to prevent security breaches.

Quick Start

Run the security scan script to identify potential vulnerabilities in your Convex project.

Frequently Asked Questions about security-convex

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

FAQPage Schema
How do I audit my Convex backend for missing authentication checks?

Auditing your Convex backend for missing authentication involves scanning for queries and mutations that lack proper auth verification. This process identifies unprotected functions to ensure sensitive data remains inaccessible to unauthenticated users.

What is Insecure Direct Object Reference in Convex and how do I check for it?

Insecure Direct Object Reference (IDOR) in Convex occurs when users access database records without proper authorization checks. You can detect IDOR vulnerabilities by scanning your codebase for improper access controls on internal and public functions.

How do I validate inputs in Convex mutations to prevent security breaches?

Validating inputs in Convex mutations requires defining strict argument validators for all functions. An automated security scan can flag mutations lacking proper argument validation to prevent security breaches and data corruption.

Does this security audit work with existing Convex projects?

Yes, the security audit works with existing Convex projects by scanning the current codebase. It reviews internal versus public functions to identify potential vulnerabilities without requiring application downtime.

What is the best way to secure Convex public functions against unauthorized access?

The best way to secure Convex public functions is to implement strict authentication and authorization checks before data access. Scanning for the misuse of internal versus public functions helps identify exposed endpoints requiring hardening.

Why does my Convex query expose sensitive data to unauthenticated users?

Your Convex query likely exposes sensitive data because it is missing authentication checks or has improper access controls. An automated security scan identifies these exact vulnerabilities by reviewing function visibility and authorization logic.