Safeguard
Supply Chain•

What is the blast radius if your AppSec vendor is compromised?

A scanner with repo access is a target. How to limit what a compromised vendor could reach: token scopes, repo selection, expiry, rotation and monitoring.

Safeguard Security Team
3 min read

Assume the worst case and limit it ahead of time. Give the tool the narrowest scopes, grant it only the repositories it needs, prefer short lived tokens, keep write access off unless required, log its activity, and rehearse revocation. Then a vendor breach becomes a rotation task, not a crisis.

Map what the vendor can touch

List every credential and integration you gave the tool. For each one, write what an attacker holding it could do.

AccessWorst case
Read access to all reposCopy all source code and history
Write access or PR creationPush or propose malicious changes
CI secrets or tokensRun code in your pipeline, reach cloud accounts
Webhook endpointsSend fake events into your systems
SSO and SCIMCreate or remove users if over scoped
Ticketing integrationRead or write tickets with sensitive detail

Seeing it written down makes over granted access obvious.

Reduce it, step by step

  1. Choose repositories explicitly. Prefer selected repositories over organisation wide access.
  2. Use app based access, not personal tokens. GitHub's guidance says to select the minimum permissions a GitHub App needs, and that you can restrict the repositories and permissions for each installation token. It also advises never using personal access tokens for app authentication.
  3. Prefer expiring tokens. GitHub states that installation access tokens expire after one hour. Short lives limit what a stolen token can do.
  4. Keep write off by default. If the tool opens fix pull requests, scope it to that. Require your own review and branch rules so it cannot merge itself.
  5. Limit CI permissions. GitHub documents setting the workflow token's permissions to the least required, per workflow or per job.
  6. Separate environments. Do not give a scanner production cloud credentials.

Monitor it

Alert on unusual activity from the tool's identity: access to repos outside its scope, clone volume spikes, activity at odd hours. Your Git platform's audit log can show it. See quarterly git hosting access review checklist.

Rehearse revocation

Write a runbook: where each credential lives, who can revoke it, and how to rotate it. Test it once. Ask the vendor how they would notify you of an incident, and how fast. See your security vendor was breached: first 48 hours.

Put it in the contract

Ask for breach notice terms with a timeline, a right to receive indicators of compromise, and cooperation duties. See vendor breach notification clause.

Safeguard offers asset discovery, policies and guardrails, and a free scan at gold.safeguard.sh/scan.

Quick check

Is read only access safe?

It limits tampering but still exposes source and history. Treat read access to all repos as sensitive.

How often should we rotate tool credentials?

Prefer tokens that expire on their own. For longer lived credentials, rotate on a schedule you set and always after a vendor incident.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.