assemblyline-v4-service 4.4.0.47__py3-none-any.whl → 4.4.0.49__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 4.4.0.47
1
+ 4.4.0.49
@@ -113,7 +113,7 @@ class Task:
113
113
  # Allows the administrator to be selective about the types of hashes to lookup in the safelist
114
114
  if safelist_interface and self.safelist_config.enabled and not (self.deep_scan or self.ignore_filtering):
115
115
  # Ignore adding files that are known to the system to be safe
116
- digests = get_digests_for_file(path)
116
+ digests = get_digests_for_file(path, skip_fuzzy_hashes=True)
117
117
  for hash_type in self.safelist_config.hash_types:
118
118
  qhash = digests[hash_type]
119
119
  resp = safelist_interface.lookup_safelist(qhash)
@@ -55,7 +55,7 @@ class RunService:
55
55
  self.service.start_service()
56
56
 
57
57
  # Identify the file
58
- file_info = self.identify.fileinfo(FILE_PATH)
58
+ file_info = self.identify.fileinfo(FILE_PATH, skip_fuzzy_hashes=True)
59
59
  if file_info['type'] == "archive/cart" or file_info['magic'] == "custom: archive/cart":
60
60
  original_file_name = get_metadata_only(FILE_PATH).get("name")
61
61
  if original_file_name:
@@ -66,7 +66,7 @@ class RunService:
66
66
  with open(FILE_PATH, 'rb') as ifile, open(original_temp, 'wb') as ofile:
67
67
  unpack_stream(ifile, ofile)
68
68
 
69
- file_info = self.identify.fileinfo(original_temp)
69
+ file_info = self.identify.fileinfo(original_temp, skip_fuzzy_hashes=True)
70
70
  target_file = os.path.join(tempfile.gettempdir(), file_info['sha256'])
71
71
  shutil.move(original_temp, target_file)
72
72
  LOG.info(f"File was a CaRT archive, it was un-CaRTed to {target_file} for processing")
