МЕТОДОЛОГИЯ ФОРМИРОВАНИЯ КОНТЕКСТА УЯЗВИМОСТЕЙ ДЛЯ ИХ ОБНАРУЖЕНИЯ ЯЗЫКОВЫМИ МОДЕЛЯМИ НА ОСНОВЕ ГРАФА СВОЙСТВ КОДА

Kirill I. Gladkikh, А. М. Шабалин, Александр Анатольевич Захаров · Journal of the Ural Federal district Information security · 2026

The article addresses the problem of constructing program context for vulnerability detection in source code using language models. Function-level analysis often loses interproceduraldependencies, data flows, and usage conditions that determine whether a vulnerability canmanifest. The proposed methodology is based on a Code Property Graph that combines program structure, call relations, and data-flow dependencies. The methodology includes parsingPython projects, constructing nodes for functions, classes, variables, and code blocks, creatingcall-graph and data-flow edges, loading the graph into Neo4j, linking static-analysis findingswith code nodes, extracting a local subgraph around a potentially vulnerable fragment, andranking context elements by graph distance and repetition frequency. The resulting context isadapted to the context-window limit of a language model. The evaluation on 400 CVEFixesbased instances showed a reduction in false-negative predictions and an increase in the Phicoefficient for most tested models. The results indicate that semantically grounded programcontext improves the robustness of language-model-based vulnerability detection.

Cited by 0 works. Open-access PDF

Authors