# Factory and Grok Build Ship Agent Skills to Migrate Code to Post-Quantum Crypto

> Source: <https://explainx.ai/blog/factory-grok-build-post-quantum-migration-agents-december-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog>
> Published: 2026-12-05 00:00:00+00:00

**Key takeaway:** Factory's migrate-post-quantum skill audits codebases, cloud config, dependencies and vendors into a cryptographic bill of materials, then opens pull requests per approved item without merging, with cited recall of 82%–90% on reference suites.

**Factory and Grok Build both shipped agent workflows in early December 2026 to inventory quantum-vulnerable cryptography and open migration pull requests, days after [NSA, CISA, and ONCD urged faster post-quantum upgrades](https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecurity-capabilities?ref=explainx).** Factory's **[migrate-post-quantum](https://github.com/Factory-AI/migrate-post-quantum?ref=explainx)** skill is **open source**; Grok Build's **[Post-Quantum Upgrade Project](https://grok.com/news/post-quantum-migration-with-grok-build?ref=explainx)** is a **product template** with **security-agent guardrails** and **optional credits**.

## What triggered the tooling wave

On **December 2, 2026**, the US government and **eight large tech firms** synchronized on **post-quantum cryptography (PQC)** messaging. explainx.ai documented the federal line — **no immediate widespread crisis**, still **accelerate migration** — in **[NSA, CISA, and ONCD coverage](https://explainx.ai/blog/nsa-cisa-oncd-post-quantum-cryptography-ai-december-2026)** and the **[OpenAI joint PQC statement](https://explainx.ai/blog/openai-p-bqp-proof-rumor-denied-shkreli-claimed-vs-verified-december-2026)** thread.

That week also brought **RSA panic headlines** and **[claimed-vs-verified lattice rumors](https://explainx.ai/blog/anthropic-post-quantum-encryption-announcement-claimed-vs-verified-november-2026)**. Agent vendors responded with **concrete inventory SKUs** instead of another blog pledge alone.

## Factory migrate-post-quantum: audit then PRs

Certificate scroll suggesting TLS and code-signing inventory work

Factory's **[December 3 news post](https://factory.com/news/migrate-post-quantum?ref=explainx)** frames the problem plainly: you cannot replace **RSA, elliptic curve, and Diffie-Hellman** uses you have not found. Those algorithms hide in **library defaults**, **config**, **certificates**, and **vendor appliances**.

The **`migrate-post-quantum`** skill on **[GitHub](https://github.com/Factory-AI/migrate-post-quantum?ref=explainx)** runs two modes:

1. **Audit (read-only)** — map**codebases, cloud config, dependencies, and vendors** across product, build, CI, corporate IT, and third-party tools; rank urgency; output a**cryptographic bill of materials (CBOM)** , questionnaires, and a remediation plan.
2. **Remediate** — for each approved item,**open a pull request** , keep**CI green** , respond to review, and**never merge** .

Factory documents install via:

```
npx skills add https://github.com/Factory-AI/migrate-post-quantum --skill migrate-post-quantum
```

The skill expects **evidence per finding** (file and line), a **lead agent validation pass** on top-ranked items, and explicit **gaps** for unscanned systems. **Hybrid transitions** keep old algorithms temporarily so clients do not break overnight.

### Limits Factory states openly

Factory lists four boundaries every buyer should paste into runbooks:

- No visibility into systems the agent cannot reach.
- No inspection inside most **vendor binaries** or**SaaS** without docs you supply.
- **No production key generation or rotation** by the agent — only human task templates.
- **No full-coverage guarantee** ; cited recall is**82%–90%** on reference suites in vendor tests.

That honesty matters next to **[Chrome ECDSA distrust timelines](https://explainx.ai/blog/chrome-distrust-ecdsa-p-256-ca-keys-march-15-2027-check-certificate-chain-december-2026)** and **[Trump executive order PQC deadlines](https://explainx.ai/blog/trump-quantum-computing-executive-orders-post-quantum-cryptography-2026)**: agents **start** migration; they do **not** sign audits.

## Grok Build: project template and downgrade detection

xAI's **[December 4 Grok Build post](https://grok.com/news/post-quantum-migration-with-grok-build?ref=explainx)** packages migration as a **coordinated project** rather than a one-shot chat:

1. **Post-Quantum Upgrade Project** — coordinator agent walks**six NSA-style actions** : inventory TLS/IPsec/SSH/certs/signing, move TLS 1.3 with hybrid KEX, stand up PQC CAs, reissue certs, update dependencies, triage blocked systems.
2. **Security Review** — flags PRs that**weaken** PQC (TLS downgrades, removed hybrid KEX, new classical-only paths).
3. **Vulnerability Remediation** —**full-repo** scans for legacy weak crypto, not only diffs.
4. **Forward-deployed engineers** — optional human help connecting cloud envs and kicking off audits.

**Eligible paid Teams and Enterprise** organizations receive a **one-time $1,000 Grok credit** when starting from the template, applied for **30 days** of model usage inside that project, then **metered** afterward.

Pair this with explainx.ai **[Grok for Builders](https://explainx.ai/blog/xai-grok-for-builders-ultra-access-program-december-2026)** if you need **API and agent access** beyond consumer tiers, and read **[Grok Build exposure lessons](https://explainx.ai/blog/grok-build-ghostshares-passive-dns-confidential-data-november-2026)** before connecting **production repos**.

## Factory versus Grok Build for your team

| Dimension | Factory migrate-post-quantum | Grok Build PQC project | 
|---|---|---|
| **License** | Open skill on GitHub | Commercial Grok Build template | 
| **Host** | Factory Droid or Agent Skills hosts | Grok Build cloud project | 
| **Outputs** | CBOM, vendor questionnaires, ranked report | Migration plan plus PRs in Grok workflow | 
| **Ongoing guard** | Re-audit after merges (skill design) | Security Review on future PRs | 
| **Cost hook** | Bring your own model spend | **$1,000** promo credit per org (eligible plans) | 

Neither replaces **[Anthropic's reported PQC engineering work](https://explainx.ai/blog/anthropic-post-quantum-encryption-announcement-claimed-vs-verified-november-2026)** or **[Cloudflare operator math](https://explainx.ai/blog/cloudflare-pq-still-safe-anthropic-lattice-galactic-algorithm-december-2026)**; they help **application teams** execute **inventory and PR churn**.

## Step-by-step: run a read-only audit this week

1. **Pick one non-production monorepo** with TLS clients, JWT libraries, and infra-as-code.
2. **Install Factory skill** or**start Grok PQC project** on a**sanitized clone** if secrets remain.
3. **Require evidence columns** in the report before sharing with security.
4. **Assign human owners** for merge, key rotation, and vendor mail — the agents only draft tasks.
5. **Cross-check** findings against**[CISA December 2 statement](https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecurity-capabilities?ref=explainx)** priorities:**firmware signing** ,**long-lived confidentiality** , and**agility** .

Security leads running **agentic CI** should add this beside **[PrismGuard signal tooling](https://explainx.ai/blog/prismguard-signals-not-verdicts-agent-runtime-protection-december-2026)** and **[decepticon red-team agents](https://explainx.ai/blog/decepticon-bittersecurity-autonomous-red-team-agent-github-december-2026)** — different layers, same December **crypto stress**.

## What searchers ask about post-quantum migration

**What is post-quantum cryptography migration?** Moving from classical public-key algorithms (RSA, elliptic curve families) to **[NIST PQC standards](https://www.nist.gov/cybersecurity?ref=explainx)** such as **ML-KEM** and **ML-DSA**, often via **hybrid** TLS and cert chains during transition.

**What is a post-quantum cryptography migration roadmap?** An ordered list of systems, owners, and dates — these agents output **draft roadmaps** from repo scans, not signed GRC documents.

**Is encryption broken today?** Per **December 2** US guidance summarized in our **[NSA-CISA post](https://explainx.ai/blog/nsa-cisa-oncd-post-quantum-cryptography-ai-december-2026)**, **not an immediate widespread break** — still **migrate faster**.

Teams adopting agents for **compliance-heavy** work benefit from **[structured AI training](https://explainx.ai/workshops/ai-builder)** so reviewers catch **hallucinated cipher names** before merge.

## Cryptographic bill of materials: what auditors want

A **CBOM** is the **inventory artifact** compliance teams export to **GRC tools**. Factory's skill emits a **machine-readable CBOM** plus a **human report** ranking **RSA**, **ECDH**, and **legacy DH** uses by **confidentiality lifetime** and **blast radius**. That mirrors **SBOM** practice after **Log4j**, but for **algorithms** instead of **packages**.

When you attach a CBOM to **vendor diligence**, insist on:

- **Evidence links** (file, line, config key) for**code-owned** findings.
- **"Unconfirmed vendor"** flags where the agent only read**marketing PDFs** .
- **Explicit scan gaps** (repos not cloned, cloud accounts not connected).

Grok Build's **project template** emphasizes **TLS 1.3**, **hybrid KEX**, and **weak curve** flags aligned with **NSA's December advisory language** on **RSA under 3072 bits** and **deprecated DH groups**.

## Hybrid migrations and outage avoidance

Both vendors describe **dual-algorithm** cutovers: **add PQC**, **keep classical** temporarily, **remove classical** only after **clients upgrade**. That is standard **TLS agility**, but agents accelerate the **tedious** steps — finding **hard-coded cipher suites**, **old JDK defaults**, and **internal mTLS** chains.

Do **not** let an agent **disable classical** in the same PR that **adds ML-KEM** unless **your client matrix** is proven. Factory explicitly keeps **both** during transition. Grok **Security Review** is meant to stop **later PRs** from **quietly downgrading** protections — treat it as **CI policy**, not **cosmetic lint**.

Cross-read **[Matthew Prince eight-lab warning](https://explainx.ai/blog/cloudflare-matthew-prince-rsa-elliptic-curve-eight-lab-pqc-warning-december-2026)** when **edge TLS** and **app repos** diverge.

## Who should run which tool first?

| Team profile | Start here | Why | 
|---|---|---|
| **OSS-heavy monorepo** | Factory skill on a **clone** | GitHub skill is **portable** across hosts | 
| **Grok-centric enterprise** | PQC **project template** | Built-in **coordinator** and**$1k** promo | 
| **Regulated vendor questionnaires** | Factory **audit-only** pass | CBOM + **vendor mail templates** | 
| **Continuous agentic CI** | Grok **Security Review** hooks | Blocks **future downgrades** | 

Neither tool removes **legal review** for **export-controlled** crypto implementations.

## December panic versus December checklists

Social feeds mixed **RSA price moves**, **P=BQP hoaxes**, and **real December 2 statements**. Our **[OpenAI Shkreli rumor post](https://explainx.ai/blog/openai-p-bqp-proof-rumor-denied-shkreli-claimed-vs-verified-december-2026)** separates **trading-terminal noise** from **vendor migration pledges**.

These **Factory** and **Grok Build** releases are **checklist enablers** in that calmer lane: they assume **NIST PQC** is the destination and **classical math** still works **today**, matching **[CIRG's public framing](https://explainx.ai/blog/cryptography-incident-review-group-cirg-21-cryptographers-november-2026)**.

## Failure modes to rehearse in a tabletop

1. **False positive flood** — agents flag**test fixtures** with**1024-bit RSA** ; triage before executive panic.
2. **Missed HSM paths** — no agent sees**hardware modules** without**vendor API** access.
3. **Over-automerged config** — humans must still**own merge** on**ingress controllers** .
4. **Credit cliff** — Grok**$1k** expires in**30 days** ; budget**follow-on tokens** .

Run the tabletop beside **[PrismGuard runtime signals](https://explainx.ai/blog/prismguard-signals-not-verdicts-agent-runtime-protection-december-2026)** so **security** and **platform** agents share one **risk register**.

## Agent Skills format and portability

Agent Skills-style library cards with one skill package highlighted

Factory documents **`migrate-post-quantum`** as an **[Agent Skills](https://agentskills.io/?ref=explainx)**-compatible package. That matters if you already run **Claude Code skills**, **Codex harnesses**, or **internal MCP hosts**: the **same audit playbook** can move without rewriting prompts. Grok Build instead **bundles** migration into a **managed project graph** — higher lock-in, faster **time-to-first-PR** for teams already on **grok.com**.

When evaluating portability, ask whether **your** CI can **re-run audits** on **every release branch** the way Factory describes **re-audit after merges**. One-shot audits age quickly when **dependabot** lands **weekly**.

## Mapping agent output to NIST migration phases

NIST's public PQC guidance frames migration as **discover**, **prioritize**, **implement**, and **decommission classical**. Factory's **audit report** maps cleanly to **discover/prioritize**; its **PR loop** covers **implement** for **repos you control**; **decommission** still needs **calendar-owned** key ceremonies. Grok's **six-step project** mirrors **NSA's December advisory bullets** (inventory, TLS 1.3, CAs, reissue, dependency updates, triage) — useful when **executives** ask for **checklist parity** with **government PDFs**.

Document **which step** each merged PR satisfies so **auditors** do not treat an **inventory CSV** as proof of **production cutover**.
