Home / Companies / GitLab / Blog / Post Details
Content Deep Dive

How GitLab tracks vulnerabilities through refactors and reformatting

Blog post from GitLab

Post Details
Company
Date Published
Author
Julian Thome
Word Count
454
Company Posts That Month
19
Language
English
Hacker News Points
-
Post removed?
No
Summary

GitLab’s normalized Scope+Offset vulnerability-tracking method improves security scan consistency by identifying findings according to their enclosing code scope and position while disregarding comments and blank lines. The earlier Scope+Offset approach reduced unnecessary re-auditing compared with file-and-line tracking, but non-functional edits could still shift offsets and create duplicate findings. In a benchmark spanning 439 files in seven languages and 2,247 deliberately disruptive commits, the original method generated 1,361 duplicate fingerprints, whereas the normalized method generated none and reduced unique fingerprints by 43%. Available in GitLab as the scope_offset_compressed algorithm, the approach supports several major programming languages, does not affect scanning time because it reuses existing parse trees, and remains compatible with heterogeneous SAST tool configurations.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.