OceanLotus APT Group Uses Undetected Ratsnif Remote Trojan to Leverage Network Attack’s

OceanLotus APT Group also known as APT32, SeaLotus, and CobaltKitty uses undetected Remote Access trojans Ratsnif to leverage network attack capabilities. The trojan was active since 2016, and it has features like packet sniffing, gateway/device ARP poisoning, DNS poisoning, HTTP injection, and MAC spoofing.

The Cylance Threat Research Team detected four distinct samples of Ratsnif trojan, out of four, three of them found developed in 2016 and one sample in 2018. There is no significant change with the version developed in 2016, and they are similar in functionality.

The fourth sample was developed in the second half of 2018; it has significant changes when compared to the previous version. Previous samples entirely depend on C2 servers, whereas the current sample doesn’t rely on C2 servers for operations.

It also includes some new features such as HTTP injection, protocol parsing, and SSL hijacking. It uses WolfSSL library for traffic decryption and http_parser.c for parsing HTTP traffic.The new sample also includes features like protocol parsing, ARP poisoning, DNS spoofing, HTTP redirection, and HTTP injection.

Ratsnif Multi-stage Infection

The initial payload is the loader DLL that copies 1st stage shellcode into memory and execute it. Which decompress the 2nd stage payload is the shellcode that executes into the memory and hooks several API functions that responsible for returning command line.

Researchers identified a bug in Ratsnif that could lead to memory read violation when parsing a specific parameter (“dwn_ip’). What happens is that the value is passed as a string and it should be passed as a pointer to a string.

The 2018 variant employs multiple sniffers for harvesting sensitive information from packets and to minimize the data extraction and to exfiltrate the process.

Ratsnif contains Base64 encoded C2 URL, but the trojan didn’t use it. Instead, it logs the captured information in a text, and uses another module to exfiltrate it, reads the analysis.

“Ratsnif is an intriguing discovery considering the length of time it has remained undetected, likely due to limited deployment. It offers a rare glimpse of over two years of feature development, allowing us to observe how threat actors tailor tooling to their nefarious purposes.”

In the previous campaign, OceanLotus uses steganography method to hide the encrypted malware payload within a .png image file to infect the targeted system.

You can follow us on LinkedinTwitterFacebook for daily Cybersecurity updates also you can take the Best Cybersecurity courses online to keep your self-updated.

Gurubaran

Gurubaran is a co-founder of Cyber Security News and GBHackers On Security. He has 10+ years of experience as a Security Consultant, Editor, and Analyst in cybersecurity, technology, and communications.

Recent Posts

Threat Actors Exploit Google Docs And Weebly Services For Malware Attacks

Phishing attackers used Google Docs to deliver malicious links, bypassing security measures and redirecting victims…

12 hours ago

Python NodeStealer: Targeting Facebook Business Accounts to Harvest Login Credentials

The Python-based NodeStealer, a sophisticated info-stealer, has evolved to target new information and employ advanced…

12 hours ago

XSS Vulnerability in Bing.com Let Attackers Send Crafted Malicious Requests

A significant XSS vulnerability was recently uncovered in Microsoft’s Bing.com, potentially allowing attackers to execute…

15 hours ago

Meta Removed 2 Million Account Linked to Malicious Activities

 Meta has announced the removal of over 2 million accounts connected to malicious activities, including…

18 hours ago

Veritas Enterprise Vault Vulnerabilities Lets Attackers Execute Arbitrary Code Remotely

Critical security vulnerability has been identified in Veritas Enterprise Vault, a widely-used archiving and content…

19 hours ago

7-Zip RCE Vulnerability Let Attackers Execute Remote Code

A critical security vulnerability has been disclosed in the popular file archiving tool 7-Zip, allowing…

19 hours ago