Execution · Windows · LOLBAS
bitsadmin.exe
BITS administration utility
Manages 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.
Legitimate use
Windows Update and software distribution use BITS for resilient background transfers.
Switches
Creates and runs a transfer job in one step, with a source URL and a local path.
MediumCreates a new BITS job.
LowAdds a source and destination file to a job.
LowSets a command to run when the job finishes. A persistence and execution trick.
HighStarts or resumes a job.
LowFinalizes a job and writes the downloaded file to its path.
LowSets the job type to download.
LowSets the job type to upload, which can move data out.
MediumCommand lines to worry about
- High
Command set to run on job completion
A BITS job is set to run a command when it finishes. Used both for execution and for persistence. Check the command.
Detection regex
bitsadmin(\.exe)?\s+.*\/setnotifycmdline\b
Where it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
- BITS59BITS Started a job, with the URL and the job owner.
- BITS60BITS job stopped, confirming the transfer completed.
- Sysmon3Network connection for the transfer, though BITS runs under svchost.
Community detections
22 SigmaHQ rules for bitsadmin.exe. The explainer checks every pasted command line against all of them.
- HighFile Download Via Bitsadmin To A Suspicious Target Folder
Detects usage of bitsadmin downloading a file to a suspicious target folder
T1197T1036.003T1105by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- HighFile With Suspicious Extension Downloaded Via Bitsadmin
Detects usage of bitsadmin downloading a file with a suspicious extension
T1197T1036.003T1105by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- HighPotentially Suspicious Execution From Parent Process In Public Folder
Detects a potentially suspicious execution of a parent process located in the "\Users\Public" folder executing a child process containing references to shell or scripting binaries and commandlines.
T1564T1059by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- HighSuspicious BitLocker Access Agent Update Utility Execution
Detects the execution of the BitLocker Access Agent Update Utility (baaupdate.exe) which is not a common parent process for other processes. Suspicious child processes spawned by baaupdate.exe could indicate an attempt at lateral movement via BitLocker DCOM & COM Hijacking.
T1218T1021.003by andrewdanis, Swachchhanda Shrawan Poudel (Nextron Systems)
- HighSuspicious Child Process Of Manage Engine ServiceDesk
Detects suspicious child processes of the "Manage Engine ServiceDesk Plus" Java web service
T1102by Florian Roth (Nextron Systems)
- HighSuspicious Child Process Of SQL Server
Detects suspicious child processes of the SQLServer process. This could indicate potential RCE or SQL Injection.
T1505.003T1190by FPT.EagleEye Team, wagga
- HighSuspicious Download From Direct IP Via Bitsadmin
Detects usage of bitsadmin downloading a file using an URL that contains an IP
T1197T1036.003by Florian Roth (Nextron Systems)
- HighSuspicious Download From File-Sharing Website Via Bitsadmin
Detects usage of bitsadmin downloading a file from a suspicious domain
T1197T1036.003T1105by Florian Roth (Nextron Systems)
- HighSuspicious Microsoft Office Child Process
Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)
T1047T1204.002T1218.010by Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io
- HighSuspicious Microsoft OneNote Child Process
Detects suspicious child processes of the Microsoft OneNote application. This may indicate an attempt to execute malicious embedded objects from a .one file.
T1566T1566.001by Tim Rauch (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), Elastic (idea)
- HighSuspicious MSHTA Child Process
Detects a suspicious process spawning from an "mshta.exe" process, which could be indicative of a malicious HTA script execution
T1218.005by Michael Haag
- HighSuspicious Process By Web Server Process
Detects potentially suspicious processes being spawned by a web server process which could be the result of a successfully placed web shell or exploitation
T1505.003T1190by Thomas Patzke, Florian Roth (Nextron Systems), Zach Stanford @svch0st, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)
- HighSuspicious Processes Spawned by Java.EXE
Detects suspicious processes spawned from a Java host process which could indicate a sign of exploitation (e.g. log4j)
by Andreas Hunkeler (@Karneades), Florian Roth
- HighSuspicious Processes Spawned by WinRM
Detects suspicious processes including shells spawnd from WinRM host process
T1190by Andreas Hunkeler (@Karneades), Markus Neis
- HighSuspicious ShellExec_RunDLL Call Via Ordinal
Detects suspicious call to the "ShellExec_RunDLL" exported function of SHELL32.DLL through the ordinal number to launch other commands. Adversary might only use the ordinal number in order to bypass existing detection that alert on usage of ShellExec_RunDLL on CommandLine.
T1218.011by Swachchhanda Shrawan Poudel
- HighSuspicious Shells Spawn by Java Utility Keytool
Detects suspicious shell spawn from Java utility keytool process (e.g. adselfservice plus exploitation)
by Andreas Hunkeler (@Karneades)
- HighSuspicious Spool Service Child Process
Detects suspicious print spool service (spoolsv.exe) child processes.
T1203T1068by Justin C. (@endisphotic), @dreadphones (detection), Thomas Patzke (Sigma rule)
- HighSystem File Execution Location Anomaly
Detects the execution of a Windows system binary that is usually located in the system folder from an uncommon location.
T1036by Florian Roth (Nextron Systems), Patrick Bareiss, Anton Kutepov, oscd.community, Nasreddine Bencherchali (Nextron Systems)
- HighWindows Shell/Scripting Processes Spawning Suspicious Programs
Detects suspicious child processes of a Windows shell and scripting processes such as wscript, rundll32, powershell, mshta...etc.
T1059.005T1059.001T1218by Florian Roth (Nextron Systems), Tim Shelton
- MediumFile Download Via Bitsadmin
Detects usage of bitsadmin downloading a file
T1197T1036.003T1105by Michael Haag, FPT.EagleEye
- MediumMonitoring For Persistence Via BITS
BITS will allow you to schedule a command to execute after a successful download to notify you that the job is finished. When the job runs on the system the command specified in the BITS job will be executed. This can be abused by actors to create a backdoor within the system and for persistence.
T1197by Sreeman
- MediumRemote Access Tool - ScreenConnect Potential Suspicious Remote Command Execution
Detects potentially suspicious child processes launched via the ScreenConnect client service.
T1219.002by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), @Kostastsale
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.