security-django

Scan Django projects for security misconfigurations and common vulnerabilities.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps identify and fix common security vulnerabilities in Django applications, ensuring your web applications are robust against attacks.

Core Features & Use Cases

  • Settings Audit: Reviews critical Django settings like SECRET_KEY, DEBUG, and ALLOWED_HOSTS for security misconfigurations.
  • Middleware Check: Verifies the presence and correct configuration of essential security middleware.
  • Vulnerability Detection: Scans for issues like CSRF protection bypass, SQL injection, command injection, and missing authentication decorators.
  • Use Case: Before deploying a new Django feature, run this Skill to proactively catch potential security flaws in your settings.py and view logic.

Quick Start

Run the security scan on the current directory to check for Django security issues.

Frequently Asked Questions about security-django

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

FAQPage Schema
How do I audit Django security settings for misconfigurations?

To audit Django security settings, scan your project files for misconfigurations in SECRET_KEY, DEBUG, ALLOWED_HOSTS, and CSRF protection. This process identifies insecure settings and flags missing security middleware in your Django application.

What is the best way to scan Django code for SQL injection vulnerabilities?

The best way to scan Django code for SQL injection is to perform pattern matching across your project files. This identifies common vulnerabilities like SQL injection, command injection, and missing authentication decorators in your view logic.

Do I need ripgrep installed to run a Django security audit?

Yes, you need ripgrep installed to run this Django security audit. The scanner utilizes ripgrep for efficient pattern matching across project files to accurately detect security vulnerabilities and settings misconfigurations.

Can I check for missing authentication decorators in my Django views?

Yes, you can check for missing authentication decorators in Django views. The security scan reviews your view logic to detect missing authentication, CSRF protection bypasses, and other common code vulnerabilities.

When should I scan my Django project for security vulnerabilities?

You should scan your Django project for security vulnerabilities before deploying a new feature. Proactively catching potential security flaws in your settings.py and view logic ensures your web applications are robust against attacks.

What security middleware configurations does a Django audit verify?

A Django security audit verifies the presence and correct configuration of essential security middleware. It checks your settings.py to ensure critical middleware is properly loaded to protect against common web vulnerabilities.