forked from p15670423/monkey
Run black to resolve E261 warnings
This commit is contained in:
parent
56e754eddd
commit
4466ff44cf
|
@ -1,7 +1,6 @@
|
||||||
import random
|
import random
|
||||||
|
|
||||||
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.\
|
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.sample_multiplier.fake_ip_generator import (
|
||||||
sample_multiplier.fake_ip_generator import (
|
|
||||||
FakeIpGenerator,
|
FakeIpGenerator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,10 @@ from tqdm import tqdm
|
||||||
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.sample_file_parser import (
|
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.sample_file_parser import (
|
||||||
SampleFileParser,
|
SampleFileParser,
|
||||||
)
|
)
|
||||||
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.\
|
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.sample_multiplier.fake_ip_generator import (
|
||||||
sample_multiplier.fake_ip_generator import (
|
|
||||||
FakeIpGenerator,
|
FakeIpGenerator,
|
||||||
)
|
)
|
||||||
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.\
|
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.sample_multiplier.fake_monkey import (
|
||||||
sample_multiplier.fake_monkey import (
|
|
||||||
FakeMonkey,
|
FakeMonkey,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.\
|
from envs.monkey_zoo.blackbox.tests.performance.telem_sample_parsing.sample_multiplier.fake_ip_generator import (
|
||||||
sample_multiplier.fake_ip_generator import (
|
|
||||||
FakeIpGenerator,
|
FakeIpGenerator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from infection_monkey.post_breach.shell_startup_files.linux.shell_startup_files_modification import ( # noqa: E501
|
from infection_monkey.post_breach.shell_startup_files.linux.shell_startup_files_modification import ( # noqa: E501
|
||||||
get_linux_commands_to_modify_shell_startup_files,
|
get_linux_commands_to_modify_shell_startup_files,
|
||||||
)
|
)
|
||||||
from infection_monkey.post_breach.shell_startup_files.windows.shell_startup_files_modification import ( # noqa: E501
|
from infection_monkey.post_breach.shell_startup_files.windows.shell_startup_files_modification import ( # noqa: E501
|
||||||
get_windows_commands_to_modify_shell_startup_files,
|
get_windows_commands_to_modify_shell_startup_files,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ class TestPypykatzHandler(TestCase):
|
||||||
"credtype": "dpapi",
|
"credtype": "dpapi",
|
||||||
"key_guid": "9123-123ae123de4-121239-3123-421f",
|
"key_guid": "9123-123ae123de4-121239-3123-421f",
|
||||||
"masterkey": "6e81d0cfd5e9ec083cfbdaf4d25b9cc9cc6b7294"
|
"masterkey": "6e81d0cfd5e9ec083cfbdaf4d25b9cc9cc6b7294"
|
||||||
"7f5e80920034d1275d8613532025975e"
|
"7f5e80920034d1275d8613532025975e"
|
||||||
"f051e891c30e6e9af6db54500fedfed1c968389bf6262c77fbaa68c9",
|
"f051e891c30e6e9af6db54500fedfed1c968389bf6262c77fbaa68c9",
|
||||||
"sha1_masterkey": "bbdabc3cd2f6bcbe3e2cee6ce4ce4cebcef4c6da",
|
"sha1_masterkey": "bbdabc3cd2f6bcbe3e2cee6ce4ce4cebcef4c6da",
|
||||||
"luid": 123086,
|
"luid": 123086,
|
||||||
|
@ -66,7 +66,7 @@ class TestPypykatzHandler(TestCase):
|
||||||
"credtype": "dpapi",
|
"credtype": "dpapi",
|
||||||
"key_guid": "9123-123ae123de4-121239-3123-421f",
|
"key_guid": "9123-123ae123de4-121239-3123-421f",
|
||||||
"masterkey": "6e81d0cfd5e9ec083cfbdaf4d25b9cc9cc6b729"
|
"masterkey": "6e81d0cfd5e9ec083cfbdaf4d25b9cc9cc6b729"
|
||||||
"47f5e80920034d1275d8613532025975e"
|
"47f5e80920034d1275d8613532025975e"
|
||||||
"f051e891c30e6e9af6db54500fedfed1c968389bf6262c77fbaa68c9",
|
"f051e891c30e6e9af6db54500fedfed1c968389bf6262c77fbaa68c9",
|
||||||
"sha1_masterkey": "bbdabc3cd2f6bcbe3e2cee6ce4ce4cebcef4c6da",
|
"sha1_masterkey": "bbdabc3cd2f6bcbe3e2cee6ce4ce4cebcef4c6da",
|
||||||
"luid": 123086,
|
"luid": 123086,
|
||||||
|
@ -75,7 +75,7 @@ class TestPypykatzHandler(TestCase):
|
||||||
"credtype": "dpapi",
|
"credtype": "dpapi",
|
||||||
"key_guid": "9123-123ae123de4-121239-3123-421f",
|
"key_guid": "9123-123ae123de4-121239-3123-421f",
|
||||||
"masterkey": "6e81d0cfd5e9ec083cfbdaf4d25b9cc9cc6b72"
|
"masterkey": "6e81d0cfd5e9ec083cfbdaf4d25b9cc9cc6b72"
|
||||||
"947f5e80920034d1275d8613532025975e"
|
"947f5e80920034d1275d8613532025975e"
|
||||||
"f051e891c30e6e9af6db54500fedfed1c968389bf6262c77fbaa68c9",
|
"f051e891c30e6e9af6db54500fedfed1c968389bf6262c77fbaa68c9",
|
||||||
"sha1_masterkey": "bbdabc3cd2f6bcbe3e2cee6ce4ce4cebcef4c6da",
|
"sha1_masterkey": "bbdabc3cd2f6bcbe3e2cee6ce4ce4cebcef4c6da",
|
||||||
"luid": 123086,
|
"luid": 123086,
|
||||||
|
@ -84,7 +84,7 @@ class TestPypykatzHandler(TestCase):
|
||||||
"credtype": "dpapi",
|
"credtype": "dpapi",
|
||||||
"key_guid": "9123-123ae123de4-121239-3123-421f",
|
"key_guid": "9123-123ae123de4-121239-3123-421f",
|
||||||
"masterkey": "6e81d0cfd5e9ec083cfbdaf4d25b9cc9cc6b729"
|
"masterkey": "6e81d0cfd5e9ec083cfbdaf4d25b9cc9cc6b729"
|
||||||
"47f5e80920034d1275d8613532025975e"
|
"47f5e80920034d1275d8613532025975e"
|
||||||
"f051e891c30e6e9af6db54500fedfed1c968389bf6262c77fbaa68c9",
|
"f051e891c30e6e9af6db54500fedfed1c968389bf6262c77fbaa68c9",
|
||||||
"sha1_masterkey": "bbdabc3cd2f6bcbe3e2cee6ce4ce4cebcef4c6da",
|
"sha1_masterkey": "bbdabc3cd2f6bcbe3e2cee6ce4ce4cebcef4c6da",
|
||||||
"luid": 123086,
|
"luid": 123086,
|
||||||
|
|
|
@ -227,7 +227,7 @@ SCHEMA = {
|
||||||
"necessary": False,
|
"necessary": False,
|
||||||
"link": "https://attack.mitre.org/techniques/T1216",
|
"link": "https://attack.mitre.org/techniques/T1216",
|
||||||
"description": "Adversaries may use scripts signed with "
|
"description": "Adversaries may use scripts signed with "
|
||||||
"trusted certificates to "
|
"trusted certificates to "
|
||||||
"proxy execution of malicious files on Windows systems.",
|
"proxy execution of malicious files on Windows systems.",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -256,7 +256,7 @@ SCHEMA = {
|
||||||
"necessary": False,
|
"necessary": False,
|
||||||
"link": "https://attack.mitre.org/techniques/T1003",
|
"link": "https://attack.mitre.org/techniques/T1003",
|
||||||
"description": "Mapped with T1078 Valid Accounts because "
|
"description": "Mapped with T1078 Valid Accounts because "
|
||||||
"both techniques require"
|
"both techniques require"
|
||||||
" same credential harvesting modules. "
|
" same credential harvesting modules. "
|
||||||
"Credential dumping is the process of obtaining account login "
|
"Credential dumping is the process of obtaining account login "
|
||||||
"and password "
|
"and password "
|
||||||
|
|
|
@ -65,7 +65,7 @@ FINGER_CLASSES = {
|
||||||
"title": "PostgreSQLFinger",
|
"title": "PostgreSQLFinger",
|
||||||
"safe": True,
|
"safe": True,
|
||||||
"info": "Checks if PostgreSQL service is running and if "
|
"info": "Checks if PostgreSQL service is running and if "
|
||||||
"its communication is encrypted.",
|
"its communication is encrypted.",
|
||||||
"attack_techniques": ["T1210"],
|
"attack_techniques": ["T1210"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -176,7 +176,7 @@ INTERNAL = {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 3000,
|
"default": 3000,
|
||||||
"description": "Maximum time (in milliseconds) "
|
"description": "Maximum time (in milliseconds) "
|
||||||
"to wait for TCP response",
|
"to wait for TCP response",
|
||||||
},
|
},
|
||||||
"tcp_scan_get_banner": {
|
"tcp_scan_get_banner": {
|
||||||
"title": "TCP scan - get banner",
|
"title": "TCP scan - get banner",
|
||||||
|
|
|
@ -2,16 +2,16 @@ from dataclasses import dataclass
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Type
|
from typing import Type
|
||||||
|
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.cred_exploit import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.cred_exploit import ( # noqa: E501
|
||||||
CredExploitProcessor,
|
CredExploitProcessor,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
||||||
ExploitProcessor,
|
ExploitProcessor,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.shellshock_exploit import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.shellshock_exploit import ( # noqa: E501
|
||||||
ShellShockExploitProcessor,
|
ShellShockExploitProcessor,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.zerologon import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.zerologon import ( # noqa: E501
|
||||||
ZerologonExploitProcessor,
|
ZerologonExploitProcessor,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.exploiter_report_info import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.exploiter_report_info import ( # noqa: E501
|
||||||
CredentialType,
|
CredentialType,
|
||||||
ExploiterReportInfo,
|
ExploiterReportInfo,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
||||||
ExploitProcessor,
|
ExploitProcessor,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from monkey_island.cc.services.node import NodeService
|
from monkey_island.cc.services.node import NodeService
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.exploiter_report_info import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.exploiter_report_info import ( # noqa: E501
|
||||||
ExploiterReportInfo,
|
ExploiterReportInfo,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
||||||
ExploiterReportInfo,
|
ExploiterReportInfo,
|
||||||
ExploitProcessor,
|
ExploitProcessor,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
||||||
ExploiterReportInfo,
|
ExploiterReportInfo,
|
||||||
ExploitProcessor,
|
ExploitProcessor,
|
||||||
)
|
)
|
||||||
|
|
|
@ -22,13 +22,13 @@ from monkey_island.cc.services.configuration.utils import (
|
||||||
get_config_network_segments_as_subnet_groups,
|
get_config_network_segments_as_subnet_groups,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.node import NodeService
|
from monkey_island.cc.services.node import NodeService
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.exploiter_descriptor_enum import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.exploiter_descriptor_enum import ( # noqa: E501
|
||||||
ExploiterDescriptorEnum,
|
ExploiterDescriptorEnum,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.cred_exploit import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.cred_exploit import ( # noqa: E501
|
||||||
CredentialType,
|
CredentialType,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
from monkey_island.cc.services.reporting.issue_processing.exploit_processing.processors.exploit import ( # noqa: E501
|
||||||
ExploiterReportInfo,
|
ExploiterReportInfo,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.reporting.pth_report import PTHReportService
|
from monkey_island.cc.services.reporting.pth_report import PTHReportService
|
||||||
|
|
|
@ -3,7 +3,7 @@ import logging
|
||||||
from monkey_island.cc.server_utils.encryptor import get_encryptor
|
from monkey_island.cc.server_utils.encryptor import get_encryptor
|
||||||
from monkey_island.cc.services.config import ConfigService
|
from monkey_island.cc.services.config import ConfigService
|
||||||
from monkey_island.cc.services.node import NodeService
|
from monkey_island.cc.services.node import NodeService
|
||||||
from monkey_island.cc.services.telemetry.processing.system_info_collectors.system_info_telemetry_dispatcher import ( # noqa: E501
|
from monkey_island.cc.services.telemetry.processing.system_info_collectors.system_info_telemetry_dispatcher import ( # noqa: E501
|
||||||
SystemInfoTelemetryDispatcher,
|
SystemInfoTelemetryDispatcher,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.wmi_handler import WMIHandler
|
from monkey_island.cc.services.wmi_handler import WMIHandler
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from monkey_island.cc.models import Monkey
|
from monkey_island.cc.models import Monkey
|
||||||
from monkey_island.cc.services.telemetry.processing.system_info_collectors.system_info_telemetry_dispatcher import ( # noqa: E501
|
from monkey_island.cc.services.telemetry.processing.system_info_collectors.system_info_telemetry_dispatcher import ( # noqa: E501
|
||||||
SystemInfoTelemetryDispatcher,
|
SystemInfoTelemetryDispatcher,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import uuid
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from monkey_island.cc.models import Monkey
|
from monkey_island.cc.models import Monkey
|
||||||
from monkey_island.cc.services.telemetry.processing.system_info_collectors.system_info_telemetry_dispatcher import ( # noqa: E501
|
from monkey_island.cc.services.telemetry.processing.system_info_collectors.system_info_telemetry_dispatcher import ( # noqa: E501
|
||||||
SystemInfoTelemetryDispatcher,
|
SystemInfoTelemetryDispatcher,
|
||||||
process_aws_telemetry,
|
process_aws_telemetry,
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,7 +2,7 @@ from enum import Enum
|
||||||
|
|
||||||
from common.utils.code_utils import get_value_from_dict
|
from common.utils.code_utils import get_value_from_dict
|
||||||
from common.utils.exceptions import RulePathCreatorNotFound
|
from common.utils.exceptions import RulePathCreatorNotFound
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators_list import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators_list import ( # noqa: E501
|
||||||
RULE_PATH_CREATORS_LIST,
|
RULE_PATH_CREATORS_LIST,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.cloudform
|
||||||
CloudformationRules,
|
CloudformationRules,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.cloudtrai
|
||||||
CloudTrailRules,
|
CloudTrailRules,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.cloudwatc
|
||||||
CloudWatchRules,
|
CloudWatchRules,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.config_ru
|
||||||
ConfigRules,
|
ConfigRules,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.elb_rules import ELBRules
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.elb_rules import ELBRules
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.elbv2_rules import ELBv2Rules
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.elbv2_rules import ELBv2Rules
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.iam_rules import IAMRules
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.iam_rules import IAMRules
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.rds_rules import RDSRules
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.rds_rules import RDSRules
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.redshift_
|
||||||
RedshiftRules,
|
RedshiftRules,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.s3_rules import S3Rules
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.s3_rules import S3Rules
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.ses_rules import SESRules
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.ses_rules import SESRules
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.sns_rules import SNSRules
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.sns_rules import SNSRules
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.sqs_rules import SQSRules
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.sqs_rules import SQSRules
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.vpc_rules import VPCRules
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.rule_names.vpc_rules import VPCRules
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
from monkey_island.cc.services.zero_trust.scoutsuite.consts.service_consts import SERVICE_TYPES
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.abstract_rule_path_creator import ( # noqa: E501
|
||||||
AbstractRulePathCreator,
|
AbstractRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,46 +1,46 @@
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.cloudformation_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.cloudformation_rule_path_creator import ( # noqa: E501
|
||||||
CloudformationRulePathCreator,
|
CloudformationRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.cloudtrail_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.cloudtrail_rule_path_creator import ( # noqa: E501
|
||||||
CloudTrailRulePathCreator,
|
CloudTrailRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.cloudwatch_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.cloudwatch_rule_path_creator import ( # noqa: E501
|
||||||
CloudWatchRulePathCreator,
|
CloudWatchRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.config_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.config_rule_path_creator import ( # noqa: E501
|
||||||
ConfigRulePathCreator,
|
ConfigRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.ec2_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.ec2_rule_path_creator import ( # noqa: E501
|
||||||
EC2RulePathCreator,
|
EC2RulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.elb_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.elb_rule_path_creator import ( # noqa: E501
|
||||||
ELBRulePathCreator,
|
ELBRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.elbv2_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.elbv2_rule_path_creator import ( # noqa: E501
|
||||||
ELBv2RulePathCreator,
|
ELBv2RulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.iam_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.iam_rule_path_creator import ( # noqa: E501
|
||||||
IAMRulePathCreator,
|
IAMRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.rds_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.rds_rule_path_creator import ( # noqa: E501
|
||||||
RDSRulePathCreator,
|
RDSRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.redshift_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.redshift_rule_path_creator import ( # noqa: E501
|
||||||
RedshiftRulePathCreator,
|
RedshiftRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.s3_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.s3_rule_path_creator import ( # noqa: E501
|
||||||
S3RulePathCreator,
|
S3RulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.ses_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.ses_rule_path_creator import ( # noqa: E501
|
||||||
SESRulePathCreator,
|
SESRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.sns_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.sns_rule_path_creator import ( # noqa: E501
|
||||||
SNSRulePathCreator,
|
SNSRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.sqs_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.sqs_rule_path_creator import ( # noqa: E501
|
||||||
SQSRulePathCreator,
|
SQSRulePathCreator,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.vpc_rule_path_creator import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.scoutsuite.data_parsing.rule_path_building.rule_path_creators.vpc_rule_path_creator import ( # noqa: E501
|
||||||
VPCRulePathCreator,
|
VPCRulePathCreator,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ from common.common_consts.zero_trust_consts import (
|
||||||
WORKLOADS,
|
WORKLOADS,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.services.zero_trust.zero_trust_report.pillar_service import PillarService
|
from monkey_island.cc.services.zero_trust.zero_trust_report.pillar_service import PillarService
|
||||||
from monkey_island.cc.services.zero_trust.zero_trust_report.test_common.example_finding_data import ( # noqa: E501
|
from monkey_island.cc.services.zero_trust.zero_trust_report.test_common.example_finding_data import ( # noqa: E501
|
||||||
save_example_findings,
|
save_example_findings,
|
||||||
)
|
)
|
||||||
from monkey_island.cc.test_common.fixtures import FixtureEnum
|
from monkey_island.cc.test_common.fixtures import FixtureEnum
|
||||||
|
|
Loading…
Reference in New Issue