T06 · System Persistence
- Location
INSTALL.md:23- Finding
Unaudited External Maintainer Installs a Persistent Scheduled Task
- Content
View full analysis
Vulnerability Details
File Location:
INSTALL.md, lines 23-28
Vulnerability Type: External dependency execution and system persistence
Risk Level: Highmarkdown ## Schritt 3: Optional - Maintainer installieren Für automatische Updates: ```bash clawhub install db-maintainer python3 skills/db-maintainer/scripts/install_cron.pytext ### Technical Analysis The installation guide directs users to download the external `db-maintainer` Skill and immediately execute its `install_cron.py` script. That dependency and its installer are not included in the audited artifact, so their source code, integrity, permissions, scheduled command, and update behavior cannot be verified. The stated purpose is to enable automatic updates, while `README.md`, line 65, describes a 30-minute update interval. Executing a cron installer creates a cross-session scheduled execution mechanism. Because the external package is not pinned to an immutable version or verified by a checksum or signature, its effective behavior may depend on whichever package version the registry supplies at installation time. No evidence in the submitted files establishes that `db-maintainer` is itself malicious. The security issue is that the documented workflow delegates recurring local execution to an unaudited, unpinned external component. ### Attack Path 1. A user follows the optional automatic-update instructions in `INSTALL.md`. 2. `clawhub install db-maintainer` retrieves a package that is outside the audited artifact. 3. The user executes `skills/db-maintainer/scripts/install_cron.py`. 4. The external installer creates a recurring cron task intended to survive the current Skill invocation. 5. The installed dependency subsequently executes at the configured interval. 6. If the external package source, registry account, release process, or delivered version is compromised, attacker-controlled code could execute repeatedly under the account that installed the task. ### Impact Ass ...[truncated 673 chars]- Remediation
View remediation
Remediation Suggestions
- Include the complete
db-maintainerimplementation in the audited distribution, or require a separate security review before installation. - Pin the dependency to an immutable, trusted version rather than installing an unspecified latest release.
- Verify the downloaded package using a trusted cryptographic signature or published checksum.
- Display the exact cron entry, executable path, arguments, frequency, working directory, and environment before installation.
- Require explicit user confirmation immediately before creating the scheduled task.
- Run the maintenance process with the minimum filesystem and database permissions required.
- Avoid executing code from package directories that can be modified by less-trusted users or processes.
- Provide a documented uninstall command that removes both the cron entry and associated installed files.
- Prefer an opt-in foreground update command where recurring execution is not essential.
- Record installation and update events so users can identify unexpected changes to the scheduled task or dependency.
- Include the complete
