Building an MCP agent-security runtime on AMD, MI300X to Radeon to SEV-SNP

, , ,

What it is

I built a runtime security layer for AI agents, and every stage ran on AMD hardware: corpus generation, runtime inference, and the hardware root of trust. Posting the engineering here rather than the product side, since this is the forum where the stack details are the point.

Vaara is a proxy that sits in front of MCP servers, the tool layer most agents now call. It scores each tool call before it executes and signs a receipt of what actually ran. Everything below is about how AMD silicon does that work.

Corpus generation on MI300X

The corpus came off an MI300X on AMD Developer Cloud, under the rocm/vllm container. I served three open-weight models through vLLM: Qwen2.5-72B-Instruct, Mixtral-8x7B at FP16, and Llama-3.3-70B with FP8-dynamic quantization, which fit the 70B onto a single MI300X at around 70 GB. From those I generated a few thousand adversarial and matched-benign variants across eight attack categories, among them prompt injection, keylogging, ransomware, denial of service, and traffic analysis. One practical ROCm note for anyone doing the same: AWQ quantization would not run on ROCm through vLLM in my setup, so FP8-dynamic was the path that fit and served the 70B on one card.

Local inference on Radeon

The classifier that comes out of the corpus is small. It runs local inference on a Radeon 6900XT with no cloud call in the hot path. The division of labor maps onto AMD’s range: Instinct for the heavy generation, a client Radeon for the per-call runtime scoring. The component deciding whether an agent’s action is safe never has to leave the machine.

Hardware root of trust on SEV-SNP

The evidence side binds to AMD SEV-SNP. The receipt envelope writes SHA-512 of its canonical-CBOR form into REPORT_DATA, and the report’s ECDSA P-384 signature is checked against the AMD VCEK. Full chain validation up to ARK through AMD KDS is the part still being wired in. The payoff is that a receipt produced inside a SEV-SNP confidential VM ties back to the measured machine, so the record roots in the CPU rather than in a software key a host could mint after the fact. This hook is experimental, and I expect someone who works with SEV-SNP attestation daily will spot gaps in the verifier path faster than I have.

The economics side

Running a safety check on every tool call costs compute, so the runtime exposes operating points instead of one fixed setting. There are three presets, eco, balanced, and performance, built in the spirit of a CPU or GPU power profile. They trade detection thoroughness against latency and cycles per call. That makes the control tunable: you choose how much compute the safety layer spends per decision against your risk tolerance, on the same hardware. On AMD silicon that is a direct perf-per-watt question, with the eco point holding runtime overhead low and the performance point spending more per call when the stakes justify it. I will give this its own follow-up, because cost-per-decision is usually the number that decides whether a control like this gets deployed at all.

If you have run vLLM on MI300X, done local inference on Radeon, or built a SEV-SNP verifier, I have direct questions. On the MI300X side, how are you fitting a 70B on one card without falling back to AWQ? On SEV-SNP, what does your verifier path up to ARK actually look like in production? Those two are where I most want to be told I am wrong.

2 Likes

Hi, I’ve heard people having some trouble getting AWQ to run on AMD hardware lately, so sticking with FP8 makes sense since the MI300X natively supports it anyway. I’m really curious about your SEV-SNP setup, though. Since calling the AMD KDS API live can cause huge latency spikes, are you caching those VCEK certificates locally to keep your performance preset fast, or did you find another way around it? Thanks for sharing

2 Likes

Good question, and it lands right on the honest gap. The performance preset doesn’t touch KDS at all. That hot path is the local classifier on the Radeon, scoring each tool call on-device, so there’s no attestation call per decision and nothing to cache. That’s what keeps it fast.

The SEV-SNP binding is the slower evidence path, and as I flagged it’s still being wired up. Right now I verify the report’s ECDSA P-384 signature against the VCEK, with the receipt’s SHA-512 in REPORT_DATA; full chain validation up to ARK isn’t in yet. When it is, I’ll cache VCEK keyed on chip ID plus the reported TCB version, refresh only on a TCB bump, and pin ASK/ARK once. VCEK is stable per TCB and KDS rate-limits would make live-per-attestation a non-starter at throughput. I’m just not going to claim a production cache I haven’t finished, you’d see through it in one more question.

Hope this helps!

1 Like

Hi, thanks alot for your reply, this makes perfect sense.

1 Like