Back to skill

Security audit

xmpp-server

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill benign with medium confidence: its findings mostly match the reported server setup purpose, with a note about retained sensitive files and incomplete scan coverage.

The verdict is benign, not risk-free. Before installing, review the setup's sudo commands and how it handles the certificate authority private key and other retained files. Coverage was partial: four of five components were scanned, and one tool-misuse analysis was degraded, so the evidence is incomplete.

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
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (12)

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · SKILL.md (reported line 175)May include surrounding context.

appears on a command line, in the process list, or in sudo's log:

bash
cat ~/.openclaw/secrets/xmpp-password ~/.openclaw/secrets/xmpp-password | sudo prosodyctl adduser openclaw@DOMAIN

prosodyctl adduser asks for the password twice, which is why the file is sent twice. If it says

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 87)May include surrounding context.

Debian and Ubuntu:

bash
sudo apt-get update
bash

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 91)May include surrounding context.

text

```bash
sudo apt-get install -y prosody

Prosody 0.12 or later is needed for file upload. Other systems: follow

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 126)May include surrounding context.

text

```bash
sudo install -m 644 ~/xmpp-ca/DOMAIN.crt /etc/prosody/certs/DOMAIN.crt
bash

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 150)May include surrounding context.

Then restart and check:

bash
sudo systemctl restart prosody
bash

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 154)May include surrounding context.

text

```bash
sudo prosodyctl check config
bash

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 186)May include surrounding context.

themselves; do not run it for them:

bash
sudo prosodyctl adduser NAME@DOMAIN

6. Connect OpenClaw

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 110)May include surrounding context.

it:

bash
sudo install -m 644 ~/openclaw.cfg.lua /etc/prosody/conf.d/openclaw.cfg.lua

Everything else stays as the system's Prosody package set it, including required encryption.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 130)May include surrounding context.

text

```bash
sudo install -m 640 -g prosody ~/xmpp-ca/DOMAIN.key /etc/prosody/certs/DOMAIN.key

The script creates a certificate authority and a server certificate valid for 397 days, with the

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 144)May include surrounding context.

md
- The server certificate has to be renewed in about a year. Put a reminder somewhere they will see.

**Public domain:** get a certificate with the user's usual ACME client, then run
`sudo prosodyctl --root cert import /etc/letsencrypt/live`. See
<https://prosody.im/doc/letsencrypt>. No extra trust setup is needed on devices.

Then restart and check:

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 175)May include surrounding context.

appears on a command line, in the process list, or in sudo's log:

bash
cat ~/.openclaw/secrets/xmpp-password ~/.openclaw/secrets/xmpp-password | sudo prosodyctl adduser openclaw@DOMAIN

prosodyctl adduser asks for the password twice, which is why the file is sent twice. If it says

The claim that only the password file remains outside Prosody's directories contradicts the setup commands.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

Lines 163–165 state that the password file is the only artifact left outside Prosody's directories. However, line 102 writes ~/openclaw.cfg.lua, and lines 122–140 explicitly create and retain ~/xmpp-ca, including a CA private key capable of issuing trusted certificates. This understates the sensitive material retained by the setup.

Content

No source excerpt is available for this finding.