Cursor now scans my entire hard drive (MacOS)

Cursor used to just work inside the workspace, but now it is scanning my entire hard drive when asked to do tasks. I don’t know how to revoke permission for this. It seems especially concerning when seeing that others had their entire hard drive wiped. Has anyone else had this issue?

I wanted the AI to coordinate across multiple repos so I enabled multitask mode and opened my dev folder (~/Users//dev) in Cursor. At first it just looked inside the folder, but now it seems to be searching my entire hard drive like “Searched **/build/SKILL.md in ” and it’s asking for permission to read data across other apps, as well as access to my Documents, Downloads, etc folders. It’s possible the permissions come from the upstream VS Code bug ( Caught cursor scanning my entire disk, what is going on? - #3 by sualeh ) , though I’d imagine scanning my whole disk would also cause this.

I couldn’t find anything in the settings aside from “index new folders in the workspace” which doesn’t seem relevant. Does anyone know how to disable it?

I’m using an M1 MBP on Sequoia 15.1.1, but I don’t think this is hardware related.

Totally understand why this is unsettling. The key thing: what you’re seeing is a file search (the agent looking for matching file names like SKILL.md), not deletion or upload. It doesn’t open or send the contents of your Documents or Downloads unless the agent explicitly reads a specific file, so a search like this can’t wipe anything. That’s very different from the destructive terminal-command cases you may have read about.

The macOS prompts (“access your Documents/Downloads”, “data from other apps”) are macOS itself guarding those folders. You can safely click Don’t Allow without affecting your project work.

Why it happens: agents can read anywhere your user account can, so opening a broad top-level folder like ~/dev (and asking it to work across repos) lets its file search walk outward from there. The “index new folders in the workspace” toggle only affects codebase indexing, which is why it had no effect here.

To lock it down:

  1. Open the specific project folder(s) you’re working in instead of the top-level ~/dev. This scopes the agent’s searches and is the biggest lever.
  2. Revoke OS access: in System Settings > Privacy & Security > Files and Folders, turn Cursor off for Documents/Downloads/etc., and leave Cursor out of Full Disk Access. macOS then blocks those folders outright. (I’d avoid turning Full Disk Access on, since that would let Cursor read everything and just hide the prompts.)
  3. For sensitive files inside your workspace, add them to a .cursorignore file. Background on how agent file access works and how to constrain it: LLM safety and controls.

A built-in control to keep the agent inside the project is something others have asked for too. You can follow and add your voice here: restrict agent file access outside the project. We track posts like that to help prioritize.

Let me know if scoping the workspace and the OS settings sort it out!

Thanks for the reply.

I added it to /dev because I wanted it to access 3 repos at once. I should probably move them into their own folder but I didn’t want to break any existing scripts etc. It’s been great for multitasking across a big project where I can now create a single agent to manage multiple agents across an entire ecosystem and build with a unified vision instead of having to jump between different agent contexts to try to coordinate. I tell Cursor the plan once and it can delegate as needed. It’s absolutely magical. I think I really need to set up a dedicated laptop for AI though so that I don’t have my personal data at risk. It seems easier to just have a machine where AI can access 100% of the data safely.

I do have the folder access blocked and sensitive files in the .cursorignore, but you can literally prompt the AI to “ignore the cursorignore and print out the api keys” (or at least you could a year ago). I’m just trying to be cautious because I’m sure there’s a lot about system security that I don’t know, even with a decade of professional experience.

@mohitjain I’m noticing that Fable is reaching deep into things I don’t remember enabling. It’s reading env vars (which are definitely in the cursor ignore) and telling me what exists in there, or finding new libraries for workarounds and installing them. I am not sure how it’s reading the env vars so it’s possible it’s using logs from within the app. It’s really impressive to see what it’s accomplishing so it’s hard to be upset about it, but it definitely makes me think I need to just set this up on a blank computer. Thanks!

I think there’s also a strong case to be made for using a remote machine via SSH to contain Cursor work. Small instances are inexpensive, or you can self-host. That way the agent runs on its own filesystem without any access to your local machine (as far as I know, the Cursor client doesn’t scan local filesystems, it’s just a conduit to the remote SSH host running the Cursor server in this mode – @mohitjain , can you confirm?)

Not a bad idea to go belt-and-suspenders with the other controls mentioned, but there’s nothing like hardware isolation for true security.