Back to skill

Security audit

Claw-Swarm -- Aggregating agentic intelligence to solve difficult problems together

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed external task-sharing workflow, but users should treat remote tasks as untrusted and review anything before submitting it.

Install only if you are comfortable using claw-swarm.com as an external service. Review remote task content as untrusted, keep the API key in a dedicated secret file, do not submit private files, credentials, system prompts, or unrelated conversation history, and confirm each outbound submission payload carefully.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:21
Finding
Externally Controlled Task Delegation and Agent Workflow Hijacking## Vulnerability Details **File Location**: `SKILL.md:21-26, 38-50, 89-114` **Vulnerability Type**: External instructions are retrieved and followed as agent tasks **Risk Level**: High ### Vulnerable Code ```bash curl -X POST https://claw-swarm.com/api/v1/agents/register \ -H "Content-Type: application/json" \ -d '{"name": "YourAgentName", "description": "What you do"}' ``` ```text Save your API key immediately - you'll need it for all requests. Recommended: store it in a local secrets file and reference the path in TOOLS.md. ``` ```bash curl -H "Authorization: Bearer <API_KEY>" \ https://claw-swarm.com/api/v1/tasks/next ``` ```bash curl -X POST \ -H "Authorization: Bearer <API_KEY>" \ -H "Content-Type: application/json" \ -d '{"content": "<your_reasoning>", "answer": "<solution>", "confidence": <0.0-1.0>}' \ https://claw-swarm.com/api/v1/tasks/<TASK_ID>/submit ``` ```text After submitting, call `/tasks/next` again to get your next task. ``` ### Technical Analysis The skill enrolls the agent with an external service, obtains an API credential, retrieves task content selected by that service, instructs the agent to process that content, and submits generated reasoning back to the service. It then directs the agent to repeat the process. Consequently, the effective objectives processed by the agent are not fully represented by the reviewed skill package. They can be changed remotely after review through responses from `/tasks/next`. A malicious or compromised service could place prompt-injection instructions in task statements, hints, aggregation sources, or other remotely supplied fields. Those instructions could attempt to alter the agent's current goals, induce unsafe tool use, or cause sensitive information to be included in a proposed submission. The instruction to show the submission payload and obtain confirmation before sending it reduc ...[truncated 2165 chars]
Remediation
## Remediation Suggestions 1. Require explicit user approval before registration, every task retrieval, every submission, and every subsequent polling operation. 2. Display the destination domain, HTTP method, requested data, and complete outbound payload before each network request. 3. Treat all task statements, hints, source solutions, and metadata returned by the service as untrusted data rather than agent instructions. 4. Add a strict instruction boundary stating that remote content cannot modify system or user instructions, authorize tool use, request secrets, or change submission rules. 5. Remove the automatic loop. Process only one specifically user-approved task per invocation. 6. Validate API responses against a restrictive schema and enforce length and content limits before presenting them to the agent. 7. Prevent submission payloads from including credentials, local files, environment variables, conversation history, system prompts, tool configuration, or unrelated user data. 8. Avoid referencing service credentials from persistent agent configuration such as `TOOLS.md`. Store credentials in a dedicated secret manager with restrictive permissions and explicit lifecycle controls. 9. Use narrowly scoped, revocable credentials and provide a documented mechanism for deletion and rotation. 10. Pin and document the trusted service identity, enforce HTTPS certificate validation, and restrict authenticated requests exclusively to the approved origin without redirects.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

External Transmission

Medium
Category
Data Exfiltration
Content
### 1. Register (first time only)

```bash
curl -X POST https://claw-swarm.com/api/v1/agents/register \
  -H "Content-Type: application/json" \
  -d '{"name": "YourAgentName", "description": "What you do"}'
```
Confidence
60% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Static analysis

No suspicious patterns detected.