On projects to analyze the security of corporate information systems in 2019, our pentesters managed to overcome the network perimeter of 93% of companies . At the same time, the network of 50% of companies could be penetrated in just one step. In order to prevent real attackers from reaching their goal, it is important to identify their activity in time. One of the critical stages of an attack is lateral movement, when attackers expand their presence on the network.
In this article, I'll show you what activity is related to movement within the perimeter and how, using network analysis, to identify the use of such tactics.
What concerns moving within the perimeter
First, let's look at several schemes that will help you understand what stages the attack is divided into.
red team :
(Recon)
(Initial Compromise)
(Establish Persistence)
(Escalate Privileges)
(Internal Recon)
(Lateral Movement)
(Data Analysis)
4โ7 ( )
(Exfiltration and Complete Mission)
Active Directory Kill Chain, , .
2โ5
,
, .
ATT&CK, . MITRE. . , โ . . , .
Lateral movement ( ) , , , . DCOM, , . .
. , .
, :
ASP .NET, DMZ;
devops- agusev, ;
gpavlov ;
DC Administrator.
agusev gpavlov .
1.
, . devops- agusev, . , .
2. BloodHound DCOM (T1021.003)
BloodHound. , agusev Distributed Component Object Model (DCOM). SharpHound ( BloodHound) AGUSEV. Microsoft Management Console (MMC) 2.0.
DCOM , . , DCOM. , ( MMC 2.0). .
, , , .
AD BloodHound
BloodHound gpavlovAdm, .
3. RDP- (T1021.001 T1570)
RDP- AGUSEV. RDP- kerbrute (https://github.com/ropnop/kerbrute), gpavlovAdm.
Kerbrute . , . BloodHound, gpavlov. , GPAVLOV gpavlov, gpavlovAdm.
BloodHound
kerbrute.
4. c smbexec (T1021.002)
, gpavlov ( , ). smbexec Impacket. , , โ gpavlovAdm. mimikatz SharpSploit (Github).
SharpSploit PowerSploit. PowerShell, SparpSploit โ DLL C# .NET . , .
5.
mimikatz SharpSploit . , ntds.dit. secretsdump Impacket (Github).
. ATT&CK.
NTA- PT Network Attack Discovery. PT NAD L2โL7, , .
?
, , . , RDP โ , , . , DMZ, RDP- . , devops- , .
, RDP-?
SMB- DCERPC. RPC DCOM- Impacket. lateral movement .
โ , Impacket. cmd.exe system32 . HTTP-.
- ?
, ; , . ยซยป , โ , SPN- Active Directory. , .
LDAP. , . , , , , , BloodHound. , , Kerberos. 8380 : . PT NAD Kerberos.
? ?
, gpavlovAdm gpavlov. Kerberos- (KDC) . PT NAD . gpavlovAdm , โ . gpavlov , , .
? , ?
, . Service Control Manager Impacket, sharpsloit.dll.
, gpavlovAdm. , โ gpavlovAdm. . PT NAD , SCM, , SAM, LSA, SECURITY NTDS. , .
lateral movement
, , . :
COM-, (, MMC 2.0);
;
helpdesk Just Enough Administration;
;
System.Management.Automation.dll.
: , PT Expert Security Center (PT ESC)