AI vendor security questionnaire: what SOC 2 misses for AI docs agents
A SOC 2 Type 2 badge does not say what an AI docs agent can read or write in your repositories. What to check in the report, the questions it leaves open, and a one-page questionnaire to send every vendor.

- Written by
- Arun Bhalla (opens in a new tab)
- Published on
- Read time
- 15 min
An AI vendor security questionnaire often lands after the demo goes well. Your security team, or a customer's auditor, asks three things about the AI docs agent you want to connect: what it reads, where your code goes, and who merges what it writes. The vendor replies with a "SOC 2 compliant" badge. The badge answers none of the three, and the review can turn into a long email thread.
A SOC 2 Type 2 report shows that a vendor's controls operated over a period. What an agent can touch in your repositories is a separate question. Judge every vendor on access scope, data use, and the write path, and favor the one whose answers are published and whose changes end in a pull request a person approves. EkLine publishes its answers on its security and data page.
Then ask who enforces "read-only." GitHub grants an app's write permission across the whole installation, and a standard GitLab token scope covers everything the token can reach, so the vendor's own code usually keeps its read-only list. Your guardrails are selected repositories and branch protection with required reviews. The one-page questionnaire gives each question and the answer to expect, so you can compare every vendor's replies side by side.
TL;DR
- Check a SOC 2 Type 2 report's period, its scope, what it leaves out, and the controls it assumes you run.
- The report does not say what an agent reads or writes, where code is processed, how long it is kept, or whether it trains a model.
- Your own controls are "Only select repositories" at install and branch protection with required reviews.
- Attach the agent questions to your standard questionnaire, and check each answer against your own repository settings.
What a SOC 2 Type 2 report covers, and what to check in it
A SOC 2 Type 2 report is an auditor's opinion on the vendor's description of its system and on whether its controls operated over a fixed period. One vendor's published report shows the form: the opinion covers one 12-month period, measured against the 2017 Trust Services Criteria. Read four parts of any report before you accept the badge.
- The period. The opinion covers that window only, so check when it ended. Vendors cover the months since with a bridge letter. According to Vanta's guide to bridge letters, the vendor writes it without the CPA firm, and by industry practice it covers no more than three months.
- The scope. Check that the system description includes the product you are buying: the agent and its repository connection. The example report warns that its description "may not, therefore, include every aspect of the system that individual users may consider important."
- Carve-outs and CUECs. Under the carve-out method, the example examination "did not include the services provided by the subservice organizations," so the controls of the vendor's own vendors, such as a cloud host or model provider, were not tested. The opinion also holds only if your complementary user entity controls (CUECs), the controls the auditor assumes you run, operated effectively. Ask which of your settings the vendor counts on.
- Controls that did not operate. In the example report, the data deletion control "did not operate during the audit period," because no deletion requests came in, so the auditor could not test it. A clean opinion can sit next to an untested control.
A Cloud Security Alliance research note makes the same point for AI vendors: "two AI companies can each hold a clean SOC 2 Type II report while having tested entirely different control sets." The note says it was generated with AI assistance and has not had official CSA review. Its advice is the same: read the system description and the management assertion (the vendor's own statement about its system) closely.
Six questions a SOC 2 report does not answer
Ask these separately.
- Which repositories the agent reads, and which it writes to.
- Where your code is processed, with each model provider named and each subprocessor's location.
- How long code and prompts are kept, by the vendor and by each model provider. Provider terms differ: OpenAI's data controls say abuse monitoring logs are "retained for up to 30 days," with zero data retention subject to prior approval, while Anthropic offers zero data retention on request, per organization.
- Whether your data trains a model. The criteria in use today say nothing specific about AI training data. On Oct 28, 2026, the AICPA proposed updated SOC 2 criteria with new points of focus on "AI governance, model monitoring, prompt manipulation, data poisoning," and training data management, for engagements beginning on or after Dec. 31, 2027. It is still a proposal, so get the training answer in writing: in the contract, the data processing agreement (DPA), or a signed statement.
- Which subprocessors touch your data. Notion disclosed an incident at a third-party AI vendor that affected fewer than 1% of Notion workspaces, and said the affected data "included the full text of the user's chat messages." Under the carve-out method, a vendor's report does not test its subprocessors' controls.
- How access is revoked, integration by integration, and what happens to your data afterward.
Read access, write access, and who enforces "read-only"
On GitHub, an agent can connect as a GitHub App. GitHub Apps have no permissions by default, and GitHub tells app builders to request the minimum they need. When you install a third-party app, you see the permissions it requests and select All repositories or Only select repositories. If the app later asks for more, each account owner has to approve the new permissions.
GitHub sets those permissions once per app, across every repository in the installation. When a vendor says some of your repositories are read-only for its agent, that rule lives in the vendor's software, because the app's write permission reaches every repository you installed it on. GitHub does limit tokens in other ways: an installation access token expires after one hour, can be narrowed to named repositories and permissions, and cannot reach a repository the installation was not granted.
Write permission covers more than commits. GitHub lists the merge endpoint under the Contents write permission, together with file, commit, and ref writes. Besides the vendor's own code, the control that stops an app with those permissions from merging its own change is your branch protection. Protected branches can require a set number of approving reviews before anyone merges, and the "Do not allow bypassing the above settings" option applies the rules to admins too.
GitLab works at the token level. According to GitLab's token scope reference, the api scope "Grants complete read and write access to the API for the token's scope," while read_repository grants read access to repositories, and a group token covers all repositories in the group. An agent that needs api holds write access everywhere its token reaches, so a project token or a small group keeps that reach short.
For a reference point, GitHub's own Copilot cloud agent "only has the ability to push to a single branch," cannot approve or merge a pull request, cannot be approved by the person who asked for the change, and by default triggers no workflows until its code is reviewed. The OWASP entry on excessive agency agrees: limit permissions "to the minimum necessary" and have a human approve high-impact actions, which for a docs agent means a required review before a merge.
Ask every vendor the same question: "Is read-only enforced by the platform's permissions or by your code, and how do we verify it?" A good answer says which, names what the agent blocks, and lists the settings of yours it relies on.
"We'll run our standard vendor questionnaire"
Your security team may already send a standard questionnaire, such as the CAIQ (Consensus Assessments Initiative Questionnaire), and ask for a SOC 2 Type 2 report and a DPA. Standard questionnaires can ask about data deletion and least privilege, and the Cloud Security Alliance's AI-CAIQ v1.1 extends CAIQ with questions "designed specifically for AI systems."
AI-CAIQ is designed for organizations to self-assess their AI controls, so the answers are the vendor's own. The questions are also generic, written for any cloud or AI vendor. Check whether yours asks how an agent's write path is enforced: which repositories it can push to, who enforces read-only, whether it can merge, and which branch rules it relies on. Keep your standard questionnaire and attach the agent questions to it.
The opposite objection, that no agent should get repository access, is a fair default for a repository you cannot protect. With selected repositories and required reviews, an agent's change is a pull request your team reads before anything merges.
What each check answers
| Check | Who stands behind the answer | Controls tested over a period | Which repositories the agent can write to | Who enforces read-only | Whether your data trains a model |
|---|---|---|---|---|---|
| SOC 2 Type 2 badge or report (the usual starting point) | An independent auditor | Yes, within the stated scope | No | No | No AI training point of focus today |
| Standard questionnaire (such as CAIQ or AI-CAIQ) | The vendor, in its own words | No | Depends on the questions | Depends on the questions | Depends on the questions |
| Contract and DPA | A written commitment from the vendor | No | Only if you write it in | Only if you write it in | Yes, when you put it in writing |
| Agent write-path questions plus your repository settings | The vendor, checked against your GitHub or GitLab settings | No | Yes | Yes | Ask separately |
No single check covers an agent: the SOC 2 report is the only tested evidence, and only the vendor's answer plus your own settings cover the write path.
- If a customer audit drives the review, send the SOC 2 checks and the questionnaire together, and keep every vendor's answers in one table for the auditor.
- If the agent will open pull requests, install it on selected repositories only and turn on branch protection with required reviews before the first run.
- If you are on GitLab, scope the token to a project or a small group.
The AI vendor security questionnaire: one page to send every vendor
Contract terms such as the DPA are for your counsel; this list is not legal advice.
| Question | Why it matters | Good answer | Red flag |
|---|---|---|---|
| 1. Which repositories can the agent read, and which can it write to? | Write access is where a mistake becomes a change in your code. | Two lists you set, on repositories you selected at install. | "All repositories the app can see." |
| 2. Which GitHub App permissions or GitLab token scopes do you need, and why? | They apply to every repository in the installation or token. | A published list with what each permission is for. | No list, or admin rights. |
| 3. Is read-only enforced by the platform's permissions or by your code, and how do we verify it? | A read-only list on top of write permissions is a vendor control. | A plain statement of which, plus what the agent blocks in every session. | "Read-only" with no explanation. |
| 4. Can the agent merge, approve, or push to the default branch? | Contents write includes the merge endpoint. | Changes arrive as a pull request on a separate branch, under your branch protection. | The agent needs to bypass branch protection. |
| 5. Who can trigger the agent from a pull request? | A comment from the wrong person should not start work. | Only people with write access to the repository or membership of your organization. | Anyone who can comment. |
| 6. Where is our code processed, and which model providers see it? | Under the carve-out method, providers sit outside the vendor's SOC 2 opinion. | Named providers and subprocessors, each with a location. | "Our AI," with no provider named. |
| 7. How long do you and your model providers keep our code and prompts? | Provider logs can be kept on a different schedule from the vendor's own. | A stated period for the vendor and each provider. | No answer, or one that leaves out the providers. |
| 8. Is our data used to train models, yours or a provider's? | Today's SOC 2 criteria do not ask. | A written no. | The SOC 2 badge offered as the answer. |
| 9. Which subprocessors handle our data? | An incident at a subprocessor can expose your data. | A published list with the location of each. | No list. |
| 10. What does your SOC 2 Type 2 report cover? | The badge hides the period, scope, carve-outs, CUECs, and exceptions. | A system description that includes the agent, with CUECs and exceptions listed. | A badge with nothing behind it, or a scope that leaves the agent out. |
| 11. How do we revoke access, and what happens to our data afterward? | Offboarding is when deletion matters. | Documented steps for each integration, and a deletion answer. | "Email us." |
Questions 3, 4, and 5 decide what the agent can change.
How EkLine answers each question
EkLine publishes its answers on its security and data page and its trust center. Where it publishes no answer, the table says so.
| Question | EkLine's published answer |
|---|---|
| 1. Repositories | EkLine only accesses the repositories and tools you connect, with the permissions you grant. You sort repositories into Where EkLine writes, where it opens pull requests, and What else EkLine can read, which it never writes to. The GitHub setup guide tells you to select Only select repositories at install. |
| 2. Permissions | The integration authentication requirements list the GitHub App's permissions: Contents, Pull requests, and Issues read and write; Metadata and Organization members read. The app receives short-lived tokens that GitHub issues for the repositories you installed it on. The GitLab setup guide requires both the api and read_repository scopes and the Developer role or higher. |
| 3. Read-only | EkLine enforces it. Its GitHub App holds read and write permissions on every repository you install it on. In every agent session, EkLine blocks edits to files outside the Where EkLine writes repositories, git push to any other repository, and command-line writes aimed at any other repository, as How EkLine opens pull requests describes. It can still comment on pull requests in read-only repositories. On GitLab, the api scope gives the token write access too. |
| 4. Merge and push | Docs pull requests use a docs/ branch based on the repository's default branch. On GitHub, EkLine opens them as the EkLine GitHub App; on GitLab, merge requests are posted as the user who owns your organization's GitLab access token. Nothing merges or publishes without your approval. Keep branch protection with required reviews so your platform enforces that too. |
| 5. Triggers | Only people with write or admin access to the repository, or membership of the GitHub organization (Developer role or higher on GitLab), can ask EkLine for changes in a pull request thread; anyone else gets a reply that EkLine responds only to members and collaborators. See For engineers. |
| 6. Processing | The trust center lists 12 subprocessors, each located in the US. Nothing more is published on processing location; ask support@ekline.io. |
| 7. Retention | Not published. Ask support@ekline.io. |
| 8. Training | Your data is never used to train models. |
| 9. Subprocessors | Listed in the trust center with the location of each, without each one's purpose. Ask support@ekline.io for that. |
| 10. SOC 2 | EkLine is SOC 2 Type 2 compliant, and the trust center shows the current status. How to get the report is not published. For security questions the trust center does not answer, email support@ekline.io. |
| 11. Revocation | Click Disconnect on each tool under Settings > Integrations, uninstall the EkLine GitHub App, click Remove Token for GitLab and revoke the token in GitLab, and click Revoke on each personal API key. What happens to data afterward is not published; ask support@ekline.io. |
Before, the review starts with a badge and a thread of follow-up emails. After, your security team gets a link for each published answer, and the open items go to support@ekline.io in one message. Before you connect, the repository readiness checklist covers what to review in GitHub or GitLab.
FAQ
For an agent with repository access, an AI vendor security questionnaire should ask which repositories the agent reads and writes, which permissions it needs, who enforces read-only, whether it can merge, who can trigger it, where code is processed, how long it is kept, whether it trains a model, which subprocessors handle it, what the SOC 2 report covers, and how access is revoked.
Not today. The criteria in use say nothing specific about AI training data. The AICPA has proposed adding training data management as a point of focus, and the proposal is still a draft. Get the training answer from the vendor in writing.
Ask each vendor how to request deletion, and how long it and each model provider keep your data. By default, OpenAI keeps API abuse monitoring logs for up to 30 days, and Anthropic enables zero data retention on request, per organization. Get the vendor's own retention period and its terms with each provider in writing.
Read EkLine's security and data page, check the trust center for the subprocessor list and SOC 2 status, and send the questions it leaves open to support@ekline.io.
Sources
- EkLine: Security and data
- EkLine Trust Center
- EkLine: Integration authentication requirements
- EkLine: How EkLine opens pull requests
- EkLine: Connect GitHub to EkLine Docs Agent
- EkLine: Connect GitLab to EkLine Docs Agent
- EkLine: For engineers
- EkLine Repository Readiness Checklist
- A published SOC 2 Type 2 report (AiDASH)
- Vanta: What is a SOC 2 bridge letter
- Cloud Security Alliance: The SOC 2 AI Gap (research note)
- AICPA: Proposed update of the SOC 2 Trust Services Criteria
- Cloud Security Alliance: AI-CAIQ v1.1
- OpenAI: Data controls in the OpenAI platform
- Anthropic: API and data retention
- Notion: Security incident involving a third-party AI vendor
- GitHub: Choosing permissions for a GitHub App
- GitHub: Installing a GitHub App from a third party
- GitHub: Generating an installation access token
- GitHub: Permissions required for GitHub Apps
- GitHub: About protected branches
- GitHub: Risks and mitigations for Copilot cloud agent
- GitLab: Access token scopes
- OWASP: LLM06:2025 Excessive Agency