@@ -142,7 +142,7 @@ def url_download(source: Dict[str, Any], previous_update: int = None, logger=Non
142
142
  for content in response.iter_content(BLOCK_SIZE):
143
143
  f.write(content)
144
144
 
145
- ident_type = identify.fileinfo(file_path)['type']
145
+ ident_type = identify.fileinfo(file_path, generate_hashes=False)['type']
146
146
  if ident_type.startswith('archive'):
147
147
  extract_dir = os.path.join(output_dir, name)
148
148
  format = ident_type.split('archive/')[-1]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: assemblyline-v4-service
3
- Version: 4.4.0.47
3
+ Version: 4.4.0.49
4
4
  Summary: Assemblyline 4 - Service base
5
5
  Home-page: https://github.com/CybercentreCanada/assemblyline-v4-service/
6
6
  Author: CCCS Assemblyline development team
@@ -22,7 +22,7 @@ Requires-Dist: assemblyline-core
22
22
  Requires-Dist: cart
23
23
  Requires-Dist: fuzzywuzzy
24
24
  Requires-Dist: pefile
25
- Requires-Dist: pillow (==10.0.0)
25
+ Requires-Dist: pillow ==10.0.0
26
26
  Requires-Dist: python-Levenshtein
27
27
  Requires-Dist: regex
28
28
 
@@ -1,4 +1,4 @@
1
- assemblyline_v4_service/VERSION,sha256=4DLNaQoyndFVlb6-f1quDy6PvH2fLak7jOhkHHsfNwQ,9
1
+ assemblyline_v4_service/VERSION,sha256=IhGbDdCiB_h8mEqfbJZcQBEZPb7wrNfajMwRzNqZBMI,9
2
2
  assemblyline_v4_service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  assemblyline_v4_service/healthz.py,sha256=3QGBg0EZuXC6UN411HFwpLNEop9UvS9feFhvBUTP-k4,1576
4
4
  assemblyline_v4_service/run_privileged_service.py,sha256=9uTfHetXR5G-EDKMDrgfWUOw34yr64-cj6Cm9eZaCbQ,14547
@@ -11,19 +11,19 @@ assemblyline_v4_service/common/ocr.py,sha256=gFPVAGVsmVk4SKL7hCMCT7NEyG-lFLniEFQ
11
11
  assemblyline_v4_service/common/ontology_helper.py,sha256=Wao4VZ_YrlmLd3-CXwqsK6c5VTiVZ89CKEhZOgZrm0Q,7792
12
12
  assemblyline_v4_service/common/request.py,sha256=zgmKvYnK1KcBWsQQUZmeBXGIi-P5m3ltxqGY2Xo696c,9764
13
13
  assemblyline_v4_service/common/result.py,sha256=qOwyFP4zJMpngZWDIuc0bFN-tNjLuPP2RDOgkPNwEXI,30349
14
- assemblyline_v4_service/common/task.py,sha256=kZyjttJGXebynJ5JMgEOgsHhDZUzMTuqUk-eTnyw87U,12480
14
+ assemblyline_v4_service/common/task.py,sha256=22dl6FiQwqeL0CxkSzmHn9mKSL5xf9zE5QjxT-nDLs4,12504
15
15
  assemblyline_v4_service/common/utils.py,sha256=71ndFdbdfCeRCM-eYs1htKqJ-1miiWbsF_UgHnKKNZ4,3112
16
16
  assemblyline_v4_service/dev/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- assemblyline_v4_service/dev/run_service_once.py,sha256=4gnb09WeKXlyWQKCQdH4SoL4xtfIRWq_9nyIiECrJ7g,10592
17
+ assemblyline_v4_service/dev/run_service_once.py,sha256=Q4xP-FlAARgeqVfORFNcBTju-r05_2Q2bDYwREoBK44,10640
18
18
  assemblyline_v4_service/updater/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  assemblyline_v4_service/updater/__main__.py,sha256=9Os-u8Tf7MD73JSrUSPmOaErTgfvesNLiEeszU4ujXA,133
20
20
  assemblyline_v4_service/updater/app.py,sha256=OF-G7J8IYwTjdGw_BI9numBicZBN5lspm8Eqb3qbIl8,3229
21
21
  assemblyline_v4_service/updater/client.py,sha256=VKmkiDz3klvMzXiGSQTH7QN-MfHuJnwaIR7BaXy9aZM,5156
22
22
  assemblyline_v4_service/updater/gunicorn_config.py,sha256=p3j2KPBeD5jvMw9O5i7vAtlRgPSVVxIG9AO0DfN82J8,1247
23
- assemblyline_v4_service/updater/helper.py,sha256=lUGEz-z6iL5xav8m-F1czKVp8_3Fo3FpSJxJZJ-q24U,9100
23
+ assemblyline_v4_service/updater/helper.py,sha256=CO0zY6R0gx36iOCSfZyCYCvUAUP76qQMqZ1z_HkZMME,9123
24
24
  assemblyline_v4_service/updater/updater.py,sha256=lWE-uFlOmi_Lglu1Rv_QM3nZNQskJiXmGbmzGBFFbC8,31591
25
- assemblyline_v4_service-4.4.0.47.dist-info/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
26
- assemblyline_v4_service-4.4.0.47.dist-info/METADATA,sha256=XSS1Br0F7GL7KCsW6pgvjkPgFt28-v9oPyhK1zqpT7s,9339
27
- assemblyline_v4_service-4.4.0.47.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
28
- assemblyline_v4_service-4.4.0.47.dist-info/top_level.txt,sha256=Ut5IqePObcxlJ8rv2--dOAzYbxzqlllfiV_51cbqjbA,24
29
- assemblyline_v4_service-4.4.0.47.dist-info/RECORD,,
25
+ assemblyline_v4_service-4.4.0.49.dist-info/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
26
+ assemblyline_v4_service-4.4.0.49.dist-info/METADATA,sha256=am0-vX80BwumALjNrGL4ht4tcRomu9OtbElG4RgWLRg,9337
27
+ assemblyline_v4_service-4.4.0.49.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
28
+ assemblyline_v4_service-4.4.0.49.dist-info/top_level.txt,sha256=Ut5IqePObcxlJ8rv2--dOAzYbxzqlllfiV_51cbqjbA,24
29
+ assemblyline_v4_service-4.4.0.49.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.0)
2
+ Generator: bdist_wheel (0.41.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5