All posts

Keeping Cursor SOC 2-Compliant

Why SOC 2 matters for Cursor A common misconception is that simply logging into Cursor satisfies SOC 2 requirements. In reality, SOC 2 demands continuous, tamper‑evident evidence of who accessed what, when, and under what policy. Teams that run data‑driven workloads on Cursor often focus on performance and cost, leaving audit and control as an afterthought. The unsanitized starting state Most engineering groups configure a single service account or API key that is baked into CI pipelines, sh

Free White Paper

Cursor / AI IDE Security + SOC 2 Type I & Type II: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

Why SOC 2 matters for Cursor

A common misconception is that simply logging into Cursor satisfies SOC 2 requirements. In reality, SOC 2 demands continuous, tamper‑evident evidence of who accessed what, when, and under what policy. Teams that run data‑driven workloads on Cursor often focus on performance and cost, leaving audit and control as an afterthought.

The unsanitized starting state

Most engineering groups configure a single service account or API key that is baked into CI pipelines, shared across developers, and used to connect to Cursor directly. The credential lives in a secrets manager, but every user or automation script can invoke the same token without any per‑request check. Because the connection goes straight from the client to the Cursor server, there is no visibility into the exact query, no ability to block risky statements, and no record of who approved a data‑export operation. When a breach occurs, the logs show only that the service account ran a command, not which human initiated it or whether the command complied with policy.

The missing control plane

Organizations trying to meet SOC 2 typically adopt identity federation, least‑privilege roles, and short‑lived OIDC tokens. Those steps identify *who* can start a session, but they do not enforce *what* can be done once the session is open. The request still reaches Cursor directly, bypassing any real‑time guardrails, approval workflow, or data‑masking step. Without a gateway that can inspect each query, the system cannot generate the continuous evidence SOC 2 auditors require.

hoop.dev as the enforcement point

hoop.dev sits in the data path and records every interaction with Cursor. By proxying the connection, it can apply just‑in‑time access, enforce inline masking of sensitive fields, require manual approval for high‑risk commands, and capture a replayable session log. Because the gateway holds the credential, the end user never sees the secret, and every action is tied to the user’s identity token.

Continuous evidence for SOC 2

When a developer initiates a Cursor query, hoop.dev validates the OIDC token, checks the user’s group membership, and decides whether the request can proceed immediately or needs an approval step. If approval is required, an authorized reviewer receives a notification, and the request is blocked until the reviewer explicitly permits it. Once allowed, hoop.dev masks any columns marked as sensitive, preventing accidental exposure in logs or downstream systems.

Continue reading? Get the full guide.

Cursor / AI IDE Security + SOC 2 Type I & Type II: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

Every session is streamed to an audit store. The audit record includes:

  • Timestamped start and end of the session
  • User identity and the groups that granted the permission
  • Full query text with masked fields redacted
  • Outcome of any approval workflow
  • Result code and any error messages

This granular log satisfies the SOC 2 criteria for logical access controls, change management, and monitoring. Auditors can trace a specific data export back to the individual who requested it, the reviewer who approved it, and the exact query that was executed. Because the logs are generated continuously, there is no month‑end “snapshot” exercise; evidence is always available on demand.

Getting started with hoop.dev and Cursor

To adopt this model, provision the hoop.dev gateway near your Cursor cluster and register the Cursor endpoint as a connection. The gateway will store the service account credential, while users authenticate via your existing OIDC provider. Detailed steps are covered in the getting started guide and the broader feature documentation. For a high‑level overview of the product, see the product page.

FAQ

Does hoop.dev replace the existing Cursor authentication?
No. hoop.dev consumes the OIDC token issued by your identity provider and then proxies the request to Cursor. Authentication remains unchanged; hoop.dev only adds authorization, masking, and audit.

Can I retroactively audit queries that ran before hoop.dev was installed?
hoop.dev can only record activity that passes through its gateway. Historical logs must be collected from Cursor’s native audit facilities, if any, but they will lack the masking and approval metadata that hoop.dev adds.

Is the audit data itself protected?
The gateway writes logs to a storage backend that you configure. Because hoop.dev never exposes raw credentials, the audit trail remains isolated from the applications that consume it, supporting the confidentiality requirements of SOC 2.

Explore the source code on GitHub.

Open source

Save the open-source gateway for agent data access

Hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.

Star and save the repo →More posts