Curlc4.txt
- Type
- Infostealer
- Capabilities
- ExfiltrationDefense evasion
- Platforms
- Linux
Curlc4.txt is a PHP-based email-stealing bot that uses the Microsoft Exchange Web Services (EWS) API to collect victim mailbox data and automatically upload collected messages to remote infrastructure. It accesses email, calendars, and contacts, compresses collected email, and can encrypt the resulting data using RC4 or AES-128-CBC before exfiltration. Its operational behavior includes searching for writable working locations, concealing local staging artifacts, obfuscating directory and file names, and renaming a child process. Observed implementation details indicate operation in Linux environments.
Curlc4.txt has been used by Chinese government-linked threat actors enabled by Integrity Technology Group in email-theft operations. The associated activity overlaps with operations tracked as Flax Typhoon, Ethereal Panda, and Red Juliett, without establishing that these attribution labels are interchangeable. Observed email-theft victims in the broader campaign included government organizations, law enforcement agencies, healthcare systems, and religious institutions in Southeast Asia. The script provides mailbox collection and exfiltration; credential harvesting and persistent remote access in the same operations were performed using separate tools.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The FBI observed the actors collecting credentials, downloading email databases, abusing Microsoft Exchange Web Services through the Curlc4[.]txt script.
“The FBI observed that the threat actors created a bot using the PHP script Curlc4.txt to obtain emails from victims.”
Techniques & procedures
5 distinct techniques documented for this family, organized by ATT&CK tactic.
Stealth
1 technique
Stealth
Integrity Technology Group runs executables under the names of known, legitimate Windows software to evade detection [T1036.003].
Collection
3 techniques
Collection
When no root directory is supplied as an argument, the script searches for a writeable directory to stage data in [T1074.001], walking /, /home, /var/www, /usr, and /var/tmp.
The script interfaces with the Microsoft EWS API, giving the actors access to email and content items such as calendars and contacts [T1114.002].
Before exfiltration the bot compresses emails and, in some instances, encrypts them using RC4 or AES-128-CBC [T1560.003].
Exfiltration
1 technique
Exfiltration
The PHP bot automatically uploads collected emails to a remote server [T1020].
Observables
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.