01 / TRADECRAFT
4 examplesCommand reference
ADS1
EXAMPLE 01T1564.004
Create a bitsadmin job named 1, add cmd.exe to the job, configure the job to run the target command from an Alternate data stream, then resume and complete the job.
COMMAND
bitsadmin /create 1 bitsadmin /addfile 1 c:\windows\system32\cmd.exe c:\data\playfolder\cmd.exe bitsadmin /SetNotifyCmdLine 1 c:\data\playfolder\1.txt:cmd.exe NULL bitsadmin /RESUME 1 bitsadmin /complete 1Download1
EXAMPLE 01T1105
Create a bitsadmin job named 1, add cmd.exe to the job, configure the job to run the target command, then resume and complete the job.
COMMAND
bitsadmin /create 1 bitsadmin /addfile 1 https://live.sysinternals.com/autoruns.exe c:\data\playfolder\autoruns.exe bitsadmin /RESUME 1 bitsadmin /complete 1Copy1
EXAMPLE 01T1105
Command for copying cmd.exe to another folder
COMMAND
bitsadmin /create 1 & bitsadmin /addfile 1 c:\windows\system32\cmd.exe c:\data\playfolder\cmd.exe & bitsadmin /RESUME 1 & bitsadmin /Complete 1 & bitsadmin /resetExecute1
EXAMPLE 01T1218
One-liner that creates a bitsadmin job named 1, add cmd.exe to the job, configure the job to run the target command, then resume and complete the job.
COMMAND
bitsadmin /create 1 & bitsadmin /addfile 1 c:\windows\system32\cmd.exe c:\data\playfolder\cmd.exe & bitsadmin /SetNotifyCmdLine 1 c:\data\playfolder\cmd.exe NULL & bitsadmin /RESUME 1 & bitsadmin /Reset02 / ON DISK
Known paths
C:\Windows\System32\bitsadmin.exeC:\Windows\SysWOW64\bitsadmin.exe03 / DEFENSIVE INTELLIGENCE
4 resourcesDetection & indicators
- Sigmaproc_creation_win_bitsadmin_download.ymlgithub.com
- Sigmaproxy_ua_bitsadmin_susp_tld.ymlgithub.com
- Sigmaproc_creation_win_bitsadmin_potential_persistence.ymlgithub.com
- Splunkbitsadmin_download_file.ymlgithub.com
Indicators & detection notes
- IOC
Child process from bitsadmin.exe
- IOC
bitsadmin creates new files
- IOC
bitsadmin adds data to alternate data stream
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
Rob Fuller@mubix
Chris Gates@carnal0wnage
Oddvar Moe@oddvarmoe