mal-toolbox 0.1.10__py3-none-any.whl → 0.1.11__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.
- {mal_toolbox-0.1.10.dist-info → mal_toolbox-0.1.11.dist-info}/METADATA +3 -3
- {mal_toolbox-0.1.10.dist-info → mal_toolbox-0.1.11.dist-info}/RECORD +8 -8
- {mal_toolbox-0.1.10.dist-info → mal_toolbox-0.1.11.dist-info}/WHEEL +1 -1
- maltoolbox/__init__.py +2 -2
- maltoolbox/model.py +5 -1
- {mal_toolbox-0.1.10.dist-info → mal_toolbox-0.1.11.dist-info}/AUTHORS +0 -0
- {mal_toolbox-0.1.10.dist-info → mal_toolbox-0.1.11.dist-info}/LICENSE +0 -0
- {mal_toolbox-0.1.10.dist-info → mal_toolbox-0.1.11.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mal-toolbox
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.11
|
|
4
4
|
Summary: A collection of tools used to create MAL models and attack graphs.
|
|
5
5
|
Author-email: Andrei Buhaiu <buhaiu@kth.se>, Giuseppe Nebbione <nebbione@kth.se>, Nikolaos Kakouros <nkak@kth.se>, Jakob Nyberg <jaknyb@kth.se>, Joakim Loxdal <loxdal@kth.se>
|
|
6
6
|
License: Apache Software License
|
|
@@ -18,8 +18,8 @@ Requires-Python: >=3.10
|
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
License-File: AUTHORS
|
|
21
|
-
Requires-Dist: py2neo
|
|
22
|
-
Requires-Dist: python-jsonschema-objects
|
|
21
|
+
Requires-Dist: py2neo>=2021.2.3
|
|
22
|
+
Requires-Dist: python-jsonschema-objects>=0.5.5
|
|
23
23
|
Requires-Dist: antlr4-tools
|
|
24
24
|
Requires-Dist: antlr4-python3-runtime
|
|
25
25
|
Requires-Dist: docopt
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
maltoolbox/__init__.py,sha256=
|
|
1
|
+
maltoolbox/__init__.py,sha256=M-Kh4pF9te9FjvM4wYV3Tjlzfbd7Xh5Tre-uDDPec_0,2778
|
|
2
2
|
maltoolbox/__main__.py,sha256=1lOOOme_y56VWrEE1jkarTt-WoUo9yilCo8sUrivyns,2680
|
|
3
3
|
maltoolbox/default.conf,sha256=YLGBSJh2q8hn3RzRRBbib9F6E6pcvquoHeALMRtA0wU,295
|
|
4
4
|
maltoolbox/exceptions.py,sha256=0YjPx2v1yYumZ2o7pVZ1s_jS-GAb3Ng979KEFhROSNY,1399
|
|
5
5
|
maltoolbox/file_utils.py,sha256=6KFEEZvf9x8yfNAq7hadF7lUGlLimNFMJ0W_DK2rh6Q,2024
|
|
6
|
-
maltoolbox/model.py,sha256=
|
|
6
|
+
maltoolbox/model.py,sha256=gYGFdjkHPYpBuEngBRsj_Ki6fFSJtfBG9p8oCARz7gk,30556
|
|
7
7
|
maltoolbox/wrappers.py,sha256=BYYNcIdTlyumADQCPcy1xmPEabfmi0P1l9RcbdVWm9w,2002
|
|
8
8
|
maltoolbox/attackgraph/__init__.py,sha256=Oqqj5iCwnrzjDoJEFZnVI_kebjJPVbPXK-mWHy0lf-8,209
|
|
9
9
|
maltoolbox/attackgraph/attacker.py,sha256=OaBNDYZF8shbFuQctzuNYVkOrpNb_KhxxV19k0SRa50,3541
|
|
@@ -24,9 +24,9 @@ maltoolbox/language/compiler/mal_visitor.py,sha256=9gG06D7GZKlBY-62SmbIkRYkGBUBI
|
|
|
24
24
|
maltoolbox/translators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
maltoolbox/translators/securicad.py,sha256=FAIHnoqFTmNYbCGxLsK6pX5g1oiNFfPTqkT_3qq3GG8,6692
|
|
26
26
|
maltoolbox/translators/updater.py,sha256=Ap08-AsU_7or5ESQvZL2i4nWz3B5pvgfftZyc_-Gd8M,4766
|
|
27
|
-
mal_toolbox-0.1.
|
|
28
|
-
mal_toolbox-0.1.
|
|
29
|
-
mal_toolbox-0.1.
|
|
30
|
-
mal_toolbox-0.1.
|
|
31
|
-
mal_toolbox-0.1.
|
|
32
|
-
mal_toolbox-0.1.
|
|
27
|
+
mal_toolbox-0.1.11.dist-info/AUTHORS,sha256=zxLrLe8EY39WtRKlAY4Oorx4Z2_LHV2ApRvDGZgY7xY,127
|
|
28
|
+
mal_toolbox-0.1.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
29
|
+
mal_toolbox-0.1.11.dist-info/METADATA,sha256=hHRPXck_z0SDeAFw9olaTBiwhrX-ckI2ZsI_VAj4qWo,6002
|
|
30
|
+
mal_toolbox-0.1.11.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
31
|
+
mal_toolbox-0.1.11.dist-info/top_level.txt,sha256=phqRVLRKGdSUgRY03mcpi2cmbbDo5YGjkV4gkqHFFcM,11
|
|
32
|
+
mal_toolbox-0.1.11.dist-info/RECORD,,
|
maltoolbox/__init__.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# MAL Toolbox v0.1.
|
|
2
|
+
# MAL Toolbox v0.1.11
|
|
3
3
|
# Copyright 2024, Andrei Buhaiu.
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -21,7 +21,7 @@ MAL-Toolbox Framework
|
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
23
|
__title__ = 'maltoolbox'
|
|
24
|
-
__version__ = '0.1.
|
|
24
|
+
__version__ = '0.1.11'
|
|
25
25
|
__authors__ = ['Andrei Buhaiu',
|
|
26
26
|
'Giuseppe Nebbione',
|
|
27
27
|
'Nikolaos Kakouros',
|
maltoolbox/model.py
CHANGED
|
@@ -207,6 +207,10 @@ class Model():
|
|
|
207
207
|
)
|
|
208
208
|
self.assets.append(asset)
|
|
209
209
|
|
|
210
|
+
def remove_attacker(self, attacker: AttackerAttachment) -> None:
|
|
211
|
+
"""Remove attacker"""
|
|
212
|
+
self.attackers.remove(attacker)
|
|
213
|
+
|
|
210
214
|
def remove_asset(self, asset: SchemaGeneratedClass) -> None:
|
|
211
215
|
"""Remove an asset from the model.
|
|
212
216
|
|
|
@@ -659,7 +663,7 @@ class Model():
|
|
|
659
663
|
|
|
660
664
|
if asset.extras:
|
|
661
665
|
# Add optional metadata to dict
|
|
662
|
-
asset_dict['extras'] = asset.extras
|
|
666
|
+
asset_dict['extras'] = asset.extras.as_dict()
|
|
663
667
|
|
|
664
668
|
return (asset.id, asset_dict)
|
|
665
669
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|