Threat Hunting: Initial infection - Identify Scripts Files Written to User Profile Temp Directory
Where in the Cyber Kill Chain?
|
IDENTIFYING |
Written to user profile temp directory |
|
COMPONENT |
Remarks |
|
TACTIC |
Identify VBS, BAT, or PS1 scripts written to the root of the AppData\Local\Temp directory within any user profile. Meterpreter's persistence module drops a script to this path by default. This saved question deliberately excludes other file extensions such as EXE, CMD, or DLL files as legitimate application installers frequently write these file types to this path. |
|
TECHNIQUE |
Trace File Operations. Can be used as-is in most environments |
|
PROCEDURE |
Trace File Operations
|
Limitations
May produce false positives for legitimate usage by applications, or administrattive practices, but should be relatively uncommon.
Technique effective against the following adversary TTPs
-
Initial infections