Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title
Recursive Enumerate File And Directories By Powershell
Details
This atomic simulates the reconnaissance stage of a data collection campaign: an adversary enumerates user folders to locate documents and archive files of potential intelligence value (e.g., invoices, contracts, reports, archived data). The test uses .NET streaming APIs ([System.IO.Directory]::EnumerateDirectories and [System.IO.Directory]::EnumerateFiles) to perform memory-efficient, recursive enumeration of common user locations (Documents, Downloads, Desktop, OneDrive) and filters for document/archive extensions such as .pdf, .doc, .docx, .xls, .xlsx, .txt, .zip, .rar and .7z.
This pattern is consistent with reconnaissance observed in commodity stealers and targeted campaigns (for example, behaviors similar to the LOSTKEYS VBScript-based malware used by COLDRIVER), where an operator or automated tool collects file paths and metadata to decide what to compress and exfiltrate later.
Reference : https://www.zscaler.com/blogs/security-research/coldriver-updates-arsenal-baitswitch-and-simplefix#:~:text=%5Bstring%5B%5D%5D%24di%20%3D%20%40(%27Documents,in%20January%202025.
Attack Commands
Already tested Invoke-Atomic Test



Enumeration Results Output
T1083-Enumerate-net.txt