Claude Security

6 Prompts to Audit Your AI Tooling Supply Chain

Two documented attacks this month used AI developer tooling as the way in: a Claude Code settings file edited inside a repository, and two malicious releases of Microsoft's agent-framework on PyPI. Neither needed a clever exploit. Both relied on files and packages that nobody reads closely. These six prompts turn that into a checklist you can run against your own repositories and pipelines - point them at your actual files, not at a description of them, and make the model show you what it found rather than reassure you.

⌨️ 6 prompts 🕐 Updated Nov 26, 2026 👁 21 views
💡 How to use these prompts: Replace everything in [BRACKETS] with your specific details before sending. Click Copy to copy any prompt to your clipboard instantly.
1
Find every config file a tool can act on
Config inventory
List every file in this repository that an AI coding tool, agent framework or editor extension reads at startup and can act on. For each one, state the tool that reads it, whether it can cause a command to run or a file to be fetched, and who on the team can change it without a reviewer. Flag any that are committed to the repository rather than kept local.
2
Diff the config files against their history
Config change review
Show me every change made to the tool configuration files in this repository over the last 90 days. For each change, state who made it, whether it was part of a reviewed pull request, and whether it added or modified anything that causes a download, a command or a network call. List the unreviewed ones first.
3
Check whether an install alone can execute
Install-time execution
Look at the dependency manifests and lockfiles here and list any package that can execute code at install time or at interpreter start rather than only when imported. Explain the mechanism for each one. Then say which of those are pinned to an exact version and which can float to a newer release.
4
Work out what a pipeline token can reach
Pipeline blast radius
Given these CI configuration files, list every credential and identity token available to a job at runtime, including federated and short-lived ones requested from a metadata service. For each, state what it can access and how long it is valid. Rank them by what an attacker who captured it during a build could do.
5
Write the rotation list before you need it
Incident rotation plan
Assume a dependency on this build runner was compromised for one hour yesterday. Produce the exact rotation list: every credential to rotate, in the order that limits damage fastest, with the ones that cannot be rotated without downtime marked separately. Do not include advice, only the list.
6
Make the review rule concrete
Review control
Draft a CODEOWNERS entry and a short written rule that would force a human review on every change to the tool configuration files you identified earlier. Keep the rule under 120 words, make it specific to the file paths in this repository, and state what it does not cover.