Frontier coding agents such as Amp are more powerful than the previous generation of AI coding tools. This document explains the security characteristics of Amp and helps enterprises make an educated risk assessment.
For any security-related questions or reports of potential vulnerabilities, email security@sourcegraph.com.
Amp is SOC 2 Type II certified.
In addition, Sourcegraph is ISO 27001 certified, and has maintained GDPR and CCPA compliance for several years. Amp will be included in all upcoming reports and external penetration tests.
Visit security.sourcegraph.com to request a copy of our reports.
Amp uses the following infrastructure and service providers:
“Partial code data” means snippets of or entire code files that are selected as context for the LLM requests, but not the entire codebase.
All of these providers except WorkOS and Stripe are also used by Sourcegraph Cloud.
We have no infrastructure or service providers based in China.
Data such as threads, user information and telemetry on Amp Server is stored in a multi-tenant Google Cloud Platform project, where all service accounts are exclusive to this project.
The Amp Client and Amp Server do not see, store, clone, or index the entire codebase.
The Amp Enterprise plan (paid or trial) provides zero data retention for text inputs on all LLM providers, which means that any text (including code) sent to LLMs will not retain any input or output beyond the time it takes to generate an output. Images are subject to extremely limited retention periods by LLM providers to ensure compliance with law and the provider’s acceptable usage policy (AUP).
Thread data includes user messages, LLM responses, snippets of or entire code files used as context for the LLM requests, tool call results, and attachments. When a thread is explicitly deleted, all data for that thread is removed within 30 days of thread deletion.
When a user is deleted, thread data corresponding to that user is handled as follows:
Amp uses industry-standard encryption practices to protect data:
See the Models page for a list of which LLMs are currently used by Amp. All model inference is performed on the infrastructure & service providers documented above.
Enterprise workspaces can disable the free mode to prevent the use of those free-mode models by all members of their workspace.
Amp Enterprise supports Single Sign-On (SSO) and Directory Sync through various identity providers, including Okta, for user authentication. We use WorkOS to provide this capability and the SSO configuration and management dashboard for Workspace Admins.
SSO can be configured to be the exclusive authentication method for your workspace, preventing the use of password-based authentication.
Directory Sync (e.g. SCIM) can be used for automatic provisioning and de-provisioning of user accounts and groups. This allows organizations to automatically manage user access based on their identity provider’s user directory, ensuring that access is granted or revoked when users join or leave the organization.
To set up SSO and Directory Sync, go to your Workspace Settings page.
Audit logs for user authentication-related events are available to Workspace Admins in Enterprise workspaces.
Amp maintains comprehensive application audit logs for security and monitoring purposes. Logs are structured and include key fields such as timestamps, actor IDs, request details, and event information. These logs are collected internally and monitored by the Amp security team, but are not currently exposed to Workspace Admins.
Application audit logs log can be provided for Enterprise workspaces upon request, for example during customer audits or incidents.
Retention: Audit logs are retained for 30 days minimum.
Amp does not train models on your data, unless you have explicitly opted into training.
If you’re on an Amp workspace, turning training on requires the approval of the Workspace Admin.
On an Amp Enterprise workspace plan (paid or trial) training can never be turned on and is always off.
To enable or disable training, go to User Settings.
(Amp’s free mode no longer requires opting into training.)
Amp consists of two components:
Amp doesn’t support Bring Your Own Key or self-hosted deployments.
When users use Amp, they create and send messages in threads to the agent. A thread is a single conversation between the user and the agent, with any number of back-and-forths among the user, tools, and LLM.
When a developer starts a new thread in an Amp Client, the client collects local contextual information such as code snippets, metadata about open files, and relevant editor state. For additional context, the agent may use built-in tools such as Bash or MCP servers (Model Context Protocol) to provide additional information. The collected context, along with the user’s prompt and conversation history, if applicable, is sent to the Amp Server and then to the LLM inference provider.
After processing, the LLM’s response is returned through the Amp Server back to the Amp Client. The Amp Client displays the response and takes additional actions based on the response, such as reading files requested by the LLM and sending them back to the Amp Server for the next step in the agentic loop.
The Amp Server stores these conversations in its PostgreSQL database in Google Cloud Platform, which enables team collaboration features such as thread sharing and auditing. Users can mark a thread as private to prevent it from being shared with other workspace members.
SecretStorage API, which uses the system’s native credential store (Keychain on macOS, Credential Manager on Windows, libsecret on Linux). globalStorage directory.ampcode.com: For the Amp Server service.auth.ampcode.com and authapi.ampcode.com: For authentication to ampcode.com.~/.local/share/amp/secrets.json on Linux and macOS, and %APPDATA%\amp\secrets.json on Windows..env files and other credentials files.Amp automatically detects and redacts secrets before they can enter threads or be transmitted to any external service. This protection operates at the lowest level of the system to ensure that detected secrets are never visible to the LLM, stored in local cache, transmitted to LLM providers, or saved on ampcode.com.
When a secret is detected, it is replaced with a redaction marker like [REDACTED:sourcegraph-amp] that indicates the type of secret found without exposing the actual value.
Supported Secret Types: Amp detects many common secrets including:
Limitations: Secret redaction is best-effort and may not catch all possible secret formats, especially:
If a secret is not automatically redacted:
The secret detection patterns are regularly updated to cover new services and formats. Contact Support if you would like a secret redaction pattern to be added.
Sourcegraph welcomes feedback from security researchers and the general public to help improve our security. If you believe you have discovered a vulnerability, privacy issue, exposed data, or other security issues we want to hear from you.
This policy outlines steps for reporting vulnerabilities to us, what we expect, what you can expect from us.
This policy applies to Amp (ampcode.com) and related digital assets owned, operated, or maintained by Sourcegraph.
Vulnerabilities discovered or suspected in out-of-scope systems should be reported to the appropriate vendor or authority.
When working with us, according to this policy, you can expect us to:
In participating in our vulnerability disclosure program in good faith, we ask that you:
Please report security issues via security@sourcegraph.com, providing all relevant information. The more details you provide, the easier it will be for us to triage and fix the issue.
When conducting vulnerability research, according to this policy, we consider this research conducted under this policy to be:
You are expected, as always, to comply with all applicable laws. If legal action is initiated by a third party against you and you have complied with this policy, we will take steps to make it known that your actions were conducted in compliance with this policy.
If at any time you have concerns or are uncertain whether your security research is consistent with this policy, please submit a report through one of our Official Channels before going any further.
Note that the Safe Harbor applies only to legal claims under the control of the organization participating in this policy, and that the policy does not bind independent third parties.
We’re grateful to the security researchers who help keep Amp secure. We thank the following security researchers for their responsible disclosure of vulnerabilities: