# 挖矿木马（恶意软件）

在恶意软件的语境中，挖矿木马是指未经设备或服务器所有者同意，利用其处理能力为攻击者挖掘加密货币的恶意软件，这种行为也被称为“加密劫持”。与直接索要赎金的勒索软件不同，挖矿木马将窃取的计算周期转化为货币，并且其设计目标是尽可能长时间地不被发现地运行。<sup>[1](https://www.cyber.gov.au/guidance/learn-about-cryptomining-malware)</sup><sup> • </sup><sup>[2](https://www.akamai.com/site/en/documents/state-of-the-internet/2025/ransomware-trends-2025.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 在所有者不知情或未经同意的情况下，劫持设备或网络的CPU、内存或GPU来挖掘加密货币的恶意软件<sup>[1](https://www.cyber.gov.au/guidance/learn-about-cryptomining-malware)</sup><sup> • </sup><sup>[3](https://umpir.ump.edu.my/id/eprint/41462/)</sup> |
| 首选币种 | 门罗币（Monero），因为Coinhive及类似代码库挖掘该币种，且大多数加密劫持网站使用Coinhive<sup>[4](https://arxiv.org/abs/1803.02887)</sup> |
| 历史峰值 | 2017年Coinhive于9月上线后，基于浏览器的加密劫持在2017年间增长了8500%<sup>[5](https://arxiv.org/abs/1809.02152)</sup><sup> • </sup><sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC13233642/)</sup> |
| 现代目标 | 处理能力更强的服务器、云实例和容器，而非个人电脑<sup>[7](https://seclab.nu/static/publications/eurosp21sokcrypto.pdf)</sup> |
| 常见载荷 | XMRig，一款开源的门罗币挖矿程序，犯罪团伙和国家支持的攻击者均有部署<sup>[8](https://www.cisa.gov/news-events/cybersecurity-advisories/aa22-320a)</sup> |
| 近期规模 | PoeLLM行动感染了超过3400台运行AI/LLM服务的服务器，Lumen旗下Black Lotus Labs自2026年4月起持续追踪<sup>[9](https://www.tomshardware.com/tech-industry/cyber-security/cryptomining-malware-used-poetry-to-infect-more-than-3-400-servers-researchers-say-four-words-in-the-poellm-verse-changed-11-times-point-the-botnet-to-new-servers)</sup> |
| 云环境冲击 | 在Microsoft Defender for Cloud遥测数据中，加密挖矿占容器入侵攻击类型的58%<sup>[10](https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/microsoft/bade/documents/products-and-services/en-us/security/Microsoft-Digital-Defense-Report-2025.pdf)</sup> |

## 工作原理

挖矿木马在并非自己拥有的硬件上运行工作量证明哈希算法。在基于浏览器的形式中，网页中嵌入的单个[JavaScript](https://www.edgepedia.org/zh/javascript)文件配置并启动挖矿进程，利用访问者的CPU缓存和核心来执行算法；网站运营者或植入脚本的攻击者收取收益。<sup>[11](https://link.springer.com/article/10.1007/s11416-022-00420-7)</sup><sup> • </sup><sup>[12](https://arxiv.org/abs/2006.10861)</sup>在基于主机的形式中，恶意软件被安装在服务器、容器或台式机上，在后台持续挖矿。

**变现方式。** 勒索软件和挖矿木马都利用加密货币的匿名性，但方式不同：勒索团伙利用加密货币收取赎金，而挖矿木马则直接从挖矿操作中获利。<sup>[2](https://www.akamai.com/site/en/documents/state-of-the-internet/2025/ransomware-trends-2025.pdf)</sup>

## 历史：Coinhive时代

现代加密劫持浪潮可追溯至Coinhive，这是一项基于浏览器的服务，于2017年9月推出API，允许开发者在自己的网站上实现门罗币挖矿。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC13233642/)</sup>这些挖矿程序的轻易可得导致非法加密挖矿在2017年激增，并持续到2018年，基于浏览器的加密劫持在2017年间增长了8500%。<sup>[13](https://www.usenix.org/system/files/sec19-bijmans.pdf)</sup><sup> • </sup><sup>[5](https://arxiv.org/abs/1809.02152)</sup>Coinhive被描述为加密劫持中使用最广泛的恶意软件，它使网站所有者能够将挖矿整合到自己的网站中，而这种做法被广泛认为是对访问者资源的滥用。<sup>[14](https://seclab.skku.edu/wp-content/uploads/2018/08/a18-Rauchberger.pdf)</sup><sup> • </sup><sup>[4](https://arxiv.org/abs/1803.02887)</sup>

Coinhive于2019年关闭。此后，对加密劫持的兴趣大体上随加密货币的广泛关注度而波动，攻击者转向处理能力更强的设备，如服务器，而非基于浏览器挖矿所针对的个人电脑。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC13233642/)</sup><sup> • </sup><sup>[7](https://seclab.nu/static/publications/eurosp21sokcrypto.pdf)</sup>

## 感染途径

**暴露的服务与云基础设施。** 攻击者扫描服务配置错误的服务器，并大规模入侵。Akamai记录的一次行动针对暴露在2375端口上的Docker API：攻击者创建了一个容器，从隐藏的TOR（.onion）网站拉取脚本，该脚本建立持久化、安装扫描工具Masscan，并投放额外恶意软件，扫描互联网上其他暴露的实例，重复感染过程。同一恶意软件携带的代码可攻击23端口上的Telnet和Chromium的9222调试端口。<sup>[15](https://www.techradar.com/pro/security/hackers-abuse-tor-network-and-misconfigured-docker-apis-to-steal-crypto-so-keep-an-eye-on-your-wallet)</sup>容器镜像也被用作传播渠道：Graboid是首个被发现利用Docker Engine中的[容器](https://www.edgepedia.org/zh/container)、通过[Docker Hub](https://www.edgepedia.org/zh/docker-hub)上托管的镜像进行传播的加密劫持蠕虫。<sup>[16](https://unit42.paloaltonetworks.com/graboid-first-ever-cryptojacking-worm-found-in-images-on-docker-hub/?_wpnonce=8f4f7eead6&lg=en&pdf=print)</sup>在云环境中，加密挖矿被描述为一种有利可图的入侵后活动，连接到[Amazon Bedrock](https://www.edgepedia.org/zh/amazon-bedrock)的被入侵AI网关曾被劫持用于挖矿。<sup>[17](https://www.techradar.com/pro/security/cryptomining-can-be-a-lucrative-post-compromise-activity-in-cloud-environments-experts-warn-ai-gateways-connected-to-amazon-bedrock-are-being-hijacked-to-steal-crypto)</sup>

**存在漏洞的应用。** Lumen旗下Black Lotus Labs自2026年4月起持续追踪PoeLLM行动，该行动已入侵超过3400台服务器，其中大多数托管着过时、存在可利用漏洞的开源AI和LLM工具，包括LiteLLM和Ollama，尽管当年4月发布的[LiteLLM](https://www.edgepedia.org/zh/litellm)补丁很可能已经封堵了攻击路径。其载荷由XMRig和Iron挖矿程序组成，连接到Kryptex挖矿基础设施，被感染的服务器成为扫描器和漏洞利用服务器，用于进一步感染。<sup>[9](https://www.tomshardware.com/tech-industry/cyber-security/cryptomining-malware-used-poetry-to-infect-more-than-3-400-servers-researchers-say-four-words-in-the-poellm-verse-changed-11-times-point-the-botnet-to-new-servers)</sup>

**搜索与AI辅助传播。** 微软记录的一次行动至少自2026年3月起活跃，利用SEO投毒，并在某些情况下利用AI聊天机器人生成的推荐，诱使用户访问150多个伪装成可信实用工具下载门户的恶意域名，冒充CrystalDiskInfo、HWMonitor、FurMark和PDFgear等工具。目标用户是可能拥有高性能显卡的人群：游戏玩家、硬件爱好者、AI用户和超频玩家。<sup>[18](https://www.tomshardware.com/tech-industry/artificial-intelligence/microsoft-warns-gpu-mining-malware-is-being-spread-to-users-through-seo-poisoning-and-ai-chatbots-cryptojacking-campaign-targets-gamers-and-high-end-pc-users-with-downloads-disguised-as-popular-pc-utilities)</sup>

**国家支持的使用。** 挖矿木马的使用者并不限于出于经济动机的犯罪分子。2022年6月中旬至7月中旬，CISA在美国联邦文职行政部门某机构的事件响应中确定，可能是伊朗政府支持的APT行为体早在2022年2月就入侵了该组织，并安装了XMRig加密挖矿软件。<sup>[8](https://www.cisa.gov/news-events/cybersecurity-advisories/aa22-320a)</sup>

## 规避技术

由于挖矿消耗大量计算资源，容易引人注意，运营者投入大量精力保持隐蔽。基于浏览器的攻击者限制CPU使用率以保持在检测阈值以下；CoinPolice检测器反其道而行之，人为改变浏览器可用的CPU处理能力，并观察是否出现限流行为。<sup>[12](https://arxiv.org/abs/2006.10861)</sup>Delay-CJ攻击模型更进一步，延迟挖矿活动以规避对CPU使用率和函数调用的监控。<sup>[19](https://www.sciencedirect.com/science/article/pii/S2352864822000864)</sup>

该恶意软件随后创建了六种不同的系统持久化方式，配置[Microsoft Defender](https://www.edgepedia.org/zh/microsoft-defender)排除其文件，扫描虚拟机和安全性分析工具，并通过进程镂空将其挖矿代码植入受信任的微软签名.NET工具中，包括MSBuild.exe、InstallUtil.exe和RegAsm.exe。它部署了合法的ScreenConnect远程管理工具以实现持久访问，然后静默加载lolMiner、gminer和SRBMiner-MULTI等GPU挖矿程序。<sup>[18](https://www.tomshardware.com/tech-industry/artificial-intelligence/microsoft-warns-gpu-mining-malware-is-being-spread-to-users-through-seo-poisoning-and-ai-chatbots-cryptojacking-campaign-targets-gamers-and-high-end-pc-users-with-downloads-disguised-as-popular-pc-utilities)</sup>DERO加密劫持行动同样调整了其技术以规避检测，同时针对配置错误的[Kubernetes](https://www.edgepedia.org/zh/kubernetes)集群。<sup>[20](https://www.wiz.io/blog/dero-cryptojacking-campaign-adapts-to-evade-detection)</sup>

## 检测

检测研究一直跟随目标的转移而变化。早期机制监控所访问网页的CPU使用率，因为挖矿会将处理器消耗推至持续高位。<sup>[21](https://www.dpss.inesc-id.pt/~mpc/pubs/cryptojacking-nca20-final.pdf)</sup>基于网络的方法仅从流量中识别加密货币客户端活动，即使流量经过加密并与非恶意痕迹混合。<sup>[22](https://www.sciencedirect.com/science/article/pii/S0140366421000797)</sup>在云环境中，深度学习方法从虚拟机指标（包括CPU、内存、磁盘I/O和网络利用率）中提取时间特征，并已针对直接和混淆挖矿场景进行评估。<sup>[23](https://ieeexplore.ieee.org/abstract/document/11439580)</sup>

**GPU难题。** 当攻击者将挖矿转移到GPU时，基于CPU性能计数器的检测就会失效，因为GPU提供更高的哈希率，且被检测到的概率更低。用GPU特定指标（如应用程序的GPU负载和显卡内存消耗）扩展CPU计数器，可将所研究攻击类别的检测性能恢复到99.86%，并覆盖基于浏览器和基于主机的样本。<sup>[24](https://research.uni-luebeck.de/en/publications/overcoming-the-pitfalls-of-hpc-based-cryptojacking-detection-in-p/)</sup><sup> • </sup><sup>[25](https://arxiv.org/abs/2408.14554)</sup>同样建议将CPU和GPU指标性能结合起来用于面向网站的检测。<sup>[26](https://www.iieta.org/download/file/fid/193211)</sup>

## 近期趋势

当前报告中有两个突出变化。第一，攻击目标已转向计算能力更强的系统：包括AWS、Google Cloud和Oracle Cloud在内的云提供商明确面临通过被入侵的身份和特权凭证进行加密劫持的风险，指南现在包括在没有运营正当理由时阻止高性能GPU实例系列的配置。<sup>[27](https://www.gov.br/gsi/pt-br/assuntos/ctir/recomendacoes/2026/recomendacao-11-2026)</sup>微软《2025年数字防御报告》发现，加密挖矿在容器入侵攻击格局中占主导地位，达58%，领先于凭证窃取（21%）、已知攻击工具（15%）和网页后门（6%）。<sup>[10](https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/microsoft/bade/documents/products-and-services/en-us/security/Microsoft-Digital-Defense-Report-2025.pdf)</sup>

第二，随着攻击者追求更高价值的目标，加密挖矿在某些威胁类别中的占比正在下降。在开源软件供应链中，超过一半的恶意软件包现在专注于窃取凭证和机密，超过加密挖矿成为主导威胁类型，因为攻击者将自己置于构建流水线内部，而非消耗计算周期。<sup>[28](https://www.techradar.com/pro/how-open-source-malware-is-re-targeting-uk-supply-chains)</sup>尽管如此，加密挖矿仍然是一种持续的背景威胁，PoeLLM等行动在Lumen报告发布时仍在感染新的受害者，当时其12个命令与控制服务器中仍有3个活跃。<sup>[9](https://www.tomshardware.com/tech-industry/cyber-security/cryptomining-malware-used-poetry-to-infect-more-than-3-400-servers-researchers-say-four-words-in-the-poellm-verse-changed-11-times-point-the-botnet-to-new-servers)</sup>

## References

1. [Learn about cryptomining malware, Australian Cyber Security Centre (cyber.gov.au)](https://www.cyber.gov.au/guidance/learn-about-cryptomining-malware)
2. [Ransomware SOTI Report 2025, Akamai](https://www.akamai.com/site/en/documents/state-of-the-internet/2025/ransomware-trends-2025.pdf)
3. [Features, Analysis Techniques, and Detection Methods of Cryptojacking Malware: A Survey, UMPSA-IR](https://umpir.ump.edu.my/id/eprint/41462/)
4. [A First Look at Browser-Based Cryptojacking, arXiv](https://arxiv.org/abs/1803.02887)
5. [End-to-End Analysis of In-Browser Cryptojacking, arXiv](https://arxiv.org/abs/1809.02152)
6. [Evolving trends in cryptomining malware: a systematic literature review, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC13233642/)
7. [SoK: Cryptojacking Malware Analysis Studies in the Literature, EuroS&P](https://seclab.nu/static/publications/eurosp21sokcrypto.pdf)
8. [Iranian Government-Sponsored APT Actors Compromise Federal Network, Deploy Crypto Miner, CISA Advisory AA22-320A](https://www.cisa.gov/news-events/cybersecurity-advisories/aa22-320a)
9. [Cryptomining malware used poetry to infect more than 3,400 servers, Tom's Hardware](https://www.tomshardware.com/tech-industry/cyber-security/cryptomining-malware-used-poetry-to-infect-more-than-3-400-servers-researchers-say-four-words-in-the-poellm-verse-changed-11-times-point-the-botnet-to-new-servers)
10. [Microsoft Digital Defense Report 2025](https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/microsoft/bade/documents/products-and-services/en-us/security/Microsoft-Digital-Defense-Report-2025.pdf)
11. [MinerAlert: an hybrid approach for web mining detection, Journal of Computer Virology and Hacking Techniques](https://link.springer.com/article/10.1007/s11416-022-00420-7)
12. [CoinPolice: Detecting Hidden Cryptojacking Attacks with Neural Networks, arXiv](https://arxiv.org/abs/2006.10861)
13. [Inadvertently Making Cyber Criminals Rich: A Comprehensive Study of Cryptojacking Campaigns at Internet Scale, USENIX Security 2019](https://www.usenix.org/system/files/sec19-bijmans.pdf)
14. [The Other Side of the Coin: A Framework for Detecting and Analyzing Web-based Cryptocurrency Mining Campaigns](https://seclab.skku.edu/wp-content/uploads/2018/08/a18-Rauchberger.pdf)
15. [Hackers abuse TOR network and misconfigured Docker APIs, TechRadar](https://www.techradar.com/pro/security/hackers-abuse-tor-network-and-misconfigured-docker-apis-to-steal-crypto-so-keep-an-eye-on-your-wallet)
16. [Graboid: First-Ever Cryptojacking Worm Found in Images on Docker Hub, Unit 42, Palo Alto Networks](https://unit42.paloaltonetworks.com/graboid-first-ever-cryptojacking-worm-found-in-images-on-docker-hub/?_wpnonce=8f4f7eead6&lg=en&pdf=print)
17. [AI gateways connected to Amazon Bedrock hijacked to steal crypto, TechRadar](https://www.techradar.com/pro/security/cryptomining-can-be-a-lucrative-post-compromise-activity-in-cloud-environments-experts-warn-ai-gateways-connected-to-amazon-bedrock-are-being-hijacked-to-steal-crypto)
18. [Microsoft warns GPU mining malware is being spread through SEO poisoning and AI chatbots, Tom's Hardware](https://www.tomshardware.com/tech-industry/artificial-intelligence/microsoft-warns-gpu-mining-malware-is-being-spread-to-users-through-seo-poisoning-and-ai-chatbots-cryptojacking-campaign-targets-gamers-and-high-end-pc-users-with-downloads-disguised-as-popular-pc-utilities)
19. [Delay-CJ: A novel cryptojacking covert attack method based on delayed strategy and its detection, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S2352864822000864)
20. [DERO cryptojacking adopts new techniques to evade detection, Wiz Blog](https://www.wiz.io/blog/dero-cryptojacking-campaign-adapts-to-evade-detection)
21. [Cryptojacking Detection with CPU Usage Metrics, INESC-ID](https://www.dpss.inesc-id.pt/~mpc/pubs/cryptojacking-nca20-final.pdf)
22. [Cryptomining makes noise: Detecting cryptojacking via Machine Learning, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S0140366421000797)
23. [Deep Learning-Based Cryptojacking Detection in Cloud Containerized Environments, IEEE Xplore](https://ieeexplore.ieee.org/abstract/document/11439580)
24. [Overcoming the Pitfalls of HPC-based Cryptojacking Detection in Presence of GPUs, University of Luebeck](https://research.uni-luebeck.de/en/publications/overcoming-the-pitfalls-of-hpc-based-cryptojacking-detection-in-p/)
25. [Behavior-Based Detection of GPU Cryptojacking, arXiv](https://arxiv.org/abs/2408.14554)
26. [Cybersecurity Approaches to Cryptojacking Detection, International Journal of Safety and Security Engineering](https://www.iieta.org/download/file/fid/193211)
27. [Recomendação 11/2026, Gabinete de Segurança Institucional (Brazil)](https://www.gov.br/gsi/pt-br/assuntos/ctir/recomendacoes/2026/recomendacao-11-2026)
28. [How open-source malware is re-targeting UK supply chains, TechRadar](https://www.techradar.com/pro/how-open-source-malware-is-re-targeting-uk-supply-chains)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Malware and endpoint threats › Malware by platform and type

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/cryptominer-malware

English original: https://www.edgepedia.org/cryptominer-malware
