{"id":"66a4d409-451b-4151-94f4-a55d559c49b0","title":"PowerShell Deleted Mounted Share","description":"Detects when when a mounted share is removed. Adversaries may remove share connections that are no longer useful in order to clean up traces of their operation","author":"oscd.community, @redcanary, Zach Stanford @svch0st","status":"test","level":"medium","date":"2020-10-08","modified":"2025-10-07","tags":["attack.stealth","attack.t1070.005"],"technique_ids":["T1070.005"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Administrators or Power users may remove their shares via cmd line"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1070.005/T1070.005.md"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_susp_mounted_share_deletion.yml","source_sha256":"fbfd77c7f2d239f9b3bde720ef09c58063bf80d0ea56173c325ebfb38c2bbd37","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_susp_mounted_share_deletion.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: PowerShell Deleted Mounted Share\nid: 66a4d409-451b-4151-94f4-a55d559c49b0\nstatus: test\ndescription: Detects when when a mounted share is removed. Adversaries may remove share connections that are no longer useful in order to clean up traces of their operation\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1070.005/T1070.005.md\nauthor: 'oscd.community, @redcanary, Zach Stanford @svch0st'\ndate: 2020-10-08\nmodified: 2025-10-07\ntags:\n    - attack.stealth\n    - attack.t1070.005\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection:\n        ScriptBlockText|contains:\n            - 'Remove-SmbShare'\n            - 'Remove-FileShare'\n    filter_main_module_load:\n        ScriptBlockText|contains|all:\n            - 'FileShare.cdxml'\n            - 'Microsoft.PowerShell.Core\\Export-ModuleMember'\n            - 'ROOT/Microsoft/Windows/Storage/MSFT_FileShare'\n            - 'ObjectModelWrapper'\n            - 'Cmdletization.MethodParameter'\n    condition: selection and not 1 of filter_main_*\nfalsepositives:\n    - Administrators or Power users may remove their shares via cmd line\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1070.005","id":"T1070.005","name":"Network Share Connection Removal","page":"techniques/enterprise/T1070.005/"}],"data_path":"data/detection-rules/66a4d409-451b-4151-94f4-a55d559c49b0.json","kind":"sigma"}
