forked from guardicore/monkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvulture_allowlist.py
183 lines (151 loc) · 5.73 KB
/
vulture_allowlist.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
from aardwolf.commons.iosettings import RDPIOSettings
from agent_plugins.credentials_collectors.chrome.utils import BrowserCredentialsDatabasePath
from agent_plugins.exploiters.hadoop.plugin import Plugin as HadoopPlugin
from agent_plugins.exploiters.rdp.in_memory_file_provider import InMemoryFileProvider
from agent_plugins.exploiters.smb.plugin import Plugin as SMBPlugin
from agent_plugins.exploiters.snmp.src.snmp_exploit_client import SNMPResult
from agent_plugins.exploiters.wmi.plugin import Plugin as WMIPlugin
from agent_plugins.exploiters.zerologon.src.HostExploiter import HostExploiter
from agent_plugins.payloads.cryptojacker.src import cpu_utilizer, cryptojacker, memory_utilizer
from agent_plugins.payloads.ransomware.src.ransomware_options import (
EncryptionBehavior,
RansomwareOptions,
linux_target_dir,
windows_target_dir,
)
from asyauth.monkeytypes import UniCredential
from flask_security import Security
from common.agent_configuration import ScanTargetConfiguration
from common.agent_plugins import (
AgentPlugin,
AgentPluginManifest,
AgentPluginMetadata,
AgentPluginRepositoryIndex,
)
from common.decorators import request_cache
from infection_monkey.exploit.log4shell_utils.ldap_server import LDAPServerFactory
from infection_monkey.exploit.tools import secret_type_filter
from infection_monkey.exploit.zerologon import NetrServerPasswordSet, NetrServerPasswordSetResponse
from infection_monkey.exploit.zerologon_utils.remote_shell import RemoteShell
from infection_monkey.i_puppet import TargetHost
from infection_monkey.network.firewall import FirewallApp, WinAdvFirewall, WinFirewall
from infection_monkey.utils import commands
from monkey_island.cc.deployment import Deployment
from monkey_island.cc.models import Machine
from monkey_island.cc.repositories import IAgentEventRepository, MongoAgentEventRepository
from monkey_island.cc.services.agent_plugin_service import AgentPluginService
from monkey_island.cc.services.authentication_service.user import User
from monkey_island.cc.services.reporting.exploitations.monkey_exploitation import MonkeyExploitation
TargetHost.model_config
TargetHost.dump_ports
# Pydantic configurations are not picked up
ScanTargetConfiguration.blocked_ips_valid
ScanTargetConfiguration.inaccessible_subnets
ScanTargetConfiguration.subnets_valid
ScanTargetConfiguration.inaccessible_subnets_valid
LMHash.validate_hash_format
NTHash.validate_hash_format
AgentPluginManifest.title
AgentPluginManifest.description
AgentPluginManifest.link_to_documentation
AgentPluginManifest.safe
AgentPluginManifest.remediation_suggestion
AgentPluginManifest.target_operating_systems
AgentPluginManifest.supported_operating_systems
# Used by third party library
LDAPServerFactory.buildProtocol
NetrServerPasswordSet.structure
NetrServerPasswordSetResponse.structure
NetrServerPasswordSet.opnum
# Passed to Popen from agent
dwFlags # \infection_monkey\monkey\infection_monkey\monkey.py:490:
wShowWindow # \infection_monkey\monkey\infection_monkey\monkey.py:491:
# Attribute used by pydantic errors
msg_template
# Zerologon uses this to restore password:
RemoteShell.do_get
RemoteShell.do_exit
prompt
FirewallApp.listen_allowed
WinAdvFirewall.listen_allowed
WinFirewall.listen_allowed
# Server configurations
app.url_map.strict_slashes
api.representations
hub.exception_stream
app.login_via_request
app.should_set_cookie
app.session_interface
app.save_session
Security._want_json
# Deployment is chosen dynamically
Deployment.DEVELOP
Deployment.APPIMAGE
Deployment.DOCKER
# Pydantic models
Machine._socketaddress_from_string
Machine.dump_network_services
# Unused, but potentially useful
Machine.island
# We anticipate using these in the future
IAgentEventRepository.get_events_by_tag
IAgentEventRepository.get_events_by_source
MongoAgentEventRepository.get_events_by_tag
MongoAgentEventRepository.get_events_by_source
AWSCommandResults.response_code # monkey_island/cc/services/aws/aws_command_runner.py:26
MonkeyExploitation.label
AgentPlugin.dump_source_archive
AgentPlugin.supported_operating_systems
BrowserCredentialsDatabasePath.database_file_path
HadoopPlugin
SMBPlugin
WMIPlugin
HostExploiter.add_vuln_url
EncryptionBehavior.validate_file_extension
EncryptionBehavior.validate_linux_target_dir
EncryptionBehavior.validate_windows_target_dir
RansomwareOptions.encryption
RansomwareOptions.other_behaviors
linux_target_dir
windows_target_dir
# User model fields
User.active
User.fs_uniquifier
User.roles
User.get_by_id
User.email
identity_type_filter
secret_type_filter
SNMPResult.errorIndex
SNMPResult.varBinds
commands.build_agent_deploy_command
commands.build_agent_download_command
commands.build_command_windows_powershell
commands.build_download_command_linux_curl
commands.build_dropper_script_download_command
commands.build_download_command_windows_powershell_webclient
commands.build_download_command_windows_powershell_webrequest
request_cache
# Remove after the plugin interface is in place
AgentPluginMetadata.resource_path
AgentPluginMetadata._str_to_pure_posix_path
AgentPluginMetadata.model_config
AgentPluginMetadata.dump_string
AgentPluginRepositoryIndex
AgentPluginRepositoryIndex.model_config
AgentPluginRepositoryIndex.dump_compatible_infection_monkey_version
AgentPluginRepositoryIndex.compatible_infection_monkey_version
AgentPluginRepositoryIndex._infection_monkey_version_parser
AgentPluginRepositoryIndex._sort_plugins_by_version
AgentPluginRepositoryIndex.use_enum_values
AgentPluginRepositoryIndex._convert_str_type_to_enum
# RDP
InMemoryFileProvider.get_file_data
InMemoryFileProvider.get_file_size
UniCredential.stype
RDPIOSettings.video_width
RDPIOSettings.video_height
RDPIOSettings.video_bpp_max
RDPIOSettings.video_out_format
RDPIOSettings.clipboard_use_pyperclip
AgentPluginService.install_agent_plugin_from_repository