back to home

corna / me_cleaner

Tool for partial deblobbing of Intel ME/TXE firmware images

4,914 stars
294 forks
250 issues
Python

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing corna/me_cleaner in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/corna/me_cleaner)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

me\_cleaner _me\_cleaner_ is a Python script able to modify an Intel ME firmware image with the final purpose of reducing its ability to interact with the system. Intel ME Intel ME is a co-processor integrated in all post-2006 Intel boards, which is the base hardware for many Intel features like Intel AMT, Intel Boot Guard, Intel PAVP and many others. To provide such features, it requires full access to the system, including memory (through DMA) and network access (transparent to the user). Unlike many other firmware components, the Intel ME firmware can't be neither disabled nor reimplemented, as it is tightly integrated in the boot process and it is signed. This poses an issue both to the free firmware implementations like coreboot, which are forced to rely on a proprietary, obscure and always-on blob, and to the privacy-aware users, who are reasonably worried about such firmware, running on the lowest privilege ring on x86. What can be done Before Nehalem (ME version 6, 2008/2009) the ME firmware could be removed completely from the flash chip by setting a couple of bits inside the flash descriptor, effectively disabling it. Starting from Nehalem the Intel ME firmware can't be removed anymore: without a valid firmware the PC shuts off forcefully after 30 minutes, probably as an attempt to enforce the Intel Anti-Theft policies. However, while Intel ME can't be turned off completely, it is still possible to modify its firmware up to a point where Intel ME is active only during the boot process, effectively disabling it during the normal operation, which is what _me\_cleaner_ tries to accomplish. Platform support _me\_cleaner_ currently works on most of the Intel platforms; while this doesn't mean it works on all the boards (due to the different firmware implementations), it has been proven quite reliable on a great number of them. Usage _me\_cleaner_ should handle all the steps necessary to the modification of an Intel ME firmware with the command: $ python me_cleaner.py -S -O modified_image.bin original_dump.bin However, obtaining the original firmware and flashing back the modified one is usually not trivial, as the Intel ME firmware region is often non-writable from the OS (and it's not a safe option anyways), requiring the use of an external SPI programmer. Results For generation 1 (before Nehalem, ME version = 11) the ME subsystem and the firmware structure have changed, requiring substantial changes in _me\_cleaner_. The fundamental modules required for the correct boot are now four ( , , and ) and the minimum firmware size is ~300 kB (from the 2 MB of the non-AMT firmware and the 7 MB of the AMT one). On some boards the OEM firmware fails to boot without a valid Intel ME firmware; in the other cases the system should work with minor inconveniences (like longer boot times or warning messages) or without issues at all. Obviously, the features provided by Intel ME won't be functional anymore after the modifications. Documentation The detailed documentation about the working of _me\_cleaner_ can be found on the page "How does it work?" page. Various guides and tutorials are available on the Internet, however a good starting point is the "How to apply me_cleaner" guide.