paper-with-me

Papers

Unsafe's Betrayal: Abusing Unsafe Rust in Binary Reverse Engineering via Machine Learning

2022-10-31 · Sangdon Park, Xiang Cheng, Taesoo Kim

Memory-safety bugs introduce critical software-security issues. Rust provides memory-safe mechanisms to avoid memory-safety bugs in programming, while still allowing unsafe escape hatches via unsafe code. However, the unsafe code that enhances the usability of Rust provides clear spots for finding memory-safety bugs in Rust source code. In this paper, we claim that these unsafe spots can still be identifiable in Rust binary code via machine learning and be leveraged for finding memory-safety bugs. To support our claim, we propose the tool textttrustspot, that enables reverse engineering to learn an unsafe classifier that proposes a list of functions in Rust binaries for downstream analysis. We empirically show that the function proposals by textttrustspot can recall $92.92\%$ of memory-safety bugs, while it covers only $16.79\%$ of the entire binary code. As an application, we demonstrate that the function proposals are used in targeted fuzzing on Rust packages, which contribute to reducing the fuzzing time compared to non-targeted fuzzing.

📄 PDF Abstract BibTeX arXiv:2211.00111

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

How do programmers use unsafe Rust?

2020-11-13 · OOPSLA 2020 11 · Vytautas Astrauskas, Christoph Matheja, Federico Poli, Peter Müller 외

Rust’s ownership type system enforces a strict discipline on how memory locations are accessed and shared. This discipline allows the compiler to statically prevent memory errors, data races, inadvertent side effects thr…

ENCRUST: Encapsulated Substitution and Agentic Refinement on a Live Scaffold for Safe C-to-Rust Translation

2026-04-06 · Hohyun Sim, Hyeonjoong Cho, Ali Shokri, Zhoulai Fu 외 arxiv

We present Encapsulated Substitution and Agentic Refinement on a Live Scaffold for Safe C-to-Rust Translation, a two-phase pipeline for translating real-world C projects to safe Rust. Existing approaches either produce u…

Trust as Monitoring: Evolutionary Dynamics of User Trust and AI Developer Behaviour

2026-03-25 · Adeela Bashir, Zhao Song, Ndidi Bianca Ogbo, Nataliya Balabanova 외 arxiv

AI safety is an increasingly urgent concern as the capabilities and adoption of AI systems grow. Existing evolutionary models of AI governance have primarily examined incentives for safe development and effective regulat…

Reinforcement Learning

An Active Parameter Learning Approach to The Identification of Safe Regions

2024-12-14 · Aneesh Raghavan, Karl H Johansson

We consider the problem of identification of safe regions in the environment of an autonomous system. The environment is divided into a finite collections of Voronoi cells, with each cell having a representative, the Vor…

Active Learning

Detecting and Filtering Unsafe Training Data via Data Attribution

2025-02-17 · Yijun Pan, Taiwei Shi, Jieyu Zhao, Jiaqi W. Ma

Large language models (LLMs) are vulnerable to unsafe training data that even small amounts of unsafe data can lead to harmful model behaviors. Detecting and filtering such unsafe training data is essential for trustwort…