Machete
- Type
- Backdoor
- Capabilities
- Credential theftKeyloggingExfiltrationPersistenceDefense evasionReconnaissance
- Delivery
- SpearphishingLure
- Platforms
- Windows
Machete, also known as Pyark, is a Python-based Windows backdoor and cyberespionage toolset used by the Machete threat group against organizations in Latin America. Its documented targets include Venezuelan government organizations in the military, education, police, and foreign affairs sectors, as well as the Ecuadorean military. A substantially revised version was first observed in April 2018.
Machete is delivered through highly tailored spearphishing emails containing links to or attachments of self-extracting archives. These archives execute the malware while displaying legitimate documents previously stolen from victims as decoys. Earlier infection chains used a separate downloader; later campaigns bundled the decoy and backdoor components together. The toolset uses Windows Task Scheduler to execute components and maintain persistence, and has also used startup-folder persistence. Its Python components employ obfuscation, compression, and Base64 encoding.
Machete records keystrokes, captures screenshots and clipboard contents, steals browser-stored credentials and profile data, and searches local storage and removable drives for documents and other files of interest, including cryptographic keys and certificates. It discovers running browser processes and gathers network configuration details. Nearby Wi-Fi network information is used with a geolocation service to determine the victim’s location. The backdoor can retrieve specific files and execute additional downloaded binaries.
Command-and-control communication and exfiltration primarily use FTP, with HTTP and an alternate server available as fallbacks. Machete uses AES encryption for document exfiltration and decrypts downloaded data with AES. Collected files are deleted locally after successful upload.
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.
(Citation: Securelist Machete Aug 2014)(Citation: ESET Machete July 2019)
Techniques & procedures
53 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
4 techniques
Execution
GoogleCrash.exe is the main component of the malware. It schedules execution of the other two components and creates Windows Task Scheduler tasks to achieve persistence.
The different components of [Machete](https://attack.mitre.org/software/S0409) are executed by Windows Task Scheduler.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)
[Machete](https://attack.mitre.org/software/S0409) is written in Python and is used in conjunction with additional Python scripts.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)(Citation: 360 Machete Sep 2020)
Execution T1204 User Execution Tries to get users to open links or attachments that will execute the first component of Machete.
Persistence
3 techniques
Persistence
GoogleCrash.exe is the main component of the malware. It schedules execution of the other two components and creates Windows Task Scheduler tasks to achieve persistence.
The different components of [Machete](https://attack.mitre.org/software/S0409) are executed by Windows Task Scheduler.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)
[Machete](https://attack.mitre.org/software/S0409) used the startup folder for persistence.(Citation: Securelist Machete Aug 2014)(Citation: Cylance Machete Mar 2017)
Privilege Escalation
3 techniques
Privilege Escalation
GoogleCrash.exe is the main component of the malware. It schedules execution of the other two components and creates Windows Task Scheduler tasks to achieve persistence.
The different components of [Machete](https://attack.mitre.org/software/S0409) are executed by Windows Task Scheduler.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)
[Machete](https://attack.mitre.org/software/S0409) used the startup folder for persistence.(Citation: Securelist Machete Aug 2014)(Citation: Cylance Machete Mar 2017)
Stealth
9 techniques
Stealth
Defense Evasion T1027 Obfuscated Files or Information Python scripts are obfuscated.
[Machete](https://attack.mitre.org/software/S0409) has been packed with NSIS.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) has used pyobfuscate, zlib compression, and base64 encoding for obfuscation. [Machete](https://attack.mitre.org/groups/G0095) has also used some visual obfuscation techniques by naming variables as combinations of letters to hinder analysis.(Citation: Cylance Machete Mar 2017)(Citation: ESET Machete July 2019)
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
[Machete](https://attack.mitre.org/software/S0409) renamed task names to masquerade as legitimate Google Chrome, Java, Dropbox, Adobe Reader and Python tasks.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) renamed payloads to masquerade as legitimate Google Chrome, Java, Dropbox, Adobe Reader and Python executables.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)
Once a file is uploaded, [Machete](https://attack.mitre.org/software/S0409) will delete it from the machine.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409)’s downloaded data is decrypted using AES.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) has the capability to exfiltrate stolen data to a hidden folder on a removable drive.(Citation: ESET Machete July 2019)
Credential Access
5 techniques
Credential Access
Collection T1056 Input Capture Machete logs keystrokes from the victim’s machine.
[Machete](https://attack.mitre.org/software/S0409) logs keystrokes from the victim’s machine.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)(Citation: Cylance Machete Mar 2017)(Citation: 360 Machete Sep 2020)
[Machete](https://attack.mitre.org/software/S0409) has scanned and looked for cryptographic keys and certificate file extensions.(Citation: ESET Machete July 2019)
Agent Tesla can gather credentials from a number of browsers... APT33 has used a variety of publicly available tools like LaZagne to gather credentials... TrickBot can obtain passwords stored in files from web browsers such as Chrome, Firefox, Internet Explorer, and Microsoft Edge... SELECT action_url, username_value, password_value FROM logins; CryptUnprotectData
[Machete](https://attack.mitre.org/software/S0409) collects stored credentials from several web browsers.(Citation: ESET Machete July 2019)
Discovery
9 techniques
Discovery
[Machete](https://attack.mitre.org/software/S0409) saves the window names.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) collects the MAC address of the target computer and other network configuration information.(Citation: ESET Machete July 2019)(Citation: 360 Machete Sep 2020)
[Machete](https://attack.mitre.org/software/S0409) uses the <code>netsh wlan show networks mode=bssid</code> and <code>netsh wlan show interfaces</code> commands to list all nearby WiFi networks and connected interfaces.(Citation: ESET Machete July 2019)
Discovery T1049 System Network Connections Discovery Netsh command is used to list all nearby Wi-Fi networks.
[Machete](https://attack.mitre.org/software/S0409) has a component to check for running processes to look for web browsers.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) collects the hostname of the target computer.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) produces file listings in order to search for files to be exfiltrated.(Citation: ESET Machete July 2019)(Citation: Cylance Machete Mar 2017)(Citation: 360 Machete Sep 2020)
[Machete](https://attack.mitre.org/software/S0409) detects the insertion of new devices by listening for the WM_DEVICECHANGE window message.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) retrieves the user profile data (e.g., browsers) from Chrome and Firefox browsers.(Citation: ESET Machete July 2019)
Collection
12 techniques
Collection
[Machete](https://attack.mitre.org/software/S0409) searches the File system for files of interest.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) can find, encrypt, and upload files from fixed and removable drives.(Citation: Cylance Machete Mar 2017)(Citation: ESET Machete July 2019)
Collection T1056 Input Capture Machete logs keystrokes from the victim’s machine.
[Machete](https://attack.mitre.org/software/S0409) logs keystrokes from the victim’s machine.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)(Citation: Cylance Machete Mar 2017)(Citation: 360 Machete Sep 2020)
Collection T1074 Data Staged Files and logs are stored in the Winde folder, encrypted.
[Machete](https://attack.mitre.org/software/S0409) stores files and logs in a folder on the local drive.(Citation: ESET Machete July 2019)(Citation: Cylance Machete Mar 2017)
[Machete](https://attack.mitre.org/software/S0409) captures screenshots.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)(Citation: Cylance Machete Mar 2017)(Citation: 360 Machete Sep 2020)
[Machete](https://attack.mitre.org/software/S0409) hijacks the clipboard data by creating an overlapped window that listens to keyboard events.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)
[Machete](https://attack.mitre.org/software/S0409) captures audio from the computer’s microphone.(Citation: Securelist Machete Aug 2014)(Citation: Cylance Machete Mar 2017)(Citation: 360 Machete Sep 2020)
[Machete](https://attack.mitre.org/software/S0409) takes photos from the computer’s web camera.(Citation: Securelist Machete Aug 2014)(Citation: Cylance Machete Mar 2017)(Citation: 360 Machete Sep 2020)
[Machete](https://attack.mitre.org/software/S0409) stores zipped files with profile data from installed web browsers.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409)'s collected data is encrypted with AES before exfiltration.(Citation: ESET Machete July 2019)
Command and Control
9 techniques
Command and Control
[Machete](https://attack.mitre.org/software/S0409) has sent data over HTTP if FTP failed, and has also used a fallback server.(Citation: ESET Machete July 2019)
Command and Control T1071 Standard Application Layer Protocol FTP is used for Command & Control.
[Machete](https://attack.mitre.org/software/S0409) uses HTTP for Command & Control.(Citation: ESET Machete July 2019)(Citation: Cylance Machete Mar 2017)(Citation: 360 Machete Sep 2020)
[Machete](https://attack.mitre.org/software/S0409) uses FTP for Command & Control.(Citation: ESET Machete July 2019)(Citation: Cylance Machete Mar 2017)(Citation: 360 Machete Sep 2020)
[Machete](https://attack.mitre.org/software/S0409) can download additional files for execution on the victim’s machine.(Citation: ESET Machete July 2019)
ADVSTORESHELL C2 traffic is encrypted, then encoded with Base64 encoding. APT19 HTTP malware variant used Base64 to encode communications to the C2 server. APT33 has used base64 to encode command and control traffic.
[Machete](https://attack.mitre.org/software/S0409) has used base64 encoding.(Citation: Securelist Machete Aug 2014)
[Machete](https://attack.mitre.org/software/S0409) has used AES to exfiltrate documents.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) has used TLS-encrypted FTP to exfiltrate data.(Citation: Cylance Machete Mar 2017)
Exfiltration
6 techniques
Exfiltration
[Machete](https://attack.mitre.org/software/S0409)’s collected files are exfiltrated automatically to remote servers.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409) sends stolen data to the C2 server every 10 minutes.(Citation: ESET Machete July 2019)
[Machete](https://attack.mitre.org/software/S0409)'s collected data is exfiltrated over the same channel used for C2.(Citation: ESET Machete July 2019)
"Machete has used TLS-encrypted FTP to exfiltrate data."
Exfiltration T1052 Exfiltration Over Physical Medium Data from all drives in a compromised system is copied to a removable drive if there is a special file in that drive.
[Machete](https://attack.mitre.org/software/S0409) has a feature to copy files from every drive onto a removable drive in a hidden folder.(Citation: ESET Machete July 2019)(Citation: Securelist Machete Aug 2014)
Recent activity
86 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.