STRIDE: Simple Type Recognition In Decompiled Executables

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Green, Harrison, Schwartz, Edward J., Goues, Claire Le, Vasilescu, Bogdan
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914857372090368
author Green, Harrison
Schwartz, Edward J.
Goues, Claire Le
Vasilescu, Bogdan
author_facet Green, Harrison
Schwartz, Edward J.
Goues, Claire Le
Vasilescu, Bogdan
contents Decompilers are widely used by security researchers and developers to reverse engineer executable code. While modern decompilers are adept at recovering instructions, control flow, and function boundaries, some useful information from the original source code, such as variable types and names, is lost during the compilation process. Our work aims to predict these variable types and names from the remaining information. We propose STRIDE, a lightweight technique that predicts variable names and types by matching sequences of decompiler tokens to those found in training data. We evaluate it on three benchmark datasets and find that STRIDE achieves comparable performance to state-of-the-art machine learning models for both variable retyping and renaming while being much simpler and faster. We perform a detailed comparison with two recent SOTA transformer-based models in order to understand the specific factors that make our technique effective. We implemented STRIDE in fewer than 1000 lines of Python and have open-sourced it under a permissive license at https://github.com/hgarrereyn/STRIDE.
format Preprint
id arxiv_https___arxiv_org_abs_2407_02733
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle STRIDE: Simple Type Recognition In Decompiled Executables
Green, Harrison
Schwartz, Edward J.
Goues, Claire Le
Vasilescu, Bogdan
Cryptography and Security
Decompilers are widely used by security researchers and developers to reverse engineer executable code. While modern decompilers are adept at recovering instructions, control flow, and function boundaries, some useful information from the original source code, such as variable types and names, is lost during the compilation process. Our work aims to predict these variable types and names from the remaining information. We propose STRIDE, a lightweight technique that predicts variable names and types by matching sequences of decompiler tokens to those found in training data. We evaluate it on three benchmark datasets and find that STRIDE achieves comparable performance to state-of-the-art machine learning models for both variable retyping and renaming while being much simpler and faster. We perform a detailed comparison with two recent SOTA transformer-based models in order to understand the specific factors that make our technique effective. We implemented STRIDE in fewer than 1000 lines of Python and have open-sourced it under a permissive license at https://github.com/hgarrereyn/STRIDE.
title STRIDE: Simple Type Recognition In Decompiled Executables
topic Cryptography and Security
url https://arxiv.org/abs/2407.02733