DEVELOPMENT AND EMPIRICAL EVALUATION OF A HYBRID CONTEXT-AWARE VERIFICATION MODEL FOR MITIGATING INJECTION VULNERABILITIES IN PYTHON WEB FRAMEWORKS

Injection flaws—predominantly SQL injection (CWE-89), OS command injection (CWE-78), and dynamic code injection (CWE-94)—persist as foundational threats in modern web application architectures. This paper investigates the structural mechanics of injection flaws and adjacent insecure coding anti-patterns within Python back-end environments, establishing an empirical comparison among three prevalent open-source static application security testing (SAST) engines: Bandit (v1.9.4), Ruff (v0.16.8, flake8-bandit rules), and Semgrep (v1.180.0). Evaluations conducted across a systematically curated 60-case ground-truth benchmark and industrial-scale codebases—the Django 5.2.7 framework (125,906 LOC) and an enterprise-grade Flask-Commerce microservice (42,500 LOC)—demonstrate that classical heuristic-based and sink-centred AST scanners suffer from systematic data-flow blindness. Specifically, existing tools uniformly fail to resolve augmented string assignments (+=) and path traversal flows (False Negatives), while aggressively triggering False Positives on verified allow-lists and robust sanitization routines (shlex.quote). To address these limitations, this study develops and validates HybSec-Py, a hybrid context-aware verification framework that synthesizes Static Single Assignment (SSA) AST unifications, interprocedural data-dependency taint graphs governed by formal predicate logic, and dry-run syntax-mutation probing executed within an isolated hardware-software testbed. The proposed model achieves an overall F1-score of 0.987, completely eliminating false negatives while curtailing false alarms by 88%. McNemar's statistical test confirms that the diagnostic superiority of the proposed framework over existing SAST analyzers is statistically significant (χ² = 8.57, p = 0.0034 < 0.01).

Authors

Publication Details

Journal
Techscience.uz.
Published
2026-11-15
DOI
https://doi.org/10.47390/ts-v4i11y2026n02
Primary Topic
Web Application Security Vulnerabilities
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

DEVELOPMENT AND EMPIRICAL EVALUATION OF A HYBRID CONTEXT-AWARE VERIFICATION MODEL FOR MITIGATING INJECTION VULNERABILITIES IN PYTHON WEB FRAMEWORKS

Shohruh Safarov
Techscience.uz.
Web Application Security Vulnerabilities
article

DEVELOPMENT AND EMPIRICAL EVALUATION OF A HYBRID CONTEXT-AWARE VERIFICATION MODEL FOR MITIGATING INJECTION VULNERABILITIES IN PYTHON WEB FRAMEWORKS

Shohruh Safarov
article en

Abstract

Injection flaws—predominantly SQL injection (CWE-89), OS command injection (CWE-78), and dynamic code injection (CWE-94)—persist as foundational threats in modern web application architectures. This paper investigates the structural mechanics of injection flaws and adjacent insecure coding anti-patterns within Python back-end environments, establishing an empirical comparison among three prevalent open-source static application security testing (SAST) engines: Bandit (v1.9.4), Ruff (v0.16.8, flake8-bandit rules), and Semgrep (v1.180.0). Evaluations conducted across a systematically curated 60-case ground-truth benchmark and industrial-scale codebases—the Django 5.2.7 framework (125,906 LOC) and an enterprise-grade Flask-Commerce microservice (42,500 LOC)—demonstrate that classical heuristic-based and sink-centred AST scanners suffer from systematic data-flow blindness. Specifically, existing tools uniformly fail to resolve augmented string assignments (+=) and path traversal flows (False Negatives), while aggressively triggering False Positives on verified allow-lists and robust sanitization routines (shlex.quote). To address these limitations, this study develops and validates HybSec-Py, a hybrid context-aware verification framework that synthesizes Static Single Assignment (SSA) AST unifications, interprocedural data-dependency taint graphs governed by formal predicate logic, and dry-run syntax-mutation probing executed within an isolated hardware-software testbed. The proposed model achieves an overall F1-score of 0.987, completely eliminating false negatives while curtailing false alarms by 88%. McNemar's statistical test confirms that the diagnostic superiority of the proposed framework over existing SAST analyzers is statistically significant (χ² = 8.57, p = 0.0034 < 0.01).

Techscience.uz.Vol. 4(11)
Web Application Security Vulnerabilities
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon