Steps to contain a lateral movement attack using SMB exploits
An SMB compromise can turn a single infected laptop into a route across an entire organisation. The attacker may exploit a vulnerable file-sharing service, steal network credentials, or misuse legitimate administration features to move from one Windows host to another. Once that foothold is established, time matters: every minute of unrestricted connectivity gives the intruder more chances to reach sensitive systems and establish durable access.
A useful response separates the exploit from the abuse. Patching closes a vulnerable code path, but it does not remove stolen passwords, active sessions, malicious services, or the attacker’s route into cloud administration. The containment sequence must therefore combine rapid isolation with identity control, threat hunting, and a defensible recovery process. It also has to fit Australian operating conditions, including hybrid work and regulatory notification duties.
Establish what the attacker achieved
Not every SMB incident begins with a software exploit. An attacker may use a vulnerable SMB implementation, but they may also authenticate with stolen credentials and abuse administrative shares, remote services, or tools such as PsExec. The initial task is to establish which SMB paths were abused, which hosts initiated them, and whether remote code execution actually occurred. This distinction determines whether the first priority is isolation, account revocation, patching, or a combination of all three.
Correlate endpoint telemetry, Windows event logs, identity records, firewall changes, and network-flow data. Useful indicators include unexpected TCP 445 connections, service installation, remote logon types, and access to administrative shares. Preserve volatile evidence before reimaging and record all times in UTC while retaining the local AEST or AEDT timestamp. Do not power off a compromised machine unless active destruction makes continued operation more damaging; EDR quarantine can preserve evidence while severing most communication.
Define the affected scope before changing too much. Build a simple attacker path from the first known compromised device to every reachable server, account, and cloud service. In hybrid estates, CARM Security’s guidance on hybrid infrastructure remediation provides a useful model for validating indicators across endpoints, identity, and network controls. Assign one incident lead to maintain that path as containment changes it.
Interrupt active SMB movement
Isolate confirmed or strongly suspected systems at the endpoint and network layers. EDR network containment can stop command-and-control and peer-to-peer traffic, while a firewall policy can block the east-west SMB route between the affected subnet and critical destinations. Keep a protected management path for responders, logging, and remediation; cutting every administrative connection can delay containment and destroy useful visibility.
Block TCP 445 and legacy NetBIOS on port 139 by default between user devices, server zones, and business units. Permit narrowly defined source-destination pairs only when a documented dependency requires SMB, and review those exceptions often. Also inspect UDP 137 and 138, RPC 135, remote-management ports, and traffic between the affected host and domain controllers. SMB tunnelled through HTTPS may bypass a simple port block, so content and behaviour analytics remain important.
Use the least disruptive control that reliably breaks the attack path. Disable SMBv1 and remove unnecessary shares on exposed systems, then restrict the remaining SMB channels to approved management servers. If the intrusion relies on remote service creation or scheduled-task execution, disable the associated privileges at the affected hosts. In an active destructive incident, prioritising rapid isolation over graceful shutdown can reduce irreversible damage.
Contain compromised identity paths
Treat credentials as compromised until proven otherwise. Disable or reset affected user and service accounts, revoke active sessions and Kerberos tickets, and remove newly issued smart-card or virtual smart-card registrations. Where NTLM was used, rotate the relevant local and domain secrets and force a clean reauthentication. Password changes alone are insufficient if an attacker retains a privileged Kerberos ticket or an authenticated session.
Establish whether a domain controller or highly privileged administrator was reached. If so, contain the domain tier, rebuild compromised systems from trusted sources, and reset the KRBTGT account twice after the clean environment is restored and replication has completed. Existing tickets must then be invalidated. Rotate service-account secrets, local administrator passwords, and application credentials exposed to the attacker; otherwise a hidden session can reopen the route after recovery.
Reduce the value of each identity even while the incident remains active. Move administration to separate privileged workstations, remove standing local-administrator membership, and use Windows LAPS for managed local passwords. Enforce MFA and least privilege for cloud and remote-access services. If an endpoint held access to Microsoft 365 or another cloud platform, review its sessions, OAuth grants, service principals, and conditional-access changes as part of the same containment effort.
Remove vulnerable access paths
Patch the exact SMB weakness that enabled entry, then rebuild exposed systems if vendor guidance or forensic findings justify it. Prioritise internet-facing relays, file servers, domain controllers, and systems with remote administration enabled, because a single vulnerable relay can expose otherwise protected devices. Apply current vendor fixes, including MS17-010 where relevant, and verify the patch level rather than assuming deployment succeeded. Disabling SMBv1 is valuable but does not substitute for patching modern SMB flaws.
Require SMB signing on both inbound and outbound connections to prevent tampering and improve detection of unauthorised SMB use. Enable SMB encryption where supported and where performance testing permits it, especially for sensitive administration traffic. Restrict administrative shares, guest access, null sessions, and anonymous enumeration; require strong authentication and explicit path-level authorisation. Remove legacy RPC, NetBIOS, and NTLM dependencies in a controlled migration so they do not become permanent exceptions.
Validate the configuration with authenticated vulnerability scans and a controlled internal access test from representative workstations and servers. Monitor relevant Windows events, including logons, special privileges, process creation, scheduled tasks, service installation, and detailed file-share access, and feed those events into endpoint and identity analytics. A common Australian pattern in Sydney and Melbourne is staff moving between home broadband, office Wi-Fi, and corporate cloud services, so the same SMB restriction should apply across VPN, remote-access, and internal paths.
Hunt for persistence and secondary movement
Assume persistence exists until the environment is rebuilt or proven clean. Search for malicious services, scheduled tasks, registry run keys, WMI subscriptions, PowerShell profiles, startup folders, newly created local administrators, and modified remote-access tools. Review binaries and scripts that appeared around the initial SMB activity. Attackers often blend into normal administration, so the useful question is whether the artefact existed, who deployed it, and whether its parent process or account had a legitimate reason to be there.
Reconstruct lateral movement as a graph rather than a list of alerts. For each source host, identify every destination reached over SMB, remote administration, server-message or file-copy traffic, and any cloud API calls made with local credentials. Correlate that graph with new logons, privileged use, data downloads, archive creation, and outbound traffic to command-and-control infrastructure. A clean endpoint alert can still represent the second stage of a broader compromise, especially where one administrative account was reused across servers.
Eradicate confirmed artefacts from clean systems, rotate every exposed secret, and close the route that delivered the initial payload before reconnecting the host. Reimage when confidence in the operating system cannot be restored, and preserve evidence for investigation and insurance. For Australian operators managing remote sites in Queensland or Western Australia, isolate legacy or safety-critical equipment from user networks when possible, use allow-listed maintenance channels, and involve site specialists before changing production controls.
Coordinate response under Australian obligations
Containment decisions must run alongside Australian notification duties. If personal information is involved and the incident is likely to cause serious harm, assess the Notifiable Data Breaches scheme under the Privacy Act 1988 and meet OAIC and affected-person notification requirements. APRA-regulated entities must invoke their CPS 230 cyber incident response plan as soon as reasonably practicable and notify APRA of a significant cyber security incident as soon as possible, no later than 24 hours after becoming aware.
Engage the incident commander, legal and privacy advisers, insurers, relevant technology partners, and the Australian Signals Directorate or Joint Cyber Security Centre when the circumstances warrant it. An Australian managed service provider can add 24-hour operational support, but legal accountability remains with the organisation. Use one incident channel and a common timeline across teams in Brisbane, Melbourne, and Sydney to prevent contradictory containment actions or delayed reporting.
| Condition | Immediate containment choice | Main trade-off |
|---|---|---|
| Confirmed malicious SMB execution | Isolate the host and block its SMB path through EDR and firewall controls | Business interruption, but strong risk reduction |
| Vulnerable exposure without confirmed use | Apply emergency patches, disable SMBv1, and increase monitoring | Patch delays may leave an exploitable window |
| Exposed domain credentials | Disable accounts, revoke sessions and tickets, and rotate secrets | Dependent services may require careful sequencing |
| Suspected domain controller compromise | Rebuild trust from clean media and reset KRBTGT twice | Extended recovery and high coordination demands |
| Legacy or safety-critical host | Use an allow-listed maintenance channel and isolate user networks | Residual exposure remains until modernisation |
Choose controls based on confirmed risk, operational safety, and evidence preservation. Containment should be fastest where malicious execution and privilege escalation are observed; exposure without confirmed misuse can justify a different balance of patching, monitoring, and temporary access restrictions. Record the owner, approval, effect, and expiry of every emergency rule so recovery does not accidentally reinstate it.
Make containment repeatable
Turn the response into an operational capability rather than an improvised sequence. Define triggers for isolation, account suspension, network blocking, and executive escalation; assign responders by role; and maintain current asset, identity, and network dependency maps. Developed by Exclusive Networks for post-breach attack remediation, CARM Security can connect multi-vendor telemetry and mitigation workflows, while retained logs and documented decisions preserve the evidence needed for legal, regulatory, and insurer reviews. Exercise the playbook with the same Windows versions, remote-access methods, and third-party connections used in production.
Measure containment through restored trust, not merely a quiet queue. Track time to isolate, time to revoke identity access, percentage of SMB paths restricted, persistence checks completed, and evidence that affected systems remain clean after reconnection. The practical takeaway is to treat an SMB breach as a joint identity-and-network operation: sever east-west paths, revoke compromised access, remove exploit routes, hunt for persistence, and verify eradication before restoring normal connectivity.