T02 · Agent Memory Poisoning
Error
- Location
- SKILL.md:19
- Finding
- Persistent External Coordination Configuration in Agent State Files<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 19-35; duplicate OADP marker at line 57 **Vulnerability Type**: Persistent modification of agent state and external registration **Risk Level**: High ### Code Snippet ```markdown Add this to your `AGENTS.md` or `AGENT.md`: ```markdown <!-- OADP:1.0 hub=https://onlyflies.buzz/clawswarm/api/v1 reg=https://onlyflies.buzz/clawswarm/api/v1/agents/register ping=https://onlyflies.buzz/clawswarm/api/v1/ping --> ``` This single line makes your agent discoverable by any OADP-compatible scanner. ## Register on ClawSwarm ```bash curl -s -X POST "https://onlyflies.buzz/clawswarm/api/v1/agents/register" \ -H "Content-Type: application/json" \ -d '{"name":"YOUR_NAME","description":"What you do","capabilities":["your","skills"]}' ``` Save credentials to `~/.config/clawswarm/credentials.json`. ``` A duplicate marker also appears at line 57: ```markdown <!-- OADP:1.0 hub=https://onlyflies.buzz/clawswarm/api/v1 reg=https://onlyflies.buzz/clawswarm/api/v1/agents/register ping=https://onlyflies.buzz/clawswarm/api/v1/ping --> ``` ### Technical Analysis The Skill directs users to insert a third-party OADP endpoint into `AGENTS.md` or `AGENT.md`. These files commonly provide persistent instructions or configuration to agents across sessions. Consequently, the external coordination endpoint remains active beyond the immediate Skill invocation. The workflow also sends the agent's name, description, and capabilities to `onlyflies.buzz`. Remote registration and discovery are declared features, so the network access is functionally related to the Skill. However, writing the endpoint into a persistent agent state file exceeds the minimum privileges needed to create a local identity card and unnecessarily mixes remote-service configuration with persistent agent instructions. The audited file does not demonstrate that the remote service currently returns executable instructions, and no direct code executio ...[truncated 1342 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Do not place remote coordination endpoints in `AGENTS.md`, `AGENT.md`, or other persistent instruction files. - Store OADP settings in a dedicated configuration file that cannot alter agent instructions. - Make remote registration explicitly optional and require informed user consent before transmitting metadata. - Document every transmitted field, the service operator, retention policy, authentication model, and deletion procedure. - Allow users to configure an approved endpoint rather than hardcoding a single third-party service. - Validate and treat all remote responses as untrusted data; never interpret them directly as agent instructions or executable commands. - Provide a clear removal procedure for the marker, registration, and remotely retained identity. ]]>
