T09 · Insecure Skill Coding Practices
- Location
scripts/apply.sh:74- Finding
Unnecessary Collection of System-Level Diagnostic Trace Data
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is mostly a local OpenClaw cost-optimization helper, but it changes core configuration and restarts the gateway with limited safeguards.
Review the script before running it on an important OpenClaw installation. It will persistently edit your OpenClaw config, enable local cache trace logs, change a model alias, and attempt a gateway restart; keep the generated backup and be prepared to restore it manually if the gateway does not restart cleanly.
scripts/apply.sh:74Unnecessary Collection of System-Level Diagnostic Trace Data
scripts/apply.sh:89Gateway Restart Failure Is Masked and Configuration Changes Are Not Rolled Back
The skill description understates operational side effects by presenting the behavior as cost optimization while static analysis indicates it modifies OpenClaw configuration, creates backups, enables diagnostics logging, and restarts the gateway. Hidden or under-disclosed side effects are risky because operators may trigger service interruption, altered logging, or persistent config changes without informed consent.
The skill description understates operational side effects by presenting the behavior as cost optimization while static analysis indicates it modifies OpenClaw configuration, creates backups, enables diagnostics logging, and restarts the gateway. Hidden or under-disclosed side effects are risky because operators may trigger service interruption, altered logging, or persistent config changes without informed consent.
The skill instructs users to run shell scripts that modify local configuration and restart a gateway, but it declares no explicit tool scope or permissions boundary. This is dangerous because users and host systems cannot easily assess or constrain the file-write capability up front, increasing the chance of unexpected configuration changes or misuse.
The documentation tells users to run a script that automatically updates configuration and restarts the gateway without a prominent warning about service-impacting changes. This is dangerous because it can cause downtime, break existing setups, or apply irreversible changes in environments where restart behavior is sensitive.
The script is presented as applying caching optimizations, but it also changes the model alias and restarts the OpenClaw gateway. That mismatch can cause users to approve broader configuration and operational changes than they intended, which is a security-relevant transparency issue because hidden side effects alter trust boundaries and local runtime behavior.
The script's comments, usage text, and runtime messages are written in Korean, and there is no indication that users may select another language or that the script is intended only for a Korean-speaking environment. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation.
The skill metadata promises prompt caching optimizations, but the implementation additionally modifies model alias configuration and triggers a service restart. In a user-trusted automation context, undocumented behavior increases the risk of unauthorized configuration drift, disruption, or redirection of model selection under the guise of optimization.
The file’s natural-language comments and user-facing usage text are written entirely in Korean, and the runtime output later in the script follows the same pattern. For a generally named utility script, this imposes a specific language on users without opt-in or justification, matching the locale/language policy concern.
The skill recommends enabling cache-trace logging to a local JSONL file but does not warn about data retention or possible capture of metadata related to prompt usage. Even local diagnostic logs can create privacy, compliance, or disk-retention issues if operators are unaware of what is recorded and how long it persists.
The script directly rewrites the user's primary OpenClaw configuration file after only checking that it exists, without an explicit consent prompt or warning at the point of modification. Although it creates a backup, silent modification of local settings can still lead to unintended persistence, breakage, or difficult-to-detect behavior changes in a trusted developer environment.
SQP-3 applies to all file types and covers language or locale policy violations. This markdown file presents all operational guidance only in Korean, with no indication that users can opt into another language or that the locale restriction is intentional and justified.