Skip to content

TOD-theses/t_race_results

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Results from the T-RACE paper

Samples

The results for the TOD candidate mining and the TOD detection experiments are in the sample folder.

Relevant files are:

  • mining_stats.json: contains information on how many candidates were filtered by each filter
  • tod_candidates.csv: a CSV of the remaining TOD candidates
  • check_comparison.csv: a CSV containing the comparison between approximation and exact TOD

These were run with an older version of t_race, thus the output format is slightly different than for the rest of the dataset, however similar results can be obtained with these commands:

  • t_race mine --blocks 19830547-19830646 --window-size 25
  • t_race mine --blocks 19830547-19830646 --window-size 25 --duplicates-limit 10
  • t_race check (requires tod_candidates.csv to exist, the details contain the results for the approximation)

Run t_race stats to create the graphics based on the results.

Evaluation

The evaluation folder contains the results of the evaluation runs and notes for the manual evaluation.

Relevant files/folders:

  • rq1-3_search.csv/jsonl: the ground truth formatted as CSV/JSONL

For manual evaluations we use following folders:

  • details/{tx_a}_{tx_b}/notes.md: for manual evaluations, this contains the notes of analyzing an attack
  • details/{tx_a}_{tx_b}/traces.tar.gz: compressed traces of the normal and reverse scenarios

Overall

This folder contains the results and evaluations for running all three components together.

Commands:

  • t_race run --window-size 25 --duplicates-limit 10 --blocks 11299000-11299999

Relevant files/folders:

  • eval: output from running t_race, containing details of each TOD candidate check and attack analysis in the "_details.jsonl" files
  • comparison.csv: CVS describing which TOD candidates are part of which step

Manual analysis of attacks not in ground truth

Relevant files/folders:

Manual analysis of ERC-20 multiple withdrawal attacks

Relevant files/folders:

Manual analysis of Securify properties

Relevant files/folders:

  • attacks.csv: found transaction pairs fulfilling the properties
  • sample.csv: a sample of 20 from the attacks

Stepwise

This folder contains the results from evaluation the individual components.

The create_* scripts are used to merge several results from the tool and create comparison_*.csv files out of them. The count_* scripts to give basic statistics about them.

Mining

Commands:

  • t_race mine --window-size 25 --duplicates-limit 10 --blocks 11299000-11299999 --quick-stats --evaluate-candidates-csv rq1-3_search.csv
  • t_race mine --window-size 25 --duplicates-limit 10 --blocks 11299000-11299999 --quick-stats --evaluate-candidates-csv rq1-3_search.csv --extract-indirect-dependencies
  • t_race check --check-indirect-dependencies --tod-candidates tod_candidates_evaluation.csv
  • t_race mine --window-size 25 --duplicates-limit 10 --blocks 11299000-11299999 --quick-stats --evaluate-candidates-csv rq1-3_search.csv --extract-limit-representatives

Relevant files/folders:

TOD detection and attack analysis

Commands:

  • t_race check --check-props-for-all --tod-candidates-csv rq1-3_search.csv

Relevant files/folders:

  • check: the results of running t_race, containing an overview and details of the TOD detection and TOD attack analysis for each attack
Manual evaluation of TOD detection

Relevant files/folders:

  • missed_exact.csv: contains all attacks that our method does not report as TOD
  • out_of_gas/missed.csv: contains all attacks labelled "out of gas" that we analyzed without errors as not TOD
  • not_out_of_gas/missed.csv: contains all attacks not labelled "out of gas" that we analyzed without errors and marked as not TOD
Manual evaluation of attacker gain and victim loss

Relevant files/folders:

  • missed.csv: contains all attacks we did not mark as an attack
  • not_out_of_gas/missed.csv: contains all attacks where our analysis ran without errors and which are not labelled "out of gas"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published