Threat reportSupply ChainTL-2026-0164
Malicious Go crypto Module — Rekoobe Linux Backdoor via golang.org/x/crypto Namespace Confusion
A malicious Go module (github.com/xinfeisoft/crypto) impersonates the foundational golang.org/x/crypto library, injecting a backdoor into ssh/terminal/terminal.go that captures passwords, exfiltrates credentials to attacker infrastructure, plants SSH keys for persistent access, and deploys the Rekoobe Linux backdoor.
Key facts
| Identifiers | TL-2026-0164 |
|---|---|
| Also known as | xinfeisoft/crypto supply chain attack |
| Severity | HIGH |
| CVSS | 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) |
| Affected products | Go Ecosystem github.com/xinfeisoft/crypto; Linux Ubuntu-based cloud instances |
| Weaknesses (CWE) | CWE-506, CWE-912, CWE-494, CWE-522 |
| Nation-state nexus | China |
| Malware | Rekoobe |
| MITRE ATT&CK techniques | T1027 Obfuscated Files or Information, T1036.005 Match Legitimate Resource Name or Location, T1041 Exfiltration Over C2 Channel, T1056.004 Credential API Hooking, T1059.004 Unix Shell, T1070.004 File Deletion, T1071.001 Web Protocols, T1074.001 Local Data Staging, T1098.004 SSH Authorized Keys, T1102.001 Dead Drop Resolver, T1105 Ingress Tool Transfer, T1195.001 Compromise Software Dependencies and Development Tools and 3 more in the attack flow |
| Motivation | ESPIONAGE |
| Detection rules | 9 (1 shown free) |
| Sources | 8 cited sources |
Detection coverage
As of 2026-03-02, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0164 across Splunk SPL, Microsoft KQL and Sigma, covering 16 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Rekoobe C2 — img.spoolsv.cc Payload Delivery + .mp5 Disguised Binaries + HTTP POST Exfiltration
Detects Rekoobe C2 infrastructure and lateral movement indicators: (1) DNS resolution or HTTP connections to img.spoolsv.cc or img.spoolsv.net — primary and rotated C2 domains. (2) File downloads with .mp5 extension — Rekoobe binaries disguised as media files (sss.mp5, 555.mp5). (3) HTTP POST to C2 endpoint with credential exfiltration payload. (4) GitHub dead drop resolver at raw.githubusercontent.com/xinfeisoft/vue-element-admin. (5) Artifact cleanup — deletion of /tmp/mid, /tmp/midd, snn50.txt after execution.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1071.001, T1105, T1102.001, T1070.004, T1036.005, T1041
- Severity: high
- Confidence: high
Splunk SPL
index=proxy OR index=dns OR index=sysmon sourcetype="proxy:*" OR sourcetype="dns" OR sourcetype="sysmon"
| search (
(sourcetype="dns" AND (query="*spoolsv.cc*" OR query="*spoolsv.net*"))
OR (sourcetype="proxy:*" AND (url="*spoolsv.cc*" OR url="*spoolsv.net*" OR url="*xinfeisoft*"))
OR (sourcetype="proxy:*" AND url="*.mp5*" AND url="*img.*")
OR (EventCode=1 AND CommandLine="*rm*" AND (CommandLine="*/tmp/mid*" OR CommandLine="*snn50*"))
)
| eval indicator=case(
match(_raw, "spoolsv\.(cc|net)") AND sourcetype="dns", "c2_dns_resolution",
match(_raw, "spoolsv\.(cc|net)") AND sourcetype!="dns", "c2_http_connection",
match(_raw, "xinfeisoft"), "dead_drop_resolver",
match(_raw, "\.mp5"), "disguised_payload_download",
match(CommandLine, "rm.*/tmp/mid|snn50"), "artifact_cleanup",
1=1, "suspicious"
)
| stats count earliest(_time) as first_seen by host, src_ip, indicator, url, query
| eval first_seen=strftime(first_seen, "%Y-%m-%dT%H:%M:%S")
| table first_seen, host, src_ip, indicator, url, query, countMicrosoft KQL
union
(
DnsEvents
| where TimeGenerated > ago(24h)
| where Name has_any ("spoolsv.cc", "spoolsv.net")
| extend Indicator = "c2_dns_resolution"
| project TimeGenerated, Computer, Name, Indicator
),
(
DeviceNetworkEvents
| where Timestamp > ago(24h)
| where RemoteUrl has_any ("spoolsv.cc", "spoolsv.net", "xinfeisoft")
| extend Indicator = "c2_http_connection"
| project Timestamp, DeviceName, RemoteUrl, InitiatingProcessFileName, Indicator
),
(
DeviceNetworkEvents
| where Timestamp > ago(24h)
| where RemoteUrl endswith ".mp5"
| extend Indicator = "disguised_payload_download"
| project Timestamp, DeviceName, RemoteUrl, InitiatingProcessFileName, Indicator
),
(
DeviceProcessEvents
| where Timestamp > ago(24h)
| where ProcessCommandLine has "rm" and ProcessCommandLine has_any ("/tmp/mid", "snn50")
| extend Indicator = "artifact_cleanup"
| project Timestamp, DeviceName, ProcessCommandLine, Indicator
)
| sort by Timestamp ascSigma
title: Rekoobe — C2 Domain Resolution (img.spoolsv.cc / img.spoolsv.net)
id: c3030003-0164-4003-c003-000000000003
status: experimental
description: Detects DNS resolution or HTTP connections to Rekoobe C2 domains img.spoolsv.cc and img.spoolsv.net. Also detects .mp5 extension file downloads (Rekoobe binaries disguised as media files) and post-execution artifact cleanup.
author: Threadlinqs Team
date: 2026/03/02
tags:
- attack.command_and_control
- attack.t1071.001
- attack.t1105
- attack.t1102.001
- attack.defense_evasion
- attack.t1070.004
- attack.t1036.005
references:
- https://socket.dev/blog/malicious-go-crypto-module-steals-passwords-and-deploys-rekoobe-backdoor
logsource:
category: dns
detection:
selection_dns:
query|contains|any:
- 'spoolsv.cc'
- 'spoolsv.net'
selection_github:
query|contains: 'raw.githubusercontent.com'
query|contains: 'xinfeisoft'
condition: selection_dns or selection_github
falsepositives:
- None — spoolsv.cc and spoolsv.net are confirmed malicious C2 infrastructure
level: critical- Rekoobe Supply Chain — Go Module Dependency Confusion + ReadPassword Hook Indicators · unlock with TL Creds
- Rekoobe Post-Exploitation — Curl-to-Shell Stager + Payload Drop to /tmp + Background Execution · unlock with TL Creds
- Rekoobe C2 — Credential Exfiltration via HTTP POST + Rekoobe Backdoor Network Activity · unlock with TL Creds
- Rekoobe Exploitation — Malicious Go Module Import + Credential File Staging · unlock with TL Creds
- Rekoobe Post-Exploitation — SSH Authorized Keys Modification + Artifact Cleanup · unlock with TL Creds
- Rekoobe C2/Lateral — GitHub Dead Drop Resolver + Multi-Stage Payload Chain + Masqueraded Extensions · unlock with TL Creds
- Rekoobe Supply Chain — Credential Staging to [indicator] + Dead Drop Resolver Callback · unlock with TL Creds
- Rekoobe Post-Exploitation — SSH Key Injection + iptables Firewall Weakening + Stager Execution · unlock with TL Creds
Indicators of compromise
As of 2026-03-02, Threadlinqs Intelligence tracks 16 indicators of compromise for TL-2026-0164.
Sample indicators (3 of 16)
- Domain:
img[.]spoolsv[.]cc - URL:
hxxps://raw[.]githubusercontent[.]com/xinfeisoft/vue-element-admin/refs/heads/main/public/update.html - Domain:
img[.]spoolsv[.]net
Defanged, TLP:CLEAR. Full set of 16 indicators: unlock with TL Creds.
Technical analysis
Socket Security's Threat Research Team uncovered a malicious Go module published as github.com/xinfeisoft/crypto at version v0.15.0, designed to impersonate the legitimate golang.org/x/crypto codebase — one of the Go ecosystem's foundational cryptography libraries maintained by the Go project itself. The module mirrors the full package layout of the legitimate library (acme, argon2, bcrypt, blake2, ssh, etc.) but inserts a backdoor in ssh/terminal/terminal.go, specifically targeting the ReadPassword() helper function.
The attack chain is multi-staged. When a victim application calls ReadPassword() for interactive password prompts (SSH passphrases, database logins, API keys), the backdoored function captures the plaintext secret and writes it to /usr/share/nano/.lock. It then fetches a GitHub-hosted staging URL (raw.githubusercontent.com/xinfeisoft/vue-element-admin/refs/heads/main/public/update.html) to obtain the next-hop C2 address. The captured password is exfiltrated via HTTP POST to the threat actor's endpoint, followed by retrieval and execution of a shell script via /bin/sh.
The downloaded stager (snn50.txt) performs three critical actions: (1) appends a threat actor-controlled SSH RSA public key to /home/ubuntu/.ssh/authorized_keys for persistent access, (2) sets iptables default policies to ACCEPT to weaken host firewall posture, and (3) downloads and executes two additional payloads from img.spoolsv.cc disguised with .mp5 extensions (sss.mp5 and 555.mp5), confirmed as the Rekoobe Linux backdoor. The stager then deletes dropped files to reduce forensic artifacts.
The threat actor's GitHub account (xinfeisoft) hosts four repositories: crypto (the malicious module), vue-element-admin (staging infrastructure hosting the C2 pointer), demo, and feisoft. Commit history shows the vue-element-admin staging pointer was updated from img.spoolsv.net/seed.php to img.spoolsv.cc/seed.php on July 12, 2025, indicating continued operational maintenance months after the module's February 2025 publication.
Rekoobe is a Linux backdoor historically associated with Chinese-origin threat activity, including APT31/Zirconium and broader Winnti cluster operations. It provides persistent remote access, command execution, and has been observed in campaigns targeting government, technology, and cloud infrastructure sectors.
The malicious module was published to pkg.go.dev on February 20, 2025 and remained available through the Go module proxy until Socket reported it. The Go security team subsequently blocked the module, returning 403 SECURITY ERROR responses. The xinfeisoft GitHub account remains active as of the report date. The hardcoded /home/ubuntu path suggests targeting of Ubuntu-based cloud environments (AWS EC2, GCP, Azure instances using default ubuntu accounts).
The module adds github.com/bitfield/script as a dependency — a legitimate Go library for HTTP requests and shell pipelines — providing convenient abstractions for the outbound network activity and command execution embedded in the backdoor. This dependency choice helps the malicious behavior blend into what appears to be ordinary library usage.
MITRE ATT&CK techniques by tactic:
stealth
T1027 Obfuscated Files or Information; T1036.005 Match Legitimate Resource Name or Location; T1070.004 File Deletion
exfiltration
T1041 Exfiltration Over C2 Channel
collection
T1056.004 Credential API Hooking; T1074.001 Local Data Staging
execution
T1059.004 Unix Shell; T1204.002 Malicious File
command-and-control
T1071.001 Web Protocols; T1102.001 Dead Drop Resolver; T1105 Ingress Tool Transfer
persistence
initial-access
T1195.001 Compromise Software Dependencies and Development Tools
credential-access
T1552.001 Credentials In Files
defense-impairment
Remediation
Patches
- Remove github.com/xinfeisoft/crypto from go.mod and replace with golang.org/x/crypto
- Go module proxy now blocks the malicious module (403 SECURITY ERROR)
Immediate actions
- Audit all Go projects for imports of github.com/xinfeisoft/crypto
- Search go.sum files for github.com/xinfeisoft/crypto v0.15.0
- Block network traffic to img.spoolsv.cc and img.spoolsv.net at perimeter
- Check /home/ubuntu/.ssh/authorized_keys for unauthorized SSH keys
- Inspect /usr/share/nano/.lock for credential artifacts
- Review iptables rules for unexpected ACCEPT default policies
Workarounds
- Set GONOSUMDB and GONOSUMCHECK to prevent resolution of unknown module paths
- Use go mod verify to check module integrity against go.sum
- Pin golang.org/x/crypto explicitly in go.mod to prevent path confusion
Longer-term hardening
- Implement Go module verification using GONOSUMCHECK exclusion lists
- Deploy dependency scanning with Socket Security or similar tools
- Use GOFLAGS=-mod=vendor to lock dependencies in vendor directory
- Monitor for namespace confusion attacks on foundational Go libraries
- Implement least-privilege network policies for build/CI environments
- Deploy EDR with behavioral detection for curl|sh patterns
Affected and fixed versions
- Go Ecosystem — github.com/xinfeisoft/crypto
Vulnerable versions: v0.15.0
Fixed in: Blocked by Go module proxy - Linux — Ubuntu-based cloud instances
Vulnerable versions: All versions with default ubuntu account
Timeline
- Threat actor creates vue-element-admin repository on GitHub with public/update.html pointing to [domain withheld]/seed.php as C2 staging infrastructure.
- Malicious Go module [file path withheld] published to pkg.go.dev and Go module proxy, impersonating golang.org/x/crypto.
- Threat actor updates vue-element-admin/public/update.html C2 pointer from [domain withheld]/seed.php to [domain withheld]/seed.php, indicating continued operational maintenance.
- Socket Security confirms malicious module still fetchable from public Go module mirror as of this date — module had been live for nearly 10 months.
- Socket Security files abuse report requesting action on the xinfeisoft GitHub account. Account remains active as of report publication.
- Go security team blocks the malicious module on the public Go module proxy, returning 403 SECURITY ERROR responses. Module no longer resolvable through default Go toolchain.
- Socket Security Threat Research Team publishes analysis of the malicious module, including full kill chain and Rekoobe backdoor confirmation. Source: https://socket.dev/blog/malicious-go-crypto-module-steals-passwords-and-deploys-rekoobe-backdoor
- As of 2026-05-29, the malicious xinfeisoft/crypto Go module is blocked by the Go proxy (403 SECURITY ERROR), neutralizing the delivery vector (no CVE/KEV applies). However, the xinfeisoft actor (suspected APT31/Winnti) kept its GitHub account and rotating [domain withheld] C2 active, and Rekoobe remains in use, so the threat stays live and warrants monitoring.
Sources cited
- Socket Security — Malicious Go crypto Module Steals Passwords and Deploys Rekoobe Backdoor socket.dev · Research · 2026-02-26
- Socket Security — Package Analysis: github.com/xinfeisoft/crypto socket.dev · Research · 2026-02-26
- golang.org/x/crypto — Legitimate Go Cryptography Library pkg.go.dev · Vendor report · 2025-02-20
- MITRE ATT&CK — Supply Chain Compromise: Compromise Software Dependencies and Development Tools MITRE · Research
- Intezer — Rekoobe Linux Backdoor Analysis intezer.com · Research · 2023-06-15
- Go Module Mirror — Security Policy and Malicious Module Blocking proxy.golang.org · Vendor report · 2025-12-16
- GitHub — xinfeisoft/crypto (malicious repository) GitHub · Code repository · 2025-02-20
- GitHub — xinfeisoft/vue-element-admin (staging infrastructure) GitHub · Code repository · 2025-02-19
Previous and next in supply chain
- Famous Chollima (DPRK) npm Supply Chain — Pastebin Text Steganography Dead-Drop Resolver, 17 Malicious Packages, Vercel C2 Infrastructure Previous report
- Aqua Trivy VS Code Extension Supply Chain Compromise — hackerbot-claw AI Bot Campaign, Stolen PAT, OpenVSX Malicious Publish, AI Agent Execution Injection Next report
Further reading
AI-drafted from 8 cited sources; published ; last updated —.