Skip to content

Commit

Permalink
Update T1135.yaml (#2745)
Browse files Browse the repository at this point in the history
Co-authored-by: Carrie Roberts <[email protected]>
  • Loading branch information
Leomon5 and clr2of8 authored Apr 24, 2024
1 parent 9d43143 commit a7a16b3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions atomics/T1135/T1135.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,31 @@ atomic_tests:
dir \\#{computer_ip}\admin$
dir \\#{computer_ip}\IPC$
name: command_prompt
- name: Enumerate All Network Shares with SharpShares
description: |
SharpShares is a command line tool that can be integrated with Cobalt Strike's execute-assembly module, allowing for the enumeration of network shares.
This technique has been utilized by various ransomware groups, including BianLian.
[Reference](https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-136a)
supported_platforms:
- windows
input_arguments:
output_path:
description: File to output enumeration results to
type: String
default: '$env:temp\T1135SharpSharesOutput.txt'
sharp_path:
description: Path to the SharpShares executable
type: String
default: PathToAtomicsFolder\..\ExternalPayloads\SharpShares.exe
dependency_executor_name: powershell
dependencies:
- description: The SharpShares executable must exist on disk
prereq_command: if (Test-Path "PathToAtomicsFolder\..\ExternalPayloads\SharpShares.exe") {exit 0} else {exit 1}
get_prereq_command: |-
New-Item -Type Directory "PathToAtomicsFolder\..\ExternalPayloads\" -ErrorAction Ignore -Force | Out-Null
Invoke-WebRequest "https://github.com/mitchmoser/SharpShares/releases/download/v2.4/SharpShares.exe" -OutFile "PathToAtomicsFolder\..\ExternalPayloads\SharpShares.exe"
executor:
command: cmd /c '#{sharp_path}' /ldap:all | out-file -filepath "#{output_path}"
cleanup_command: remove-item "#{output_path}" -force -erroraction silentlycontinue
name: powershell
elevation_required: false

0 comments on commit a7a16b3

Please sign in to comment.