Update T1070.005.yaml (#1695)

* Update T1070.005.yaml

New test to remove Admin$ share (net share Admin$ /delete)

* add cleanup commands/desc

* spacing fix

Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
nsher07
2021-12-24 00:17:28 +05:30
committed by GitHub
parent e77a01078a
commit 7e87e7e9af
+16
View File
@@ -48,3 +48,19 @@ atomic_tests:
Remove-SmbShare -Name #{share_name}
Remove-FileShare -Name #{share_name}
name: powershell
- name: Remove Administrative Shares
description: |
Administrative shares are hidden network shares created by Microsofts 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
executor:
command: for %i in (C$ IPC$ ADMIN$) do net share %i /delete
cleanup_command: |
net share ADMIN$ /UNLIMITED >nul 2>&1
net share C$=C:\ >nul 2>&1
net share IPC$ >nul 2>&1
name: command_prompt
elevation_required: true