Tuesday, September 8, 2026

Threat Actors Leverage CrossC2 to Extend Cobalt Strike to Linux and macOS

JPCERT/CC verified a number of events in which threat actors were seen using CrossC2, an unofficial extension tool that creates Cobalt Strike Beacons that work with Linux and macOS.

This campaign, which targeted Active Directory (AD) infrastructures, involved the use of CrossC2 alongside established tools such as PsExec for lateral movement, Plink for SSH tunneling, and native Cobalt Strike payloads.

Further analysis revealed the integration of a custom loader dubbed ReadNimeLoader, written in Nim, which facilitates in-memory execution of Cobalt Strike via DLL sideloading.

Evidence from VirusTotal submissions indicates that this operation extended beyond Japan, impacting organizations in multiple countries.

The attackers exploited Linux servers as potential entry points, capitalizing on the frequent absence of endpoint detection and response (EDR) systems in such environments, thereby enabling deeper network penetration and persistence.

Overview of the Attack Campaign

CrossC2, developed in C and compatible with Cobalt Strike version 4.1 and later, supports x86, x64, and M1 architectures on Linux and macOS.

Cobalt Strike
Flow of Cobalt Strike execution

Upon execution, it forks a child process to handle core operations, retrieving C2 details from embedded configurations or environment variables like CCHOST and CCPORT.

While it executes a subset of Cobalt Strike commands, CrossC2 incorporates anti-analysis measures including single-byte XOR string encoding and extensive junk code insertion, which can be neutralized by patching specific byte sequences with NOP instructions.

The configuration is appended to the binary, encrypted with AES-128-CBC (no padding), and located by scanning for the “HOOK” tag using readlink and fread functions.

Notably, CrossC2 Beacons are UPX-packed by default, requiring configuration removal for successful unpacking before reinsertion.

The Cobalt Strike deployment chain begins with a legitimate java.exe invoked via Task Scheduler, which sideloads ReadNimeLoader disguised as jli.dll from the C:$Recycle.Bin\ directory.

ReadNimeLoader decrypts a readme.txt file containing OdinLdr, an open-source shellcode loader that decodes and executes the embedded Cobalt Strike Beacon in memory.

Cobalt Strike
Each decoding function

ReadNimeLoader employs sophisticated anti-debugging techniques, such as checking PEB’s BeingDebugged flag, CONTEXT_DEBUG_REGISTERS, timing differentials exceeding 0x512, and exception handler verification.

Decryption keys are dynamically generated from these routines, combined with XOR-decoded strings, and processed via AES-256-ECB for payload extraction.

OdinLdr further evades detection by periodically re-encrypting the Beacon with random XOR keys and storing it in heap memory prefixed with “OdinLdr1337”. Variations exist where ReadNimeLoader directly executes the Beacon without OdinLdr.

Analysis Support

Attackers supplemented their arsenal with ELF variants of SystemBC for proxying communications, GetNPUsers for AS-REP Roasting attacks, and Windows privilege escalation utilities.

Attribution points to a potential connection with the BlackBasta ransomware group, evidenced by shared C2 domains, file naming conventions like jli.dll and readme.txt, and tactical overlaps including SystemBC and AS-REP exploitation, as noted in prior Rapid7 reports.

To aid investigations, JPCERT/CC has released a Python-based configuration parser on GitHub for extracting CrossC2 details from Linux and macOS binaries.

This tool decodes encrypted configurations, revealing C2 servers, public keys, and other artifacts. As Linux servers increasingly become blind spots in enterprise defenses, heightened monitoring and EDR deployment are recommended to mitigate such multi-platform threats.

Indicators of Compromise (IOCs)

TypeIndicatorDescription
IP:Port162.33.179.247:8443CrossC2 C2 Server
Domainapi.glazeceramics.com:443Cobalt Strike C2
Hash (SHA256)56b941f6dcb769ae6d6995412559012abab830f05d5d8acf2648f7fa48c20833ReadNimeLoader (jli.dll)
Hash (SHA256)28d668f3e1026a56d55bc5d6e36fad71622c1ab20ace52d3ab12738f9f8c6589CrossC2 (gds)
Hash (SHA256)74a33138ce1e57564baa4ea4db4a882d6bf51081b79a167a6cb2bf9130ddad7fELF-SystemBC (monitor)

AWS Security Services: 10-Point Executive Checklist - Download for Free

Aman Mishra
Aman Mishra
Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

PoisonedRefresh Malware Backdoors F5 BIG-IP Servers With Memory-Only PHP Web Shells

A sophisticated Linux implant linked to compromised F5 BIG-IP...

Natural Resources Wales Data Breach Exposes Sensitive Employee Diversity Data

Natural Resources Wales (NRW) has reported a personal data...

ConnectWise ScreenConnect Remote Access Flaw Impacts Guest File Transfer Sessions

ConnectWise has announced a security issue affecting file transfer...

Global Phishing Campaign Abuses Google Infrastructure to Evade Security and Steal Credentials

A large-scale phishing operation is abusing trusted Google services...

OpenAI Commits $1 Billion in Daybreak AI Cyber Tools to Protect Critical Infrastructure

OpenAI has announced a $1 billion global commitment to...

Tengu Mirai-Style Linux Bot Hides as Kernel Worker to Launch DDoS and Proxy Attacks

A newly analyzed Linux malware sample, dubbed Tengu, combines...

The 12 Best Wireless / Wi-Fi Security Solutions, Compared and Priced

Best value overall: Ubiquiti. Published hardware pricing, no mandatory...

The 12 Best Network Sandboxing Solutions, Compared and Priced

Best value overall: ANY.RUN. It publishes its pricing, offers...

Related Articles

Recent News