📡 Abusing
#bitsadmin for Covert Execution
Bitsadmin, a deprecated but still-present Windows binary, was originally designed to manage file transfers in the background using the Background Intelligent Transfer Service (BITS). Despite its benign purpose, it can be abused as a Living-Off-The-Land Binary and Script (
#LOLBAS) to download and execute arbitrary payloads, disguise persistence, and evade detection through alternate data streams (ADS).
This behavior aligns with multiple MITRE ATT&CK® techniques such as T1105 (Ingress Tool Transfer), T1218 (System Binary Proxy Execution), and T1564.004 (NTFS File Attributes - ADS).
---
🧱
#Technique Breakdown
bitsadmin can be abused in multiple use cases such as:
> File
#Download: Arbitrary executables (e.g., calc.exe) can be downloaded from remote sources and saved locally.
> Command
#Execution: Once downloaded, payloads can be executed via SetNotifyCmdLine, triggering binary execution upon job completion.
>
#Persistence via ADS: Code can be hidden in NTFS alternate data streams.
>
#Proxy Execution: As a trusted Windows binary, bitsadmin.exe can serve as an indirect launcher, bypassing some application control policies.
---
🐍 PoC Automation via
#Python
The following script automates the entire exploit chain:
> Sets up a local HTTP server to host the payload
> Downloads the payload using bitsadmin
> Executes it via a SetNotifyCmdLine callback
> Cleans up all artifacts post-execution
This method avoids the need for dropping new executables by leveraging signed Windows tools, making detection significantly harder.
- Project @ Github:
---
🔍
#Detection &
#Mitigation
> Monitor bitsadmin.exe child process activity.
> Look for job creation with suspicious file transfers or ADS involvement.
> Restrict or disable usage of bitsadmin.exe via AppLocker or WDAC.
> Monitor NTFS alternate data streams and flag execution attempts.
-
#CyberSecurity #LOLBAS #OffensiveSecurity #RedTeam #PenetrationTesting #BlueTeam #InfoSec #Offsec #Logisek