Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Hi Cursor team,
I’m running into a serious and repeatable issue on macOS that seems tied to Cursor once I allow the AI agent to use Terminal (for Xcode builds/debug). It affects Safari in a way that looks very similar to malware behavior.
What happens:
• A folder named ASafari appears on my system. Inside there is a small Safari.app (~2.4 MB) plus several Safari‑related .db files.
• In System Settings → General → Login Items, I see a background item called “bash”, shown as “Item from unidentified developer”.
• The Safari icon in the Dock gets silently switched to that small Safari app from the ASafari folder.
• If I delete the ASafari folder and fix the Dock to point back to the real Safari, everything works again – until I open Cursor.
New / more severe behavior
Today I noticed something worse:
- I removed the ASafari folder, fixed the Dock back to the original Safari, and rebooted.
- After the reboot, I worked with Safari for a while – everything was fine.
- Then I launched Cursor.
- A few moments after Cursor started, Safari closed by itself.
- When I tried to reopen Safari, it was again the “empty” Safari from the ASafari folder, and the ASafari folder had reappeared.
So simply opening Cursor is enough to reliably trigger:
• Safari being force‑closed.
• The Dock Safari icon being switched back to the small Safari app.
• The ASafari folder being recreated.
I can reproduce this sequence multiple times.
Steps to Reproduce
How to reproduce (on my machine)
- Fresh macOS reinstall – system is clean, no ASafari, Safari behaves normally.
- Install Cursor (no unusual configuration, used basically out‑of‑the‑box).
- Grant the Cursor AI agent Terminal permissions, so it can run Xcode builds and debug.
- Use Cursor for visionOS development (Xcode builds/debug).
- At some point after using Cursor, the following happens:
• ASafari folder appears with its own small Safari.app.
• A background item named “bash” appears in Login Items as “Item from unidentified developer”.
• Dock Safari points to the small Safari from ASafari. - Remove ASafari, fix Dock Safari back to the original, reboot – Safari works normally again.
- Open Cursor → within a short time Safari closes on its own, and when I open it again, I’m back to the small Safari + ASafari folder is recreated.
Operating System
MacOS
Version Information
Version: 2.4.27 (Universal)
VSCode Version: 1.105.1
Commit: 4f2b772756b8f609e1354b3063de282ccbe7a690
Date: 2026-01-31T21:24:58.143Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0
For AI issues: which model did you use?
GPT‑5.2 High Max
Additional Information
What I already tried
• Disabled the “bash” background item in Login Items.
• Deleted the ASafari folder multiple times.
• Reset the Dock icon to the original Safari.
• Clean reinstall of macOS before all of this (issue disappears after reinstall, returns only after using Cursor with agent Terminal access).
Despite that, as soon as I start Cursor again, the problem comes back exactly the same way.
How I use Cursor
• I use Cursor mostly out of the box – no exotic settings or custom plugins.
• I enabled the agent’s Terminal access so it can run and debug Xcode projects directly, which is important for visionOS development.
• Model selected in Cursor: GPT‑5.2 High Max.
No other dev tools have special hooks into Safari as far as I know.
Why I’m worried
From a user perspective this is indistinguishable from malware:
• A fake/alternate Safari appears.
• A background item called “bash” from an unidentified developer is added.
• Safari is force‑closed when I open Cursor and replaced by the alternate version.
• The behavior survives reboots and only disappears after manual cleanup, but re‑appears as soon as Cursor is used again.
Given that I only see this after using Cursor (and after granting Terminal access), I strongly suspect some helper/agent process is involved, or something in the toolchain Cursor is using.
Questions:
-
Does Cursor install any helper or background process that could appear as a Login Item named “bash”?
-
Is Cursor expected to create an ASafari folder or its own Safari.app bundle anywhere on disk?
-
Could any part of Cursor’s agent / debugging flow be hooking or wrapping Safari (e.g. for web previews or auth), and accidentally leaving behind this ASafari setup?
-
What logs or diagnostics would be most useful for you to narrow this down (without exposing tokens or private data)?
• I’m happy to run specific commands (e.g. to list LaunchAgents, running processes, code signatures of the small Safari, etc.) if you can provide a checklist.
I can attach screenshots showing:
• The ASafari folder contents including the small Safari.app.
• The Login Item “bash – Item from unidentified developer”.
• The Dock before and after Cursor is launched.Any help or guidance would be greatly appreciated – at the moment I basically can’t trust my Safari install whenever Cursor is running.
Does this stop you from using Cursor
Yes - Cursor is unusable