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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
|
rules_cert_id = [
'BSI-DSZ-CC-[0-9]+?-[0-9]+', # German BSI
'BSI-DSZ-CC-[0-9]+?-(?:V|v)[0-9]+-[0-9]+', # German BSI
'BSI-DSZ-CC-[0-9]+?-(?:V|v)[0-9]+', # German BSI
'BSI [0-9]+?', # German BSI
#'CC-Zert-.+?',
'ANSSI(?:-|-CC-)[0-9]+?/[0-9]+', # French
#'ANSSI-CC-CER-F-.+?', # French
'DCSSI-[0-9]+?/[0-9]+?', # French
'Certification Report [0-9]+?/[0-9]+?', # French
'Rapport de certification [0-9]+?/[0-9]+?', # French
'NSCIB-CC-[0-9][0-9][0-9][0-9].+?', # Netherlands
'NSCIB-CC-[0-9][0-9][0-9][0-9][0-9]*-CR', # Netherlands
'NSCIB-CC-[0-9][0-9]-[0-9]+?-CR[0-9]+?', # Netherlands
'SERTIT-[0-9]+?', # Norway
'CCEVS-VR-(?:|VID)[0-9]+?-[0-9]+?', # US NSA
#'[0-9][0-9\-]+?-CR', # Canada
'CRP[0-9][0-9][0-9][0-9]*?', # UK CESG
'CERTIFICATION REPORT No. P[0-9]+?', # UK CESG
'20[0-9][0-9]-[0-9]+-INF-[0-9]+?', # Spain
'KECS-CR-[0-9]+?-[0-9]+?', # Korea
'KECS-ISIS-[0-9]+?-[0-9][0-9][0-9][0-9]', # Korea
'CRP-C[0-9]+?-[0-9]+?', # Japan
'ISCB-[0-9]+?-RPT-[0-9]+?', # Malaysia
'OCSI/CERT/.+?', # Italia
'[0-9\.]+?/TSE-CCCS-[0-9]+?', # Turkis CCCS
'BTBD-.+?', # Turkis CCCS
]
rules_vendor = [
'NXP',
'Infineon',
'Samsung',
'(?:STMicroelectronics|STM)',
'Feitian',
'Gemalto',
'Gemplus',
'Axalto',
'(?:Oberthur|OBERTHUR)',
'(?:Idemia|IDEMIA)',
'(?:G\&D|G\+D|Giesecke+Devrient|Giesecke \& Devrient)',
'Philips',
'Sagem',
]
rules_eval_facilities = [
'Serma Technologies',
'THALES - CEACI'
]
rules_protection_profiles = [
'BSI-(?:CC[-_]|)PP[-_]*.+?',
'PP-SSCD.+?',
'PP_DBMS_.+?'
# 'Protection Profile',
'CCMB-20.+?',
'CCMB-20[0-9]+?-[0-9]+?-[0-9]+?',
'BSI-CCPP-.+?',
'ANSSI-CC-PP.+?',
'WBIS_V[0-9]\.[0-9]',
'EHCT_V.+?'
]
rules_technical_reports = [
'BSI[ ]*TR-[0-9]+?(?:-[0-9]+?|)',
]
rules_device_id = [
'G87-.+?',
'ATMEL AT.+?',
]
rules_os = [
'STARCOS(?: [0-9\.]+?|)',
'JCOP[ ]*[0-9]'
]
rules_standard_id = [
'FIPS[0-9]+-[0-9]+?',
'FIPS[0-9]+?',
'PKCS[ #]*[1-9]+',
'TLS[ ]*v[0-9\.]+',
'TLS[ ]*v[0-9\.]+',
'BSI-AIS[ ]*[0-9]+?',
'AIS[ ]*[0-9]+?',
'RFC[ ]*[0-9]+?',
'ISO/IEC[ ]*[0-9]+[-]*[0-9]*',
'ISO/IEC[ ]*[0-9]+:[ 0-9]+',
'ISO/IEC[ ]*[0-9]+',
'ICAO(?:-SAC|)',
'[Xx]\.509',
]
rules_security_level = [
'EAL[ ]*[0-9+]+?',
'EAL[ ]*[0-9] augmented+?',
'ITSEC[ ]*E[1-9]*.+?',
]
rules_security_assurance_components = [
'ACM_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'ADO_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'ADV_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'AGD_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'ALC_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'ATE_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'AVA_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'AMA_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'APE_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'ASE_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
]
rules_security_functional_components = [
'FAU_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FCO_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FCS_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FDP_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FIA_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FMT_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FPR_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FPT_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FRU_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FTA_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
'FTP_[A-Z][A-Z][A-Z](?:\.[0-9]|)',
]
rules_javacard = [
#'(?:Java Card|JavaCard)',
#'(?:Global Platform|GlobalPlatform)',
'(?:Java Card|JavaCard) [2-3]\.[0-9](?:\.[0-9]|)',
'(?:Java Card|JavaCard) \(version [2-3]\.[0-9](?:\.[0-9]|)\)',
'(?:Global Platform|GlobalPlatform) [2-3]\.[0-9]\.[0-9]',
'(?:Global Platform|GlobalPlatform) \(version [2-3]\.[0-9]\.[0-9]\)',
]
rules_crypto_algs = [
'RSA[- ]*(?:512|768|1024|1280|1536|2048|3072|4096|8192)',
'RSASSAPKCS1-[Vv]1_5',
'SHA[-]*(?:160|224|256|384|512)',
'AES[-]*(?:128|192|256|)',
'SHA-1',
'MD5',
'HMAC,'
'HMAC-SHA-(?:160|224|256|384|512)',
'Diffie-Hellman',
'ECDSA',
'DES',
'ECC',
'DTRNG',
'TRNG',
'RNG',
]
rules_ecc_curves = [
'P-(?:192|224|256|384|521)',
'brainpool.+?[rkt]+1',
'brainpoolP{[0-9, ]+}[rkt]+1',
'secp.+?1',
]
rules_cplc = [
'IC[ ]*Fabricator',
'IC[ ]*Type',
'IC[ ]*Version',
]
rules_crypto_engines = [
'TORNADO',
'SmartMX',
'SmartMX2'
'NesCrypt',
]
rules_crypto_libs = [
'(?:NesLib|NESLIB) [v]*[0-9.]+',
'AT1 Secure .{1,30}? Library [v]*[0-9.]+',
'AT1 Secure RSA/ECC/SHA library',
'Crypto Library [v]*[0-9.]+',
'ATMEL Toolbox [0-9.]+',
'v1.02.013' # Infineon's ROCA-vulnerable library
]
rules_defenses = [
'SPA',
'DPA',
'DFA',
'[Ff]+ault induction',
'ROCA',
]
rules_certification_process = [
'[oO]ut of [sS]cope',
'[\.\(].{0,100}?.[oO]ut of [sS]cope..{0,100}?[\.\)]',
'.{0,100}[oO]ut of [sS]cope.{0,100}',
'.{0,100}confidential document{0,100}',
'[sS]ecurity [fF]unction SF\.[a-zA-Z0-9_]',
]
rules_vulnerabilities = [
'CVE-[0-9]+?-[0-9]+?',
'CWE-[0-9]+?',
]
rules_other = [
'library',
#'http[s]*://.+?/'
]
#rules_security_target_class
rules = {}
rules['rules_vendor'] = rules_vendor
rules['rules_cert_id'] = rules_cert_id
rules['rules_protection_profiles'] = rules_protection_profiles
rules['rules_technical_reports'] = rules_technical_reports
rules['rules_device_id'] = rules_device_id
rules['rules_os'] = rules_os
rules['rules_standard_id'] = rules_standard_id
rules['rules_security_level'] = rules_security_level
rules['rules_security_assurance_components'] = rules_security_assurance_components
rules['rules_security_functional_components'] = rules_security_functional_components
rules['rules_javacard'] = rules_javacard
rules['rules_crypto_algs'] = rules_crypto_algs
rules['rules_ecc_curves'] = rules_ecc_curves
rules['rules_cplc'] = rules_cplc
rules['rules_crypto_engines'] = rules_crypto_engines
rules['rules_crypto_libs'] = rules_crypto_libs
rules['rules_defenses'] = rules_defenses
rules['rules_certification_process'] = rules_certification_process
rules['rules_vulnerabilities'] = rules_vulnerabilities
rules['rules_other'] = rules_other
|