# Amazon Ergo: the security you give up when you self-host an open coding model

> Amazon's first open-weights model, Ergo, is built to run coding agents. What it is, what Amazon says about its safety, and what you own when you host it yourself.

- Published: 2026-12-02
- Topics: AI security, AI coding agents, Model supply chain
- Canonical page: https://thesecguy.com/notes/amazon-ergo-open-weight-coding-model-security/
- Publisher: The Sec Guy (https://thesecguy.com)

**Short answer:** Amazon released Ergo on 1 December 2026, an open-weights model for coding agents with 1.1 trillion parameters, free to download and run. On Amazon Bedrock it comes with zero data retention, no operator access and optional Guardrails. Download the weights and run them yourself, and Amazon says the safeguards, the runtime controls and the runtime data become your job. Before you plug it into a coding agent, sandbox the agent, cut its permissions, pin the exact files you downloaded and review every change it makes.

---

Amazon released Ergo on 1 December 2026, its first open-weights model, and it is built to run coding agents. On Amazon Bedrock, Amazon keeps a set of protections around it. If you download the weights and run them on your own servers, Amazon says that protecting the deployment becomes your job.

That trade is the part builders should think about before the benchmarks. This note covers what Ergo is, what Amazon says it tested, and what to put in place if you self-host it.

## What Amazon released

Ergo comes from Amazon Frontier Model Research. Amazon's launch post calls it "a fast, cost-effective frontier open-weights model for software engineering and agentic workflows." It is a mixture-of-experts model: each token goes through a small part of the network, so it has 1.1 trillion parameters in total and uses 55 billion of them per token.

<figure class="fig">
<p class="fig-k">Amazon Ergo in four numbers</p>
<div class="tiles">
<div class="tile hot"><b>1.1T</b><span>parameters in total</span><small>55B used per token</small></div>
<div class="tile"><b>1M</b><span>token context window</span><small>128K tokens of output</small></div>
<div class="tile"><b>626 GB</b><span>smallest download</span><small>MXFP4 files on Hugging Face</small></div>
<div class="tile"><b>$1 / $3</b><span>per million tokens on Bedrock</span><small>input / output</small></div>
</div>
<figcaption>Sources: Amazon's launch post and the Amazon-FMR/Ergo model card on Hugging Face, read 2 December 2026.</figcaption>
</figure>

You can use it three ways. On Bedrock, Amazon says it runs at "over 400 output tokens per second" on its Trainium3 chips. On Hugging Face you can download the weights and serve them with SGLang or vLLM. Amazon also says it "works with Claude Code, Codex, OpenCode, and Kiro," so it can slot in behind a coding agent you already use. The license is the Amazon Ergo Open-Weights License: free of charge, and you may run, fine-tune, modify and redistribute the model as long as you follow Amazon's acceptable use policy.

Amazon's AWS chips vice president Ron Diamant told Reuters there is "a miss in the market where there's no American company with the reputation of Amazon" releasing open weights. Reuters notes that Chinese companies lead this space today.

## How it scores, and where it falls short

Most of the benchmark table compares Ergo with other open-weights models. On Amazon's own internal software test, AI SWE, it leads them, and it trails the current closed models.

<figure class="fig">
<p class="fig-k">AI SWE (FMR-Bench, Amazon's internal test), pass@1</p>
<div class="hbars">
<div class="hbar"><em>Opus 5.5 (closed)</em><div class="track"><i style="width:85.3%"></i></div><b>85.3</b></div>
<div class="hbar"><em>GPT-6 Astra (closed)</em><div class="track"><i style="width:80.8%"></i></div><b>80.8</b></div>
<div class="hbar hot"><em>Ergo (open)</em><div class="track"><i style="width:65.4%"></i></div><b>65.4</b></div>
<div class="hbar"><em>Kimi K3.1 Pro (open)</em><div class="track"><i style="width:58.6%"></i></div><b>58.6</b></div>
<div class="hbar"><em>GPT-5.5 (closed, previous)</em><div class="track"><i style="width:55.3%"></i></div><b>55.3</b></div>
</div>
<figcaption>Source: Amazon's launch post, 1 December 2026. Amazon ran this test on its own held-out tasks; it is not a public benchmark.</figcaption>
</figure>

The model card lists limits that matter for code review. Ergo's first-attempt accuracy "trails the strongest closed models," so Amazon recommends agents verify their own changes. It can produce output that is confident and wrong, and the card says changes should be reviewed before merging. It is text only, so it cannot read a screenshot or a diagram.

## What Amazon says it tested

Amazon's launch post opens its safety section with a line every agent builder should keep in mind: "an agent that can run commands can also delete files or expose credentials."

Amazon says it tested Ergo for harmful content, agent behavior and privacy. In sandboxed agent scenarios it checked that the model "stops and asks before a dangerous action." It says Ergo is "trained to be resistant to malicious instructions planted in the content it reads," which is indirect prompt injection: an order hidden in a file, web page or issue that the agent reads while working. Outside firms also evaluated it under Amazon's Frontier Model Safety Framework, covering offensive cyber operations, CBRN capabilities, loss of control and harmful manipulation.

Resistant means harder to fool. OWASP's entry on prompt injection says "it is unclear if there are fool-proof methods of prevention" for it, because of how these models work. So the protections around the agent still decide how much damage one planted instruction can do.

## Bedrock or self-hosted: who owns what

This is the line in Amazon's post that changes your threat model: "customers who fine-tune or self-host Ergo are responsible for evaluating and safeguarding their own deployments, including protecting their own runtime data, and applying appropriate runtime controls."

<figure class="fig">
<p class="fig-k">The same model, two ways to run it</p>
<div class="flow">
<div class="node"><b>On Amazon Bedrock</b><span>Amazon says prompts and outputs are not stored or used for training, and the model runs on the Nitro System with zero operator access</span><div class="chips"><i class="chip">zero data retention</i><i class="chip">Guardrails, optional</i></div></div>
<div class="node"><b>Self-hosted from Hugging Face</b><span>You download the files, run the server and keep the logs. Amazon says evaluating and safeguarding the deployment is yours</span><div class="chips"><i class="chip">your sandbox</i><i class="chip">your logs</i><i class="chip">your patching</i></div></div>
<div class="node"><b>Either way: the agent</b><span>The coding tool that runs Ergo holds your repo, shell and keys. That part was always yours</span><div class="chips"><i class="chip">permissions</i><i class="chip">review</i></div></div>
</div>
<figcaption>Our layout of Amazon's statements in the Ergo launch post, 1 December 2026.</figcaption>
</figure>

Self-hosting has a real privacy upside: your prompts stay on your own network. The cost is that the record of every prompt, file and secret the agent sees now sits on your servers, and you have to protect it. Agent records can hold secrets: in the [Cursor breach](https://thesecguy.com/notes/cursor-breach-vendor-key-backdoored-extension/), stored agent traces held credentials that an attacker then used.

## What to check before you plug Ergo into an agent

1. **Download from the right place, and pin it.** Ergo's repository is `Amazon-FMR/Ergo`, published as safetensors, a format that holds numbers and no code to run. Check the publisher name exactly, because a name can change hands. Unit 42 recommends pinning "to a specific commit using the revision parameter". Our note on [what is in a model file](https://thesecguy.com/notes/model-weights-quantization-distillation-supply-chain/) covers these attacks in detail.
2. **Treat the serving stack as software you own.** vLLM, SGLang and the container around them need patching and should not be reachable from the internet. Decide who can call it.
3. **Box in the agent.** Run it in a container or VM with no cloud keys, no SSH keys and no production access. Give it the repository and nothing else. OWASP's advice for prompt injection starts with least privilege.
4. **Keep a human on anything that writes, deletes or sends.** Amazon tested that Ergo stops before dangerous actions in its own sandbox. Your agent tool should enforce the same with approval prompts, whatever the model does.
5. **Protect the logs.** Prompts, tool calls and outputs land on your disks. Set who can read them and how long you keep them, and scan them for secrets.
6. **Review every change before it merges.** That's Amazon's own advice on the model card. Run your tests and security scans on agent-written code the same way you would for a new hire's first pull request.

If you are learning to build and attack systems like this, our [AI Security Engineer course](https://thesecguy.com/course/ai-security-engineer/) covers agent permissions and prompt injection with hands-on labs.

## Sources

Each page below was opened on 2 December 2026.

- Amazon, "Introducing Amazon Ergo", 1 December 2026: [aboutamazon.com](https://www.aboutamazon.com/amazon-ergo)
- Amazon Frontier Model Research, Ergo model card: [huggingface.co](https://huggingface.co/Amazon-FMR/Ergo)
- Reuters, via The Korea Times, "Amazon unveils new open-weight AI model, faster chip at annual conference", 2 December 2026: [koreatimes.co.kr](https://www.koreatimes.co.kr/world/20261202/amazon-unveils-new-open-weight-ai-model-faster-chip-at-annual-conference)
- TechCrunch, "Amazon releases its first open-weight model, Ergo", 1 December 2026: [techcrunch.com](https://techcrunch.com/2026/12/01/amazon-releases-its-first-open-weight-model-ergo-to-protect-enterprise-exhaust/)
- OWASP GenAI Security Project, "LLM01: Prompt Injection": [genai.owasp.org](https://genai.owasp.org/llmrisk/llm01-prompt-injection/)
- Palo Alto Networks Unit 42, "Model Namespace Reuse", 3 September 2025: [unit42.paloaltonetworks.com](https://unit42.paloaltonetworks.com/model-namespace-reuse/)
