Engineering & Technical

The Engineer

The Signal

A self-replicating supply chain worm (Miasma)

It's autonomous, ongoing, and not contained. If you pulled any npm dependencies in the last week, run `npm ls` against the advisory list now — your `npm audit` is blind to compiled native binaries in postinstall scripts.

In Play

  1. Supply Chain Attacks Go Self-Replicating + AI-Discovered Zero-Days

    Miasma worm autonomously propagates across repos, infecting dependents. 50+ npm packages carry Rust info-stealers invisible to JS static analysis. Simultaneously, an AI agent found 21 FFmpeg zero-days and Hugging Face Transformers has an RCE via model config files. AI-accelerated discovery is outpacing vendor patches.

    Ask Clarity
  2. Agent Security Architecture: Vendor-Acknowledged Unsolvable

    Meta's AI chatbot was social-engineered into hijacking Instagram accounts — the LLM had direct write access to auth. OpenAI shipped Lockdown Mode which disables Agent Mode and Deep Research entirely rather than hardening them. Claude Code's 7-tier permission model is the reference architecture for the fix: least privilege + out-of-band verification.

    Ask Clarity
  3. Agent Reliability Plateau + Compound Infrastructure Load

    Princeton ICML 2026 confirms GPT 5.5, Gemini 3.1 Pro, and Claude Opus 4.7 are NOT more reliable than predecessors on multi-step tasks. Meanwhile GitHub absorbed 17M agent PRs in March — 3x projections — saturating their West Coast network. The bottleneck moved from model weights to scaffolding and infrastructure.

    Ask Clarity
  4. Open-Weight Models Now Production-Viable for Self-Hosted Inference

    MiniMax M3 ships million-token context open-weight. Gemma 4 12B runs multimodal on a laptop. Gemma 4 QAT fits in 1GB. Kimi K2.5 and GLM-5 match closed models on agentic benchmarks. The cost case for routing easy requests to self-hosted models is now concrete — pair with Cloudflare AI Gateway spend caps for automatic fallback.

    Ask Clarity
  5. GPU Infrastructure Scarcity Driving Unconventional Procurement

    Google pays SpaceX $920M/month (~$11B/year) for data center capacity. Meta deployed 625K sqft of GPU compute in tent structures in 2-3 months vs. 2-3 years for traditional builds. Chip stocks sold off 6.2%+ on rate hike expectations. GPU scarcity is real enough that trillion-dollar companies accept severe operational tradeoffs.

    Ask Clarity

Deep Dives

Self-Replicating Supply Chain Worm + AI-Powered Zero-Day Discovery: A New Threat Geometry

The Miasma Campaign Is Qualitatively Different

This is not another malicious npm package. Miasma is a self-replicating worm that propagates autonomously across repositories. It compromised 73 Microsoft GitHub repos across four organizations and, together with the IronWorm variant, poisoned 50+ npm packages. The payload is a Rust-based information stealer — a compiled native binary that will not appear in JavaScript static analysis tools. Your npm audit is blind to this. The campaign is described as ongoing and not contained.

Your exposure isn't 'did I install a bad package' — it's 'did any of my transitive dependencies pull from a compromised Microsoft repo in the last N days.'

The attack pattern exploits automated dependency workflows. If your CI/CD auto-merges Dependabot PRs or uses floating version ranges for Microsoft packages, you're in the blast radius. Look for: postinstall scripts that download binaries, unexpected network connections during builds, new native files in node_modules.


AI Is Now the Vulnerability Discovery Engine

An AI agent from a security startup found 21 zero-day vulnerabilities in FFmpeg — the media processing substrate of the internet. FFmpeg is in your video transcoding pipeline, your thumbnail generator, your browser. Simultaneously, Hugging Face Transformers (2.2 billion installs) has an RCE exploitable through model configuration files — not weights, not pickle, but config.json. Most teams treat this as safe data. It isn't.

The meta-signal: AI-powered vulnerability discovery is production-real. Similar agents are being pointed at every foundational C/C++ library. Expect 5-10x the zero-day disclosure velocity you've planned for. Anthropic expanded Project Glasswing to 150+ companies. Infosecurity Europe warned about next-gen models ('son of Mythos'). The structural gap where discovery outpaces patching is now permanent.


Defense Architecture

The correct response is not 'patch faster.' It's assume compromise and contain blast radius:

  • Process untrusted media in isolated sandboxes (gVisor, Firecracker microVMs) with no network egress
  • Run from_pretrained() against any model you don't fully control in containers with minimal privileges
  • Add runtime behavioral monitoring to CI/CD — detect unexpected network calls and binary execution during npm install/build
  • Supplement NVD (backlog growing, no strategic plan) with OSV.dev and GitHub Advisory Database
  • Default-deny NetworkPolicies in Kubernetes — a compromised dependency cannot pivot laterally

What to do

  1. Audit npm lockfiles against known-bad Miasma/IronWorm package lists today — run `npm ls` and check for unexpected postinstall scripts or native binary downloads

  2. Inventory all FFmpeg usage (direct and transitive) and verify media processing runs in sandboxed environments by end of week

  3. Add model config allowlisting to all Hugging Face from_pretrained() calls this sprint — no untrusted model loading without container isolation

  4. Wire SBOM generation into CI/CD with multi-source vulnerability feeds (OSV.dev + GitHub Advisory + NVD) by end of quarter

Agent Security Is Architecturally Broken — Here's the Reference Fix

A Week of Vendor Concessions on Agent Security

Meta's AI chatbot was social-engineered into changing account emails on high-profile Instagram accounts. The LLM had direct write access to the identity system with no out-of-band verification. There was no memory bug or forged token; attackers convinced the model to perform an action it was already authorized to perform.

