PCI DSS 6.3.2 and AI Coding Agents: Building an AI-BOM
Here's a situation that comes up more and more in PCI assessments. The payment application's software inventory looks complete, every library has a version, and the vulnerability scans are current.
Then you ask how code gets into that application, and the answer is that a coding agent opens most of the pull requests now.
That agent can write to the payment app's repository and trigger the CI pipeline. It runs three skills from a public marketplace, connects to MCP servers for the repo and the ticketing system, and uses a hosted model with no version pinned.
None of it is in the inventory. The SBOM lists the code the agent wrote, but nothing about the agent that wrote it.
What PCI DSS already requires
The starting point is Requirement 6.3.2, mandatory since 31 March 2025:
An inventory of bespoke and custom software, and third-party software components incorporated into bespoke and custom software is maintained to facilitate vulnerability and patch management.
The requirement doesn't mention SBOMs, a format, or how deep to go into dependencies. Its testing procedures check two things:
-
6.3.2.a: the inventory exists, and you use it to find and fix vulnerabilities.
-
6.3.2.b: the inventory matches your software documentation.
The code and packages a coding agent adds fall under 6.3.2 like any other code. The agent itself, and the systems it runs on, should be evaluated under Requirement 12.5.1 when you decide which system components are in scope.
An agent that can change payment application code or influence its deployment may be able to affect the security of the CDE. That makes a strong case for including it, even though it never handles a card number.
The PCI SSC has also been clear that AI gets no exception. Its AI Principles state that "use of AI does not remove or bypass the need to meet the requirements of any applicable PCI SSC standard."
The Council's September 2026 supplement, Security Considerations for AI Systems, recommends an AI bill of materials (AI-BOM). It also says AI-generated code should get security and functional testing, with reviews that check for embedded credentials and unsuitable dependencies.
The supplement is guidance, and PCI DSS doesn't require a separate AI-BOM. Think of the AI-BOM as a practical way to cover AI components in the inventories that 6.3.2 and 12.5.1 already require.
Where AI hides from your SBOM
Most SBOM tools build their list from the packages an application declares. That covers the payment app's libraries, but it usually says little about the tooling that writes and changes the app:
-
The hosted model. It's often called by an alias like "latest," so the provider can change it without telling you.
-
Agent instruction files. These repo files tell the agent how to write code, and they often change without the review that code gets.
-
Skills. These are folders of instructions and scripts that an agent loads as needed, and they rarely appear in any inventory.
-
MCP servers. These connect the agent to the repo, the CI pipeline, and the ticketing system, often with broad credentials.
-
The agent runtime. The agent's CLI or IDE extension runs on developer machines and CI runners, and it often updates itself.
-
Packages the agent adds. These do land in the SBOM, but nobody may have chosen them. Models sometimes suggest packages that don't exist, and attackers register those names.
-
The model provider. Depending on how the agent works, source code and repository context may be sent to it. Its data handling, retention, and training use need the same review as any other vendor's.
Most payment companies don't train their own models. For many of them, the development pipeline is one of the most direct paths from AI to the CDE.
What can go wrong: two real examples
In September 2025, Koi Security reported what it called the first malicious MCP server seen in the wild. The npm package postmark-mcp published 15 clean versions, then version 1.0.16 added a line that BCC'd every outgoing email to the attacker.
If a similar package sat between your coding agent and your payment repo, could your inventory show which machines and pipelines loaded the bad version, and when?
Skills carry the same risk. Snyk's ToxicSkills research (February 2026) scanned 3,984 public agent skills and found:
-
534 (13.4%) with at least one critical security issue
-
76 with confirmed malicious payloads, such as credential theft and backdoors
-
91% of those malicious skills also using prompt injection
Why pinning a version isn't enough
Snyk also found a popular skill that downloads its instructions again every time it runs. The version number stays the same, but what the skill does can change at any time.
A hash only proves the files you reviewed haven't changed. For each skill, you also need to know whether it can fetch content at runtime, and whether anything blocks that.
What to record in your AI-BOM
In May 2026, CISA and its G7 partners released SBOM for AI: Minimum Elements, which lists about 50 fields. For PCI, focus on the ones that answer six questions:
-
What is it? Name, supplier, version (or dated model snapshot), and a hash. An alias like "latest" doesn't count.
-
Where did it come from? A source repository pinned to a specific commit.
-
Where does it run? Developer machines, CI runners, or a provider's API.
-
What can it reach? Repositories, pipelines, secrets, and any system in or connected to the CDE.
-
What does it see and keep? Source code, prompts, logs, retention, and whether the provider trains on your data.
-
Who owns it? One named person, plus the actions that need human approval.
Two more fields are worth adding for coding agents:
-
The tools each MCP server exposes. Editing a tool's description can change agent behavior without any code change.
-
Where instruction files live. Keep them under the same review rules as code, so the commit history gives you change records for 6.5.1.
Check each agent for the "lethal trifecta"
The PCI SSC supplement advises against giving one AI system sensitive data access, external communication, and untrusted input at the same time. Simon Willison calls this combination the "lethal trifecta," because it lets a prompt injection send data outside the organization.
You can screen for it with three yes/no columns in your AI-BOM. It flags agents for a closer look, but it doesn't replace reviewing the actual architecture and controls.
| Agent | Sensitive access | Talks externally | Untrusted input | Suggested action |
|---|---|---|---|---|
| Coding agent with web access | Yes | Yes | Yes | Restrict permissions, separate trust boundaries, and require approval for sensitive actions |
| Internal code review bot | Yes | No | Yes | Validate isolation and permissions, log activity, and review outputs |
| Public docs assistant | No | Yes | Yes | Confirm it has no access to sensitive data or the CDE |
Next steps
-
Find every coding agent with access to your payment app's repos and pipelines.
-
Add each agent's model, skills, and MCP servers to your inventory with a hash or dated snapshot.
-
Restrict or block skills from fetching instructions at runtime, and review any that must.
-
Add the trifecta columns and review any agent with all three.
-
Assign one owner per agent and document the scope decision.
Over time, keep agent configurations in version control and generate the AI-BOM from them. An inventory built from the real configuration stays current, while one assembled right before an assessment usually doesn't.