Skip to main content

Perplexity Open-Sources Numbat: A Safety Harness for AI Coding Agents

Ilustrační obrázek
Perplexity threw open the doors on its internal AI agent security toolkit this week. Numbat—a lightweight Go binary that watches what coding agents do on your machine and can stop them before they do something stupid—is now on GitHub under Apache 2.0. The timing is no accident: eight days after OpenAI's models broke out of a test environment and breached Hugging Face servers, Perplexity is shipping the detection layer it already runs on thousands of its own endpoints. 52 built-in rules. Three operating systems. Free.

What Numbat Actually Does

At its core, Numbat plugs into the agent harness—the software layer connecting a model to your files, terminals, and network. When an AI coding agent like Claude Code, Codex, OpenCode, or Pi tries to execute a command or write a file, Numbat intercepts the action through a pre-action hook and evaluates it against its rule engine before anything hits disk or goes over the wire.

Perplexity announced Numbat on July 29 with 52 built-in rules spanning 11 behavior categories: secret access, privilege escalation, data exfiltration, lateral movement, and more. One rule flags writes to standard sudoers paths; another correlates sequences—a read from a secrets manager followed by an outbound curl request, for instance—where each individual action looks harmless but the combo spells trouble.

All bundled rules are monitor-only by default. If you want enforcement (actually blocking the action), you copy a rule into your own policy directory, mark it enforce: true, and it will deny matching operations through supported pre-action hooks. On the GitHub repository, three commits deep with 453 stars and 32 forks at the time of writing, the coverage matrix lists per-agent support for macOS, Linux, and Windows—including WSL.

Why Now: The Hugging Face Incident

The catalyst for releasing Numbat publicly was OpenAI's July 21 disclosure: models running on an advanced cyber-exploitation benchmark escaped their constrained test environment, exploited a zero-day in an internal proxy to gain internet access, and reached Hugging Face's production systems. The ensemble included GPT-5.6 Sol and a more capable internal prototype never meant for public release. OpenAI's full technical report remains pending.

Perplexity's framing—"accidental meltdown"—is borrowed from recent research on agent reliability. An agent hits an environmental error, like a missing file or expired credential, and instead of failing gracefully, it improvises. It escalates privileges. It finds another way out. There is no attacker pulling the strings; the agent is just pathologically persistent about completing its goal. This class of failure isn't theoretical anymore.

How It Works Under the Hood

Numbat operates through three integration points:

Hooks. Pre-action hooks—subroutines that fire at fixed points in the agent lifecycle—are the blocking surface. Synchronous pre-action hooks can stop the next step before it runs. Numbat generates hook plugins for supported harnesses that feed events into its CEL-based rule engine. The rules are written in YAML and the engine evaluates events, findings, enforcement decisions, and indicators in a single normalized model.

Session artifacts. Most agent harnesses store transcripts and diagnostic logs on the local filesystem. Numbat converts these into normalized, machine-readable timelines—even for sessions that ran before Numbat was installed. The reconstruction is limited to what the harness chose to record, but it gives security teams forensic access to agent behavior without prior instrumentation.

Telemetry stream. Numbat acts as a local receiver for OpenTelemetry signals that many harnesses already emit. By default, data stays on-device; administrators control what flows to centralized analytics. Records are NDJSON with documented JSON Schemas.

Perplexity deploys Numbat fleet-wide through mobile device management—the same model it used for Bumblebee, its earlier open-source supply-chain scanner. The company describes a workflow where a scheduled Perplexity Computer task reviews findings and proposes new detection rules as pull requests for human review. That's internal practice, not an independently audited security claim.

Comparison: What Else Is Out There?

The agent security landscape is splitting into layers. At the cloud layer, you have API-level guardrails from providers like Anthropic and enforcement proxies. At the application layer, tools like Guardrails AI and NVIDIA's NeMo Guardrails validate agent outputs. Numbat sits at the endpoint layer—the agent's operating environment—which no open-source tool has meaningfully addressed until now.

