HUB
Sign inSign up

prosyslab/tracer-artifacts

By prosyslab

•Updated about 4 years ago

Image
1

1.2K

prosyslab/tracer-artifacts repository overview

⁠Tracer-artifact

⁠1. Getting started

⁠System requirements

To run the experiments that were reported in the paper, we used a 64-core (Intel Xeon Processor Gold 6226R, 2.90 Ghz) machine with 128 GB of RAM with the 20.04 version of Ubuntu Linux. We recommend to run the experiments with at least 10-core machine with 32 GB of RAM.

⁠Loading docker image

To launch Tracer docker container, run the following commands:

docker push prosyslab/tracer-artifacts:latest
docker run -it prosyslab/tracer-artifacts

⁠2. Directory Structure

/root is the home(~) directory.

/root
 │
 ├─ README.md                                  (* this file *)
 │
 ├─ infer-experiment                           (* our main implementation *)
 │  ├─ bin                                     (* scripts to run experiments *)
 │  ├─ infer                                   (* facebook infer *)
 │  ├─ rank                                    (* Tracer implementation *)
 │  ├─ codeql                                  (* CodeQL binary & related files *)
 │  ├─ hmark-4.1.0                             (* VUDDY binary & related files *)
 │  ├─ result                                  (* byproducts of our experiments are produced in here *)
 │  ├─ bug-bench                               (* known vulnerability signatures *)
 │  ├─ juliet-test-suite-c                     (* juliet signatures *)
 │  └─ tutorial                                (* tutorial signatures *)
 │  
 └─ data                                       (* snapshot results of our experiment *)
    │
    ├─ tracer
    │  ├─ all-infer-bench                      (* infer results for benchmarks *)
    │  ├─ all-infer-juliet                     (* infer results for juliet testcases *)
    │  ├─ all-infer-tutorial                   (* infer results for tutorial examples *)
    │  ├─ all-infer-debian                     (* infer results for selected debian packages *)
    |  |- all-infer-pulse                      (* infer results for selected debian packages with pulse *)
    │  └─ tracer-result                        (* Tracer results for selected debian packages *)
    │
    ├─ vulnDB-tracer-nodes                     (* our own database for vuddy-sig *)
    │  
    ├─ vuddy-orig                              (* data for VUDDY_O *)
    |  |- vuddy-orig.txt                       (* alarms for selected debian packages *)
    │
    ├─ vuddy-sig                               (* data for VUDDY_S *)
    |  |- vuddy-sig.txt                        (* alarms for selected debian packages *)
    │
    ├─ CCAligner                               (* data for CCAlinger *)
    |  |- ccaligner.txt                        (* all clone pairs reported by CCAligner *)
    │
    ├─ devign-orig                             (* data for DEVIGN_O *)
    │  ├─ devign-orig-model.pt                 (* trained model *)
    │  └─ devign-orig.txt                      (* alarms *)
    │
    ├─ devign-sig                              (* data for DEVIGN_S *)
    │  ├─ devign-sig-model.pt                  (* trained model *)
    │  └─ devign-sig-dataset.json              (* dataset for generating model *)
    │
    └─ codeql                                  (* data for CodeQL *)
       └─ alarms1.csv                           (* alarms(CWE78, 120, 121, 129, 134, 190, 191) reported by CodeQL *)
       └─ alarms2.csv                           (* alarms(CWE415, 416) reported by CodeQL *)
       

⁠3. Data

⁠3-1) Tracer

The data we used for evaluating Tracer are contained in ~/data/tracer. Each all-infer-* directory contains the result of static analysis by Infer. ~/data/tracer/tracer-result contains the result of Tracer for selected 273 debian packages.

⁠3-2) VUDDYO

The data we used for evaluating VUDDYO are contained in ~/data/vuddy-orig. vuddy-orig.txt file contains the summarized alarms reported by iotcube api(https://iotcube.net/api⁠). Among them, we only considered those of our interests(i.e. taint analysis for integer overflows, integer underflows, buffer overflows, command injections, format strings, use after free, double free).

⁠3-3) VUDDYS

The data we used for evaluating VUDDYS are contained in ~/data/vuddy-sig. vuddy-sig.txt file contains the summarized alarms reported by our own hash matching with ~/data/vulnDB-tracer-nodes. Among them, we only considered those of our interests(i.e. taint analysis for integer overflows, integer underflows, buffer overflows, command injections, format strings, use after free, double free).

⁠3-4) CCAligner

The data we used for evaluating CCAligner are contained in ~/data/CCAligner/ccaligner.txt. In each line of the txt file, a code clone pair is reported with line numbers denoting the start and end of the granularity(function). The alarms are the result of CCAligner with parameters window_size=6, edit_dist=1, similarity=0.85.

⁠3-5) CodeQL

The data we used for evaluating CodeQL are contained in ~/data/codeql. There is a list of alarms of all benchmarks for running selected CodeQL queries. We selected CWE78, CWE120, CWE121, CWE129, CWE134, CWE190, CWE191, CWE415, CWE416 for CodeQL queires.

⁠3-6) DevignO

The data we used for evaluating DevignO are contained in ~/data/devign-orig. devign-orig-model.pt is the pytorch model trained with the original data that are provided by the authors of Devign. devign-orig.txt contains all the true alarms. We used https://github.com/epicosy/devign⁠ as our base implentation for the experiment.

⁠3-7) DevignS

The data we used for evaluating DevignS are contained in ~/data/devign-sig. devign-sig-model.pt is the pytorch model trained with the vulnerabilities of our signature database. devign-sig-dataset.json contains all the functions that are used to generate devign-sig-model.pt. We used https://github.com/epicosy/devign⁠ as our base implentation for the experiment.

Tag summary

Content type

Image

Digest

sha256:c7d1677d7…

Size

28.1 GB

Last updated

about 4 years ago

docker pull prosyslab/tracer-artifacts