CmdID / Techniques / T1059
T1059.004 Command and Scripting Interpreter: Unix Shell
Adversaries may abuse Unix shell commands and scripts for execution. MITRE ATT&CK
184 programs on CmdID 9 Sigma rules T1059.004 on attack.mitre.org
Part of
Programs for it
aa-execshellagettyshellansible-testshellaossshellaptshellapt-getshellasteriskshellatshellawkshellbashreverse-shellborgshellbpftraceshellbundleshellbundlershellbusctlshellbusyboxreverse-shellc89shellc99shellcabalshellccshellcdistshellcertbotshellcheck_by_sshshellcheck_ssl_certshellchoomshellchrtshellclispshellcobcshellcodereverse-shellcodexshellcomposershellcpioshellcpulimitshellcsvtoolshellctrshelldcshelldhclientshelldistccshelldmsetupshelldoasshelldockershelldotnetshelldpkgshelldvipsshelleasyrsashellemacsshellenscriptshellenvshellexshellexpectshellfastfetchshellfindshellfirejailshellflockshellforgeshellfzfshellg++shellgawkshellgccshellgdbshellgemshellgenieshellghcshellgitshellgnuplotshellgobind-shellgrcshellgtestershellguileshellhgshellioniceshellipshelljrunscriptreverse-shelljtagshelljuliareverse-shellkshreverse-shellksushellkubectlshelllatexshelllatexmkshellld.soshelllessshelllftpshellloginctlshelllogrotateshelllogsaveshellltraceshellluabind-shellmailshellmakeshellmawkshellminicomshellmsgfiltershellmultitimeshellmysqlshellnanoshellnawkshellncbind-shellneofetchshellniceshellnmapshellnodebind-shellnohupshellnpmshellnsentershellopensslreverse-shellopenvpnshellopkgshellpdflatexshellpdftexshellperfshellperlreverse-shellperlbugshellpexecshellphpreverse-shellpicshellpicoshellpidstatshellpipshellpkexecshellplymouthshellpodmanshellpuppetshellrshellresticshellrlwrapshellrpmshellrpmdbshellrpmqueryshellrpmverifyshellrsyncshellrubyreverse-shellrun-partsshellrustupshellscpshellscriptshellscrotshellsedshellsetarchshellsetlockshellsgshellslshshellsocatbind-shellsocketbind-shellsoftlimitshellsplitshellsqlite3shellsshshellssh-agentshellsshfsshellsshpassshellsshuttleshellstart-stop-daemonshellstdbufshellstraceshellsushellsudoshellsystemctlshellsystemd-runshelltarshelltaskshelltasksetshelltexshelltimeshelltimeoutshelltmateshelltmuxshelltorifyshelltorsocksshellunshareshelluvshellvalgrindshellvishellwatchshellwgetshellxargsshellxdg-user-dirshellxdotoolshellxelatexshellxetexshellyarnshellyt-dlpshellzipshellzshreverse-shellSigma rules tagged with it
Command lines CmdID reads as it
reconnect to a running server, and turn on logging 3 levels of verbosity on the page for asterisk
asterisk -r -vvvIdentifyreconnect to a running server, run a single command, and return on the page for asterisk
asterisk -r -x "command"IdentifyInstall all gems defined in the Gemfile expected in the working directory on the page for bundle
bundle installIdentifyRun a process that can live beyond the terminal on the page for nohup
nohup command argument1 argument2 ...IdentifyLaunch nohup in background mode on the page for nohup
nohup command argument1 argument2 ... &IdentifyRun a shell script that can live beyond the terminal on the page for nohup
nohup path/to/script.sh &IdentifyGenerate completions for Bash on the page for pueue-completions
sudo pueue completions bash /usr/share/bash-completion/completions/pueue.bashIdentifyGenerate completions for Zsh on the page for pueue-completions
sudo pueue completions zsh /usr/share/zsh/site-functionsIdentifySpecify a shell for running instead of the default shell (also works for login) on the page for runuser
sudo runuser user --shell /bin/shIdentifyAnd 6 more examples on CmdID’s program pages.
An example is here when CmdID’s reading of it names T1059.004: a Sigma rule it trips is tagged with it, or its abuse is documented as it.