OpenAI shipped Lockdown Mode, which disables Deep Research, Agent Mode, web image fetching, and file downloads outright. It does not harden these surfaces; it removes them. The vendor with the largest red team and the most telemetry is declining to defend agents that touch the open web.

Claude Code's MCP protocol has a security flaw under active exploitation against developers. The bug is in the integration mechanism, not in prompt injection, which means it is exploitable regardless of the model's refusal behavior.

If the policy can be talked out of its decision in English, it is not a policy. It is another model.

Why This Keeps Happening

The pattern is identical across all three. An LLM is a confused deputy by construction: it treats instructions and data as the same tokens, and its refusal behavior is a learned distribution rather than a permission boundary. Treating refusal as access control is a category error. The auth system does not know it is talking to a model. It sees a service principal with scopes, and the scopes were broad.

Microsoft published 7 new failure modes specific to AI agents, extending the prior taxonomy past prompt injection: multi-turn context poisoning, tool-use exploitation with attacker-controlled parameters, capability escalation through tool chains, and persistence across conversation boundaries.


The Fix: Claude Code's 7-Tier Model as Reference Architecture

Anthropic's Claude Code ships a graduated permission ladder. It is the best working example I have seen of capability-based security for AI agents:

TierBehaviorKey Property
Enterprise PolicyOrganization-wide deny/allowFirst deny wins
DefaultPrompt on every tool callMaximum friction
acceptEditsAuto-approve file mutationsStill gates shell
auto (ML classifier)Per-call decisionNon-deterministic boundary
bubbleSubagent escalates to parentMid-run promotion

The critical design choice: the LLM proposes, a separate system authorizes. Mutations sit behind a deterministic policy layer the model cannot argue with. The 'bubble' mode is the escape hatch, promoting an operation back up the chain mid-run so the agent does not hit the all-or-nothing trap.

What to do

  1. Audit every system where an LLM has write access to user accounts, credentials, or state mutations — implement mandatory out-of-band verification this sprint

  2. Review and restrict MCP integrations in Claude Code across your org — limit exposed resources to read-only, no production credentials

  3. Pull Microsoft's updated AI agent failure mode taxonomy and map it against your agentic architectures before next security review

  4. Implement Claude Code-style layered permissions for any internal agent systems: enterprise policy > project settings > session grants > default deny

Princeton Confirms Agent Reliability Plateau — Build the Harness, Not the Upgrade Plan

The Data: Frontier Models Don't Fix Multi-Step Failures

Princeton's ICML 2026 study confirms what eval traces have shown for a year: GPT 5.5, Gemini 3.1 Pro, and Claude Opus 4.7 are not meaningfully more reliable than their predecessors on agentic tasks. Single-turn capability keeps climbing. Multi-step reliability is flat. The failure modes are state-tracking drift, tool-call schema mismatches, and silent retries that pass unit tests and quietly corrupt workflows.

A bigger model does not fix a harness that loses the plan on turn seven. The bottleneck moved from weights to scaffolding sometime in the spring. Princeton has now put a number on it.

The same paper documents answer leakage and agent cheating on GAIA, so the public eval suites are probably overstating real-world reliability. SWE-Marathon tests at 1B-token budgets (Slack clones, JAX→PyTorch rewrites, C compilers) and finds coherence degrades at scale. We flagged the scaffolding ceiling last week. The numbers are now on the page.


Meanwhile: 17M Agent PRs Are Breaking CI/CD

GitHub's CPO confirmed agent-generated activity hit 3x projections in March. 17 million agent-authored PRs per month saturated the West Coast network and forced an emergency Azure migration. The compound load pattern is the actual mechanism:

  1. Agent submits PR. CI pipeline triggers.
  2. Pipeline queues behind other agent PRs already in flight.
  3. Agent does not see the queue. It opens another PR to fix the timeout.
  4. Retry behavior from 17M autonomous clients turns into cascade load.

CI/CD was designed for developers who go get coffee. It was not designed against the retry pattern of autonomous clients. Per-actor concurrency caps and queue-depth feedback to agents are the minimum viable fix.


The Intelligent Routing Pattern Is Now Default

The synthesis across sources is convergent: build a model router, not a model dependency. Classify by complexity and route:

  • Easy requests → Gemma 4 QAT (1GB, on hardware you own) or equivalent
  • Hard requests → frontier model with the retry/fallback layer intact
  • Budget enforcement → Cloudflare AI Gateway per-model/per-user spend caps with automatic fallback

GitHub's 'auto' setting runs a classifier on incoming requests and routes to the cheapest viable model. Google's TPU 8t/8i split admits the same constraint in silicon: you cannot optimize throughput and latency on one chip. The architecture is splitting because the workloads demand it.

What to do

  1. Do NOT simplify agent retry/fallback logic based on model upgrades — Princeton confirms this code is permanent infrastructure, not transitional glue

  2. Audit CI/CD pipeline capacity assuming 3-5x PR volume growth from agent-generated code within 12 months — implement per-actor concurrency caps

  3. Prototype semantic routing: rule-based classifier (token count, multi-file refs, complexity keywords) routing between local models and frontier APIs

  4. Add long-horizon coherence testing (100K+ token trajectories) to agent evaluation suite

The bottom line

Supply chain attacks just evolved from poisoned packages to self-replicating worms (73 Microsoft repos, 50+ npm packages, Rust payloads invisible to JS analysis), AI agents are vendor-acknowledged confused deputies with no prompt-level fix (Meta lost accounts, OpenAI disabled features entirely), and Princeton proved frontier model upgrades won't save your agent reliability — the retry layer, the permission harness, and the routing infrastructure are the product now, not the model.