agent-off-switch
Find every AI agent identity in Microsoft 365, AWS and GitHub, see what it can reach, and switch it off. Offline on saved exports.
What it is
Copilot agents, MCP connectors and coding agents run as Entra app registrations, managed identities, AWS IAM roles, access keys and GitHub Apps. aos reads saved exports of those, puts every agent identity in one table with its owner, credentials, grants and last use, ranks what it can reach, and prints the exact steps to switch one off.
aos inventory: every non-human identity, with the ones that look like agents marked; flags ownerless identities, identities unused for N days and credentials older than 90 days. Markdown, CSV or JSON.aos review: findings ranked by blast radius, each with its fix. Markdown, JSON or SARIF for GitHub code scanning.aos off <identity>: an ordered runbook (disable, revoke sessions and grants, delete credentials, remove role assignments, verify in the audit log) with the command and the verification command for each step. It prints; it never runs anything.aos drift old.json new.json: new identities, new grants and lost owners since the last inventory; exits 1 while anything new is unreviewed, for CI.
Why this exists: agents run as service accounts that nobody owns, recertifies or can stop fast. The argument, the failure modes and the controls are in Agent identities are the new service accounts.
Standard-library Python 3.10+, offline, read-only. It needs no credentials of its own: you take the exports with read-only commands listed in docs/exports.md.
Install
pip install "git+https://github.com/basitalisandhu/agent-off-switch@v0.1.1"
aos --help
From the README; see the full README for every option.
Links
Releases
Posts about it
- What the OWASP Agentic Top 10 maps to in 88 real incidents
88 public AI incidents coded against the OWASP Agentic Top 10: which categories show up, what they travel with, and what the list leaves out. - Agent identities are the new service accounts
AI agents run as app registrations, IAM roles and GitHub Apps that nobody owns or reviews. The failure modes, the controls, and an offline tool for them.
More in Security tooling
- skill-scan-gate: CI gate for Claude Code skills and plugins, with SARIF output. GitHub Action and CLI.
- agent-threat-model: Threat modeling for AI agents: describe the system in YAML, get a STRIDE and OWASP Agentic threat model.
- agent-config-audit: Audit AI agent configuration files for security risks.
- agentic-semgrep-rules: Semgrep rules for AI agent code in Python, TypeScript and JavaScript.
- security-actions: GitHub Actions for AI agent and supply chain security checks.
- cc-hooks: Typed Python SDK and offline test runner for Claude Code hooks.
- cc-plugin-lock: Lock file for Claude Code plugins: pins plugins and skills to content hashes and verifies them before load.
- claude-perm-sim: Claude Code permission rule simulator: shows which rule decides a tool call and where a rule set is permissive.
- llms-txt-gen: Generate llms.txt for any docs site or repository.
- scp-guardrails: Build AWS service control policies from a short spec and lint them for lockouts and statements that deny nothing.
- spotlighting: Spotlighting for prompt injection defence in Python: mark untrusted text before it reaches a model.
- llm-agent-control-plane: Deterministic policy enforcement for LLM agents.
Topics: access-review, agent-security, ai-agents, ai-security, aws-iam, cli, entra-id, github-action, github-apps, hacktoberfest, identity-governance, incident-response, kill-switch, microsoft-365, non-human-identity, python, sarif, security-tools, workload-identity