Skip to content

Commit

Permalink
Update T1135.yaml (#2761)
Browse files Browse the repository at this point in the history
Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
  • Loading branch information
Leomon5 and clr2of8 committed May 9, 2024
1 parent 67bfc95 commit b4c3060
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 @@ -210,3 +210,31 @@ atomic_tests:
cleanup_command: remove-item "#{output_path}" -force -erroraction silentlycontinue
name: powershell
elevation_required: false
- name: Enumerate All Network Shares with Snaffler
description: |
Snaffler is an open-source tool that has been used by various threat groups, including Scattered Spider/Muddled Libra, to enumerate accessible shares and credential-containing files within a domain.
[Reference](https://unit42.paloaltonetworks.com/muddled-libra/)
supported_platforms:
- windows
input_arguments:
output_path:
description: File to output enumeration results to
type: String
default: '$env:temp\T1135SnafflerOutput.txt'
snaffler_path:
description: Path to the Snaffler executable
type: String
default: PathToAtomicsFolder\..\ExternalPayloads\Snaffler.exe
dependency_executor_name: powershell
dependencies:
- description: The Snaffler executable must exist on disk
prereq_command: if (Test-Path "PathToAtomicsFolder\..\ExternalPayloads\Snaffler.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/SnaffCon/Snaffler/releases/download/1.0.150/Snaffler.exe" -OutFile "PathToAtomicsFolder\..\ExternalPayloads\Snaffler.exe"
executor:
command: |
invoke-expression 'cmd /c start powershell -command { cmd /c "#{snaffler_path}" -a -o "#{output_path}" }; start-sleep 90; stop-process -name "snaffler"'
cleanup_command: remove-item "#{output_path}" -force -erroraction silentlycontinue
name: powershell
elevation_required: false

0 comments on commit b4c3060

Please sign in to comment.