Business security guide · GitHub GitHub Copilot

How to secure GitHub Copilot for your business.

A five-step playbook for running GitHub Copilot across your engineering organization: find who's using it, set the policy, configure the organization, protect secrets, and review the audit log.

Updated 3 min readDrycraf Cyber OperationsCopilot Business, with Enterprise notes

The short answer

Find every Copilot seat, including personal subscriptions. Decide the policy: public code blocked, secret paths excluded, agents and MCP reviewed first. Configure it at the enterprise or organization level. Protect secrets with scanning and push protection. Review the audit log monthly.

  1. Find every seat
  2. Write the policy
  3. Configure the organization
  4. Protect the secrets
  5. Review monthly

The playbook, without buying anything

01

Find every seat

Copilot comes through your GitHub organization, and through personal subscriptions.

  • List Copilot seats in the organization and remove unused ones.
  • Search expense reports for personal Copilot Pro subscriptions.
  • Ask teams which IDEs and Copilot surfaces they use.
02

Write the policy

One page.

  • Public code matches blocked.
  • Paths and repositories excluded.
  • Who may use MCP servers and the cloud agent, and on what.
03

Configure the organization

Set it once, at the top.

  • Set policies at the enterprise level where you have one.
  • Add content exclusions.
  • Keep MCP and the cloud agent off until approved.
04

Protect the secrets

Content exclusion isn't a boundary, so stop secrets reaching repositories.

  • Turn on secret scanning and push protection.
  • Rotate any secret found in history.
  • Keep production credentials out of development environments.
05

Review monthly

Thirty minutes a month.

  • Search the audit log for action:copilot.
  • Review seats against your HR roster.
  • Check new Copilot policies GitHub has added.

Free and open-source tools to check out

None of these needs a purchase. Read each tool's own documentation before you run it on company systems.

  • OpenSSF ScorecardApache-2.0Scores a repository's security practices, such as branch protection, code review and pinned dependencies, so agent-written changes land in protected repos.
  • GitleaksMITScans repositories and their history for committed secrets, such as API keys an AI agent wrote into a config file. Runs as a pre-commit hook or in CI.
  • TruffleHogAGPL-3.0Finds leaked credentials across git history, buckets and chat exports, and checks whether each one still works, so you know what to rotate first.
  • Semgrep Community EditionLGPL-2.1Static analysis that catches insecure patterns in code, including the code AI assistants write, before it merges.

At scale

Copilot is one agent among many: where Glasswarden comes in

GitHub's policies govern GitHub Copilot. Your developers also run Claude Code, Codex CLI and Cursor, and GitHub's audit log doesn't record what any of them did on a laptop. Glasswarden, from Drycraf, sees every agent's sessions and tool calls, holds them to one policy, and sends fixes straight back to the agent that caused the problem.

AI VisibilityEvery coding agentGitHub Copilot alongside Claude Code, Codex CLI and Cursor: versions, models, MCP servers and tool calls, by person and device.
AI ControlOne policy for all of themRules that warn or block where agents run, with exceptions that carry a reason and an end date.
AI RemediationFixes, Direct to AgentA leaked key or public bucket goes back to the owner's agent as a fix, verified by telemetry before it closes.

Questions admins ask

Copilot Business or Enterprise?

Business gives organizations the core policies: public code matching, content exclusion, MCP and cloud agent controls, and the audit log. Enterprise lets you set those policies once across many organizations.

Can we see what developers ask Copilot?

Not from the audit log, which doesn't record prompts. It shows settings, policy, license and agent activity.

Sources

  1. Manage Copilot policies for an organization
  2. Suggestions matching public code
  3. Exclude content from Copilot
  4. About content exclusion
  5. MCP and Copilot
  6. Review Copilot audit logs

Checked against the vendors' own documentation on November 6, 2026. Admin consoles change: if a menu has moved, the vendor's page above is the authority. Product names are trademarks of their owners; Drycraf is independent of them.