| name | T1070.005_network-share-connection-removal |
| description | Adversaries may remove share connections that are no longer useful in order to clean up traces of their operation. |
| category | configuration |
| version | 18.1 |
| author | cyberstrike-official |
| tags | ["mitre-attack","enterprise","t1070.005","defense-evasion","windows","sub-technique"] |
| technique_id | T1070.005 |
| tactic | defense-evasion |
| all_tactics | ["defense-evasion"] |
| platforms | ["Windows"] |
| mitre_url | https://attack.mitre.org/techniques/T1070/005 |
| tech_stack | ["windows"] |
| cwe_ids | ["CWE-693"] |
| chains_with | ["T1070","T1070.001","T1070.002","T1070.003","T1070.004","T1070.006","T1070.007","T1070.008","T1070.009","T1070.010"] |
| prerequisites | ["T1070"] |
| severity_boost | {"T1070":"Chain with T1070 for deeper attack path","T1070.001":"Chain with T1070.001 for deeper attack path","T1070.002":"Chain with T1070.002 for deeper attack path"} |
T1070.005 Network Share Connection Removal
Sub-technique of: T1070
High-Level Description
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 net use \system\share /delete command.
Kill Chain Phase
Platforms: Windows
What to Check
How to Test
Atomic Red Team Tests
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Atomic Test 1: Add Network Share
Add a Network Share utilizing the command_prompt
Supported Platforms: windows
net use c: #{share_name}
net share test=#{share_name} /REMARK:"test share" /CACHE:No
Atomic Test 2: Remove Network Share
Removes a Network Share utilizing the command_prompt
Supported Platforms: windows
net share #{share_name} /delete
Atomic Test 3: Remove Network Share PowerShell
Removes a Network Share utilizing PowerShell
Supported Platforms: windows
Remove-SmbShare -Name #{share_name}
Remove-FileShare -Name #{share_name}
Atomic Test 4: Disable Administrative Share Creation at Startup
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."