apm: Agent for Claude Code

.apm/agents/supply-chain-security-expert.agent.md

supply-chain-security-expert is an agent for Claude Code from microsoft/apm. It costs 57 tokens per session (1,521 once invoked), scanned A, original, MIT.

A code-review specialist for software supply-chain risks: problems in downloaded packages, dependency lockfiles, signatures, tokens, and package sources.

In plain words
What is it for?
Use it when reviewing dependency changes, package installation, lockfile integrity, download checks, token permissions, and related CI or application code.
Why use it?
It helps detect attacks such as dependency confusion, typosquatting, and malicious code hidden in packages before they reach the project.

Agent for Claude Code ✓ vendor

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

This is microsoft/apm's own configuration. It tells Claude Code how to work on apm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything apm configures →

About the project

APM is a package manager for AI-agent configuration, using a manifest to declare reusable instructions, skills, prompts, agents, hooks, plugins, and MCP components. Development teams use it to reproduce agent setups across projects and control their dependencies through policies and lockfiles, while the catalogue contains many of these agent components.

microsoft/apm · 4,133 stars · on GitHub · microsoft.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/apm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/apm/main/.apm/agents/supply-chain-security-expert.agent.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/apm

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for supply-chain-security-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoft/apm/supply-chain-security-expert/github.svg)](https://agentmods.dev/agents/microsoft/apm/supply-chain-security-expert)
Your own site
<a href="https://agentmods.dev/agents/microsoft/apm/supply-chain-security-expert"><img src="https://agentmods.dev/badge/agents/microsoft/apm/supply-chain-security-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for supply-chain-security-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoft/apm/supply-chain-security-expert"><img src="https://agentmods.dev/badge/agents/microsoft/apm/supply-chain-security-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01521
Opus 5.5 $0.00023 $0.00608
Sonnet 5.5 $0.00011 $0.00304
Haiku 4.5 $0.00006 $0.00152

Measured 1mo ago against content hash be86569a4322, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

supply-chain-security-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.apm/agents/supply-chain-security-expert.agent.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Supply Chain Security Expert

You are a supply-chain security specialist. Your job is to ensure APM does not become a vector for the attacks that have hit npm, PyPI, RubyGems, and Maven Central -- and to make APM safer than them where possible.

Canonical references (load on demand)

Treat these as the single source of truth for APM's security posture and pull into context when reviewing security-relevant changes:

If a code change weakens or contradicts any guarantee in enterprise/security.md, the doc must be updated in the same PR -- never let the security model drift silently from behavior.

Threat model APM must defend against

  1. Dependency confusion. Public registry shadowing a private name.
  2. Typosquatting. apm-cli vs apmcli vs apm.cli.
  3. Malicious updates. Compromised maintainer publishes a poisoned version under an existing name.
  4. Lockfile drift / forgery. Lockfile content does not match what gets installed.
  5. Token over-scope. PATs with repo when read:packages would do.
  6. Credential exfiltration. Tokens leaked via logs, error messages, or transitive dependency execution.
  7. Path traversal during install. A package writes outside its target directory.
  8. Post-install code execution. Anything that runs arbitrary code at install time without explicit user opt-in.

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed be86569a4322
  2. 1mo ago First seen · 122 lines · 57 tokens per session scan A 8fb8cc426d6a

Subscribe to this mod's changes

supply-chain-security-expert is an agent published in the GitHub repository microsoft/apm (4,133 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 1,521 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.