Vibeleaderboard
← All Intel
Intel / article

Ant and Tsinghua ship a five-layer runtime defense plugin for OpenClaw agents

Source
github.com
Author
Ant Open Source
Date

Context

AgentAegis is a security plugin that runs inside an OpenClaw agent and checks what the agent reads, remembers and executes at fixed points in its work, instead of depending only on instructions in the prompt to keep it safe. According to the announcement post from Ant Open Source, Ant Group's AI Security Lab and Tsinghua University released it, building on earlier work with the OpenClaw community to patch critical vulnerabilities. The post calls the plugin ClawAegis; the code repository uses the name AgentAegis.

The plugin attaches its checks to nine OpenClaw lifecycle hooks, points in an agent's run from startup to final output. Two examples show what that means in practice. An agent that keeps persistent memory in files such as MEMORY.md can be poisoned by a note that carries a hidden into every later session, so the memory guard rejects suspicious or oversized writes to those stores. An agent that reads web pages or command output can be redirected by text planted there, so the plugin treats tool results as untrusted input and scans them for prompt- and escalation patterns before they reach the next reasoning step. Other checks scan installed skills for payloads that try to bypass approval or disable safety controls, block high-risk commands and write-then-execute chains before a tool runs, and mask API keys and tokens in the agent's output.

Each defense has three modes: enforce blocks and logs, observe only logs, and off disables it. The documented default is enforce, but the repository's quick start suggests setting everything to observe first and promoting high-confidence defenses one at a time, which lets an operator see what would be blocked before it interrupts real work. Operators can also list protected files, skills and plugins, and a self-protection setting is meant to reduce the chance that the agent switches off its own defenses or rewrites the security configuration.

What the release does not show is how well the checks work. The repository includes demo videos of blocked attacks and cites an accompanying paper on OpenClaw threats, but its README reports no detection or false-positive rates. How often the rules catch real attacks, or block legitimate commands, is not established by the release itself.

Terms in this piece · Glossary
  • Instruction — A statement in the context that tells the model how to behave or what to do; module 3's first layer.
  • Injection — A flaw where untrusted input is pasted into a command so that the input changes the command's meaning.
  • Terminal and shell — A text interface for navigating files and running programs.
  • agent skill — A reusable instruction file that teaches an agent how to do one job well — the procedure, the tools, and what counts as done.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Tools in this story
More from Ant Open Source
Recommended reads