# Rootkit

Rootkit 是一种恶意软件，旨在隐藏恶意的系统资源（如进程、文件和网络连接），并在隐藏入侵者存在的同时维持对计算机的特权访问。根据美国国家标准与技术研究院（NIST）的定义，rootkit 是攻击者在获得对主机的 root 级访问权限后部署的一套工具包，使攻击者能够隐藏其在机器上的所作所为，并秘密保持对机器的 root 级控制；NIST 还给出了第二种定义，称其为放置于主机上的一组文件，以恶意且隐蔽的方式改变主机的正常运行方式。<sup>[1](https://csrc.nist.gov/glossary/term/rootkit)</sup> 澳大利亚网络安全中心给出了与之吻合的描述：一种或一组用于入侵系统、获取最高权限并随后隐藏攻击者活动的工具。<sup>[2](https://www.cyber.gov.au/glossary/rootkit)</sup> 这一名称源自 Unix 管理员账户“root”，以及一套协同工作、互相隐藏彼此存在的程序工具包。

| 关键事实 | 详情 |
|---|---|
| 定义 | 在获得 root 级访问权限后用于隐藏攻击者活动并维持隐蔽特权访问的工具（CNSSI 4009-2022，NIST SP 800-150）<sup>[1](https://csrc.nist.gov/glossary/term/rootkit)</sup> |
| 主要类型 | 用户空间 rootkit（感染操作系统工具、命令和库）、内核空间 rootkit（感染内核，Ring 0）以及虚拟机 rootkit（在操作系统之下、以虚拟机监控器辅助的特权级别运行）<sup>[3](https://arxiv.org/abs/2506.07827)</sup> |
| 历史 | 最早的 rootkit 出现于 20 世纪 80 年代末，用于从日志文件中清除证据；首个 Linux rootkit 于 1996 年在野外被发现<sup>[3](https://arxiv.org/abs/2506.07827)</sup> |
| 普遍程度 | 内核空间 rootkit 是最普遍的类型；虚拟机 rootkit 多为概念验证实现，尚未在野外出现<sup>[3](https://arxiv.org/abs/2506.07827)</sup> |
| 与 bootkit 的关系 | Bootkit 入侵固件或引导加载程序，在安全机制初始化之前取得控制权；rootkit 则可能驻留在操作系统的用户级或内核级，或更低层，包括虚拟机监控器或系统固件中。Rootkit 远比 bootkit 常见<sup>[4](https://www.usenix.org/conference/woot25/presentation/lee)</sup><sup> • </sup><sup>[5](https://github.com/TheMalwareGuardian/Bootkits-Rootkits-Timeline)</sup><sup> • </sup><sup>[16](https://attack.mitre.org/docs/changelogs/v11.1-v11.2/changelog-detailed.html)</sup> |
| 清除 | 美国网络安全和基础设施安全局（CISA）的事件响应指南要求，涉及 rootkit 时应重建硬件<sup>[6](https://www.cisa.gov/sites/default/files/publications/Cybersecurity_Incident_Vulnerability_Response_Playbooks_508C.pdf)</sup> |

## Rootkit 的工作原理

Rootkit 的核心职能就是隐藏。它本身并非一个完整的恶意程序，而是隐藏由其他恶意组件或入侵者创建的资源，使其在没有专用工具的情况下极难被检测到。<sup>[3](https://arxiv.org/abs/2506.07827)</sup> 在 Windows 上，rootkit 可能修改或替换文件，也可能仅驻留于内存中，改变操作系统内置系统调用的使用方式。<sup>[7](https://www.govinfo.gov/content/pkg/GOVPUB-C13-c6513cb0bbc50e7ec3851a0f94eb7189/pdf/GOVPUB-C13-c6513cb0bbc50e7ec3851a0f94eb7189.pdf)</sup> 一种常见手法是用恶意版本替换操作系统函数和调用，从而破坏目标系统的安全性。<sup>[8](https://ptacts.uspto.gov/ptacts/public-informations/petitions/1557708/download-documents?artifactId=lu5WXYUMIV5w3nKNB3jtfsuziBK1fiEpf_drHszCf08RaKrKWPZUOyo)</sup> 最常见的用途是确保攻击者能够持续访问已被入侵的系统。<sup>[9](https://www.eecs.ucf.edu/~czou/research/Rootkit-BookChapter.pdf)</sup>

**代码运行的位置。** Rootkit 按其运行的特权级别分类。用户空间 rootkit 感染操作系统的工具、命令和库；它们不在处理器的最低级别（Ring 3）运行特权代码，但以管理员权限运行，即在 Linux 上以 root 权限运行。内核空间 rootkit 感染操作系统内核本身，在操作系统的最低级别（Ring 0）运行特权代码。[虚拟机](https://www.edgepedia.org/zh/virtual-machine) rootkit 在用于辅助虚拟机监控器的较低特权级别上运行，借助 Intel VT-x 等专用指令（Ring -1），此外还存在针对[系统管理模式](https://www.edgepedia.org/zh/system-management-mode)（Ring -2）的概念验证 rootkit。<sup>[3](https://arxiv.org/abs/2506.07827)</sup>

**内核空间 rootkit。** 这类 rootkit 更为强大，也更为普遍。任何内核空间 rootkit 的第一步都是让其代码在内核中运行。<sup>[10](https://doi.org/10.1145/3688808)</sup> 相关技术的例子包括 SucKIT（通过 /proc/kmem 文件修补内核内存）和 TripleCross（利用 [Linux 内核](https://www.edgepedia.org/zh/linux-kernel)的 eBPF 机制）。<sup>[3](https://arxiv.org/abs/2506.07827)</sup> 开发内核模式 rootkit 需要深入理解操作系统内部机制。<sup>[5](https://github.com/TheMalwareGuardian/Bootkits-Rootkits-Timeline)</sup>

**用户空间 rootkit。** 尽管内核空间 rootkit 备受关注，用户空间 rootkit 仍构成重大威胁。过去十年中，Linux 上出现了多个用户空间库 rootkit，包括 Jynx2a、Azazel、BEURK、Zendar、Umbreon、Bedevil 和 Father；其中 Father 采用基于 accept 的后门机制。<sup>[3](https://arxiv.org/abs/2506.07827)</sup><sup> • </sup><sup>[10](https://doi.org/10.1145/3688808)</sup>

**固件 rootkit。** 还有一类 rootkit 隐藏在固件中，完全位于操作系统之下。<sup>[8](https://ptacts.uspto.gov/ptacts/public-informations/petitions/1557708/download-documents?artifactId=lu5WXYUMIV5w3nKNB3jtfsuziBK1fiEpf_drHszCf08RaKrKWPZUOyo)</sup>

## Rootkit 与 bootkit

Bootkit 是一种密切相关的威胁，它入侵固件或引导加载程序，从而能够操纵引导序列并在安全机制初始化之前取得控制权；rootkit 则驻留在操作系统的用户级或内核级，或更低层，以隐藏活动并维持长期持久化。<sup>[4](https://www.usenix.org/conference/woot25/presentation/lee)</sup><sup> • </sup><sup>[16](https://attack.mitre.org/docs/changelogs/v11.1-v11.2/changelog-detailed.html)</sup> 两者常常结合使用：2025 年 USENIX WOOT 论文介绍了 BootKitty，这是一种 bootkit-rootkit 混合体，能够通过打破信任链来绕过 Windows、Linux 和安卓（Android）上的现代安全特性。<sup>[4](https://www.usenix.org/conference/woot25/presentation/lee)</sup>

从历史上看，bootkit 的开发源自 rootkit 的开发。网络犯罪分子意识到，bootkit 可以扩大内核模式 rootkit 的目标范围，将 64 位机器的用户纳入其中——这些机器的驱动程序受微软内核模式代码签名政策的约束——从而提高其获利能力；绕过该政策正是现代 bootkit 开发的动机所在。<sup>[11](https://www.virusbulletin.com/virusbulletin/2014/11/paper-bootkits-past-present-amp-future)</sup> Bootkit 仍然比 rootkit 更罕见，因为它们额外要求掌握固件、早期引导环境、UEFI 规范以及平台特定执行流程的详细知识。<sup>[5](https://github.com/TheMalwareGuardian/Bootkits-Rootkits-Timeline)</sup>

## 检测

检测之所以困难，是因为 rootkit 控制着扫描器所运行的环境。

**用户空间检测的局限。** 恩里克·索里亚诺-萨尔瓦多（Enrique Soriano-Salvador）、戈尔卡·瓜迪奥拉·穆兹基斯（Gorka Guardiola Múzquiz）和胡安·冈萨雷斯·戈麦斯（Juan González Gómez）于 2025 年发表的一项研究认为，用用户空间工具检测用户空间 rootkit 根本无法可靠实现。在针对 Linux 进程隐藏的实验中，作者绕过了被广泛视为此类恶意软件标准解决方案的检测机制，避开了最流行的用于检测进程隐藏的开源反 rootkit 工具（unhide 工具，OSSEC 也使用了其简化版本的技术）。<sup>[3](https://arxiv.org/abs/2506.07827)</sup> 他们指出，即使检测在内核中运行，通过用户空间工具将结果传达给用户仍需十分谨慎，因为这些结果同样可能被操纵。<sup>[3](https://arxiv.org/abs/2506.07827)</sup>

**内核与硬件方法。** 研究型检测器在更低层级运行，以摆脱 rootkit 的控制。有人专门提出了一种基于 eBPF 的隐藏内核 rootkit 检测器，用于检测 Linux 内核级 rootkit 中的隐藏对象。<sup>[12](https://www.sciencedirect.com/science/article/pii/S0167404825002718)</sup> JoKER 系统利用硬件的 JTAG 接口进行可信内存取证，从而检测安卓（Android）内核中的 rootkit，其依据是：任何与被监控操作系统运行在同一物理设备上的检测机制，本身都可能通过应用程序、内核或引导加载程序的漏洞被攻破。<sup>[13](https://arxiv.org/abs/1512.04116)</sup> 其他提出的方法包括借助硬件辅助对进程执行进行统计指纹识别<sup>[10](https://doi.org/10.1145/3688808)</sup>，以及通过注入探针测量函数执行时间并应用统计检验来检测时间偏移，从而发现内核活动中的时间异常。<sup>[14](https://arxiv.org/abs/2503.02402)</sup>

## 清除与防御

由于 rootkit 能够颠覆正在运行的操作系统，修复往往倾向于重建。CISA 的事件响应手册要求制定协调良好的根除计划，考虑替代攻击向量和多种持久化机制，并明确规定涉及 rootkit 时应重建硬件。<sup>[6](https://www.cisa.gov/sites/default/files/publications/Cybersecurity_Incident_Vulnerability_Response_Playbooks_508C.pdf)</sup> 针对固件级感染的指南同样包括用干净副本重新安装受感染的操作系统。<sup>[8](https://ptacts.uspto.gov/ptacts/public-informations/petitions/1557708/download-documents?artifactId=lu5WXYUMIV5w3nKNB3jtfsuziBK1fiEpf_drHszCf08RaKrKWPZUOyo)</sup>

在预防方面，现代 PC 从固件向上构建信任链。[安全启动](https://www.edgepedia.org/zh/secure-boot)（Secure Boot）是统一可扩展固件接口（UEFI）的一部分——UEFI 在现代系统上取代了 BIOS——是一项安全标准，旨在确保设备只启动制造商信任的软件；可信启动（Trusted Boot）随后验证 Windows 内核及所有其他启动组件，而早期启动反恶意软件（Early Launch anti-malware）则填补了剩余缺口——否则伪装成引导驱动程序的 rootkit 可能在传统反恶意软件之前启动。<sup>[15](https://learn.microsoft.com/en-gb/windows/security/operating-system-security/system-security/secure-the-windows-10-boot-process)</sup> 微软指出，关闭安全启动无助于防御 bootkit，而且任何引导加载程序中的漏洞都会暴露系统，GRUB 引导加载程序以及一个影响引导组件的固件级 rootkit 就是例证。<sup>[15](https://learn.microsoft.com/en-gb/windows/security/operating-system-security/system-security/secure-the-windows-10-boot-process)</sup>

## References

1. [Rootkit, NIST Computer Security Resource Center Glossary (CNSSI 4009-2022; NIST SP 800-150; NIST SP 800-83 Rev. 1)](https://csrc.nist.gov/glossary/term/rootkit)
2. [Rootkit, Australian Cyber Security Centre Glossary](https://www.cyber.gov.au/glossary/rootkit)
3. [Soriano-Salvador, E., Guardiola Múzquiz, G., González Gómez, J. (2025). User-space library rootkits revisited: Are user-space detection mechanisms futile? arXiv.](https://arxiv.org/abs/2506.07827)
4. [Lee, J., Kwon, J., Seo, H., Lee, M., Seo, H., Jung, J., Koo, H. (2025). BootKitty: A Stealthy Bootkit-Rootkit Against Modern Operating Systems. USENIX WOOT 25.](https://www.usenix.org/conference/woot25/presentation/lee)
5. [TheMalwareGuardian. Bootkits-Rootkits-Timeline: A curated timeline of bootkits and rootkits observed in the wild. GitHub.](https://github.com/TheMalwareGuardian/Bootkits-Rootkits-Timeline)
6. [CISA. Cybersecurity Incident Vulnerability Response Playbooks.](https://www.cisa.gov/sites/default/files/publications/Cybersecurity_Incident_Vulnerability_Response_Playbooks_508C.pdf)
7. [NIST SP 800-61, Computer Security Incident Handling Guide (govinfo)](https://www.govinfo.gov/content/pkg/GOVPUB-C13-c6513cb0bbc50e7ec3851a0f94eb7189/pdf/GOVPUB-C13-c6513cb0bbc50e7ec3851a0f94eb7189.pdf)
8. [USPTO PTACTS, Chapter 7: Malicious Software and Anti-Virus Software](https://ptacts.uspto.gov/ptacts/public-informations/petitions/1557708/download-documents?artifactId=lu5WXYUMIV5w3nKNB3jtfsuziBK1fiEpf_drHszCf08RaKrKWPZUOyo)
9. [Windows Rootkits: A Game of Hide and Seek (Rootkit book chapter, University of Central Florida)](https://www.eecs.ucf.edu/~czou/research/Rootkit-BookChapter.pdf)
10. [The Hidden Threat: Analysis of Linux Rootkit Techniques and Limitations of Current Detection Tools, Digital Threats: Research and Practice](https://doi.org/10.1145/3688808)
11. [VB2014 paper: Bootkits: past, present & future, Virus Bulletin](https://www.virusbulletin.com/virusbulletin/2014/11/paper-bootkits-past-present-amp-future)
12. [Kernel-level hidden rootkit detection based on eBPF, Computers & Security](https://www.sciencedirect.com/science/article/pii/S0167404825002718)
13. [JoKER: Trusted Detection of Kernel Rootkits in Android Devices via JTAG Interface, arXiv](https://arxiv.org/abs/1512.04116)
14. [Trace of the Times: Rootkit Detection through Temporal Anomalies in Kernel Activity, arXiv](https://arxiv.org/abs/2503.02402)
15. [Secure the Windows boot process, Microsoft Learn](https://learn.microsoft.com/en-gb/windows/security/operating-system-security/system-security/secure-the-windows-10-boot-process)
16. [ATT&CK Changes](https://attack.mitre.org/docs/changelogs/v11.1-v11.2/changelog-detailed.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: 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/rootkit

English original: https://www.edgepedia.org/rootkit
