assemblyline-v4-service 4.4.0.83__py3-none-any.whl → 4.4.0.85__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.

Potentially problematic release.


This version of assemblyline-v4-service might be problematic. Click here for more details.

@@ -1 +1 @@
1
- 4.4.0.83
1
+ 4.4.0.85
@@ -332,7 +332,11 @@ class ServiceUpdater(ThreadedCoreBase):
332
332
  self.log.info(f"Connecting to Assemblyline API: {UI_SERVER}")
333
333
  al_client = get_client(UI_SERVER, apikey=(username, api_key), verify=self.verify, datastore=self.datastore)
334
334
 
335
- _, time_keeper = tempfile.mkstemp(prefix="time_keeper_", dir=UPDATER_DIR)
335
+ # Create a temporary file for the time keeper
336
+ time_keeper = tempfile.NamedTemporaryFile(prefix="time_keeper_", dir=UPDATER_DIR, delete=False)
337
+ time_keeper.close()
338
+ time_keeper = time_keeper.name
339
+
336
340
  if self._service.update_config.generates_signatures:
337
341
  output_directory = tempfile.mkdtemp(prefix="update_dir_", dir=UPDATER_DIR)
338
342
 
@@ -573,7 +577,10 @@ class ServiceUpdater(ThreadedCoreBase):
573
577
 
574
578
  try:
575
579
  # Tar update directory
576
- _, new_tar = tempfile.mkstemp(prefix="signatures_", dir=UPDATER_DIR, suffix='.tar.bz2')
580
+ new_tar = tempfile.NamedTemporaryFile(prefix="signatures_", dir=UPDATER_DIR, suffix='.tar.bz2',
581
+ delete=False)
582
+ new_tar.close()
583
+ new_tar = new_tar.name
577
584
  tar_handle = tarfile.open(new_tar, 'w:bz2')
578
585
  tar_handle.add(new_directory, '/')
579
586
  tar_handle.close()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: assemblyline-v4-service
3
- Version: 4.4.0.83
3
+ Version: 4.4.0.85
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
@@ -1,4 +1,4 @@
1
- assemblyline_v4_service/VERSION,sha256=L576K9Dd0W9W_CaQPkWWU3gFRtGAmohsYwR_R6MKlZE,9
1
+ assemblyline_v4_service/VERSION,sha256=E62WJh-BgKQVL_CFYgZsacBT3n6mvzF9Sja0WNjS2ns,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=qd4DmHo5G_Tpv8tb0A96qNfCGuXBu5MlIKB205z5e5w,14514
@@ -21,7 +21,7 @@ assemblyline_v4_service/updater/app.py,sha256=Mtmx4bkXfP4nFqqa5q15jW8QIXr4JK84lC
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
23
  assemblyline_v4_service/updater/helper.py,sha256=HbH5p6UTdHyIgoctF1c1pQkoqTtzaxfHOi9KXGwn0eM,9435
24
- assemblyline_v4_service/updater/updater.py,sha256=UDqkKF4tQQbBF13fhCQzfJcmlNhYS5iI23odbpKpofE,32131
24
+ assemblyline_v4_service/updater/updater.py,sha256=drpGkDFm_epjzwU8gUd43WuFSuRxgj1qWzAt6JkhIGQ,32422
25
25
  test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  test/test_healthz.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
27
27
  test/test_run_privileged_service.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
@@ -31,13 +31,13 @@ test/test_common/test_api.py,sha256=rh0-0CwqLtpRfKlcUFT-T2xgmBe7nP9fCZ0jpzufKek,
31
31
  test/test_common/test_base.py,sha256=3B35CTxumj1jI-Yap17aWuoruWp0DYwUwnPl-hxrpkA,13143
32
32
  test/test_common/test_helper.py,sha256=4r5S4W7EXUx4ldq7LZny0j3oohpnskya9pjMhrWBHD4,2388
33
33
  test/test_common/test_ocr.py,sha256=s5kL0vKjLmbyXuCg-9v6V6wQwwFRu0w2hYpjG0_BXy4,1874
34
- test/test_common/test_ontology_helper.py,sha256=snkj61_iPzU0cE1dzJounZikkG2LY-GQrDgyqYqA5Hs,7784
34
+ test/test_common/test_ontology_helper.py,sha256=TuvTeP9BTRqklOlsLu_yMdN9wdPWlVAENx2JqUe9a-A,7856
35
35
  test/test_common/test_request.py,sha256=K-gaHe20AUztfU3pLdWYv5bc6088GBBKP-eb833cis0,11729
36
36
  test/test_common/test_result.py,sha256=Wm0Cs5kZRzlZr0jL-l8OTsYAvkoN2eaB3NkeXzvyssI,42208
37
37
  test/test_common/test_task.py,sha256=RWsGEN0L-xKoRAsGv2x4JZcSAySS9aBF4dwL9t7tepo,18668
38
38
  test/test_common/test_utils.py,sha256=TbnBxqpS_ZC5ptXR9XJX3xtbItD0mTbtiBxxdyP8J5k,5904
39
- assemblyline_v4_service-4.4.0.83.dist-info/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
40
- assemblyline_v4_service-4.4.0.83.dist-info/METADATA,sha256=ArE5nY8WFW5IhdYpaUFKWqCYvYYAwplca_5TebcfPSs,9659
41
- assemblyline_v4_service-4.4.0.83.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
42
- assemblyline_v4_service-4.4.0.83.dist-info/top_level.txt,sha256=LpTOEaVCatkrvbVq3EZseMSIa2PQZU-2rhuO_FTpZgY,29
43
- assemblyline_v4_service-4.4.0.83.dist-info/RECORD,,
39
+ assemblyline_v4_service-4.4.0.85.dist-info/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
40
+ assemblyline_v4_service-4.4.0.85.dist-info/METADATA,sha256=q9xUn6yMZJRlUFnX9ivnmaRDfZnlUuVaBYVHej8qH2w,9659
41
+ assemblyline_v4_service-4.4.0.85.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
42
+ assemblyline_v4_service-4.4.0.85.dist-info/top_level.txt,sha256=LpTOEaVCatkrvbVq3EZseMSIa2PQZU-2rhuO_FTpZgY,29
43
+ assemblyline_v4_service-4.4.0.85.dist-info/RECORD,,
@@ -7,6 +7,7 @@ import pytest
7
7
  from assemblyline_v4_service.common.ontology_helper import *
8
8
  from assemblyline_v4_service.common.result import ResultSection
9
9
 
10
+ from assemblyline.odm.models.ontology.ontology import ODM_VERSION
10
11
  from assemblyline.odm.models.ontology.filetypes import PE
11
12
  from assemblyline.odm.models.ontology.results import Antivirus
12
13
 
@@ -218,7 +219,7 @@ def test_attach_ontology(dummy_request_class):
218
219
  'size': 123,
219
220
  'type': None},
220
221
  'odm_type': 'Assemblyline Result Ontology',
221
- 'odm_version': '1.5',
222
+ 'odm_version': ODM_VERSION,
222
223
  'results': {'heuristics': [],
223
224
  'tags': {'network.static.domain': ['blah.com']}},
224
225
  'service': {'name': 'blah',