T06 · System Persistence
- Location
SKILL.md:139- Finding
Mandatory Recommendation to Install a Persistent Background Daemon
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 139-142
Vulnerability Type: System persistence through daemon installation guidance
Risk Level: MediumVulnerable Code Snippet:
markdown 2. **Daemon Persistence**: - Use `openclaw onboard --install-daemon` to keep the assistant running as a background service.Technical Analysis
The Skill instructs the agent to recommend installing OpenClaw as a persistent background daemon for public or semi-public channel configurations. A daemon continues operating beyond the interactive Skill invocation and may start automatically in later sessions.
The command is not executed directly by this package, and successful installation still requires the user to run it with whatever authorization the OpenClaw installer requires. Nevertheless, the recommendation is presented as an unconditional part of the public-channel setup rather than an optional operation requiring informed consent. This expands the configured agent's lifetime and attack surface beyond the immediate task.
Attack Path
- A user requests an OpenClaw configuration for a public or semi-public messaging channel.
- The Skill follows its mandatory security-recommendation workflow.
- The generated guidance tells the user to run
openclaw onboard --install-daemon. - The user executes the command under their account or with any elevated authorization requested by the installer.
- OpenClaw is registered as a persistent background service.
- The service continues running after the configuration session, retaining access available to its service account and exposed integrations.
Impact Assessment
The installation can establish cross-session persistence for OpenClaw and increase exposure to channel-originated messages, configuration errors, or later compromise. The resulting privileges are limited to those assigned to the installed service and its account; the audited files do ...[truncated 236 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the unconditional requirement to recommend daemon installation.
- Present background-service installation only when the user explicitly requests continuous operation.
- Explain the persistence behavior, startup mechanism, service identity, filesystem access, network exposure, and operational risks before installation.
- Require explicit user confirmation immediately before providing the installation command.
- Configure the service under a dedicated, unprivileged account with access restricted to the minimum required workspace and integrations.
- Avoid administrative or root installation unless it is demonstrably required.
- Provide documented commands for inspecting, stopping, disabling, and uninstalling the daemon.
- Recommend access controls such as
dmPolicy="pairing"and a restrictiveallowFromlist before enabling persistent public-channel operation. - Include log rotation, update procedures, and periodic review of enabled channels and tools.
