Skip to content

Debugging DFSan labels with LLDB

Notifications You must be signed in to change notification settings

Teemperor/lldb-dfsan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lldb-dfsan status badge

lldb-dfsan is an LLDB plugin that allows inspecting the DFSan labels of variables, structures and memory in the target process.

Installation

wget "https://raw.githubusercontent.com/vusec/lldb-dfsan/main/lldb_dfsan.py" ;
sudo mv lldb_dfsan.py (lldb -P) ;
echo "command script import lldb_dfsan" >> .lldbinit

How to use

This plugin provides the label VAR command which prints all labels of the references local variable VAR. For example:

Process 38271 stopped
   4    int i[3] = {1, 2, 3};
   5   
   6    dfsan_label i_label = 1;
   7    dfsan_set_label(i_label, &(i[1]), sizeof(int));
(lldb) label i
i : array int[3] {
  [0] : No taint
  [1] : (Taint class 1)
  [2] : No taint
}

About

Debugging DFSan labels with LLDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.6%
  • C 12.0%
  • C++ 5.4%