
Acronis security researchers recently identified Red Heron, a Chinese-speaking actor assessed with moderate confidence to have a China nexus, which is actively exploiting CVE-2026-60004, a critical RCE vulnerability in Gitea. Within days of public PoC code being released, Red Heron had automated account creation, exploitation, data theft and trace cleanup. It scanned 1,386 instances across several countries, including Canada, Argentina, the United States and Sri Lanka, and tracked 477 Taiwan-based systems, targeting strategic sectors such as energy, defense, government and elections.
Stolen repositories, databases, credentials and deployment secrets gave the attacker access well beyond the source-control servers themselves. A Canadian renewable energy company suffered multiple intrusions and backdoor installations. In Taiwan, the attacker stole hundreds of industrial automation repositories; and in another environment, it gained root access to a three-node Proxmox cluster.
Persistence tooling included SSH backdoors, reverse shells and the JITTERLY Linux implant carrying the SIXZUT rootkit, which hides activities and resists removal. The campaign shows how quickly a public exploit can turn an exposed development platform into an entry point for source-code theft and broader infrastructure compromise. Unpatched or misconfigured Gitea servers threaten intellectual property, operational resilience and supply-chain security, underscoring their status as high-value assets.
The most notable aspect of Red Heron is the chain reaction that follows the compromise of a development platform. First, public PoC code was turned into an automated attack tool within days, showing how short the patch window is, while open registration further lowered the barrier for the attack. Second, credentials, deployment keys and configuration files in source repositories can serve as stepping stones to production, cloud and virtualization clusters, so incidents cannot betreated as mere code leaks. Third, the Taiwan-specific target list and critical-sector categorization point to strategic target selection, but are not by themselves sufficient to prove state sponsorship. Defensively, beyond updating Gitea and restricting external access, organizations should inventory and rotate exposed credentials and hunt for lateral movement and persistence. When a rootkit or loss of administrator privileges is involved, removing malicious files alone is not enough: a trusted rebuild of the system should be considered, and inspection should be extended to CI/CD and downstream deployment environments.
Centered on weaponizing a critical remote code execution (RCE) vulnerability in Gitea's patch-handling workflow, Red Heron quickly turned CVE-2026-60004 into a scalable exploitation framework, abusing open registration on exposed Gitea instances to gain code execution without any prior credentials. After initial compromise, Red Heron stole repositories and Gitea databases, harvested credentials and secrets, deployed backdoors and, in at least one case, moved laterally from a compromised Gitea server to a three-node Proxmox virtualization cluster, obtaining root-level access.
The incident is technically significant in two ways. First, it demonstrates how self-hosted development platforms can become gateways to source code, credentials,deployment keys, internal infrastructure and virtualization environments. Second, it exposes Red Heron's Linux post-exploitation tool chain, including JITTERLY (an Adaptix-compatible Linux implant) and SIXZUT (a previously undocumented LD_PRELOAD rootkit embedded within JITTERLY).
Reconnaissance
Red Heron built a structured reconnaissance pipeline before exploitation, using FOFA toidentify Internet-facing Gitea instances and scanning 1,386 systems across seven countries. The scan was more than a list of reachable hosts: it included automated probing to determine which Gitea servers allowed open account registration, a key prerequisite because CVE-2026-60004 requires repository write access.
The operator ran 50-thread automated probing from its VPS infrastructure and stored the results in master_scanned.json. From this dataset, 128 Gitea instances with open registration were filtered into a priority attack list namedopen_sites.json.
A separate Taiwan-centered dataset, tw_assets.json, contained 477 instances. Its metadata includes the field source: Given authorized website, suggesting the list may have been supplied externally rather than generated entirely by Red Heron's own scanning.
Red Heron categorized its targets in Simplified Chinese, including:
Each entry also carries a confidence rating of high, medium or low, along with tags such ascritical_infra and notable_public. This categorization allowed Red Heron to prioritize exploitation of strategically significant targets, including election-related systems, energy organizations, industrial automation companies, government-related systems and research institutions.
Resource Development
Red Heron supported the campaign with a combination of public tools, custom automation and attacker-controlled infrastructure. The group operated an exposed staging server hosting exploit scripts, reconnaissance databases, command history, stolen repositories, malware and cracking tools. The same environment contained folders such as poc-results and downloaded_repo/, preserving evidence of exploit output and stolen data. Bash history and supporting scripts also suggest access to at least a second server, including a script used to mirror stolen data off the staging server.
The core exploit capability came from a public GitHub PoC for CVE-2026-60004. Red Heron cloned HORKimhab/CVE-2026-60004 and began modifying it shortly after the advisory was published. The operator first tested the original PoC, then fork edit into custom scripts such as exp.py, and eventually developedexp_enhanced.py.
Eventually, the mature framework can:
Red Heron also prepared other post-exploitation resources, including Hashcat for cracking stolen Gitea credential hashes, SSH keys for persistence, raw-TCP and metrics-API-style backdoors, and the JITTERLY implant with the embedded SIXZUT rootkit. JITTERLY is configured to communicate with the C2 address s2.981666.xyz:8082.
Initial Access
The primary initial access vector was exploitation of Internet-facing Gitea servers via CVE-2026-60004.
CVE-2026-60004 affects Gitea versions 1.17 through 1.27.0 and was patched in version 1.27.1. The flaw resides in Gitea's diffpatch endpoint, specifically in how Gitea applies repository patches. When processing a patch, affected versions of Gitearun:
git apply --index --recount --cached --binary
On systems with Git 2.32 or later, Gitea adds the -3 flag to enable Git's three-way merge fallback. The affected workflow uses a bare temporary clone. In a bare clone, the repository root also serves as $GIT_DIR, which is critical to exploitation.
The exploitation chain is as follows:
1. The attacker obtains repository write access.
2. The attacker submits a crafted patch.
3. The first submission places a malicious payload in the Git index.
4. The attacker submits the same crafted patch again.
5. The second submission produces an add/add conflict.
6. Git falls back to its three-way merge logic.
7. Even though the operation was intended to remain index-only, Git writes the file out to disk.
8. Because the clone is bare, writing hooks/post-index-change places the attacker's file directly into Git's active hook directory.
9. The next time Git touches the index, the hook executes as the Gitea service account.
Although the affected endpoint requires repository write access, many Gitea instances enable open registration by default. Red Heron abused this setting to register accounts, create repositories and submit malicious patches, gaining RCE without any existing credentials.
The actor also ran an earlier, separate campaign against mainly Joomla-based websites using an exp.py --shell workflow. The exact Joomla vulnerability was not recovered, but the activity is consistent with exploiting public-facing web applications to deploy shells or backdoors.
Execution
After gaining access via CVE-2026-60004, Red Heron executed commands on victim servers as the Gitea service account. Early command history shows the operator testing RCE with simple commands such as:
id
ls
cat /etc/issue
This progression reflects a typical validation pattern: confirm code execution, list accessible files and identify the operating system.
As the tooling matured, command execution became automated. The exploitation framework supports RCE, file system dumping and repository theft. Red Heron also ran enumeration scripts against compromised systems to collect environment details, logs, configuration files and authentication material.
The actor later executed commands through deployed backdoors. One backdoor receives commands over raw TCP using a simple authentication-key format:
<auth key>:<command>
The operator interacted with it using netcat, for example:
echo "<auth key>:id" | nc <target> 48931
echo "<auth key>:ls" | nc <target> 48931
On at least one Argentine victim, Red Heron used another command channel disguised as a Gitea metrics API endpoint:
/api/v1/metrics?k=<auth key>&x=<command>
In this case, the k parameter carries the authentication key and the x parameter carries the command. For example, a request with x=id causes the compromised server to execute id, while disguising as a Prometheus metrics query.
Execution also included launching reverse shells, deploying payloads to Proxmox nodes andrunning JITTERLY, a Linux ELF implant with shell execution, interactive terminal access, file transfer, tunneling and pivoting capabilities.
Persistence
Red Heron used multiple persistence mechanisms after initial compromise.
On some victims, the actor deployed simple command backdoors reachable over raw TCP. These allowed the operator to return with netcat and issue commands without re-running the Gitea exploit.
On other systems, Red Heron planted SSH public keys in authorized_keys. In the Canadian renewable energy intrusion, the actor inserted three SSH key entries corresponding to two unique keys. Some entries were explicitly labeled with backdoor-like identifiers, including victim-specific backdoor tags and root-shell.
The JITTERLY implant provides a more advanced persistence mechanism. When running as root, JITTERLY attempts to install itself into a legitimate-looking directory structure under /usr/lib/. For example, if the implant binary is named configd, its install path becomes:
/usr/lib/configd/configd
JITTERLY obtains its current path via /proc/self/exe and compares it with the expected install path. If it is not already installed there, it copies itself to the target path, deletes the original binary and re-executes itself with the -nodel flag. This flag prevents the new instance from deleting itself again, avoiding an endless copy–delete–restart loop.
The embedded rootkit SIXZUT further strengthens persistence. JITTERLY decrypts SIXZUT at runtime and drops it as:
libglthread.so.2
The name was chosen to mimic a legitimate OpenGL threading library. SIXZUT is loaded system-wide via the following file:
/etc/ld.so.preload
Once activated, every dynamically linked process loads the rootkit. If the implant stops but its binary still exists, SIXZUT can also restart JITTERLY, making removal on a still-running compromised host unreliable.
Defense Evasion
Red Heron used both simple cleanup and advanced rootkit concealment.
At the exploitation-framework level, exp_enhanced.py contains cleanup logic intended to remove specific traces from the Gitea database after account registration, repository creation and exploitation. In practice, cleanup did not always succeed. For example, one Taiwanese industrial automation victim retained more than 130 leftover poc-* directories, likely corresponding to multiple exploitation runs.
JITTERLY also includes several stealth features. It daemonizes itself using the standard UNIX double-fork pattern, calls setsid() to detach from the controlling terminal, redirects standard input, output and error to /dev/null, and changes its working directory. These behaviors help it run quietly in the background. Its use of names such as configd and install paths under /usr/lib/ helps it blendin with legitimate system components.
JITTERLY's C2 trafficis encrypted. It uses raw TCP sockets with a custom framing protocol:
[4-byte big-endian length]
[12-byte AES-GCM nonce]
[AES-128-GCM encrypted msgpack payload]
[16-byte GCM tag]
This makes network inspection more difficult in the absence of endpoint visibility.
SIXZUT provides the most important defense evasion capabilities. It is an LD_PRELOAD rootkit that hooks userland libc functions to hide attacker artefacts. During initialization, it decrypts sensitive strings with XOR key 0x3C, resolves the original libc functions via dlsym() and loads an encrypted configuration blob. The configuration begins with the following magic header:
ADLGTBL1
and is validated with CRC32 before use.
SIXZUT filters file and directory access by hooking the following functions:
It hides paths and artefacts including:
/etc/ld.so.preload
/tmp/.X11-unix.lk
libglthread.so.2
.ld_aux_cahe
It also hides processes by filtering /proclistings. When a tool enumerates /proc, SIXZUT reads /proc/<pid>/cmdline, normalizes the command line, compares it against a hide table and suppresses matching entries.
For network concealment, SIXZUT covers multiple Linux connection-visibility paths. It filters reads from the following files:
/proc/net/tcp
/proc/net/tcp6
/proc/net/udp
/proc/net/udp6
It also tracks file descriptors opened on these proc files and filters subsequent read() calls. Finally, it hooks netlink-based connection queries by intercepting AF_NETLINK sockets using NETLINK_INET_DIAG and filtering recvmsg() responses, affecting tools such as ss.
SIXZUT also protects the implant from termination. Its hooked kill() function checks the target process's command line. If the process matches the hide table, the hook returns ESRCH, meaning "no such process", and the signal is not delivered. To an administrator, the process may appear not to exist, or may be impossible to terminate with ordinary userland tools.
Credential Access
Credential theft was a primary objective after compromising Gitea.
Red Heron's tooling uses file-system dump options such as --dump-fs to pull Gitea data directories from victim servers. These directories include gitea.db, which stores user credential hashes. Because Gitea stores passwords as bcrypt hashes, the actor installed Hashcat on its staging serverto crack stolen credentials offline.
Beyond user password hashes, Red Heron also collected configuration files and secrets from compromised environments. In the Canadian renewable energy case, the actorcaptured:
In the Taiwan Proxmox case, the actor also obtained a Proxmox root@pam authentication ticket, granting full administrative access to the cluster API.
The risk also extends beyond the compromised Gitea application itself: repositories often contain deployment material, application secrets, infrastructure configuration and internal credentials that may give the attacker additional access to staging, production, containerized or virtualized environments.
Discovery
After gaining execution, Red Heron performed host and environment discovery.
At the command-linelevel, the operator ran simple commands such as:
id
ls
cat /etc/issue
These commands identify the current user context, accessible files and operating system information.
Against an Argentine quantitative trading firm, Red Heron ran a more systematic enumeration script. It probed:
In the Canadian renewable energy intrusion, the actor mapped the internal Docker network and container layout from recovered SQLite data and configuration files. This allowed Red Heron to understand the victim's development and application infrastructure beyond the initial Gitea foothold.
JITTERLY also performs automated host profiling during beacon registration. It collects the username from USER and LOGNAME, obtains the hostname with gethostname(), determines whetherit is running as root, parses operating system details from /etc/os-release, and identifies the host's outbound IP address by creating a UDP socket and connecting it to 8.8.8.8:80 without sending application data. The local interface selected by the kernel reveals the host's outbound IP.
JITTERLY then generates a deterministic SHA-1 beacon ID from host attributes, including the username, hostname, outbound IP address, a static identifier and the implant path. This allows the C2 server to identify and track individual infected hosts.
Lateral Movement
The most severe lateral movement occurred in the Taiwan Synology NAS and Proxmox case. Red Heron started with Gitea RCE on a NAS-hosted instance and then moved into the broader virtualization environment.
After obtaining the Proxmox root@pam ticket, Red Heron gained root-level administrative access to the three-node Proxmox cluster. The actor then:
vzdump is Proxmox's legitimate VM backup utility. By triggering VM backups as root, the actor could collect full virtual machine disk images, not just application repositories or configuration files.
Red Heron also accessed the compromised Taiwanese NAS over SSH on port 45000 and obtained root access. In other environments, the actor used SSH keys, reverse shells and stolen credentials to support persistent access and movement beyond the initial Gitea service context.
JITTERLY's capabilities are also well suited to lateral movement. Its command set includes SOCKS/TCP tunneling, reverse port forwarding, pivot relaying and interactive PTY terminal access. These features allow a compromised Linux host to act as an internal pivot point for reaching systems not directly exposed to the Internet.
Collection
Red Heron collected a wide range of data from compromised systems, focusing mainly on source code, Gitea databases, credentials, secrets and infrastructure information.
The automation framework can dump repositories directly from victim file systems. Stolen repositories were staged in timestamped folders under the attacker's downloaded_repo/ directory. Evidence shows successful repository theft from multiple victims.
From a Taiwanese industrial automation company, Red Heron stole hundreds of repositories. The stolen material reportedly includes code related to:
From a Canadian renewable energy company, the actor collected a broader application stack, including:
The staging server held 61 separate database dumps from this victim, along with data pulled through 41 different auto-registered accounts, indicating repeated access across multiple sessions.
Other stolen repositories include learning management platform code, AI chatbot code,workflow automation tools, WordPress plugins, cloud platform code, and personalor organizational development projects.
Red Heron also collected operational and system artefacts during enumeration, including logs, authentication configuration, nginx configuration, bash history, Gitea logs and internal network details.
In the Proxmox case, triggering vzdump backups may have enabled collection of full VM disk images, a major escalation from repository theft to capture of the entire virtualization infrastructure.
Command and Control, C2
Red Heron used multiple command-and-control mechanisms, ranging from simple backdoors to a full-featured Linux implant.
The simplest C2 mechanism is a raw TCP backdoor. It listens on unusual ports, including observed use of port 48931, and accepts commands in the following format:
<auth key>:<command>
The operator controlled it manually with netcat.
A second backdoor uses a Gitea metrics-API-style interface:
/api/v1/metrics?k=<auth key>&x=<command>
This command channel may help traffic blend into normal monitoring activity, since /api/v1/ metrics resembles alegitimate Prometheus metrics endpoint. However, unusual query parameters suchas k and x, especially with command-like values such as id or ls, are highly suspicious.
More advanced C2 capability comes from JITTERLY. The implant is configured with the following C2 address:
s2.981666.xyz:8082
JITTERLY communicates over raw TCP using a custom encrypted protocol. During registration, it sends a host profile containing:
Messages are serialized with msgpack, encrypted with AES-128-GCM and length-prefixed with afour-byte big-endian header. The msgpack structure includes fields such as beacon_id, task_batch_id, accepted_task_ids, command_id, job_id and data.
Reverse engineering shows that JITTERLY closely matches the Adaptix C2 Linux Gopher protocol and command model, although JITTERLY is implemented in C++ and uses AES-128-GCM rather than the AES-256-GCM described in the public Adaptix template.
The implant supports more than 30 post-exploitation commands, including command execution, file transfer, SOCKS/TCP tunneling, reverse port forwarding, pivot relaying, interactive PTY access, persistence management, rootkit status checks and uninstall functionality.
Exfiltration
Red Heron exfiltrated data mainly by saving repositories and Gitea file-system contents into attacker-controlled staging directories.
The framework's--dump-fs feature lets the actor retrieve the Gitea data directory, including repositories and gitea.db. This enables theft of both source code and credential material. Stolen data was organized indirectories such as downloaded_repo/ on the staging server.
Exfiltrated data includes:
In the Canadian renewable energy case, Red Heron extracted large volumes of application and database content across multiple sessions and auto-registered accounts. In the Taiwanese industrial automation case, the actor pulled hundreds of repositories, including sensitive industrial control and monitoring code.
The Proxmox activity represents a potential escalation in exfiltration scope. By launching vzdump backups on three Proxmox nodes, Red Heron may have been preparing to capture complete virtual machine images. Such images can contain an operating system, applications, databases, credentials, logs and internal data in a single package.
The exposed staging server also contains evidence that stolen data may have been mirrored to another machine via an exec.sh script, meaning the attacker's staging server was not necessarily the final storage location for exfiltrated victim data.
Red Heron's campaign shows that a vulnerable, Internet-facing Gitea instance can be far more than a source-code theft incident. In confirmed intrusions, the attacker used Gitea remote code execution as an entry point to steal repositories, dump databases, harvest credentials and secrets, plant SSH backdoors, deploy Linux malware and, in one case, move into a Proxmox cluster with root-level access. Mitigation must therefore address both the initial Gitea exposure and the downstream systems reachable from a compromised development platform.
The most important mitigation is upgrading Gitea to version 1.27.1 or later. CVE-2026-60004 affects Gitea versions 1.17 through 1.27.0; Gitea fixed the issue in 1.27.1 by changing how the diffpatch workflow handles temporary Gitclones. This removes the condition that allowed a crafted patch to write into the Git hook path and execute code as the Gitea service account. Patching is the primary mitigation and should not be replaced by configuration hardening alone.
Organizations should also reduce the attack surface of Gitea. Open registration should be disabled unless explicitly required. In this campaign, open registration allowed Red Heron to create disposable accounts and reach the affected diffpatch functionality without valid credentials. Disabling registration does not remove the vulnerability, but it greatly reduces the risk of unauthenticated exploitation. Where possible, access to the diffpatch API route should also be restricted or disabled, provided the workflow is not required.
Internet exposure should also be reviewed carefully. Self-hosted source-code platforms should not be directly reachable from the public Internet unless there is a clear business need. Placing Gitea behind a VPN, identity-aware proxy, authenticated reverse proxy, allowlist or other access-control layer reduces opportunistic scanning and automated exploitation. This is especially important for Gitea servers connected to deployment pipelines, internal Docker networks, NAS devices, virtualization platforms, CI/CD systems or production credentials.
Even after patching, defenders should investigate whether they were previously compromised. Red Heron's tooling creates accounts, repositories, file-system dumps and cleanup attempts, so administrators should review Gitea accounts and repositories created after the public disclosure of CVE-2026-60004. Attention should be paid to unknown users, auto-generated usernames, unusual repository names, repeated poc-* repositories and unexplained repository creation or deletion activity.
Linux hosts should be checked for signs of JITTERLY and the SIXZUT rootkit. Pay particular attention to modifications of /etc/ld.so.preload, since SIXZUT uses LD_PRELOAD to force malicious code into dynamically linked processes. On many Linux servers this file does not exist or rarely changes, so its presence or recent modification is a strong warning sign. Defenders should also search for artefacts such as libglthread.so.2, .ld_aux_cahe, /tmp/.X11-unix.lk, and suspicious binaries installed under paths such as /usr/lib/<name>/<name>, for example /usr/lib/configd/configd.
Finally, effective mitigation requires four layers: patch Gitea to remove CVE-2026-60004; harden the exposure surface by disabling open registration and restricting access; investigate for signs of exploitation and persistence; and rotate or rebuild anything that may have been exposed. For organizations running self-hosted development platforms, this incident reinforces that source-code servers must be treated as high-value infrastructure, because once compromised they can rapidly lead to intellectual property theft, secret exposure, persistent access and broader infrastructure takeover.
File Hashes
Network
Host
CyCraft Technology(7823.TW) is a Taiwan-listed cybersecurity company, dedicated to automatingcybersecurity with AI technology and safeguarding AI models. CyCraft’s productsuite encompasses XecART, the AI Red Teaming, and XecGuard, the Guardrail APIfor LLMs and AI Agents. The XCockpit AI platform integrates EASM, IASM, andEndpoint protection, providing preemptive and real-time defense-in-depth. Witha proven track record in the government, finance, and semiconductor sectors,and recognition from international institutions, CyCraft continues to safeguardenterprise digital resilience.