Nico Naus

Nico Naus

Auto-generated profile, based on publicly available information

Nico Naus

Virginia Tech

Research Focus & Metrics

Academic Career Length

9Years (2018-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
1 February 2023
Verified
Book Chapter
Open access
PDF file
NNNico Naus
Nico Naus
FVFreek Verbeek
Freek Verbeek
DWDale Walker
Dale Walker
BRBinoy Ravindran
Binoy Ravindran
Decompilation is currently a widely used tool in reverse engineering and exploit detection in binaries. Ghidra, developed by the National Security Agency, is one of the most popular decompilers. It decompiles binaries to high P-Code, from which the final decompilation output in C code is generated. Ghidra allows users to work with P-Code, so users can analyze the intermediate representation directly. Several projects make use of this to build tools that perform verification, decompilation, taint analysis and emulation, to name a few. P-Code lacks a formal semantics, and its documentation is limited. It has a notoriously subtle semantics, which makes it hard to do any sort of analysis on P-Code. We show that P-Code, as-is, cannot be given an executable semantics. In this paper, we augment P-Code and define a complete, executable, formal semantics for it. This is done by looking at the documentation and the decompilation results of binaries with known source code. The development of a formal P-Code semantics uncovered several issues in Ghidra, P-Code, and the documentation. We show that these issues affect projects that rely on Ghidra and P-Code. We evaluate the executability of our semantics by building a P-Code interpreter that directly uses our semantics. Our work uncovered several issues in Ghidra and allows Ghidra users to better leverage P-Code.

7 January 2025 in Proceedings of the ACM on Programming Languages
Verified
Journal Article
Open access
CZCheng Zhang
Cheng Zhang
TKTobias Kappé
Tobias Kappé
DNDavid E. Narváez
David E. Narváez
NNNico Naus
Nico Naus
Guarded Kleene Algebra with Tests (GKAT) provides a sound and complete framework to reason about trace equivalence between simple imperative programs. However, there are still several notable limitations. First, GKAT is completely agnostic with respect to the meaning of primitives, to keep equivalence decidable. Second, GKAT excludes non-local control flow such as goto, break , and return . To overcome these limitations, we introduce Control-Flow GKAT (CF-GKAT) , a system that allows reasoning about programs that include non-local control flow as well as hardcoded values. CF-GKAT is able to soundly and completely verify trace equivalence of a larger class of programs, while preserving the nearly-linear efficiency of GKAT. This makes CF-GKAT suitable for the verification of control-flow manipulating procedures, such as decompilation and goto-elimination. To demonstrate CF-GKAT’s abilities, we validated the output of several highly non-trivial program transformations, such as Erosa and Hendren’s goto -elimination procedure and the output of Ghidra decompiler. CF-GKAT opens up the application of Kleene Algebra to a wider set of challenges, and provides an important verification tool that can be applied to the field of decompilation and control-flow transformation.

2 December 2024
Verified
Conference Paper
Open access
FVFreek Verbeek
Freek Verbeek
NNNico Naus
Nico Naus
BRBinoy Ravindran
Binoy Ravindran
We present an approach to lift position-independent x86-64 binaries to symbolized NASM. Symbolization is a decompilation step that enables binary patching: functions can be modified, and instructions can be interspersed. Moreover, it is the first abstraction step in a larger decompilation chain. The produced NASM is recompilable, and we extensively test the recompiled binaries to see if they exhibit the same behavior as the original ones. In addition to testing, the produced NASM is accompanied with a certificate, constructed in such a way that if all theorems in the certificate hold, symbolization has occurred correctly. The original and recompiled binary are lifted again with a third-party decompiler (Ghidra). These representations, as well as the certificate, are loaded into the Isabelle/HOL theorem prover, where proof scripts ensure that correctness can be proven automatically. We have applied symbolization to various stripped binaries from various sources, from various compilers, and ranging over various optimization levels. We show how symbolization enables binary-level patching, by tackling challenges originating from industry.

7 October 2019
Verified
Conference Paper
Open access
TSTim Steenvoorden
Tim Steenvoorden
NNNico Naus
Nico Naus
MKMarkus Klinik
Markus Klinik

26 June 2018
Verified
Conference Paper
Open access
PDF file
MBMilo Buwalda
Milo Buwalda
JJJohan Jeuring
Johan Jeuring
NNNico Naus
Nico Naus

21 February 2019
Verified
Book Chapter
Closed access
PDF file
NNNico Naus
Nico Naus
JJJohan Jeuring
Johan Jeuring