oathe / scan / reports / caution
Is lunarcmd/moltbook-interact safe?
Use with caution. lunarcmd/moltbook-interact is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave the moltbook-interact skill by lunarcmd a trust score of 76/100 with 9 findings (1 high).
https://github.com/openclaw/skills/tree/main/skills/lunarcmd/moltbook-interact
Is lunarcmd/moltbook-interact safe to install?
The moltbook-interact skill is a bash-based social network integration with moderate but real security concerns. The primary risks are a shell injection vulnerability in the reply/create commands due to unescaped variable interpolation, unfiltered transmission of agent-generated content to a third-party external platform, and post-installation network changes (new outbound connections and localhost listeners) in the OpenClaw gateway process whose attribution to skill installation versus background platform activity is unclear. A metadata provenance mismatch and the skill's autonomous AI authorship further reduce confidence. No active prompt injection or canary exfiltration was detected, but the skill's design as a social media automation tool creates inherent risk of inadvertent information disclosure.
What security issues were found in lunarcmd/moltbook-interact?
Category Scores
Findings (9)
HIGH Shell injection via unescaped content interpolation in reply/create commands -25 ▶
The reply and create commands in moltbook.sh construct JSON and URL arguments through direct shell variable interpolation without any escaping, quoting guards, or input validation. Content containing double quotes, backslashes, or shell metacharacters will break JSON structure or could enable command injection if the script is invoked with externally-sourced post content (e.g., the agent reads a Moltbook post and uses its text as a reply).
Evidence: scripts/moltbook.sh line: api_call POST "/posts/${post_id}/comments" "{\"content\":\"${content}\"}" — both $post_id and $content are unescaped; similarly in the create case with $title and $content
MEDIUM Agent content transmitted unfiltered to third-party social platform -20 ▶
Every post and reply generated through this skill is sent to moltbook.com, an external social network. There is no content filtering, redaction, or scope limitation. An agent using this skill could inadvertently publish information from its context window, tool outputs, or user conversations to a public platform. The social network is purpose-built for AI agents, increasing the likelihood that agent context (code, files, API responses) ends up in posts.
Evidence: API_BASE="https://www.moltbook.com/api/v1" — all POST /posts and POST /posts/{id}/comments calls transmit agent-supplied content to this external endpoint with no filtering
MEDIUM Script accesses broad OpenClaw credential store -15 ▶
The script reads ~/.openclaw/auth-profiles.json, which is a shared credential file for the OpenClaw platform potentially containing API keys for multiple third-party services. While jq extraction is limited to the moltbook.api_key field, the full file is opened and parsed by the script process. A compromised Moltbook API endpoint or a modified script could access the full credential set.
Evidence: OPENCLAW_AUTH="${HOME}/.openclaw/auth-profiles.json"; API_KEY=$(jq -r '.moltbook.api_key // empty' "$OPENCLAW_AUTH" 2>/dev/null) — full file opened, not just the specific key
MEDIUM New outbound connections to external IPs post-installation -25 ▶
After skill installation completed, the openclaw-gatewa process established new ESTABLISHED TCP connections to 54.211.197.216:443 (AWS EC2 us-east-1, two connections) and 104.16.7.34:443 (Cloudflare CDN) that were not present in the pre-install connection snapshot. While these are attributed to the OpenClaw gateway rather than moltbook.sh directly, the timing correlation with skill registration is notable and the destinations are unidentified infrastructure.
Evidence: Connection diff AFTER: tcp ESTAB 192.168.64.2:57100->54.211.197.216:443 openclaw-gatewa fd=29; tcp ESTAB 192.168.64.2:57092->54.211.197.216:443 openclaw-gatewa fd=27; tcp ESTAB 192.168.64.2:54556->104.16.7.34:443 openclaw-gatewa fd=30
MEDIUM New TCP listeners on localhost ports after installation -10 ▶
Two new TCP listening sockets appeared on localhost:18790 and localhost:18793 under the openclaw-gatewa process after skill installation. These ports were not present in the pre-install snapshot. Local listeners represent an attack surface for other processes on the machine.
Evidence: Connection diff AFTER: tcp LISTEN 127.0.0.1:18790 openclaw-gatewa fd=24; tcp LISTEN 127.0.0.1:18793 openclaw-gatewa fd=28; tcp LISTEN [::1]:18790 openclaw-gatewa fd=25 — all absent from BEFORE snapshot
MEDIUM Systematic access to all canary credential files post-installation -20 ▶
All six monitored canary credential files were accessed at identical timestamp 1771956370.007 immediately following skill installation — this includes .env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, and GCloud credentials. The same pattern appeared pre-install at 1771956353.372, suggesting the OpenClaw platform performs routine credential file enumeration. Files were not modified or exfiltrated by the monitoring system's detection, but the systematic read access to all credential types in a single sweep is a privacy concern.
Evidence: auditd PATH events at 1771956370.007: .env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, .config/gcloud/application_default_credentials.json — all within the same audit record burst; identical pattern at 1771956353.372 pre-clone
LOW Commit provenance discrepancy in _meta.json -10 ▶
The _meta.json metadata file references a commit URL in the github.com/clawdbot/skills repository, while the skill was actually installed via clone from github.com/openclaw/skills. This mismatch could indicate copied or manually edited metadata, a repository migration with inconsistent metadata updates, or a bait-and-switch scenario where the published metadata does not accurately reflect the provenance of the installed code.
Evidence: _meta.json: "commit": "https://github.com/clawdbot/skills/commit/9000da9931ba737d725dc3f9c30540b55d52558f" vs install source: https://github.com/openclaw/skills.git
LOW Agent instructed to maintain persistent engagement log without user awareness -10 ▶
SKILL.md instructs the agent to maintain a reply log at /workspace/memory/moltbook-replies.txt to track prior engagement. This creates a persistent record of the agent's external social media activity in the workspace without the user necessarily being aware of or requesting such tracking.
Evidence: SKILL.md Tracking Replies section: 'Log file: /workspace/memory/moltbook-replies.txt — Check post IDs against existing replies before posting'
INFO Skill documented as autonomously authored by an AI agent -10 ▶
The README explicitly states the skill was built autonomously by an AI agent called Lunar for the purpose of self-tooling. Autonomously generated tooling typically receives less human security review than manually authored skills, and the circular nature (an AI agent building tools for AI agents to use) increases the risk of inherited blind spots or unvetted design decisions.
Evidence: README.md Author section: 'Built by Lunar (https://github.com/LunarCmd) — An OpenClaw agent automating its own tool development. Status: Production ready. Actively used by the author for autonomous Moltbook engagement.'
Should I install lunarcmd/moltbook-interact?
Oathe's verdict for lunarcmd/moltbook-interact is CAUTION with a trust score of 76/100. Recommendation: Review before install.