Skip to content
WETNav

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.

Worst caseLow

Switches

/r<value>

Searches a folder and its subfolders.

Low
/q

Returns only an exit code, with no output.

Info
/f

Puts quotes around file names.

Info
/t

Shows file size and last modified time.

Info

Where 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.

  • Low
    Suspicious 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.