Skip to content

Commit d379d12

Browse files
Sebastian WagnerWagner
authored andcommitted
lib/harm: minor change to allowed classification.types list
change type from list to tuple, this list is immutable sort remove duplicate value system-compromise
1 parent af84762 commit d379d12

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

intelmq/lib/harmonization.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,13 @@ class ClassificationType(String):
270270
Allowed values are:
271271
* """
272272

273-
allowed_values = ['application-compromise',
273+
allowed_values = ('application-compromise',
274274
'blacklist',
275275
'brute-force',
276276
'burglary',
277277
'c2-server',
278278
'copyright',
279+
'data-leak',
279280
'data-loss',
280281
'ddos',
281282
'ddos-amplifier',
@@ -286,7 +287,6 @@ class ClassificationType(String):
286287
'ids-alert',
287288
'infected-system',
288289
'information-disclosure',
289-
'data-leak',
290290
'malware',
291291
'malware-configuration',
292292
'malware-distribution',
@@ -308,14 +308,13 @@ class ClassificationType(String):
308308
'tor',
309309
'unauthorised-information-access',
310310
'unauthorised-information-modification',
311-
'system-compromise',
312311
'unauthorized-use-of-resources',
312+
'undetermined',
313313
'unprivileged-account-compromise',
314314
'violence',
315315
'vulnerable-system',
316316
'weak-crypto',
317-
'undetermined',
318-
]
317+
)
319318

320319
__doc__ += '\n * '.join(allowed_values)
321320

0 commit comments

Comments
 (0)