[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-506235-105":59,"doc-detail-506235-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","scalable-defect-detection-via-traversal-on-code-graph-arxiv-preprint","Scalable Defect Detection via Traversal on Code Graph - arXiv preprint","","Detecting defects and vulnerabilities early in software development is a persistent challenge. Static analysis avoids runtime execution and can identify likely weaknesses, while recent graph-based approaches use Code Property Graph (CPG) to represent code structure and semantics. However, existing tools suffer from poor scalability due to oversized CPGs and inefficient, overly specific query rules, leading to costly analysis on large codebases and reduced generality. QVoG improves performance with compressed CPG representation, offers a declarative query language, and integrates machine learning to generalize vulnerability detection, achieving faster analysis on million-line projects.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/scalable-defect-detection-via-traversal-on-code-graph-arxiv-preprint/506235/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/scalable-defect-detection-via-traversal-on-code-graph-arxiv-preprint/506235.png","ImageObject",300,407,{"name":92,"@type":93},"Margaret","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-15","2026-10-05",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does QVoG target in vulnerability detection?","Question",{"text":112,"@type":113},"QVoG targets the difficulty of detecting defects and vulnerabilities early using static analysis while overcoming performance and scalability bottlenecks caused by large, complex CPGs and overly specific query rules.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does QVoG address CPG scalability and performance?",{"text":117,"@type":113},"QVoG uses a compressed CPG representation with a simplified structure that replaces many AST nodes using a single statement node as attributes, reducing graph traversal steps and improving overall query efficiency.",{"name":119,"@type":110,"acceptedAnswer":120},"What additional capability does QVoG introduce beyond graph queries?",{"text":121,"@type":113},"QVoG integrates machine learning to make vulnerability detection more general by training models on existing datasets and combining them with the query engine to improve generalization.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},506235,1791383195,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},137451207643,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Scalable Defect Detection via Traversal on Code Graph  \nZhengyao Liu  \nBeihang University Beijing, China [zhengyaoliu@buaa.edu.cn](zhengyaoliu@buaa.edu.cn)  \nShuo Hong  \nBeihang University Beijing, China [hongshuo@buaa.edu.cn](hongshuo@buaa.edu.cn)  \nXitong Zhong  \nBeihang University Beijing, China [3012290812@qq.com](3012290812@qq.com)  \nXiang Gao∗ Beihang University Beijing, China [xiang_gao@buaa.edu.cn](xiang_gao@buaa.edu.cn)  \nXingjing Deng  \nFuzhou University Fuzhou, China [micro6947@gmail.com](micro6947@gmail.com)  \nHailong Sun Beihang University  \nBeijing, China [sunhl@buaa.edu.cn](sunhl@buaa.edu.cn)  \narXiv :2406 .08098v1 [ cs . SE] 12 Jun 2024  \nABSTRACT  \nDetecting defects and vulnerabilities in the early stage has long been a challenge in software engineering. Static analysis, a technique that inspects code without execution, has emerged as a key strategy to address this challenge. Among recent advancements, the use of graph-based representations, particularly Code Property Graph (CPG), has gained traction due to its comprehensive depiction of code structure and semantics. Despite the progress, existing graph-based analysis tools still face performance and scalability issues. The main bottleneck lies in the size and complexity of CPG, which makes analyzing large codebases inefficient and memory-consuming. Also, query rules used by the current tools can be over-specific. Hence, we introduce QVoG, a graph-based static analysis platform for detecting defects and vulnerabilities. It employs a compressed CPG representation to maintain a reasonable graph size, thereby enhancing the overall query efficiency. Based on the CPG, it also offers a declarative query language to simplify the queries. Furthermore, it takes a step forward to integrate machine learning to enhance the generality of vulnerability detection. For projects consisting of 1,000,000+ lines of code, QVoG can complete analysis in approximately 15 minutes, as opposed to 19 minutes with CodeQL.  \n1 INTRODUCTION  \nIn today’s software engineering, effectively detecting defects or vulnerabilities in the early stages of development remains a challenge. The later they are discovered, the higher the cost of repair [1] . To address this issue, static analysis has long been a useful technique [2]. It requires no dynamic information but can provide satisfying results for possible vulnerabilities in the code.  \nIn recent years, there has been a growing interest in vulnerability detection using graph queries. The main concept involves using the Code Property Graph (CPG) to comprehensively represent the source code [3] . Since vulnerable code often follows specific patterns, the detection process can be translated into graph queries. Static analysis tools that rely on graph queries typically operate in two stages: extracting the CPG from the source code and then executing queries on the graph. Joern 1 [3] and cpg 2 [4] are two examples that make use of CPG for vulnerability detection.  \n∗ Corresponding author 1[https://joern.io/](https://joern.io/)  \n2[https://github.com/Fraunhofer-AISEC/cpg](https://github.com/Fraunhofer-AISEC/cpg)  \n1.1 Challenges  \nAlthough the current detection tools and methods based on graph query analysis have yielded good results, there are still challenges that need to be addressed.  \n• Most of the existing code analysis tools construct the CPG atthe AST level, which results in an extremely huge graph as the codebase grows. Complex CPG may impact the performance of the analysis.  \n• Existing query language is complex and difficult to get started. For example, Joern uses a Scala-based domain-specific query language3 , which may increase the complexity of writing custom queries for users.  \n• Analysis for large projects requires more resources and time. Memory usage is the main resource concern, and machines with low RAM maybe unable to perform large-scale analysis. So, more attention is needed to the scalability of analysis on large projects.  \n• D","cbCaipv7jsJRBx18","https://ap.wps.com/l/cbCaipv7jsJRBx18","pdf",1483393,11,"English","# Abstract\n# Introduction\n## Challenges\n## Overall Methodology\n## Evaluation","[{\"question\":\"What problem does QVoG target in vulnerability detection?\",\"answer\":\"QVoG targets the difficulty of detecting defects and vulnerabilities early using static analysis while overcoming performance and scalability bottlenecks caused by large, complex CPGs and overly specific query rules.\"},{\"question\":\"How does QVoG address CPG scalability and performance?\",\"answer\":\"QVoG uses a compressed CPG representation with a simplified structure that replaces many AST nodes using a single statement node as attributes, reducing graph traversal steps and improving overall query efficiency.\"},{\"question\":\"What additional capability does QVoG introduce beyond graph queries?\",\"answer\":\"QVoG integrates machine learning to make vulnerability detection more general by training models on existing datasets and combining them with the query engine to improve generalization.\"}]","Scalable Defect Detection via Traversal on Code Graph - arXiv preprint | PDF",1791161762,28,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c31609c139a8c00220f8670e16573d22.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e19fa4be3aa07dbb5ef3c2053df737e0.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/da81400496da5f87a6946f5c7e4e4509.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/1befdbe55699a978df814546232ac990.webp",980,1268]