Mac OS could not open codex because it's malware

Open 💬 19 comments Opened May 17, 2026 by JoanR112
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.513.31313 (2867)

What subscription do you have?

Business

What platform is your computer?

macOS

What issue are you seeing?

Mac OS suddenly warned me while I was in the middle of a codex session that it couldn't execute the codex app because it was malware. After that I hit ok and the app keeps working but suddenly all my conversations in the last 1 to 2 months got deleted. I had a lot of important conversations in there that where work related and now are gone. This is unacceptable for a company as big as open ai. This came after the latest update I did to codex. I have already restarted the app as well as my computer. If this doesn't get solved I will file a formal complaint and possibly cancel the subscription both for me and my company employees. Truly unacceptable.

What steps can reproduce the bug?

Updating the app maybe but I can't find a way to explain how it could be reproduced.

What is the expected behavior?

Deletion of 2 or 3 months of your chats!

Additional information

_No response_

View original on GitHub ↗

19 Comments

github-actions[bot] contributor · 2 months ago

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

  • #22194
  • #21734
  • #22135
  • #23052

Powered by Codex Action

JoanR112 · 2 months ago

checked and it's not a duplicate but a mix of 2 issues, that could help to know where the issue is coming from.

hankmika · 2 months ago

I just got the same message after updating Codex.app (the desktop GUI app).

adkandari · 2 months ago

<img width="687" height="646" alt="Image" src="https://github.com/user-attachments/assets/84a5eb54-dff0-44ec-b0c7-842cd67246ae" />

I got this message when I opened Cursor, Codex is already open in the background

Danyal-Zahid · 2 months ago

got the same issue, anyone found a solution?

daryllundy · 2 months ago

I got the same message when opening Kiro IDE. Codex was already open in the background

<img width="453" height="378" alt="Image" src="https://github.com/user-attachments/assets/318adec1-d294-4a65-bafa-f3a265eca73c" />

trungbui2000 · 1 month ago

I'm seeing the same issue today as well, anyone know a fix for it?

migmartri · 1 month ago

“codex” was not opened because it contains malware. This action did not harm your Mac.

<img width="375" height="308" alt="Image" src="https://github.com/user-attachments/assets/7f11f8ae-a44b-4406-a1ea-a47ee863ef32" />

VladSez · 1 month ago

I see the same issue today, I'm on macOS Sonoma 14.6.1 (23G93)
UPD: reinstalling both the Codex CLI and desktop app seems to resolve the issue.

<img width="1228" height="461" alt="Image" src="https://github.com/user-attachments/assets/59f126d0-7765-40ff-842a-c59ae8af4828" />

niagr · 1 month ago

I had the same issue. For some reason, what worked for me is to do npm install -g @openai/codex again, and this time it worked when I ran codex from the command line.

aadeshAvoma · 1 month ago

<img width="251" height="241" alt="Image" src="https://github.com/user-attachments/assets/dbb9be41-babd-4c34-b583-7e0824759e1e" />

Faced same issue; re installed from the codex website; fixed the issue for me.

aryanstan · 1 month ago

Try installing it again from open ai, It worked for me

adkandari · 1 month ago

For me, it got resolved just by closing and starting. I did update the app afterwards.

M-M-Mujtaba · 21 days ago
I had the same issue. For some reason, what worked for me is to do npm install -g @openai/codex again, and this time it worked when I ran codex from the command line.

This was the simplest fix

In my case, I directly installed Codex.dmg from OpenAI, and when I tried using it at the command line, I started facing this issue.
Then, following this solution, my issue was fixed.

TomasHubelbauer · 16 days ago

I also ended up reinstalling the Codex CLI when this happened to me, but it seems as though something is wrong with the package signature making Gatekeeper unhappy. Fixing the package signature shouldn't be out of reach of one of the most valuable companies in the world running one of the most capable software development models one might hope.

grudelsud · 14 days ago

I had the same issue mentioned above

apple modal window with message: "codex" will damage your computer. you should move it to the bin"

I tried reinstalling with openai suggested method on mac:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

it somehow detected that the codex installation was managed by brew (how? why?) and offered a reinstall, but after that it would still be blocked and sent a SIGKILL by the OS for good measure

I followed the recommendation above here and run

npm install -g @openai/codex

this fixed the issue

nguyenytran · 13 days ago

same for me

kerodem · 3 days ago

<img width="541" height="520" alt="Image" src="https://github.com/user-attachments/assets/edc3e572-0dd2-4011-a30e-fbeaed7169b0" />

Just got this while trying to run codex in tmux, desktop app is still open.

drewlustro · 1 day ago

Reinstalled codex and it worked:

bun install -g @openai/codex