GoGra is a Go-based backdoor associated with the Harvester cyberespionage group, with variants for Windows and Linux. It was deployed against a media organization in South Asia in November 2023. Its functionality resembles Harvester’s earlier Graphon backdoor, and the Windows and Linux GoGra variants share substantial code and command-and-control logic.
GoGra abuses the Microsoft Graph API and Outlook mailboxes for command and control, blending its communications with legitimate Microsoft cloud traffic. It authenticates using OAuth access tokens, retrieves email-based tasking, decrypts commands using AES-CBC, and executes them through the operating system’s command interpreter. Command results are encrypted and returned through email. The Linux variant embeds Azure AD application credentials, polls for tasking at two-second intervals, and deletes processed command messages to reduce forensic traces.
Linux infections use social-engineering lures involving executable ELF files disguised as PDF documents. A Go-based dropper displays a decoy document while installing the backdoor. Persistence is established through a systemd user service and an XDG autostart entry that masquerades as the legitimate Conky system monitor. These mechanisms support continued remote command execution and the exfiltration of command output.
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.
Associated Malware & Tools graphon ... Graphican GoGra remsec_strider BirdyClient Grager graphite
24 distinct techniques documented for this family, organized by ATT&CK tactic.
The malware uses the legitimate Microsoft Graph API and Outlook mailboxes as a covert command-and-control (C2) channel
The GoGra backdoor abuses Microsoft cloud services by using hardcoded Azure AD credentials to obtain OAuth2 tokens.
The inner i386 implant comes equipped with hardcoded, plaintext Azure AD application credentials, including a tenant ID, client ID, and client secret. These credentials allow the malware to request OAuth2 tokens from Microsoft.
The attackers use social engineering lures to gain initial access to victim networks by deploying tailored decoy documents.
They send out emails containing malicious attachments named after trusted services or entities. For example, some files were named after Zomato... other decoys included umrah.pdf... or TheExternalAffairesMinister.pdf.
It decrypts the malicious content in the emails, executes commands locally, and sends encrypted results back via reply emails...
Upon receiving an email, it decrypts the base64-wrapped message body using AES-CBC encryption, and executes the payload on the host via /bin/bash -c .
The hackers cleverly name a file something like “Zomato Pizza.pdf,” placing a tiny space between the name and the extension... the computer sees it as a Linux ELF binary program and runs it. Once the file is opened, a Go dropper shows a fake PDF or document so the user doesn’t get suspicious.
The attacks employ social engineering to trick victims into opening ELF binaries disguised as PDF documents. The dropper then proceeds to display a lure document while stealthily running the backdoor.
The GoGra backdoor abuses Microsoft cloud services by using hardcoded Azure AD credentials to obtain OAuth2 tokens.
The inner i386 implant comes equipped with hardcoded, plaintext Azure AD application credentials, including a tenant ID, client ID, and client secret. These credentials allow the malware to request OAuth2 tokens from Microsoft.
The malware writes its internal payload to ~/.config/systemd/user/userservice and ensures execution upon system reboot by setting up a systemd user unit
This way, every time the computer restarts, GoGra starts running again.
The malware writes its internal payload to ~/.config/systemd/user/userservice and ensures execution upon system reboot by setting up a systemd user unit and an XDG autostart entry. This autostart entry actively masquerades as the legitimate "Conky" Linux system monitor.
The GoGra backdoor abuses Microsoft cloud services by using hardcoded Azure AD credentials to obtain OAuth2 tokens.
The inner i386 implant comes equipped with hardcoded, plaintext Azure AD application credentials, including a tenant ID, client ID, and client secret. These credentials allow the malware to request OAuth2 tokens from Microsoft.
The malware writes its internal payload to ~/.config/systemd/user/userservice and ensures execution upon system reboot by setting up a systemd user unit
This way, every time the computer restarts, GoGra starts running again.
The malware writes its internal payload to ~/.config/systemd/user/userservice and ensures execution upon system reboot by setting up a systemd user unit and an XDG autostart entry. This autostart entry actively masquerades as the legitimate "Conky" Linux system monitor.
The attackers actively masquerade malicious ELF files as standard document files by appending extensions like “. pdf”, with a subtle space between the filename and the extension to ensure that the file still executes as a Linux binary.
...sending encrypted results back via reply emails, deleting the original command email to evade detection.
Following exfiltration, the implant issues an HTTP DELETE command to wipe the original tasking message and remove evidence of its presence.
The GoGra backdoor abuses Microsoft cloud services by using hardcoded Azure AD credentials to obtain OAuth2 tokens.
The inner i386 implant comes equipped with hardcoded, plaintext Azure AD application credentials, including a tenant ID, client ID, and client secret. These credentials allow the malware to request OAuth2 tokens from Microsoft.
GoGra writes files to a hidden folder called ~/.config/systemd/user/userservice
According to researchers, the group uses social engineering to trick victims. They send out emails containing malicious attachments named after trusted services or entities.
The inner payload carries hardcoded Azure AD application credentials in plain text, including a tenant ID, client ID, and client secret. These credentials allow the malware to request OAuth2 tokens directly from Microsoft...
These credentials allow the malware to request OAuth2 tokens directly from Microsoft and begin communicating through a real Outlook mailbox folder named “Zomato Pizza,” polling for new instructions every two seconds... Results are encrypted with the same AES key and sent back to the attacker via an email reply with the subject “Output.”
The malware uses the legitimate Microsoft Graph API and Outlook mailboxes as a covert command-and-control (C2) channel, allowing it to bypass traditional perimeter network defenses.
The GoGra backdoor abuses Microsoft cloud services by using hardcoded Azure AD credentials to obtain OAuth2 tokens. It polls a specific Outlook mailbox folder via Microsoft Graph API, looking for emails with commands.
The malware uses the legitimate Microsoft Graph API and Outlook mailboxes as a covert command-and-control (C2) channel... One of its tools is a custom backdoor called Graphon, which has similarities with GoGra and also uses Microsoft infrastructure for its C2 activity.
It polls a specific Outlook mailbox folder via Microsoft Graph API, looking for emails with commands. These are decrypted and executed on the system, while results are encrypted and sent back.
Execution results are AES-encrypted and emailed back to the operator via a reply message using the subject line ‘Output’.
15 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.