What is Command and Scripting Interpreter?

Running commands through the scripting tools already installed on your systems. Nothing is downloaded, nothing is installed, and the software doing the work is signed by the vendor and trusted by default.

Command and Scripting Interpreter covers abuse of built-in interpreters — PowerShell, Windows command shell, bash, Python, JavaScript, cloud CLIs — to execute adversary commands. It underpins the approach usually described as living off the land, and it is why "we found no malware" and "nothing bad happened" are different statements. There is no malicious file to detect when the attacker is driving legitimate administration tooling. Detection therefore depends on what commands were run rather than what files exist, which requires command-line and script-block logging to be enabled and retained — capabilities that ship with the operating system and are frequently left off. For leadership, two questions are worth asking. Do we log what commands are executed on servers and endpoints, and for how long do we keep that? And are interpreters constrained where they are not needed, for example by application control or PowerShell constrained language mode on ordinary user machines? Both are configuration rather than procurement.

Source: MITRE ATT&CK (T1059).

Practice it in a lab

Free, hands-on labs that teach Command and Scripting Interpreter.

Related terms

All glossary terms

Related