assemblyline-v4-service 4.5.1.dev501__py3-none-any.whl → 4.6.0.0__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.5.1.dev501
1
+ 4.6.0.0
@@ -1,6 +1,5 @@
1
1
  import argparse
2
2
  import cProfile
3
- import importlib
4
3
  import json
5
4
  import logging
6
5
  import os
@@ -9,8 +8,6 @@ import shutil
9
8
  import tempfile
10
9
  from typing import Dict, Union
11
10
 
12
- from cart import get_metadata_only, unpack_stream
13
-
14
11
  from assemblyline.common import forge
15
12
  from assemblyline.common.heuristics import HeuristicHandler, InvalidHeuristicException
16
13
  from assemblyline.common.importing import load_module_by_path
@@ -22,11 +19,12 @@ from assemblyline.odm.models.service import Service
22
19
  from assemblyline_v4_service.common.base import ServiceBase
23
20
  from assemblyline_v4_service.common.helper import get_heuristics, get_service_manifest
24
21
  from assemblyline_v4_service.dev.updater import load_rules
22
+ from cart import get_metadata_only, unpack_stream
25
23
 
26
24
 
27
25
  class RunService:
28
26
  def __init__(self):
29
- self.service: ServiceBase = None
27
+ self.service: Union[ServiceBase, None] = None
30
28
  self.service_class = None
31
29
  self.submission_params = None
32
30
  self.file_dir = None
@@ -185,7 +183,7 @@ class RunService:
185
183
  LOG.info(f"Cleaning up file used for temporary processing: {target_file}")
186
184
  os.unlink(target_file)
187
185
 
188
- if self.service.rules_directory:
186
+ if self.service.rules_directory and self.service.rules_directory != "/":
189
187
  LOG.info("Cleaning up downloaded signatures..")
190
188
  shutil.rmtree(self.service.rules_directory)
191
189
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: assemblyline-v4-service
3
- Version: 4.5.1.dev501
3
+ Version: 4.6.0.0
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=zJ86Eq21TKq-L6JbfdkL0PEi7E-NVGkxB-mxXGYi5yY,13
1
+ assemblyline_v4_service/VERSION,sha256=h7EHjniwjpS6gKOeWZeJKeo1pZxOJ64f-ewPZ3ie_lc,8
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/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -15,7 +15,7 @@ assemblyline_v4_service/common/result.py,sha256=9AqM6qCYiia_Bpyn_fBFhzNQMcqJbtFS
15
15
  assemblyline_v4_service/common/task.py,sha256=dJsvRpW0x88CCF_LW6w87jQ_UKTVaOs2Gb117IDNiU8,14233
16
16
  assemblyline_v4_service/common/utils.py,sha256=k2__d-V5LjB6o2IKbjVe7tJWKcKuUHto5TyT5oKhIa0,3890
17
17
  assemblyline_v4_service/dev/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- assemblyline_v4_service/dev/run_service_once.py,sha256=wx_82hGwavxWhMsmNDfmlYs4KbcLnqeMg91ZGfXTZV0,10621
18
+ assemblyline_v4_service/dev/run_service_once.py,sha256=W9kR49IUbkt8tNXjCT40ZMh-8p5W_odxlkDx6nhTAYM,10656
19
19
  assemblyline_v4_service/dev/updater.py,sha256=b-FK6XPRZbETbl-SIYEhnYGT-W7EcQhnxwD6x2NMC7g,6411
20
20
  assemblyline_v4_service/updater/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  assemblyline_v4_service/updater/__main__.py,sha256=9Os-u8Tf7MD73JSrUSPmOaErTgfvesNLiEeszU4ujXA,133
@@ -24,7 +24,7 @@ assemblyline_v4_service/updater/client.py,sha256=tLY84gaGdFBVIDaMgRHIEa7x2S8jBl7
24
24
  assemblyline_v4_service/updater/gunicorn_config.py,sha256=p3j2KPBeD5jvMw9O5i7vAtlRgPSVVxIG9AO0DfN82J8,1247
25
25
  assemblyline_v4_service/updater/helper.py,sha256=Zy6OBmbTh0YurW0MnM0wM92vaKYMbo_MKnafe_5ONUI,10034
26
26
  assemblyline_v4_service/updater/updater.py,sha256=kli-5v1uVmk2FARAI9DsZ9YM4EhgirkmWJaMJWdm9GI,31795
27
- assemblyline_v4_service-4.5.1.dev501.dist-info/licenses/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
27
+ assemblyline_v4_service-4.6.0.0.dist-info/licenses/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
28
28
  test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  test/conftest.py,sha256=W3SieQpZsZpGEmtLqY4aIlxREDSsHceyCrFcFsWUM0U,1851
30
30
  test/test_healthz.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
@@ -40,7 +40,7 @@ test/test_common/test_request.py,sha256=Ceyds8BNO1O0f1kH1VEb84faJcaupvSjVKIrGdHe
40
40
  test/test_common/test_result.py,sha256=6BiOKxEPrKBjOY44jv3TY-yiXm0qI1ok_CZBnjP9TM4,45447
41
41
  test/test_common/test_task.py,sha256=P44mNcSe-3tJgDk9ppN3KbM7oN4LBVIuhONG-Gveh74,19007
42
42
  test/test_common/test_utils.py,sha256=TbnBxqpS_ZC5ptXR9XJX3xtbItD0mTbtiBxxdyP8J5k,5904
43
- assemblyline_v4_service-4.5.1.dev501.dist-info/METADATA,sha256=a5QdgttueRzp9lE43iFtzFvc4BAKfvBAs9Nn1SKh2II,5625
44
- assemblyline_v4_service-4.5.1.dev501.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
45
- assemblyline_v4_service-4.5.1.dev501.dist-info/top_level.txt,sha256=LpTOEaVCatkrvbVq3EZseMSIa2PQZU-2rhuO_FTpZgY,29
46
- assemblyline_v4_service-4.5.1.dev501.dist-info/RECORD,,
43
+ assemblyline_v4_service-4.6.0.0.dist-info/METADATA,sha256=-OQfzFSqW5ZGzKB4AWRDbHxf9paNF3paQFfNeBxt5n8,5620
44
+ assemblyline_v4_service-4.6.0.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
45
+ assemblyline_v4_service-4.6.0.0.dist-info/top_level.txt,sha256=LpTOEaVCatkrvbVq3EZseMSIa2PQZU-2rhuO_FTpZgY,29
46
+ assemblyline_v4_service-4.6.0.0.dist-info/RECORD,,