Edge Connector

Edge Connector

Local AI agent security enforcement for Linux edge devices, with optional Fleet escalation over MQTT.

Preview. The Edge Connector is a C engine for Linux edge devices. It checks an agent's tool calls on the device with local rules and content inspection. When local rules cannot decide, it asks a DefenseClaw Fleet gateway over MQTT. It works with no network at all for the local checks.

When to use it instead of a desktop connector

Use a connector for desktop coding agents such as Claude Code, Codex and Cursor. Those assume a reliable network, plenty of memory and a person at the keyboard. Use the Edge Connector when the agent runs on a small device, the network comes and goes, or a bad tool call causes a physical action.

What it does

  • Detects secrets, PII, credentials, exfiltration, prompt injection and dangerous commands in tool arguments and LLM responses.
  • Blocks requests to private ranges and cloud metadata addresses, and allows network destinations only from a public-IP allowlist.
  • Tracks multi-step capability patterns, for example fetch from the network then run a shell command.
  • Applies fixed rate limits: 60 tool calls, 30 network requests and 10 physical actions (a motor, a relay) per minute.
  • Keeps an audit ring in which each record carries a keyed hash (HMAC) of the record before it, so a changed or deleted record is visible.
  • Takes signed policy updates over MQTT, with a rollback canary on each device (OTA policy updates).

Evaluation path

The engine runs seven checks in order and stops at the first local block. A cache hit avoids a new Fleet request, but the earlier local checks still run.

cache miss
Validate inputname, hash, session
Rate limit3 token buckets
Scan contentsecrets, PII, injection
Check destinationSSRF and allowlist
Match sequencesrisky multi-step patterns
Verdict cacheby tool hash
Ask FleetMQTT 3.1.1

List view for small screens. Use the expand button to open the drawing.

  1. 1.Validate inputname, hash, session
    • Rate limit
  2. 2.Rate limit3 token buckets
    • Scan content
  3. 3.Scan contentsecrets, PII, injection
    • Check destination
  4. 4.Check destinationSSRF and allowlist
    • Match sequences
  5. 5.Match sequencesrisky multi-step patterns
    • Verdict cache
  6. 6.Verdict cacheby tool hash
    • cache missAsk Fleet
  7. 7.Ask FleetMQTT 3.1.1
The seven checks of one tool call, in order. Checks 1 to 5 are local and any of them can block. A Fleet verdict from check 6 or 7 decides what the local checks leave open.
Text version of this diagram
  1. Validate input: name, hash, session (component)
    • to Rate limit
  2. Rate limit: 3 token buckets (component)
    • to Scan content
  3. Scan content: secrets, PII, injection (component). Runs when the call carries content. Not in the MINIMAL build.
    • to Check destination
  4. Check destination: SSRF and allowlist (component). Runs for network capabilities only.
    • to Match sequences
  5. Match sequences: risky multi-step patterns (component)
    • to Verdict cache
  6. Verdict cache: by tool hash (data store)
    • cache miss to Ask Fleet
  7. Ask Fleet: MQTT 3.1.1 (gateway). Not in the MINIMAL build.

The result is ALLOW, BLOCK, WARN or PENDING. The Fleet gateway decides by tool hash and blocks an unknown hash by default. Architecture describes each check.

Build profiles

Pick a profile when you build: MINIMAL (no MQTT, no content scan, for a device with no Fleet), STANDARD (most edge devices) or EDGE (edge gateways, adds a bloom filter). Build profiles compares every setting. Measure size, memory and latency on your own target; TLS libraries and compiler flags change them.

Next steps