Summary
On Windows, Codex Desktop local/PowerShell sessions appear to reinstall or start Sysinternals Sysmon v13.22 (SysmonDrv.sys) after it has been force-uninstalled. The affected machine then repeatedly crashes. Multiple WinDbg analyses of kernel dumps point to SysmonDrv.sys as the crashing module.
This looks safety-critical because it involves an unexpected kernel driver being installed/reinstalled and repeated system crashes.
Environment
- Product: Codex Desktop app on Windows
- Agent mode: Windows native / PowerShell local execution
- OS: Windows desktop host
- Sysmon observed version:
13.22, Sysinternals - www.sysinternals.com
- Sysmon paths observed:
C:\Windows\sysmon.exe
C:\Windows\SysmonDrv.sys
- Services observed:
Observed behavior
After uninstalling Sysmon with:
C:\Windows\sysmon.exe -u force
sc.exe query SysmonDrv
sc.exe query Sysmon
sc.exe reported both services as not installed (1060). After reboot, before using Codex, the user observed that SysmonDrv was still absent. After resuming/using Codex Desktop conversation/local execution, SysmonDrv and Sysmon appeared again and were running.
The machine repeatedly black-screened/rebooted, and one crash presented as an orange screen. Several crashes happened while Codex local commands were running.
Crash evidence from WinDbg
Multiple dumps were analyzed with WinDbg/CDB. The crashing module/bucket repeatedly pointed to SysmonDrv.sys, not to the user-mode process itself.
Examples:
-
Bugcheck 0x50 PAGE_FAULT_IN_NONPAGED_AREA
MODULE_NAME: SysmonDrv
IMAGE_NAME: SysmonDrv.sys
FAILURE_BUCKET_ID: AV_SysmonDrv!unknown_function
- Stack included
SysmonDrv+1321
-
Bugcheck 0x13A KERNEL_MODE_HEAP_CORRUPTION
MODULE_NAME: SysmonDrv
FAILURE_BUCKET_ID: 0x13a_12_SysmonDrv!unknown_function
- Stack included
nt!ExFreePoolWithTag -> SysmonDrv+821d
-
Bugcheck 0xC2 BAD_POOL_CALLER
MODULE_NAME: SysmonDrv
FAILURE_BUCKET_ID: 0xc2_99_SysmonDrv!unknown_function
- Stack included
nt!ExFreePoolWithTag -> SysmonDrv+81fe
More recent dumps after Codex was used again showed:
PROCESS_NAME: codex.exe, MODULE_NAME: SysmonDrv, IMAGE_NAME: SysmonDrv.sys, bugcheck 0xC2
PROCESS_NAME: codex.exe, MODULE_NAME: SysmonDrv, bugcheck 0x13A
PROCESS_NAME: RazerAppEngine, MODULE_NAME: SysmonDrv, bugcheck 0xC2
This suggests the user-mode process being monitored can vary, while the kernel module implicated by the dumps remains SysmonDrv.sys.
Reproduction pattern
- Force-uninstall Sysmon:
C:\Windows\sysmon.exe -u force
sc.exe query SysmonDrv
sc.exe query Sysmon
- Confirm both return service-not-installed (
1060).
- Reboot.
- Before opening/using Codex, confirm
SysmonDrv is absent.
- Open/resume Codex Desktop and continue a local Windows/PowerShell session.
- Observe
Sysmon/SysmonDrv returning and running.
- System later crashes; WinDbg points to
SysmonDrv.sys.
Expected behavior
Codex Desktop should not silently install or reinstall a kernel driver after the user has removed it. If Sysmon is intentionally part of the Windows local execution/sandbox/monitoring implementation, the app should:
- use a current safe version,
- ask for or clearly document elevated driver installation,
- stop reinstalling it after explicit uninstall,
- avoid causing BSODs,
- provide a user-facing way to disable that component or switch execution mode.
Questions for maintainers
- Does Codex Desktop for Windows intentionally install or depend on Sysinternals Sysmon/SysmonDrv?
- If yes, why is Sysmon v13.22 being installed, and can this be updated or disabled?
- Is there a known interaction between Windows-native Codex local execution and
SysmonDrv.sys heap/pool corruption bugchecks?
- What logs should affected users provide privately to diagnose the installer/reinstaller process without publicly exposing minidumps or account data?
Additional notes
A Razer/AMD overclock driver was also investigated because it was noisy in Service Control Manager events, but it was disabled and stopped while Sysmon/SysmonDrv continued to reappear. The crash dumps analyzed so far consistently point to SysmonDrv.sys rather than the Razer/AMD driver.
Minidumps, WinDbg output, and event log extracts can be provided privately if OpenAI maintainers request them.
Summary
On Windows, Codex Desktop local/PowerShell sessions appear to reinstall or start Sysinternals Sysmon v13.22 (
SysmonDrv.sys) after it has been force-uninstalled. The affected machine then repeatedly crashes. Multiple WinDbg analyses of kernel dumps point toSysmonDrv.sysas the crashing module.This looks safety-critical because it involves an unexpected kernel driver being installed/reinstalled and repeated system crashes.
Environment
13.22,Sysinternals - www.sysinternals.comC:\Windows\sysmon.exeC:\Windows\SysmonDrv.sysSysmonSysmonDrvObserved behavior
After uninstalling Sysmon with:
sc.exereported both services as not installed (1060). After reboot, before using Codex, the user observed thatSysmonDrvwas still absent. After resuming/using Codex Desktop conversation/local execution,SysmonDrvandSysmonappeared again and were running.The machine repeatedly black-screened/rebooted, and one crash presented as an orange screen. Several crashes happened while Codex local commands were running.
Crash evidence from WinDbg
Multiple dumps were analyzed with WinDbg/CDB. The crashing module/bucket repeatedly pointed to
SysmonDrv.sys, not to the user-mode process itself.Examples:
Bugcheck
0x50 PAGE_FAULT_IN_NONPAGED_AREAMODULE_NAME: SysmonDrvIMAGE_NAME: SysmonDrv.sysFAILURE_BUCKET_ID: AV_SysmonDrv!unknown_functionSysmonDrv+1321Bugcheck
0x13A KERNEL_MODE_HEAP_CORRUPTIONMODULE_NAME: SysmonDrvFAILURE_BUCKET_ID: 0x13a_12_SysmonDrv!unknown_functionnt!ExFreePoolWithTag -> SysmonDrv+821dBugcheck
0xC2 BAD_POOL_CALLERMODULE_NAME: SysmonDrvFAILURE_BUCKET_ID: 0xc2_99_SysmonDrv!unknown_functionnt!ExFreePoolWithTag -> SysmonDrv+81feMore recent dumps after Codex was used again showed:
PROCESS_NAME: codex.exe,MODULE_NAME: SysmonDrv,IMAGE_NAME: SysmonDrv.sys, bugcheck0xC2PROCESS_NAME: codex.exe,MODULE_NAME: SysmonDrv, bugcheck0x13APROCESS_NAME: RazerAppEngine,MODULE_NAME: SysmonDrv, bugcheck0xC2This suggests the user-mode process being monitored can vary, while the kernel module implicated by the dumps remains
SysmonDrv.sys.Reproduction pattern
1060).SysmonDrvis absent.Sysmon/SysmonDrvreturning and running.SysmonDrv.sys.Expected behavior
Codex Desktop should not silently install or reinstall a kernel driver after the user has removed it. If Sysmon is intentionally part of the Windows local execution/sandbox/monitoring implementation, the app should:
Questions for maintainers
SysmonDrv.sysheap/pool corruption bugchecks?Additional notes
A Razer/AMD overclock driver was also investigated because it was noisy in Service Control Manager events, but it was disabled and stopped while
Sysmon/SysmonDrvcontinued to reappear. The crash dumps analyzed so far consistently point toSysmonDrv.sysrather than the Razer/AMD driver.Minidumps, WinDbg output, and event log extracts can be provided privately if OpenAI maintainers request them.