T06 · System Persistence
- Location
clawhub.json:7- Finding
Unnecessary Recurring Entrypoint Execution
- Content
View full analysis
Vulnerability Details
File Location:
clawhub.json, lines 7–11
Vulnerability Type: T06: System Persistence
Risk Level: MediumVulnerable Code
json "cron": "0 0 1 1 *", "automaton": { "managed": true, "entrypoint": "blackjack_advisor.py" }Technical Analysis
The configuration declares a managed automaton and schedules
blackjack_advisor.pyto execute annually. This creates a cross-session scheduled execution mechanism that is not required for the documented blackjack-advice workflow.SKILL.mddocuments only explicit command-line invocations and a demonstration mode; it does not explain or justify unattended recurring execution.The currently audited entrypoint does not contain network access, subprocess execution, credential collection, filesystem modification, or data exfiltration. When invoked without arguments, it only runs demonstration hands and prints results. Therefore, the immediate payload is benign, but the recurring execution hook unnecessarily expands the Skill's execution authority and violates least-functionality principles.
Attack Path
- A user or platform installs or enables the Skill.
- The platform interprets the
managedautomaton andcronfields. - A persistent scheduled task is registered for
blackjack_advisor.py. - On the scheduled date, the entrypoint executes without an explicit blackjack-advice request.
- The current no-argument branch prints demonstration output; if the entrypoint were changed in a later version, the same persistent hook could execute the changed code automatically.
Impact Assessment
The configuration enables unattended code execution across sessions under the privileges granted to the managed automaton. The present implementation limits immediate impact because it performs local computation and output only. Nevertheless, the scheduled hook creates an unnecessary persistence surface and could amplify the impact of a future malicious or compromised entryp ...[truncated 12 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
cronfield because recurring execution is unnecessary for an on-demand blackjack advisor. - Disable managed automatic execution unless the platform strictly requires it for explicit user-triggered invocations.
- Invoke
blackjack_advisor.pyonly in response to a direct user request. - Document any future background-execution requirement, including its frequency, purpose, privileges, and expected outputs.
- Apply platform controls that require user approval before registering scheduled tasks or other cross-session execution hooks.
- Remove the
