Uncontrolled context windows let sensitive data slip into LLM prompts, exposing you to compliance violations.
Why context windows matter for soc 2 audits
SOC 2 focuses on the Trust Services Criteria, especially Confidentiality and Privacy. When an application sends user‑generated text to a large language model, the model’s context window becomes a temporary data store. If that store contains personal identifiers, secrets, or proprietary information, the organization must prove that the data never leaves the controlled environment unchecked. Auditors therefore look for evidence that every request is vetted, that sensitive fields are hidden, and that a reliable audit trail exists for each interaction.
What auditors expect as evidence
- Identity verification that ties each request to a specific user or service account.
- Just‑in‑time (JIT) approvals for high‑risk prompts before they reach the model.
- Inline masking of regulated fields such as PII, PCI, or proprietary keys.
- Immutable logs that capture the full request, the applied policy decisions, and the model’s response.
- Session recordings that can be replayed to demonstrate the exact flow of data.
These artifacts must be generated automatically, because manual spreadsheets cannot survive a rigorous SOC 2 examination.
How hoop.dev delivers the required artifacts
hoop.dev sits in the data path between the caller and the LLM endpoint. It receives the OIDC‑issued token, confirms the caller’s identity, and then applies policy before the request ever reaches the model. Because the gateway is the only place enforcement can happen, hoop.dev becomes the source of all audit‑grade evidence.
Just‑in‑time access and approval
When a request contains a high‑risk pattern, such as a command to retrieve credentials, hoop.dev routes the request to a human approver. The approval decision, the approver’s identity, and the timestamp are recorded together with the request. This JIT workflow satisfies the SOC 2 requirement for controlled access to sensitive operations.
Inline masking of sensitive fields
Before the request is forwarded, hoop.dev scans for configured regexes or data‑type hints. Matching elements are replaced with safe placeholders, ensuring that no regulated data ever reaches the model. The masking action, the original value hash, and the policy that triggered it are logged, giving auditors a clear trail of data‑handling decisions.
Session recording and replay
hoop.dev records the entire request‑response exchange, including the masked payload, the model’s answer, and any policy actions taken. The recording is stored outside the agent that runs in the customer network, so the agent cannot tamper with the evidence. Auditors can replay a session to verify that masking and approvals behaved as expected.
