guardicore / monkey

Infection Monkey - An open-source adversary emulation platform
https://www.guardicore.com/infectionmonkey/
GNU General Public License v3.0
6.68k stars 786 forks source link

Add firewall rules around 10.2.3.48 to speed up depth_3_a test #2597

Closed mssalvatore closed 1 year ago

mssalvatore commented 1 year ago

Description

The depth_3_a test wastes 15-22 seconds waiting for 10.2.3.48 to shutdown. The cause is that 10.2.3.48 can successfully exploit other machines, but firewall rules prevent other machines from informing .48's relay that they don't need it. .48's relay is preventing the agent from shutting down quickly because it is waiting for child agents that will never be able to contact it.

image

Solution

Add firewall rules to prevent .48 from exploiting other machines.

Tasks

ilija-lazoroski commented 1 year ago

The added firewall rule is block-powershell-48-to-depth-3:

image

All monkeys are dead after 13 seconds instead of the 22 seconds above:

image

This required a network tag to be added to the mimikatz-15.

ilija-lazoroski commented 1 year ago

Test-1 zoo:

image