T06 · System Persistence
- Location
references/monitoring.md:15- Finding
Persistent Cross-Session Monitoring Agent Installed as a Scheduled Cron Job
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is an optimization workflow, but it asks for broad background execution, mutable remote code installation, cross-workspace monitoring, and notification behavior that users should review carefully before installing.
Install only if you are comfortable with a skill that can launch autonomous optimization work, write .loongflow task records, install a remote engine from GitHub, create a recurring OpenClaw cron, read task/log content across configured workspaces, and send progress summaries. Before use, pin the engine source, remove the API-key prefix echo, require explicit approval for cron creation, and scope monitoring to one approved workspace and recipient.
references/monitoring.md:15Persistent Cross-Session Monitoring Agent Installed as a Scheduled Cron Job
references/engine-mode.md:85Mutable Remote Source Is Downloaded, Installed, and Executed Without Integrity Verification
references/engine-mode.md:62API Key Prefix Is Disclosed Through Prerequisite Check Output
references/monitoring.md:28Global Monitoring Agent Enumerates and Reads Unrelated Agent Workspaces
The skill description is extremely broad and encourages activation for generic optimization, coding, algorithm, and prompt-improvement tasks across multiple agent environments. This can cause the skill to trigger on many ordinary requests, unexpectedly introducing background subagents, downloads, or iterative workflows that the user did not explicitly ask for, increasing the chance of unintended actions and scope expansion.
The Chinese usage guidance says to use the skill whenever a user wants repeated polishing or multi-round iteration, which is ambiguous and covers a very large fraction of normal assistant work. In this skill's context, that broad activation is more dangerous because later instructions include async subagents, registry writes, cron-based monitoring, and possible framework downloads, so accidental invocation can lead to unnecessary autonomous execution.
Several headings and imperative instructions are presented only in Chinese, effectively imposing a language choice in the skill guidance. The file does not offer an alternative language or explain a justified locale restriction.
Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
实际执行时,agent 应直接用 Python 查询 openclaw.json 确定 workspace,不要照搬
$0那行。
# 示意:SKILL.md 在 <workspace>/skills/loongflow/SKILL.md,向上两级即 workspace
# 实际执行时请改用下方 Python fallback,不要使用 $0
# fallback(推荐):从 openclaw.json 查当前 agent 的 workspace
The instructions tell the agent to read /root/.openclaw/openclaw.json and environment-derived identifiers such as OPENCLAW_AGENT_ID to resolve the current workspace. That accesses host-specific configuration beyond the minimum needed for a portable optimization skill and can expose filesystem layout and agent metadata to the skill logic.
The instructions explicitly print the first 10 characters of ANTHROPIC_API_KEY to the terminal. Even partial credential disclosure is sensitive, can end up in logs or transcripts, and normalizes unsafe handling of secrets.
The skill instructs outbound connectivity checks and cloning code from GitHub at runtime. This expands the skill from optimization guidance into arbitrary network retrieval and supply-chain activity, creating risk of unreviewed code intake, external data exposure, and behavior that exceeds user expectations for a local agent skill.
These instructions launch a background process, persist a PID file and log file, and then direct the operator to set up recurring cron-based monitoring. That creates durable autonomous execution on the host, which is materially more invasive than a one-shot optimization workflow and can continue operating outside the user's immediate awareness.
The task registration script mutates host state by creating .loongflow/tasks.json, recording workspace paths, log locations, and notification identity derived from environment or whoami. This bookkeeping is not essential to core optimization and introduces privacy and integrity risk through persistent host-side metadata collection and modification.
The monitoring cron is instructed to scan all discovered workspaces, read task files and logs, extract plans, insights, and progress details, and automatically send summaries to recipients. That creates a real privacy and data-disclosure risk because potentially sensitive content from user projects or prompts may be redistributed without explicit user notice, consent, scoping, or sanitization.
Using notifyUser with a fallback to BAIDU_CC_USERNAME or whoami allows automatic delivery to an environment-derived account even when no recipient was explicitly configured. This can send internal progress summaries to unintended recipients and makes disclosure behavior implicit rather than user-authorized.
The instructions and user-facing messages throughout the file are presented in Chinese, including the prescribed completion notice. Under the stated policy, forcing a specific language without user opt-in can be a natural-language policy violation unless the locale constraint is documented and justified.
The skill instructs the agent to ensure a shared monitoring cron exists and to create one if missing. Creating or modifying persistent scheduled tasks is an operational side effect outside the core optimization function, increases persistence on the host, and can affect other tasks or users if misconfigured or abused.
The background execution step writes logs and PID/task state files without prominently warning that task content, outputs, and possibly sensitive prompts may be persisted on disk. This is a real data-handling concern, though lower impact than direct credential exposure because persistence is local and somewhat expected for long-running jobs.
This markdown file directs the operator to create and execute a script that appends entries to .loongflow/tasks.json, altering persistent workspace state. While the document explains the mechanics, it does not clearly warn the user that running the skill will modify local files and task-tracking metadata.
The spawned subagent is explicitly told to use tools for file reads/writes and command execution, which can affect user data or system state. Although these actions are part of the workflow, the markdown does not provide a concise warning to the user that background execution may modify files and run commands autonomously.
The manifest describes an iterative optimization/evolution workflow for code, algorithms, or prompts, but does not mention messaging or outbound user-notification behavior as part of the skill's purpose. While background execution is aligned with the description, sending messages to a user account is an additional capability beyond the core optimization loop.
No suspicious patterns detected.