Discovery · Windows
where.exe
Where
Finds files that match a pattern in the PATH or a folder tree. Used to find tools, scripts and config files on a host.
Legitimate use
Used to find which copy of a program runs first in the PATH.
Switches
Searches a folder and its subfolders.
LowReturns only an exit code, with no output.
InfoPuts quotes around file names.
InfoShows file size and last modified time.
InfoWhere it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
Community detections
1 SigmaHQ rule for where.exe. The explainer checks every pasted command line against all of them.
- LowSuspicious Where Execution
Adversaries may enumerate browser bookmarks to learn more about compromised hosts. Browser bookmarks may reveal personal information about users (ex: banking sites, interests, social media, etc.) as well as details about internal network resources such as servers, tools/dashboards, or other related infrastructure.
T1217by frack113, Nasreddine Bencherchali (Nextron Systems)
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.