-
Notifications
You must be signed in to change notification settings - Fork 30
/
cryptodetector.conf
201 lines (119 loc) · 4.29 KB
/
cryptodetector.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#
# Example configuration file
#
[settings]
# Uncomment to verbosely process files and print out information
# during the search.
verbose
# The directory in which to write the output files. An
# output file is a [package].crypto for each package
# scanned. It contains the matches found in that package
# in JSON format.
#output = /home/kamyar/
# With this option, the program will create output files
# in the directory in which the package resides. Note
# this will only work for local packages that have a
# directory. Uncomment to enable it.
#output_in_package_directory
# Specifies what to do when an output crypto file
# already exists. Can be one of three options: 'rename'
# (default) renames the new crypto file .0.crypto,
# .1.crypto and so on, 'overwrite' overwrites the old
# file, and 'skip' skips scanning the package.
output_existing = rename
# Uncomment to place indentation and additional spaces in
# the output crypto files to to make them more readable (pretty)
# at the cost of producing larger files.
pretty
# Quickly search the set of given packages and return
# only a list of packages that contain one or more
# matches
#quick
# Uncomment to create event log and error log files at the end
# of each run
#log
# Uncomment to scan only source code files and ignore all other
# text files
#source_files_only
# Stop the search in a package after finding matches in this
# many of its files.
#stop_after = 1
# Uncomment to supress warnings
#suppress_warnings
####################################################################
# List of methods to detect encryption, uncomment to enable a method
[methods]
keyword
api
#hello_world
# Keyword search options
[method:keyword]
# Uncomment to enable searching case-insensitive
ignore_case
# Path to the file containing keyword list
# kwlist_path =
# API finder options
[method:api]
# Path to the file containing list of API definitions
# kwlist_path =
####################################################################
# Example showing how to specify method options
[method:hello_world]
# Comment or uncomment to specify true or false
example_boolean
# Use equal sign to specify value
example_value = 1234
# Array options should be in their own section, referenced by ':'
[method:hello_world:example_array]
array_value_1
array_value_2
####################################################################
# List of evidence types to ignore. All detection methods will ignore these evidence types.
[ignore_evidence_types]
# algorithm/hash/generic
# ...
####################################################################
# List of packages to scan
[packages]
#
# Example local directory
#
#/home/kamyar/wrlinux/bitbake_build/tmp/work/x86_64-linux/openssl-native
#/home/kamyar/test-packages/dh
#
# Example local single file
#
#/home/kamyar/wrlinux/bitbake_build/tmp/work/x86_64-linux/bc-native/1.06-r3/bc-1.06/bc/bc.c
#
# Example local archive
#
#/home/kamyar/passwdqc-1.3.0-r0-patched.tar.gz
#
# Example wild-card address
#
#/home/kamyar/wrlinux/bitbake_build/tmp/work/*/*
#/home/kamyar/wrlinux-4.0-eu/*.tar.gz
#/home/kamyar/wrlinux-4.0-eu/libvirt-[0-9]*
#
# Example remote archives
# The following formats are supported:
# - Any tar file (.tar, .tar.gz, .tgz, .tar.bz2, .tbz2, .tar.xz, .txz)
# - Any zip file (.zip, .zipx, .jar)
# - RPM archives (.rpm)
#https://distro.windriver.com/sources/wrlinux-8/openssl-1.0.2d-r0-patched.tar.gz
#https://github.com/bazil/fuse/archive/wip-bench.zip
#http://ftp.gnu.org/gnu/gdb/gdb-6.0a.tar.bz2
#http://ftp.gnu.org/gnu/gdb/gdb-7.8.1.tar.xz
#ftp://fr2.rpmfind.net/linux/sourceforge/s/sl/sl7-i686-project/SRPMS/anaconda-19.31.79-1.sl7.1.src.rpm
#
# Example remote single file
#
#https://raw.githubusercontent.com/openssl/openssl/master/ssl/s3_cbc.c
#
# Example GitHub addresses (repo must be publically accessible)
# '.git' at the end is optional
#
#https://github.com/openssh/openssh-portable.git
#https://github.com/godbus/dbus
#[email protected]:GNOME/gconf.git
#https://github.com/openpgpjs/openpgpjs