Prevent scary Powershell usage (Triggering a Virus warning)

Resolved 💬 2 comments Opened Mar 8, 2026 by bLightZP Closed Mar 8, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

App (Windows)

What feature would you like to see?

So I was designing a simple multi-player game and instructed Codex to create a local test server. It automatically choose to implement one using PowerShell script and ran it automatically.

Within seconds Microsoft Defender virus warnings started popping up with a warning about some auto-click virus.

I steered codex mid-work to address this and the reply was kinda funny, it wrote that what it does fits perfectly within Microsoft Defender's heuristics of a Virus's behavior.

I'm not sure if this can be addressed without neutering the model, but I thought you'd want to know.

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #13919
  • #12908

Powered by Codex Action

etraut-openai contributor · 5 months ago

Thanks for the bug report. We'll share the feedback with the team responsible for training our codex models. If you see other model behavior that you'd like to report, please use the /feedback command. That will provide us with additional details including logs and conversation text.