You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POST /api/dfa-analytics/dfa/analyze - Analyze source code
POST /api/dfa-analytics/dfa/analyze-file - Analyze a Python file
POST /api/dfa-analytics/dfa/vulnerabilities - Get only vulnerabilities
POST /api/dfa-analytics/dfa/taint-summary - Get taint analysis summary
GET /api/dfa-analytics/dfa/sources - List taint sources
GET /api/dfa-analytics/dfa/sinks - List security sinks
GET /api/dfa-analytics/dfa/sanitizers - List sanitizers
GET /api/dfa-analytics/dfa/health - Health check
Test Results
✅ Analyzed 5 scopes
Function: vulnerable_sql
Vulnerabilities: 1
[CRITICAL] sql_injection - Line 11
Recommendation: Use parameterized queries or an ORM
Tainted variables: ['user_input', 'query']
Function: vulnerable_command
Vulnerabilities: 1
[HIGH] command_injection - Line 18
Recommendation: Use subprocess with list arguments, avoid shell=True
Tainted variables: ['filename', 'cmd']
Function: safe_sql
Vulnerabilities: 0 (correctly identified as safe)
Tainted variables: ['user_input']
✅ Total vulnerabilities detected: 2
All requirements from Issue #234 have been implemented. The engine correctly:
Tracks variables across functions
Builds data flow graphs with def-use chains
Performs taint analysis from sources to sinks
Detects SQL injection, command injection, and other vulnerabilities
Activity
mrveiss commentedon Nov 30, 2025
Starting implementation of Data Flow Analysis Engine.
Implementation Plan
Will create
backend/api/analytics_dfa.pywith full implementation.mrveiss commentedon Nov 30, 2025
Implementation Complete ✅
Files Created/Modified
backend/api/analytics_dfa.py(~900 lines) - Complete Data Flow Analysis Enginebackend/initialization/routers.py- Added router registrationFeatures Implemented
1. Variable Tracking
2. Data Flow Graph
DataFlowEdge: Represents data flow from source to target variable3. Taint Analysis
4. Security Vulnerability Detection
5. Sanitizer Recognition
API Endpoints
Test Results
All requirements from Issue #234 have been implemented. The engine correctly: