Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may remove share connections that are no longer useful in order to clean up traces of their operation.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-10 | ✗→✓ | ▲ Improved | 133% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -72% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 255% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 101% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 106% | 0% |
> Sub-technique of: T1070
Adversaries may remove share connections that are no longer useful in order to clean up traces of their operation. Windows shared drive and SMB/Windows Admin Shares connections can be removed when no longer needed. Net is an example utility that can be used to remove network share connections with the <code>net use \\system\share /delete</code> command.
Platforms: Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Add a Network Share utilizing the command_prompt
Supported Platforms: windows
cmdnet use c: #{share_name} net share test=#{share_name} /REMARK:"test share" /CACHE:No
Removes a Network Share utilizing the command_prompt
Supported Platforms: windows
cmdnet share #{share_name} /delete
Removes a Network Share utilizing PowerShell
Supported Platforms: windows
powershellRemove-SmbShare -Name #{share_name} Remove-FileShare -Name #{share_name}
Administrative shares are hidden network shares created by Microsoft’s Windows NT operating systems that grant system administrators remote access to every disk volume on a network-connected system. These shares are automatically created at started unless they have been purposefully disabled as is done in this Atomic test. As Microsoft puts it, "Missing administrative shares typically indicate that the computer in question has been compromised by malicious software." https://threatpost.com/conti-ransomware-gang-has-full-log4shell-attack-chain/177173/
Supported Platforms: windows Elevation Required: Yes
cmdreg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v AutoShareServer /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v AutoShareWks /t REG_DWORD /d 0 /f
Administrative shares are hidden network shares created by Microsoft’s Windows NT operating systems that grant system administrators remote access to every disk volume on a network-connected system. As Microsoft puts it, “Missing administrative shares typically indicate that the computer in question has been compromised by malicious software. https://threatpost.com/conti-ransomware-gang-has-full-log4shell-attack-chain/177173/
Supported Platforms: windows Elevation Required: Yes
cmdfor %i in (C$ IPC$ ADMIN$) do net share %i /delete
If Atomic Red Team tests are not applicable, manually verify the technique by:
No specific mitigations documented for this technique.
| Finding | Severity | Impact | | ----------------------------------------------------- | -------- | --------------- | | Network Share Connection Removal technique applicable | Low | Defense Evasion |
| CWE ID | Title | | ------- | ---------------------------- | | CWE-693 | Protection Mechanism Failure |
Other measured skills in the registry, with their headline benchmark lift.