Skip to main content
Mallory
Back to malware
MalwareUsed by 1 actor

BoxOfFriends

BoxOfFriends is a Go-based backdoor associated with the China-aligned threat group GopherWhisper. It was documented by ESET during investigations into intrusions affecting a Mongolian governmental institution, with telemetry indicating about 12 impacted systems at that entity and evidence suggesting additional victims. BoxOfFriends uses Microsoft 365 Outlook via the Microsoft Graph API for bidirectional command-and-control, creating and modifying draft email messages to exchange commands and results. Reporting also states it creates a new Outlook draft to notify operators that it is ready. The malware supports arbitrary shell command execution, file upload and download, directory changes, sleep and interval control, port forwarding, and self-deletion. It is delivered by the FriendDelivery loader/injector, which decrypts BoxOfFriends from an overlay in wer.dll using a null-preserving XOR operation with key 0x56 and injects it into help.exe; FriendDelivery also installs persistence via the bdreinitsvc Windows service under %APPDATA%\BitDifender. ESET extracted 43 draft messages, one deleted message, and five inbox messages from the Outlook account used by BoxOfFriends. The Outlook account barrantaya.1010@outlook[.]com, used for this C2, was created on 2024-07-11. One listed sample is detected as WinGo/Agent.AJI with SHA-1 926974FACFD0383C65458D6EF1F31FBB7C769E18.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

THREAT ACTORS

Groups observed using it

1 distinct threat actor attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
GopherWhisper

We named the newly discovered backdoor BoxOfFriends, from the name of the Go package in the backdoor that contains all the malicious code. Unlike the previously discovered backdoors, this new one makes use of the Microsoft 365 Outlook mail REST API from Microsoft Graph to create and modify draft email messages for its C&C communications.

MITRE ATT&CK

Techniques & procedures

20 distinct techniques documented for this family, organized by ATT&CK tactic.

T1583.006Web ServicesEvidence2

GopherWhisper uses Slack, Discord, and Microsoft Graph services for its C&C infrastructure.

T1587.001MalwareEvidence2

RatGopher and early versions of its source code were identified from chat log analysis. BoxOfFriends is a custom backdoor.

T1055Process InjectionEvidence1

JabGopher: an injector that executes the LaxGopher backdoor disguised as whisper.dll. It creates a new instance of svchost.exe and injects LaxGopher into the svchost.exe process memory.

T1055.002Portable Executable InjectionEvidence2

BoxOfFriends is a Go binary that is injected into the legitimate Windows executable help.exe.

Stealth

3 techniques
T1055Process InjectionEvidence1

JabGopher: an injector that executes the LaxGopher backdoor disguised as whisper.dll. It creates a new instance of svchost.exe and injects LaxGopher into the svchost.exe process memory.

T1055.002Portable Executable InjectionEvidence2

BoxOfFriends is a Go binary that is injected into the legitimate Windows executable help.exe.

T1070.004File DeletionEvidence2
TacticStealth

CompactGopher runs its own cleanup process by deleting both the cleartext and encrypted archives... BoxOfFriends selfdelete... the file used in the injection process will be deleted.

Discovery

1 technique
T1082System Information DiscoveryEvidence2
TacticDiscovery

LaxGopher, RatGopher, and SSLORDoor can collect the hostname, OS version, and OS architecture of a compromised host.

Lateral Movement

1 technique
T1021Remote ServicesEvidence1

portforward Creates, deletes, or lists forwarding ports to expose an application or service to the network.

Collection

3 techniques
T1005Data from Local SystemEvidence2

LaxGopher, RatGopher, SSLORDoor, and CompactGopher can collect local data from a compromised machine.

T1074Data StagedEvidence1

Jared962@outlook.com was used to break down large files into manageable chunks for exfiltration.

T1114.003Email Forwarding RuleEvidence1

Another backdoor - this one dubbed BoxOfFriends, despite it also being written in Go - created a new draft email in Microsoft Outlook as a way of notifying operators that it was ready. Different emails in the address field signified different commands.

T1071Application Layer ProtocolEvidence8

Attackers continue to lean on everyday collaboration platforms to hide command and control traffic inside normal enterprise noise... running its operations through Slack workspaces, Discord servers, Outlook drafts, and the file.io sharing service.

T1071.001Web ProtocolsEvidence3

LaxGopher, RatGopher, and BoxOfFriends use HTTPS for C&C communication.

T1102Web ServiceEvidence6

GopherWhisper leverages Discord, Slack, Microsoft 365 Outlook, and file.io for C&C communications and exfiltration.

T1102.002Bidirectional CommunicationEvidence2

LaxGopher, RatGopher, and BoxOfFriends use Slack, Discord, and Microsoft Graph, respectively, for C&C infrastructure.

T1105Ingress Tool TransferEvidence3

JabGopher and FriendDelivery load the backdoors into memory... The FriendDelivery DLL that loads BoxOfFriends was compiled 11 days later, on July 22, 2024.

T1132.001Standard EncodingEvidence2

LaxGopher and RatGopher use base64 to encode messages sent to their C&Cs.

T1132.002Non-Standard EncodingEvidence2

SSLORDoor leverages custom data encoding to communicate with the C&C. BoxOfFriends uses base58 and base64 encoding.

T1573.001Symmetric CryptographyEvidence2

LaxGopher and RatGopher use AES algorithms for encryption. BoxOfFriends uses XOR encryption.

Exfiltration

2 techniques
T1041Exfiltration Over C2 ChannelEvidence2

LaxGopher, RatGopher, SSLORDoor, and BoxOfFriends exfiltrate data to their C&Cs.

T1567Exfiltration Over Web ServiceEvidence4

LaxGopher leverages Slack to exfiltrate data. RatGopher leverages Discord and file.io to exfiltrate data. CompactGopher uses the file.io web service to exfiltrate data.

INDICATORS OF COMPROMISE

IOCs tracked for this family

2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Network
1 tracked

IPs, domains, and DNS infrastructure linked to this family.

Hashes
1 tracked

File hashes (MD5, SHA-1, SHA-256) from samples and reports.

TypeValueLatest sighting
domain●●●●●●●●●●●●View more in app1 month ago
hash.sha1●●●●●●●●●●●●View more in app2 months ago
What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching2

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution1

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping20

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.