forked from SoftSec-KAIST/TikNib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ground truth building and helper scripts for testing
Updates - Use relpath to extract source file and path - Get source path after '/' - Add filtering based on source file name and line number - Make function filtering more concise - Add duplicate checking code - Add a script for function counting - Add a script for presenting result graphs and tables (get_roc_graph) - Add scripts for top-k and precision at k evaluation - Add openssl roc checker - Use ctags only for c and c++ files - Filter unnecessary binaries - Update README.md - Update requirements - Clean up config files - Clean up formatting Bug fix - Fix an IDA Python argument passing bug - Fix import bugs - Fix bugs in make_abstract_number - Fix paths
- Loading branch information
Showing
160 changed files
with
8,040 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# output directory where the output data will be stored | ||
# if not given, use the config file name as the output directory. | ||
outdir: | ||
|
||
# turn on debug mode or not | ||
debug: False | ||
|
||
# this is a random seed for debugging | ||
seed: "TikNib" | ||
|
||
# if True, perform training to select features, otherwise, just use the given | ||
# features. | ||
do_train: True | ||
|
||
# if you specify options, that option will be fixed when selecting true | ||
# positives and negatives. for example, if you uncomment 'arch', then for a | ||
# source function (arm_32, O1, gcc-4.9.4, normal), the true positive should have | ||
# (arm_32, random opti, random compiler, random others) | ||
fixed_options: | ||
# - arch | ||
# - opti | ||
# - compiler | ||
# - others | ||
|
||
|
||
# features | ||
features: | ||
- cfg_size | ||
- cfg_avg_degree | ||
- cfg_num_degree | ||
- cfg_avg_loopintersize | ||
- cfg_avg_loopsize | ||
- cfg_avg_sccsize | ||
- cfg_num_backedges | ||
- cfg_num_loops | ||
- cfg_num_loops_inter | ||
- cfg_num_scc | ||
- cfg_sum_loopintersize | ||
- cfg_sum_loopsize | ||
- cfg_sum_sccsize | ||
- cg_num_callees | ||
- cg_num_callers | ||
- cg_num_imported_callees | ||
- cg_num_incalls | ||
- cg_num_outcalls | ||
- cg_num_imported_calls | ||
- inst_avg_abs_dtransfer | ||
- inst_avg_abs_arith | ||
- inst_avg_abs_ctransfer | ||
# dtransfer + misc | ||
- inst_num_abs_dtransfer | ||
# arith + shift | ||
- inst_num_abs_arith | ||
# ctransfer + cond ctransfer | ||
- inst_num_abs_ctransfer | ||
- inst_avg_total | ||
- inst_avg_floatinst | ||
- inst_avg_logic | ||
- inst_avg_dtransfer | ||
- inst_avg_arith | ||
- inst_avg_cmp | ||
- inst_avg_shift | ||
- inst_avg_bitflag | ||
- inst_avg_cndctransfer | ||
- inst_avg_ctransfer | ||
- inst_avg_misc | ||
- inst_num_total | ||
- inst_num_floatinst | ||
- inst_num_logic | ||
- inst_num_dtransfer | ||
- inst_num_arith | ||
- inst_num_cmp | ||
- inst_num_shift | ||
- inst_num_bitflag | ||
- inst_num_cndctransfer | ||
- inst_num_ctransfer | ||
- inst_num_misc | ||
|
||
src_options: | ||
opti: | ||
- O0 | ||
- O1 | ||
- O2 | ||
- O3 | ||
arch: | ||
- x86_32 | ||
- arm_32 | ||
- mips_32 | ||
compiler: | ||
- gcc-5.5.0 | ||
others: | ||
- normal | ||
|
||
dst_options: | ||
opti: | ||
- O0 | ||
- O1 | ||
- O2 | ||
- O3 | ||
arch: | ||
- x86_32 | ||
- arm_32 | ||
- mips_32 | ||
compiler: | ||
- gcc-5.5.0 | ||
others: | ||
- normal |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.