Hacking

Abusing Windows Container Isolation Framework to avoid detection by security products

Researchers demonstrated how attackers can abuse the Windows Container Isolation Framework to bypass endpoint security solutions.

Researcher Daniel Avinoam at the recent DEF CON hacking conference demonstrated how attackers can abuse the Windows Container Isolation Framework to bypass endpoint security solutions.

The expert explained that Windows OS separates the file system from each container to the host and avoids duplication of system files. To avoid duplication, each container is using a dynamically generated image, which points to the original using the reparse points.

The result is images that contain “ghost files,” which store no actual data, but link to another volume on the file system. Then the researchers attempted to use this redirection mechanism to obfuscate the file system operations and deceive security products.

“This does not escape the container from within but intentionally uses this feature while executing on the host.” reads a report published by Avinoam.

The researcher explained that mini-filter drivers were designed to simplify the I/O filtering process for developers.

The Windows Container Isolation FS (wcifs) mini-filter driver enables the file system separation between Windows containers and their host. The driver handles the ghost files redirection by parsing their attached reparse points.

The researcher discovered that this driver is loaded by default on every Windows OS starting from Windows 10. He also noticed that the driver is loaded by default, even when the “containers” option is turned off in the Windows features menu.

The researchers ran the current process inside a fabricated container and used a mini-filter to handle their I/O requests such that it can create, read, write, and delete files on the file system using kernel primitives and avoiding security product detection.

“Our driver sits at a lower altitude (189900, which can be even lower if changed manually) than security vendors’ drivers (320000 – 329999), meaning we can create, read, write, and delete files on the file system without their callbacks triggering — bingo!” continues the report.

“To combat these threats [ransomware, wiper], security vendors tend to use their own mini-filter drivers to monitor the system’s I/O activity. Algorithms based on this log source look for certain patterns to detect file system-based malware and prevent them before any irreversible damage is done. For example, a process that opens many existing files and writes to them will be classified as ransomware/wiper, depending on the data written.” continues the report. “This is where our driver comes into play. Because we can override files using the IO_REPARSE_TAG_WCI_1 reparse tag without the detection of antivirus drivers, their detection algorithm will not receive the whole picture and thus will not trigger.”

The researchers published examples of simple wiping and ransomware algorithms using the driver.

The experts pointed out that administrative permissions are required for communicating with the wcifs driver and that it is not possible to set reparse points to files without WRITE primitives, meaning system files cannot be altered. The driver must be attached to any volume it works with (source or target).

Below are the mitigation to detect malicious usage of wcifs:

  • Detect calls to DeviceIoControl + FSCTL_SET_REPARSE_POINT + IO_REPARSE_TAG_WCI_1 / and check for the IO_REPARSE_TAG_WCI_1 tag in the PRE_WRITE callback. Scan files with the tag in the PRE_CLEANUP function even if they were not altered.
  • Check if wcifs’ communication port is opened by processes that are not valid system processes.
  • Check if a container is opened where the source volume is equal to the destination volume.
  • Check if wcifs is attached by a user process and not the system, or if it is attached when the containers feature is deactivated.

The experts also published a POC tool source code on a GitHub repo.

Follow me on Twitter: @securityaffairs and Facebook and Mastodon

Pierluigi Paganini

(SecurityAffairs – hacking, Windows Container Isolation Framework)

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

U.S. CISA adds Microsoft Windows flaws to its Known Exploited Vulnerabilities catalog

U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds Microsoft Windows flaws to its Known Exploited…

2 hours ago

Ivanti fixed two EPMM flaws exploited in limited attacks

Ivanti addressed two Endpoint Manager Mobile (EPMM) software vulnerabilities that have been exploited in limited…

4 hours ago

Microsoft Patch Tuesday security updates for May 2025 fixed 5 actively exploited zero-days

Microsoft Patch Tuesday security updates for May 2025 addressed 75 security flaws across multiple products, including…

13 hours ago

Fortinet fixed actively exploited FortiVoice zero-day<gwmw style="display:none;"></gwmw><gwmw style="display:none;"></gwmw>

Fortinet fixed a critical remote code execution zero-day vulnerability actively exploited in attacks targeting FortiVoice…

15 hours ago

How Interlock Ransomware Affects the Defense Industrial Base Supply Chain

Interlock Ransomware 's attack on a defense contractor exposed global defense supply chain details, risking…

1 day ago

Marks and Spencer confirms data breach after April cyber attack

Marks and Spencer (M&S) confirms that threat actors stole customer data in the ransomware attack…

1 day ago