Back to Projects
Security

AutoSTRIDE-DJ

Automated security analysis for Django

Automated STRIDE threat modeling for Django apps. Static analysis produces deterministic threat reports (JSON/MD/CSV) and data flow diagrams (Mermaid/Graphviz).

PythonDjangoSecuritySTRIDEThreat Modeling
Demo Coming SoonView Source Code

The Problem

Manual threat modeling is time-consuming and inconsistent. Security reviews happen too late in the development cycle. Developers don't have security expertise to identify threats. Existing threat modeling tools are expensive and complex.

The Solution

A CLI tool that analyzes Django projects and automatically identifies potential threats using the STRIDE methodology. Scans views, models, forms, and settings to detect issues like missing authentication, SQL injection risks, CSRF gaps, and more. Produces structured reports and data flow diagrams.

Results

  • Threat modeling in minutes instead of hours
  • Consistent, reproducible security analysis
  • Developers can run security checks in CI/CD
  • DFD diagrams generated automatically
  • Multiple output formats (JSON, MD, CSV)

Key Features

Automatic STRIDE threat identification
Static analysis of Django views, models, forms
Settings analysis (DEBUG, ALLOWED_HOSTS, etc.)
Data Flow Diagram generation (Mermaid + Graphviz)
Threat report in JSON, Markdown, CSV formats
CI/CD integration (exit codes for failed checks)
Configurable severity thresholds
Exclude patterns for false positives

Tech Stack

TechnologyPurpose
PythonCore implementation
AST (Abstract Syntax Tree)Static code analysis
DjangoTarget framework
MermaidDFD rendering
Graphviz DOTAlternative DFD format
ClickCLI interface

Security

  • No code execution (static analysis only)
  • No external network calls
  • Safe to run on any codebase
  • Open source, auditable

Performance

  • Analyzes typical Django project in <10s
  • Parallel file processing
  • Cached AST parsing
  • Minimal memory footprint

Deployment

  • pip install autostride-dj
  • Runs as CLI tool
  • GitHub Actions integration example
  • Pre-commit hook support

Want this for your business?

I can build a custom version tailored to your specific needs.

Get a Quote