polito.it
Politecnico di Torino (logo)

Analyzing Advanced Code Representations with Machine Learning

Daniele Falcetta

Analyzing Advanced Code Representations with Machine Learning.

Rel. Paolo Garza. Politecnico di Torino, Corso di laurea magistrale in Data Science And Engineering, 2023

[img] PDF (Tesi_di_laurea) - Tesi
Accesso riservato a: Solo utenti staff fino al 21 Aprile 2026 (data di embargo).
Licenza: Creative Commons Attribution Non-commercial No Derivatives.

Download (5MB)
Abstract:

Code vulnerabilities are weaknesses in a software system that can be exploited by attackers to gain unauthorized access, steal sensitive data, or cause other types of harm. Being able to recognize and fix these vulnerabilities is important because it helps to protect the system and its users from potential attacks and breaches. This topic is one of the most pressing security issues that the software industry is dealing with nowadays. Our interest in the issue of ensuring that the open-source components used in SAP's products are free of (known) vulnerabilities is what motivated us to continue with this work. The vulnerability management process of a software with open source components is a challenging problem due to its dependence on non-reliable standard sources of advisories and vulnerability data. Previous efforts aimed to reduce this dependency by directly analyzing source code for the automatic detection of commits that are security-relevant. In the very first attempt, source code changes were treated as documents written in natural language processing, potentially ignoring the structured nature of source code. Then, other works tried to incorporate structural information of code in the form of abstract syntax trees (ASTs). Now, with our work, we seek to incorporate richer code representations into our analysis, e.g. obtained from semantic representations as well as data and control flow graphs (CFG, PDG). The dataset used for this work is an open-source code-centric dataset that does not rely purely on metadata but tries to discover vulnerabilities at their code-level. The goal of this work is to explore the use of different features (e.g. hand-crafted, tree- or graph-based features) for code representation and to benchmark the performances of these code representations in a series of industry-relevant tasks, and, in particular, to classify commits that are security relevant, i.e. that are likely to fix a vulnerability.

Relatori: Paolo Garza
Anno accademico: 2022/23
Tipo di pubblicazione: Elettronica
Numero di pagine: 109
Soggetti:
Corso di laurea: Corso di laurea magistrale in Data Science And Engineering
Classe di laurea: Nuovo ordinamento > Laurea magistrale > LM-32 - INGEGNERIA INFORMATICA
Ente in cotutela: INSTITUT EURECOM (FRANCIA)
Aziende collaboratrici: SAP Labs France
URI: http://webthesis.biblio.polito.it/id/eprint/26681
Modifica (riservato agli operatori) Modifica (riservato agli operatori)