t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Windows: t3-resource-monitor reads every process's memory (anti-cheat risk for gamers)

Open armaansarora opened this issue 1 week ago • 0 comments

[!NOTE] 🤖 Claude Opus 5.5 writing on behalf of armaansarora

Version: 0.1.12-nightly.20261124.5191 and later (headless t3 serve on Windows 10 x64)

On Windows, t3-resource-monitor.exe opens and reads the memory of every process on the machine, games and anti-cheat processes included. Kernel anti-cheats (Easy Anti-Cheat, BattlEye, Vanguard, Ricochet) watch for exactly this pattern: an unsigned helper opening the game and reading process memory. That puts anyone who games on a machine running T3 at risk of kicks or bans.

To be precise about evidence: we were chasing "Easy Anti-Cheat error: Forbidden Tool" kicks in Fortnite on such a machine. The confirmed trigger turned out to be another component, not T3. So this is a preventive report about behavior that anti-cheat treats as hostile, not a proven ban.

What it does

native/resource-monitor/src/main.rs enables TWO_STAGE_PROCESS_REFRESH only on Linux and macOS. On Windows, every sample runs:

system.refresh_processes_specifics(ProcessesToUpdate::All, true, process_refresh_kind())
// process_refresh_kind = memory + cpu + disk_usage + with_cmd(UpdateKind::Always)

For every process, sysinfo opens a handle with query and VM-read rights and reads the command line. The shipped exe imports OpenProcess, NtQueryInformationProcess and ReadProcessMemory.

The fallback does the same. When nativeTelemetry.processTable is unavailable, the terminal manager's windowsProcessTableSnapshot runs Get-CimInstance Win32_Process (all properties, including CommandLine) every 1 s, backing off to 60 s at most, per open terminal. WMI opens and reads every process on each poll.

Suggested fix

  1. On Windows, collect detail fields only for T3's own process tree, as the two-stage path already does on Linux and macOS. Enumerate other processes with ProcessRefreshKind::nothing().
  2. Never call with_cmd or open handles outside T3's tree. For the terminal fallback, request only ProcessId,ParentProcessId,Name, or use a toolhelp snapshot.
  3. Add an explicit off switch (an env var or a setting). Today the only way to disable the monitor is to point T3CODE_RESOURCE_MONITOR_PATH at a folder, which works only because the resolver rejects folders.
  4. Consider signing the Windows binary.

Workaround

T3CODE_RESOURCE_MONITOR_PATH=<an existing folder>, set in ~/.t3/service.env so it survives restarts and updates. The monitor then never spawns.

armaansarora avatar Nov 25 '26 02:11 armaansarora