Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

‘Magic’ Malware Using Custom Communication Protocol Discovered

Researchers from Seculert have discovered a new malware they dubbed “Magic”, due to “magic code” used within a custom communication protocol that the threat uses to communicate with its command and control servers.

Researchers from Seculert have discovered a new malware they dubbed “Magic”, due to “magic code” used within a custom communication protocol that the threat uses to communicate with its command and control servers.

The sample came to Seculert from a customer sometime during the past month, after it was uploaded to Seculert Swamp, the company’s cloud-based, automated malware analysis service.

According to Seculert, the sample was flagged because its behavior seemed out of the ordinary for a legitimate executable.

“Usually, when a malware initiates a communication with a C2 server, the first response is a setting, telling the malware what to do next,” Aviv Raff, CTO of Seculert, explained in a blog post.

In this case, the C2 (Command and Control) server instructed the malware to start communicating with the same IP address and port, Raff said.

But from then on, Raff continued, instead of using the HTTP protocol commonly used by malware, “Magic” communicated with its C2 server using a custom-made protocol, always using a magic code at the beginning of the conversation as seen in the screenshot below.

"Magic" Malware Custom Protocol

In one case, as shown in the figure below, the malware asks for instructions from the C2 server.

some_magic_code1

“The C2 server responds with a command to add a new backdoor user — Username: WINDOWS, Password: MyPass1234 — which enables the attacker to remotely access the infected machine or network,” Raff noted.

Advertisement. Scroll to continue reading.

The Command and Control servers are located in France, Germany and the Netherlands, Raff told SecurityWeek.

Raff said that Magic is a fully functional custom-made RAT, with features that are still under development.

The attacks are currently active, and had remained undetected on the targeted machines for the past 11 months, Seculert said. Attackers have targeted several thousand entities, most of them located in the United Kingdom, with several different industries being targeted, including Finance, Education and Telecom.

Seculert said they have seen other variants of the malware that date back to May 2012, though the malware appears to still be under development by the attackers.

“For instance, in case the attacker would like to open a browser on the victim’s machine, the malware will popup on the RDP session for the attacker a box with the message: ‘TODO:Start browser!’” Raff explained.

Seculert is currently investigating the infection vector, though they did say that the malware is being downloaded by another malware. 

The malware authors are using English in the code, but Raff suspects they are probably not native English speakers.

While the true intentions of the attackers behind the malware are not certain, the goal appears to be to stealing information, and Seculert believes that the current phase of the attack is to monitor the activities of their targeted entities.

“Because this malware is also capable of downloading and executing additional malicious files, this might be only the first phase of a much broader attack,” Raff opined.

“We have yet to find any indication that this is a state-sponsored attack,” he said.

Written By

For more than 15 years, Mike Lennon has been closely monitoring the threat landscape and analyzing trends in the National Security and enterprise cybersecurity space. In his role at SecurityWeek, he oversees the editorial direction of the publication and is the Director of several leading security industry conferences around the world.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

Expert Insights

Related Content

Cybercrime

The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.

Cybercrime

A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Malware & Threats

The NSA and FBI warn that a Chinese state-sponsored APT called BlackTech is hacking into network edge devices and using firmware implants to silently...

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...

Cyberwarfare

An engineer recruited by intelligence services reportedly used a water pump to deliver Stuxnet, which reportedly cost $1-2 billion to develop.

Malware & Threats

Unpatched and unprotected VMware ESXi servers worldwide have been targeted in a ransomware attack exploiting a vulnerability patched in 2021.

Malware & Threats

Apple’s cat-and-mouse struggles with zero-day exploits on its flagship iOS platform is showing no signs of slowing down.

Cybercrime

No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.