paper-with-me

Papers

Trace Gadgets: Minimizing Code Context for Machine Learning-Based Vulnerability Prediction

2025-04-18 · Felix Mächtle, Nils Loose, Tim Schulz, Florian Sieck, Jan-Niclas Serr, Ralf Möller, Thomas Eisenbarth

As the number of web applications and API endpoints exposed to the Internet continues to grow, so does the number of exploitable vulnerabilities. Manually identifying such vulnerabilities is tedious. Meanwhile, static security scanners tend to produce many false positives. While machine learning-based approaches are promising, they typically perform well only in scenarios where training and test data are closely related. A key challenge for ML-based vulnerability detection is providing suitable and concise code context, as excessively long contexts negatively affect the code comprehension capabilities of machine learning models, particularly smaller ones. This work introduces Trace Gadgets, a novel code representation that minimizes code context by removing non-related code. Trace Gadgets precisely capture the statements that cover the path to the vulnerability. As input for ML models, Trace Gadgets provide a minimal but complete context, thereby improving the detection performance. Moreover, we collect a large-scale dataset generated from real-world applications with manually curated labels to further improve the performance of ML-based vulnerability detectors. Our results show that state-of-the-art machine learning models perform best when using Trace Gadgets compared to previous code representations, surpassing the detection capabilities of industry-standard static scanners such as GitHub's CodeQL by at least 4% on a fully unseen dataset. By applying our framework to real-world applications, we identify and report previously unknown vulnerabilities in widely deployed software.

📄 PDF Abstract BibTeX arXiv:2504.13676

Code (0)

등록된 구현이 없습니다.

Tasks

Vulnerability Detection

Similar Papers 제목 키워드 기반

FastSpec: Scalable Generation and Detection of Spectre Gadgets Using Neural Embeddings

2020-06-25 · M. Caner Tol, Berk Gulmezoglu, Koray Yurtseven, Berk Sunar

Several techniques have been proposed to detect vulnerable Spectre gadgets in widely deployed commercial software. Unfortunately, detection techniques proposed so far rely on hand-written rules which fall short in coveri…

Code Generation

Quantum Circuit Optimization with AlphaTensor

2024-02-22 · Francisco J. R. Ruiz, Tuomas Laakkonen, Johannes Bausch, Matej Balog 외

A key challenge in realizing fault-tolerant quantum computers is circuit optimization. Focusing on the most expensive gates in fault-tolerant quantum computation (namely, the T gates), we address the problem of T-count o…

Deep Reinforcement LearningTensor Decomposition

Automated Gadget Discovery in Science

2022-12-24 · Lea M. Trenkwalder, Andrea López Incera, Hendrik Poulsen Nautrup, Fulvio Flamini 외

In recent years, reinforcement learning (RL) has become increasingly successful in its application to science and the process of scientific discovery in general. However, while RL algorithms learn to solve increasingly c…

ClusteringReinforcement Learning (RL)scientific discovery

On the Linear Convergence of the Proximal Gradient Method for Trace Norm Regularization

2013-12-01 · NeurIPS 2013 12 · Ke Hou, Zirui Zhou, Anthony Man-Cho So, Zhi-Quan Luo

Motivated by various applications in machine learning, the problem of minimizing a convex smooth loss function with trace norm regularization has received much attention lately. Currently, a popular method for solving s…

BIG-bench Machine Learning

Preserving Privacy in Personalized Models for Distributed Mobile Services

2021-01-14 · Akanksha Atrey, Prashant Shenoy, David Jensen

The ubiquity of mobile devices has led to the proliferation of mobile services that provide personalized and context-aware content to their users. Modern mobile services are distributed between end-devices, such as smart…

AttributePrivacy Preserving