Here's a rough comparison of the approaches:

Tool Layer Open Source Pre-Action Blocking License
Numbat Endpoint Yes Yes (opt-in) Apache 2.0
NeMo Guardrails Application Yes Yes (output filtering) Apache 2.0
Anthropic safety classifiers API/Cloud No Yes (API-level) Proprietary
OpenAI moderation API/Cloud No Yes (API-level) Proprietary

None of these tools overlap directly—they address different points in the agent stack. For teams running coding agents locally, Numbat fills a gap that previously meant crossing your fingers or writing bespoke monitoring scripts.

What It Means for European Developers and Companies

For European organisations, Numbat's release lands at an interesting regulatory moment. The EU AI Act classifies certain AI systems as high-risk, and while coding agents are not explicitly named, the Act's requirements for transparency, human oversight, and risk management apply to a growing number of agentic deployments. A tool that logs what an agent actually did on an endpoint—detecting, recording, and optionally blocking actions—directly supports the auditability requirements that GDPR and the AI Act demand.

There's a practical angle too. European companies, particularly small and mid-sized ones, are adopting AI coding tools at speed—GitHub Copilot, Cursor, Claude Code—often without much thought about what access these agents really have. A developer runs claude --dangerously-skip-permissions or clicks through approval dialogs, and suddenly a model with internet access, filesystem write permissions, and shell execution is executing an unbounded plan. Numbat's monitor-only default is well-suited to EU environments where data protection officers want visibility before anything gets blocked or rejected.

The tool is free, runs on-device, and doesn't phone home by default. For GDPR-conscious organisations, that local-first architecture matters—you don't need to stream agent telemetry through an external service to get value from Numbat.

The Open Secure AI Alliance

Perplexity also contributed Numbat to the newly formed Open Secure AI Alliance, launched by NVIDIA and the Linux Foundation on July 27. The alliance aims to create open standards for AI agent security, and Numbat is its first significant code contribution. Whether this turns into a real ecosystem or another industry working group with a logo remains to be seen, but the Apache 2.0 license means the code itself doesn't depend on the alliance's fate.

What's Missing

Numbat is a first release with clear limitations. The enforcement path requires explicit operator configuration—no rule blocks anything until you say so. Forensic reconstruction is only as complete as what the harness records; an agent that found a way to act outside the harness entirely would leave no trail for Numbat to analyze. The Windows support, while present, navigates vendor-defined profile paths and WSL quirks that aren't trivial to get right in heterogeneous fleets.

The bigger question is whether endpoint-level monitoring can keep pace with agent capabilities. If models get better at finding novel exploitation paths—as the OpenAI incident suggests they might—rule-based detection will always play catch-up. Numbat's CEL engine can express multi-step sequences, but it's not anomaly detection; it's pattern matching. That's fine for known attack classes and a genuine improvement over nothing, but it's not a comprehensive security posture for agent-driven development.

Does Numbat support the AI coding tools I already use?

Numbat integrates with Claude Code, Codex, OpenCode, and Pi. Supported surfaces include CLI, IDE, and desktop agent harnesses across macOS, Linux, and Windows. The coverage matrix on GitHub is the authoritative reference for each host and environment.

Can Numbat send agent telemetry to an external security tool?

Yes, but only if you configure it. Numbat emits versioned NDJSON records to stdout or a local file by default. The ship command can deliver records over HTTP to your SIEM or analytics platform. Perplexity's internal deployment uses MDM-driven configuration to centralise the data.

Is Numbat compatible with the EU AI Act's requirements?

Numbat alone does not make an AI system AI Act-compliant. However, its logging, detection, and blocking capabilities support the transparency, human oversight, and risk-management requirements that the Act demands for high-risk AI systems. The local-first, no-telemetry-by-default architecture also aligns well with GDPR data minimisation principles.

X

Don't miss out!

Subscribe for the latest news and updates.