pycti 6.1.10__py3-none-any.whl → 6.1.12__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 pycti might be problematic. Click here for more details.

pycti/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = "6.1.10"
2
+ __version__ = "6.1.12"
3
3
 
4
4
  from .api.opencti_api_client import OpenCTIApiClient
5
5
  from .api.opencti_api_connector import OpenCTIApiConnector
@@ -377,7 +377,13 @@ class OpenCTIApiClient:
377
377
  :rtype: str or bytes
378
378
  """
379
379
 
380
- r = self.session.get(fetch_uri, headers=self.request_headers)
380
+ r = self.session.get(
381
+ fetch_uri,
382
+ headers=self.request_headers,
383
+ verify=self.ssl_verify,
384
+ cert=self.cert,
385
+ proxies=self.proxies,
386
+ )
381
387
  if binary:
382
388
  if serialize:
383
389
  return base64.b64encode(r.content).decode("utf-8")
@@ -13,6 +13,7 @@ class ConnectorType(Enum):
13
13
  "INTERNAL_IMPORT_FILE" # From OpenCTI file system to OpenCTI stix2
14
14
  )
15
15
  INTERNAL_ENRICHMENT = "INTERNAL_ENRICHMENT" # From OpenCTI stix2 to OpenCTI stix2
16
+ INTERNAL_ANALYSIS = "INTERNAL_ANALYSIS" # From OpenCTI file system or OpenCTI stix2 to OpenCTI file system
16
17
  INTERNAL_EXPORT_FILE = (
17
18
  "INTERNAL_EXPORT_FILE" # From OpenCTI stix2 to OpenCTI file system
18
19
  )
@@ -1661,19 +1661,6 @@ class OpenCTIStix2:
1661
1661
  objects_to_get = []
1662
1662
  relations_to_get = []
1663
1663
 
1664
- # Container
1665
- if "objects" in entity and len(entity["objects"]) > 0:
1666
- object_ids = list(map(lambda e: e["standard_id"], entity["objects"]))
1667
- export_query_filter = self.prepare_id_filters_export(
1668
- id=object_ids, access_filter=access_filter
1669
- )
1670
- filtered_objects = (
1671
- self.opencti.opencti_stix_object_or_stix_relationship.list(
1672
- filters=export_query_filter, getAll=True
1673
- )
1674
- )
1675
- entity["objects"] = filtered_objects
1676
-
1677
1664
  # CreatedByRef
1678
1665
  if (
1679
1666
  not no_custom_attributes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycti
3
- Version: 6.1.10
3
+ Version: 6.1.12
4
4
  Summary: Python API client for OpenCTI.
5
5
  Home-page: https://github.com/OpenCTI-Platform/client-python
6
6
  Author: Filigran
@@ -1,11 +1,11 @@
1
- pycti/__init__.py,sha256=6TzhdDsMsNVQ5WCpI7zcvsp-wOrBXQey-okFfDeHNpA,5036
1
+ pycti/__init__.py,sha256=kgfiATgUqcncVFf4UJvAKuoO2OBjMGHj2SvEahsnERk,5036
2
2
  pycti/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- pycti/api/opencti_api_client.py,sha256=oTPEdzbSTtN1NMMDFqv_DIOXuUwNz8cN7oXu3saSXyA,29701
3
+ pycti/api/opencti_api_client.py,sha256=c-xyfmas2LkYNIY8j4-dHBJepHNL6uNhageyJOvYdQc,29834
4
4
  pycti/api/opencti_api_connector.py,sha256=fYF0Jy9KIMFNt1RC_A1rpWomVJ-oj5HiSsBem4W0J5U,3549
5
5
  pycti/api/opencti_api_playbook.py,sha256=OkqDawpnMYIHz5sD4djlJ_KgORkfvQ7YbJwttxE-ea8,1470
6
6
  pycti/api/opencti_api_work.py,sha256=JLfl7oy6Cq9IrYW_kUrqwzN46FoVzyIn1JJQKyK0h_w,7615
7
7
  pycti/connector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- pycti/connector/opencti_connector.py,sha256=0vrZ8Y8ecbxegAP1YhpX6ybOZahYjjOkcId51D1oBi4,2449
8
+ pycti/connector/opencti_connector.py,sha256=5oVvS27KWhzRiofJAeQPDtba-EP83FziSistyEd5l-U,2561
9
9
  pycti/connector/opencti_connector_helper.py,sha256=w_KAUr-anmomlejfZfUD4Pb3cha5cuI5NclXUlkbRww,61944
10
10
  pycti/connector/opencti_metric_handler.py,sha256=4jXHeJflomtHjuQ_YU0b36TG7o26vOWbY_jvU8Ezobs,3725
11
11
  pycti/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -57,12 +57,12 @@ pycti/entities/opencti_vulnerability.py,sha256=dzJ0fZB2XrkPwT-cANr6atzYOWXF5nk0a
57
57
  pycti/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  pycti/utils/constants.py,sha256=Gj0fz94p0ApjCUCUqBQpFTfNslT021HS2w6M8azqXBY,10601
59
59
  pycti/utils/opencti_logger.py,sha256=0dvB75V0SuPFGxL539dAQrxTt1N5Acx0A3Ogwl5WMJ8,2199
60
- pycti/utils/opencti_stix2.py,sha256=Ovv8mS7Df0FTNZwO2Vful8XNWY5PwNuyrrLC3bhiOqI,117232
60
+ pycti/utils/opencti_stix2.py,sha256=xsQ2agRSnrQwMrS0DW5yjFU3j2gU-cglga2S5xN3_gc,116676
61
61
  pycti/utils/opencti_stix2_splitter.py,sha256=A2GqoiFzEga8hslgA3mm4FDoObFsWgx4zK4DdcWTguc,4907
62
62
  pycti/utils/opencti_stix2_update.py,sha256=CnMyqkeVA0jgyxEcgqna8sABU4YPMjkEJ228GVurIn4,14658
63
63
  pycti/utils/opencti_stix2_utils.py,sha256=4r9qglN3AIN8JH1B9Ts2o20Qn3K203M4c5-lIPzRpZ4,4138
64
- pycti-6.1.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
65
- pycti-6.1.10.dist-info/METADATA,sha256=7-WgCxnGFA3hTQs4CMH5pVNQsYQK9A-rqPHiDquza0k,5398
66
- pycti-6.1.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
67
- pycti-6.1.10.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
68
- pycti-6.1.10.dist-info/RECORD,,
64
+ pycti-6.1.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
65
+ pycti-6.1.12.dist-info/METADATA,sha256=2d6J8klDhQolh9nx92Lnqs6CQp4mqnt5QXCtYAlb9aY,5398
66
+ pycti-6.1.12.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
67
+ pycti-6.1.12.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
68
+ pycti-6.1.12.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5