Skip to content

Windows Codex Desktop appears to reinstall/start SysmonDrv v13.22; WinDbg points to SysmonDrv.sys BSODs #31035

Description

@Cartmancxx

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:
    • Sysmon
    • SysmonDrv

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

  1. Force-uninstall Sysmon:
C:\Windows\sysmon.exe -u force
sc.exe query SysmonDrv
sc.exe query Sysmon
  1. Confirm both return service-not-installed (1060).
  2. Reboot.
  3. Before opening/using Codex, confirm SysmonDrv is absent.
  4. Open/resume Codex Desktop and continue a local Windows/PowerShell session.
  5. Observe Sysmon/SysmonDrv returning and running.
  6. 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

  1. Does Codex Desktop for Windows intentionally install or depend on Sysinternals Sysmon/SysmonDrv?
  2. If yes, why is Sysmon v13.22 being installed, and can this be updated or disabled?
  3. Is there a known interaction between Windows-native Codex local execution and SysmonDrv.sys heap/pool corruption bugchecks?
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions