One fear for any organization is attackers are on the system and have been lingering there for months on end.

That was the case of the Iranian Crambus espionage group (also known as OilRig or APT34) which staged an eight-month-long intrusion against a government in the Middle East between February and September 2023, according to a report with Symantec’s Threat Hunter Team.

During the lengthy compromise, the attackers stole files and passwords and, in one case, installed a PowerShell backdoor (called PowerExchange) used to monitor incoming mails sent from an Exchange Server in order to execute commands sent by the attackers in the form of emails, and surreptitiously forwarded results to the attackers, the report said.

Malicious activity occurred on at least 12 computers and there is evidence the attackers deployed backdoors and keyloggers on dozens more, the report said.

Plink in Attack
In addition to deploying malware, the researchers said the attackers made frequent use of the publicly available network administration tool Plink to configure port-forwarding rules on compromised machines, enabling remote access via the Remote Desktop Protocol (RDP). There is also evidence the attackers modified Windows firewall rules in order to enable remote access.

Schneider Bold

Crambus is a long-running Iranian espionage group that attacked targets in multiple countries, including Saudi Arabia, Israel, the United Arab Emirates, Iraq, Jordan, Lebanon, Kuwait, Qatar, Albania, the United States and Turkey.

The group will stage long-running intrusions for intelligence gathering and spying purposes. In recent years it added a heavy social engineering component to the early stages of its attacks.

It most recently came to attention last year, when Microsoft linked the group to a destructive attack against the Albanian government. It assessed Crambus gained initial access and exfiltrated data from impacted networks. Wipers then deployed by other Iran-linked actors.

During this latest attack, Crambus deployed three previously undiscovered pieces of malware, along with the PowerExchange backdoor, a known backdoor no one attributed to Crambus.

In addition to malware, the attackers made use of a number of living-off-the-land and legitimate tools:
Backdoor.Tokel: Has the ability to execute arbitrary PowerShell commands and download files. The command and control (C&C) address is in a separate, RC4 encrypted file called token.bin, saved in the working directory.

Trojan.Dirps: Used to enumerate all files in a directory and execute PowerShell commands.

Infostealer.Clipog: Information stealing malware capable of copying clipboard data, capturing keystrokes and logging processes where keystrokes end up entered.

Backdoor.PowerExchange: PowerShell-based malware that can log into an Exchange Server with hardcoded credentials and monitor for emails sent by the attackers. It uses an Exchange Server as a C&C. Mails received with “@@” in the subject contain commands sent from the attackers which allows them to execute arbitrary PowerShell commands, write files and steal files. The malware creates an Exchange rule (called ‘defaultexchangerules’) to filter these messages and move them to the Deleted Items folder automatically.

Mimikatz: Publicly available credential dumping tool.

Plink: A command-line connection tool for the PuTTY SSH client

The first evidence of malicious activity on the target’s network occurred on February 1 this year, when an unknown PowerShell script (file name: joper.ps1) executed from a suspicious directory: CSIDL_PROFILE\public\sat. The same script executed multiple times on the same computer (Computer 1) over the next seven days.

Four days later, on February 5, the attackers accessed a second computer (Computer 2) and a renamed version of Plink (msssh.exe), a command-line connection tool for the PuTTY SSH client, ended up used to configure port-forwarding rules allowing for RDP access from a remote host.

Click here for more on the report from Symantec’s Threat Hunter Team.

Pin It on Pinterest

Share This