AI Security AI安全 6h ago Updated 1h ago 更新于 1小时前 45

Trojanized npm Packages Employ NullReceiver Tactic to Decode C2 IP from Blockchain 被植入木马的 npm 包采用 NullReceiver 技术从区块链解码 C2 IP 地址

NullReceiver is an evolved blockchain-based C2 technique that encodes command-and-control IP addresses directly within the bytes of a fake, never-before-seen Ethereum destination address in zero-value, zero-data transfers The technique was discovered in two trojanized npm packages ("bianira-ui" and "fluid-type-ui"), linked to North Korean threat actors, and represents a deliberate improvement over the previously documented EtherHiding method Unlike EtherHiding, which requires a fixed, watchable 朝鲜关联黑客组织使用新型区块链C2隐藏技术"NullReceiver",将命令与控制服务器IP编码在以太坊零值转账的接收地址字节中 两个npm包"bianira-ui"(109次下载)和"fluid-type-ui"(587次下载)被污染,自2026年7月28日发布后已被下载数百次 NullReceiver是EtherHiding技术的 deliberate improvement,消除了固定可追踪的目标地址,使防御者难以通过链上活动进行归因 恶意软件工作流程:查找硬编码攻击者钱包→获取最新出站交易→读取目标地址→解码前4字节为C2 IP→建立连接 相比EtherHiding,NullRece

65
Hot 热度
70
Quality 质量
55
Impact 影响力

Analysis 深度分析

TL;DR

  • NullReceiver is an evolved blockchain-based C2 technique that encodes command-and-control IP addresses directly within the bytes of a fake, never-before-seen Ethereum destination address in zero-value, zero-data transfers
  • The technique was discovered in two trojanized npm packages ("bianira-ui" and "fluid-type-ui"), linked to North Korean threat actors, and represents a deliberate improvement over the previously documented EtherHiding method
  • Unlike EtherHiding, which requires a fixed, watchable destination address and smart contract interactions, NullReceiver generates a unique throwaway address for every lookup, eliminating fingerprinting opportunities and reducing gas costs to near-zero
  • The malware decodes C2 IPs by extracting the first four bytes from the destination address of the attacker's most recent outbound transaction and converting them from hexadecimal to decimal IP format
  • Both trojanized packages have been removed from npm but collectively received over 696 downloads since their publication on July 28, 2026

Why It Matters

This development represents a significant escalation in supply chain attack sophistication, demonstrating how threat actors are leveraging blockchain's pseudonymous nature to create increasingly resilient and undetectable command-and-control infrastructure. For AI and software practitioners, it underscores the critical importance of supply chain security and the need for enhanced monitoring of npm dependencies, as even seemingly benign UI packages can serve as vectors for advanced persistent threats.

Technical Details

  • NullReceiver encodes C2 IP addresses within Ethereum transaction destination addresses by converting the first four bytes of a fabricated address from hexadecimal to decimal (e.g., "a658863e" → "166.88.134.62"), with trailing bytes potentially containing ASCII signatures like "helloipbot!!"
  • The technique operates through a four-step execution chain: the trojanized JavaScript library looks up a hard-coded attacker wallet ("0xa322e5f3d311d3080e6f0121063e9adc2490ef1a"), retrieves its most recent outbound transaction, reads the destination address, and decodes the C2 IP from the first four address bytes
  • NullReceiver eliminates the fixed destination address problem of EtherHiding by generating a unique, never-before-seen throwaway address for each lookup, making defensive monitoring and attribution significantly more difficult
  • The technique requires no smart contract interactions and no calldata payload, making transactions the cheapest and least conspicuous shape on the Ethereum network since gas costs are not incurred per byte as with calldata
  • A total of 68 blockchain transactions were observed since July 27, 2026, all targeting the same fabricated destination pattern, with the trojanized packages receiving 109 and 587 downloads respectively before removal from npm

Industry Insight

  • Security teams should implement enhanced supply chain monitoring that includes behavioral analysis of npm package network activity, particularly for packages that make blockchain or wallet-related API calls, as these may indicate NullReceiver-style C2 communication
  • The evolution from EtherHiding to NullReceiver suggests that threat actors are systematically addressing defensive countermeasures, indicating a need for proactive threat intelligence sharing around blockchain-based C2 techniques and the development of detection heuristics for anomalous Ethereum transaction patterns
  • Organizations relying on open-source dependencies should adopt stricter package verification practices, including signature validation, dependency auditing tools, and network-level monitoring for outbound connections to IPs derived from blockchain lookups, as traditional signature-based detection will likely miss this type of stealthy supply chain compromise

TL;DR

  • 朝鲜关联黑客组织使用新型区块链C2隐藏技术"NullReceiver",将命令与控制服务器IP编码在以太坊零值转账的接收地址字节中
  • 两个npm包"bianira-ui"(109次下载)和"fluid-type-ui"(587次下载)被污染,自2026年7月28日发布后已被下载数百次
  • NullReceiver是EtherHiding技术的 deliberate improvement,消除了固定可追踪的目标地址,使防御者难以通过链上活动进行归因
  • 恶意软件工作流程:查找硬编码攻击者钱包→获取最新出站交易→读取目标地址→解码前4字节为C2 IP→建立连接
  • 相比EtherHiding,NullReceiver交易成本更低(无calldata费用)、无指纹特征,且每次使用全新的一次性目标地址

为什么值得看

这项技术揭示了国家级黑客组织如何将供应链攻击与区块链隐蔽通信相结合,对开源软件生态安全构成新型威胁。NullReceiver的演进表明APT组织正在持续优化C2基础设施的抗检测能力,防御者需要重新评估基于固定地址监控的传统检测方法。

技术解析

  • NullReceiver核心机制:将C2 IP地址直接编码在以太坊转账的接收地址前4字节中,而非像EtherHiding那样使用智能合约或calldata字段。恶意软件查找攻击者钱包地址"0xa322e5f3d311d3080e6f0121063e9adc2490ef1a"的最新出站交易,读取目标地址并解码IP。
  • 地址编码细节:目标地址"0xa658863ea658863e68656c6c6f6970626f742121"中,"a658863e"解码为C2 IP"166.88.134[.]62",后缀"68656c6c6f6970626f742121"为ASCII字符串"helloipbot!!"。
  • 技术演进对比:EtherHiding需要固定目标地址和calldata(按字节收费),而NullReceiver每次使用全新的、从未出现过的目标地址,交易完全空白,无字段可被指纹识别。
  • 交易规模:自2026年7月27日(包发布前一天)起共68笔交易,所有交易使用相同的目标地址模式。
  • 限制与权衡:NullReceiver只能编码少量字节(仅IP地址),无法像EtherHiding那样传输完整URL或脚本,但换来了更强的隐蔽性和更低的成本。

行业启示

  • 开源供应链安全需升级监控:npm等包管理平台的包发布审核机制需要加强,特别是针对新发布包的异常行为检测,建议建立包行为基线和动态沙箱分析能力。
  • 区块链威胁情报成为关键防御层:国家级APT组织 increasingly 利用区块链进行C2通信,安全团队需要建立链上活动监控能力,跟踪可疑钱包地址和交易模式。
  • 传统黑名单检测范式失效:NullReceiver的"无固定目标、无指纹"特性表明,基于已知恶意地址或特征码的检测方法将难以应对此类威胁,防御者需要转向行为分析和异常检测策略。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Open Source 开源 Research 科学研究 Programming 编程