Reference
Commands in the wild
The built-in Windows programs that show up in incident timelines, switch by switch. Each page lists how the tool is used legitimately, the command lines that should worry you and the events that capture it.
Explain a command lineDiscovery
- arp.exeARPShows and edits the ARP cache. The cache lists hosts on the local subnet that this computer has talked to.Medium
- dsquery.exeDirectory Service QueryQueries Active Directory for users, computers, groups and other objects. It is part of RSAT, so it is unusual on ordinary workstations.Medium
- gpresult.exeGroup Policy ResultsShows the Group Policy settings applied to a user and computer. Used to learn security settings, logon scripts and group memberships.Medium
- hostname.exeHostnamePrints the computer name. Low risk alone, but common in automated discovery scripts.Info
- ipconfig.exeIP ConfigurationShows network adapters, addresses, DNS servers and the DNS cache. Used to learn the local network and recently resolved names.Low
- net.exeNet commandManages users, groups, shares, services and sessions. It is used for account and domain discovery, account creation, mapping admin shares and stopping services. net.exe hands off to net1.exe.High
- netstat.exeNetstatLists active connections and listening ports, optionally with the owning process. Used to find other hosts and services from a compromised system.Low
- nltest.exenltestQueries domain controllers, trusts and secure channels. Trust and DC enumeration with nltest is a common step in ransomware and intrusion playbooks.Medium
- nslookup.exenslookupQueries DNS servers. Used to map domain controllers and services through SRV records, and DNS lookups can also carry data out.Medium
- query.exeQueryFront end for query user, session, process and termserver. It calls the matching helper binary from its own folder, so a copy outside System32 is worth checking.High
- quser.exeQuery UserLists users logged on to a host, with session ID, state and idle time. Used to find active admins before moving to their host.Medium
- qwinsta.exeQuery SessionLists Remote Desktop and console sessions on a host. Used to find logged-on users and sessions that could be taken over.Medium
- systeminfo.exeSystem InformationPrints OS version, hotfixes, domain, boot time and hardware details. It shows up early in intrusions to check the patch level and domain membership.Medium
- tasklist.exeTasklistLists running processes, services and loaded modules, locally or on a remote host. Often used to look for security tools or to find the LSASS process ID.Medium
- where.exeWhereFinds files that match a pattern in the PATH or a folder tree. Used to find tools, scripts and config files on a host.Low
- whoami.exewhoamiPrints the current user, groups and privileges. It is one of the first commands run after initial access or privilege escalation, so a run from an unusual parent is a useful early signal.Low
Credential access
- cmdkey.exeCredential Manager command lineLists, adds and deletes credentials saved in Windows Credential Manager. Listing saved credentials shows which hosts the user can reach without a password prompt.High
- diskshadow.exeDiskShadowScripts the Volume Shadow Copy Service. It can create and mount a shadow copy from a script, which is used to read locked files such as NTDS.dit, and its exec can run a program.High
- esentutl.exeExtensible Storage Engine utilityMaintains ESE databases. Its copy mode can read locked files through VSS, which is used to grab NTDS.dit or a locked hive, and it can copy files in and out as a transfer tool.Critical
- klist.exeKerberos ListLists and purges cached Kerberos tickets. A purge before new tickets appear can come before ticket injection in pass-the-ticket activity.Medium
- ntdsutil.exeNTDS utilityMaintains the Active Directory database. Its IFM create full option exports NTDS.dit and the SYSTEM hive, which together allow offline extraction of all domain credentials. High-signal on a DC.Critical
- setspn.exeSetSPNReads and edits service principal names on AD accounts. Listing SPNs across the domain finds service accounts that can be Kerberoasted.Medium
Execution
- bitsadmin.exeBITS administration utilityManages Background Intelligent Transfer Service jobs. It can download and upload files and run a command when a job completes, so it is used for stealthy transfers and persistence.High
- certutil.exeCertificate Services utilityManages certificates, but it can also download files from a URL and encode or decode data. Those side features make it a common tool for pulling in and unpacking payloads.High
- cmd.exeWindows Command ProcessorThe classic command shell. It runs batch files and chained commands and is a very common parent for discovery and for launching other tools. Chained or encoded command lines are worth a look.Medium
- cmstp.exeConnection Manager Profile InstallerInstalls Connection Manager service profiles from an INF file. The INF can point to a command or scriptlet, which runs with a UAC auto-elevation path, so it is used to run code and bypass prompts.High
- cscript.exeWindows Script Host (console)Console host for VBScript and JScript. Same role as wscript but with console output, so it shows up in scripted and automated chains.High
- curl.execurl (Windows)The built-in HTTP client on modern Windows. Used to download payloads and to upload collected data to a remote server, so downloads to writable paths and uploads are worth checking.High
- forfiles.exeForFilesSelects files by name, date or size and runs a command for each. The command it runs can be any process, so it is used as an indirect launcher that hides the real parent.Medium
- installutil.exeInstallUtil.NET installer tool shipped with the framework. It can run installer code in a .NET assembly, which is used to run managed payloads under a trusted, signed binary.High
- msbuild.exeMicrosoft Build EngineBuilds projects from XML project files. A project file can hold inline C# that runs during the build, so a signed build tool can compile and run code on the fly.High
- mshta.exeMicrosoft HTML Application hostRuns HTML Applications (.hta), which can contain VBScript or JScript. Trusted and signed, it is used to run script from a file, a URL or inline, so phishing chains lean on it.High
- msiexec.exeWindows InstallerInstalls and manages MSI packages. Trusted and signed, it can install a package from a URL and can load a DLL, so it is used to deliver and run payloads.High
- odbcconf.exeODBC configuration toolConfigures ODBC drivers and data sources. Its REGSVR action can load and run a DLL, giving proxy execution under a trusted binary, including from a response file.High
- pcalua.exeProgram Compatibility Assistant launcherThe Program Compatibility Assistant launcher. Its -a option runs another program, so it is used as a signed intermediary to launch binaries and hide the parent.Medium
- regasm.exeAssembly Registration Tool.NET tool that registers assemblies for COM. It can run code in an assembly's registration methods, giving proxy execution under a trusted binary.High
- regsvcs.exeCOM+ Services installation tool.NET tool that installs assemblies into COM+ services. Like regasm, it can run code in an assembly during registration, so it is used for proxy execution.High
- regsvr32.exeRegsvr32Registers and unregisters COM DLLs. Trusted and signed, it is abused to run scriptlets, including from a URL, without writing a DLL to disk.High
- rundll32.exeRundll32Runs a function exported by a DLL. Trusted and signed, so it is widely abused to run malicious DLLs and, through comsvcs.dll, to read LSASS memory.Critical
- wmic.exeWMI command-line utilityQueries and controls WMI from the command line. Used for discovery, local and remote process creation and shadow copy deletion. It is deprecated and absent on newer Windows 11 builds unless added as a feature on demand.Critical
- wscript.exeWindows Script Host (windowed)Runs VBScript and JScript files (.vbs, .js, .wsf). A frequent first stage from email attachments and archives, often spawning PowerShell or other binaries next.High
Persistence
- at.exeAT schedulerThe legacy task scheduler. Deprecated in favour of schtasks and removed from modern Windows, but still seen on older systems and in older tooling for persistence and remote execution.High
- reg.exeRegistry command lineReads and writes the registry. Used to set autorun keys for persistence, change security settings and, with reg save, to export the SAM, SYSTEM and SECURITY hives for offline credential extraction.High
- sc.exeService Control command lineCreates, configures, starts, stops and deletes services, locally or remotely. Services run as SYSTEM and start at boot, so they are a classic persistence and remote execution method.High
- schtasks.exeScheduled Tasks command lineCreates, queries, runs and deletes scheduled tasks, locally or on a remote host. Tasks are a very common persistence and remote execution method, so creation and run are high-value to triage.High
Lateral movement
- mstsc.exeRemote Desktop Connection clientThe Remote Desktop client. Launching it, especially with a saved credential or an .rdp file, is part of interactive lateral movement across hosts.Medium
- winrs.exeWindows Remote ShellRuns commands on a remote host over WinRM (WS-Management). A built-in lateral movement tool that does not need an interactive logon, so remote command runs are worth checking.High
Defense evasion
- attrib.exeAttribShows and changes file attributes. Setting hidden and system on files conceals dropped tooling and staged data from a casual look at a folder.Medium
- auditpol.exeAudit Policy command lineViews and changes the advanced audit policy. Clearing or disabling audit subcategories stops the Security log from recording the matching events, so it is used to blind defenders.High
- cipher.exeCipherManages EFS encryption, and with /w it overwrites free space so deleted files cannot be recovered. That wipe is used as anti-forensics after files are deleted.Medium
- fltmc.exeFilter Manager ControlManages file system minifilter drivers. Unloading a filter can disable an EDR or antimalware sensor that works as a minifilter, so an unload of a security filter is high-signal.High
- fsutil.exeFile System utilityManages NTFS and volumes. Deleting the USN change journal hides recent file activity, and its file commands can zero out or inflate files, so journal and file operations are worth checking.High
- icacls.exeicaclsShows and changes file and folder permissions. Granting broad rights to a protected file, or resetting ACLs, is used to tamper with protected data and clear the way for other actions.Medium
- logman.exeLogmanManages Event Trace Sessions and performance data collectors. Stopping or deleting an ETW trace that feeds logging or an EDR removes a telemetry source, so trace changes are worth checking.High
- netsh.exeNetwork ShellConfigures networking. Used to add firewall rules, set up port forwarding for pivoting, reveal saved Wi-Fi keys and load helper DLLs, so several of its contexts matter for triage.High
- takeown.exeTake OwnershipTakes ownership of files and folders. Used with icacls to seize a protected file an attacker does not own, so it can then be read, replaced or deleted.Medium
- wevtutil.exeWindows Events command lineManages event logs. Used in incidents to clear logs and to change log settings, both of which destroy or limit evidence. Clearing a log is high-signal anti-forensics.High
Collection
- findstr.exeFind StringSearches files for text. Used to hunt for passwords in files and Group Policy XML, and it can also copy file content into alternate data streams.High
- makecab.exeMakeCabCompresses files into a cabinet archive. Used to stage and pack collected data for exfiltration, and it can pull a source from a remote share, so archive creation is a collection signal.Medium
- robocopy.exeRobust File CopyA powerful file copy tool with mirror and multithread options. Used to stage and collect data and to copy over admin shares, so large or share-to-share copies are worth a look.Medium
- tar.exeTar (Windows)The built-in bsdtar on modern Windows. Used to pack collected data for exfiltration and to extract downloaded archives, and it can write to or read from an alternate data stream.Medium
- xcopy.exeExtended CopyAn older recursive file copy tool. Still used to stage and collect files and to copy across shares, so recursive or share-to-share copies are worth noting.Medium
Impact
- bcdedit.exeBoot Configuration Data editorEdits boot configuration. Turning off recovery and ignoring boot failures stops Windows from offering repair after damage, a recovery-inhibition step used by ransomware.High
- vssadmin.exeVolume Shadow Copy administrationManages volume shadow copies. Deleting or resizing shadow copies removes the restore points used to recover files, which is a signature step in ransomware before encryption.Critical
- wbadmin.exeWindows Backup command lineManages Windows Server Backup. Deleting backup catalogs and system state backups removes recovery options, and it can also back up the AD database and SYSTEM hive for credential extraction.Critical
Network
More programs, from community detections
Programs that SigmaHQ detection rules watch for, including third-party admin, remote access and archiving tools. Each page lists the rules; the explainer checks any pasted command line against all of them.
- 7z.exe3
- 7za.exe3
- 7zr.exe3
- accesschk.exe3
- accesschk64.exe2
- accesschk64a.exe2
- addinutil.exe3
- adexp.exe2
- adexplorer.exe3
- adexplorer64.exe3
- adexplorer64a.exe3
- adfind.exe3
- agentexecutor.exe2
- anydesk.exe3
- anydeskmsi.exe2
- appcmd.exe4
- appvlp.exe6
- aspnet_compiler.exe2
- atbroker.exe2
- bash.exe17
- brave.exe7
- calc.exe13
- certoc.exe6
- certreq.exe3
- chrome.exe8
- client32.exe2
- cloudflared-windows-386.exe2
- cloudflared-windows-amd64.exe2
- cloudflared.exe3
- code.exe2
- conhost.exe11
- consent.exe2
- control.exe3
- createdump.exe2
- csc.exe5
- csi.exe2
- csrss.exe3
- dbgview.exe2
- dctask64.exe2
- dism.exe4
- dismhost.exe2
- dllhost.exe5
- dnscmd.exe2
- driverquery.exe2
- drvqry.exe2
- dsacls.exe2
- dumpminitool.arm64.exe2
- dumpminitool.exe2
- dumpminitool.x86.exe2
- excel.exe3
- explorer.exe10
- find.exe7
- finger.exe3
- firefox.exe3
- ftp.exe2
- gpg.exe5
- gpg2.exe5
- gup.exe2
- hh.exe9
- ie4uinit.exe2
- ieexec.exe3
- javaw.exe2
- ksetup.exe2
- ldifde.exe3
- livekd.exe3
- livekd64.exe3
- lsaiso.exe2
- lsass.exe3
- lsm.exe2
- mftrace.exe6
- microsoft.workflow.compiler.exe2
- mmc.exe6
- mpcmdrun.exe4
- msdt.exe8
- msedge_proxy.exe2
- msedge.exe8
- msedgewebview2.exe2
- msidb.exe2
- mspub.exe2
- msteams.exe2
- msxsl.exe6
- net1.exe26
- nircmd.exe2
- nltestrk.exe2
- node.exe5
- notepad.exe9
- opera.exe7
- ping.exe6
- pingcastle.exe3
- plink.exe2
- powerpnt.exe3
- powershell_ise.exe27
- powershell.exe138
- presentationhost.exe2
- print.exe2
- procdump.exe4
- procdump64.exe3
- procdump64a.exe3
- psexec.exe3
- psexec64.exe2
- psexec64a.exe2
- psexesvc.exe3
- psloglist.exe2
- psloglist64.exe2
- psloglist64a.exe2
- psservice.exe3
- psservice64.exe3
- psservice64a.exe2
- pssuspend.exe3
- pssuspend64.exe3
- pssuspend64a.exe3
- pwsh.exe131
- python.exe4
- python2.exe2
- python3.exe2
- rar.exe4
- regedit.exe5
- regini.exe2
- rfusclient.exe2
- ruby.exe2
- runonce.exe3
- rutserv.exe2
- scrcons.exe7
- scriptrunner.exe8
- sdbinst.exe2
- sdelete.exe3
- sdelete64.exe2
- sdelete64a.exe2
- services.exe2
- sftp.exe2
- sh.exe12
- shutdown.exe2
- sqlcmd.exe2
- sqlite.exe2
- sqlite3.exe2
- squirrel.exe2
- ssh.exe3
- svchost.exe10
- sysinfo.exe2
- sysmon.exe3
- sysmon64.exe3
- sysmon64a.exe3
- systemsettingsadminflows.exe2
- taskhost.exe2
- taskkill.exe2
- taskmgr.exe4
- teams.exe5
- toolbox-cmd.exe2
- trufflehog.exe2
- tscon.exe2
- update.exe2
- verclsid.exe4
- vivaldi.exe7
- vmwaretoolboxcmd.exe2
- w32tm.exe2
- wab.exe2
- wabmig.exe2
- werfault.exe15
- werfaultsecure.exe2
- wermgr.exe3
- wget.exe6
- winget.exe4
- wininit.exe3
- winlogon.exe3
- winrar.exe3
- winword.exe4
- wmiprvse.exe2
- workfolders.exe2
- wsl.exe9
- wsmprovhost.exe2
- wt.exe2
- wuauclt.exe3
- wusa.exe3