T06 · System Persistence
- Location
SKILL.md:630- Finding
Persistent Autonomous Comment-Reply Task Through Cron
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 630-680
Vulnerability Type: Persistent scheduled automation
Risk Level: HighVulnerable Skill Instructions
text Trigger conditions: - Automatically execute through a Cron Job every 30 minutes - Or trigger manually Automation implementation: Cron Job configuration: - Frequency: Every 30 minutes - Execution window: All day, with 08:00-23:00 recommended - Task: Check and reply to new comments Local record file: - Location: E:\OpenClaw\agents\ceo\memory\xhs-comments-replied.mdThe excerpt above is an English rendering of the relevant instructions at the specified source lines.
Technical Analysis
The Skill explicitly directs the Agent to configure a recurring Cron Job that checks Xiaohongshu comments and posts replies every 30 minutes. This scheduled task can continue after the interaction that initially loaded the Skill has ended.
Because the workflow reuses an authenticated browser profile, each scheduled execution may perform account-level actions without requiring the user to approve each individual reply. The local record file prevents duplicate responses but does not provide authorization controls, an expiration time, a reply approval stage, or a reliable task-removal procedure.
This constitutes system persistence because the recurring task survives the original Skill run and repeatedly invokes authenticated behavior across sessions.
Attack Path
- A user invokes the Skill while an authenticated Xiaohongshu browser profile is available.
- The Agent follows the Skill instructions and registers a Cron Job.
- The scheduled job runs every 30 minutes independently of the initiating conversation.
- Each run opens the Xiaohongshu notification page and identifies unreplied comments.
- The automation generates and submits replies using the authenticated account.
- The process continues until the user or adminis ...[truncated 831 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the instruction to create a persistent Cron Job.
- Require explicit user initiation for each comment-checking session.
- Present every proposed reply to the user and require confirmation before submission.
- If scheduling is an essential feature, require the user to create and enable the schedule through a clearly identified interface.
- Apply a mandatory expiration time, a maximum execution count, and a documented removal procedure.
- Use least-privilege credentials and a dedicated browser profile with access limited to the required account functions.
- Add rate limits, an emergency stop control, audit logging, and notification of every automated execution.
- Do not retain or reuse an authenticated session after the user revokes authorization.
