BASHNATCH
- Type
- Infostealer
- Capabilities
- ReconnaissanceExfiltration
- Platforms
- Linux
BASHNATCH is a Bash-based Linux file stealer and the Linux counterpart of the PowerShell-based PSNATCH tool. It was used by the Pakistan-aligned Transparent Tribe threat actor, also known as APT36, in Operation RapidRust against government and defense entities in India and Afghanistan. BASHNATCH searches user folders, removable-drive locations, and recently accessed or modified files for collection. It supports incremental collection by tracking files already uploaded, then exfiltrates collected data to attacker-controlled private GitHub repositories. The tool is intended for Linux environments and supports APT36’s collection and data-theft operations alongside Windows-focused campaign components.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Techniques & procedures
10 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
Backblaze cloud storage was used to host payloads, including Automata-20.zip and DriverInstaller.zip.
Execution
1 technique
Execution
BASHNATCH, a bash script file stealer for Linux.
Discovery
1 technique
Discovery
PSNATCH and BASHNATCH scan for and steal recently modified documents.
Collection
2 techniques
Collection
PSNATCH ... recursively scans ... documents, images, archives, media, executables, scripts, and databases ... and exfiltrates them to a private repository named after the infected machine.
PSNATCH and BASHNATCH scan for and steal recently modified documents.
Command and Control
2 techniques
Command and Control
RUSTYSHADE uses the GitHub REST API as its C2 channel... reads and writes specific filenames in the private GitHub repository to synchronize communication.
The threat actor has been observed fetching a file stealer from an attacker-controlled GitHub gist that comes in two variants for targeting both Windows and Linux environments.
Exfiltration
3 techniques
Exfiltration
PSNATCH and BASHNATCH perform file collection and exfiltration, including uploads to attacker-controlled GitHub repositories.
PSNATCH exfiltrates files modified in the last 120 days to private GitHub repositories; BASHNATCH is its Bash variant for Linux.
RUSTYSHADE... uses attacker-controlled private GitHub repositories for commands and stolen data... PSNATCH... [sends] data to private repositories.
Observables
11 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.