Indicator Removal: Network Share Connection Removal T1070.005

Tactic: Stealth

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.

Events covered

5 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 6 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (8 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
CommandLine2contains 1, in 1*share* /CACHE:*, *share* /REMARK:*, *share* /delete*, /delete, share
OriginalFileName2eq 2net1.exe, net.exe
TargetObject2ends_with 2, contains 1\autoshareserver, \autosharewks, \services\lanmanserver\parameters\, \services\lanmanserver\parameters\maxmpxct
Details1eq 1DWORD (0x00000000)
EventID1eq 14103, 4104
Image1ends_with 1\net.exe, \net1.exe
ScriptBlockText1contains 1cmdletization.methodparameter, fileshare.cdxml, microsoft.powershell.core\export-modulemember
process_name1eq 1net1.exe

Top indicator values (24 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
OriginalFileNameeq
net1.exe
244
OriginalFileNameeq
net.exe
128
CommandLinecontains
/delete
18
CommandLinecontains
share
12
CommandLinein
*share* /CACHE:*
1
CommandLinein
*share* /REMARK:*
1
CommandLinein
*share* /delete*
1
Detailseq
DWORD (0x00000000)
138
EventIDeq
4103
1105
EventIDeq
4104
1268
Imageends_with
\net.exe
149
Imageends_with
\net1.exe
147
ScriptBlockTextcontains
cmdletization.methodparameter
1
ScriptBlockTextcontains
fileshare.cdxml
1
ScriptBlockTextcontains
microsoft.powershell.core\export-modulemember
1
ScriptBlockTextcontains
objectmodelwrapper
1
ScriptBlockTextcontains
remove-fileshare
1
ScriptBlockTextcontains
remove-smbshare
1
ScriptBlockTextcontains
root/microsoft/windows/storage/msft_fileshare
1
TargetObjectcontains
\services\lanmanserver\parameters\
1
TargetObjectends_with
\autoshareserver
1
TargetObjectends_with
\autosharewks
1
TargetObjectends_with
\services\lanmanserver\parameters\maxmpxct
1
process_nameeq
net1.exe
135

Exclusions (5 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
ScriptBlockTextcontains
cmdletization.methodparameter
1
ScriptBlockTextcontains
fileshare.cdxml
1
ScriptBlockTextcontains
microsoft.powershell.core\export-modulemember
1
ScriptBlockTextcontains
objectmodelwrapper
1
ScriptBlockTextcontains
root/microsoft/windows/storage/msft_fileshare
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 4 rules

Splunk 2 rules