T09 · Insecure Skill Coding Practices
- Location
SKILL.md:19- Finding
Sensitive client-data directory is created without explicit permission hardening
- Content
View full analysis
- Remediation
View remediation
&2; exit 1 ;; esac umask 077 install -d -m 0700 -- "$OPENCLAW_DATA_DIR/clients" ``` - Verify that the destination is not a symbolic link and is owned by the intended OpenClaw service account. - Create client JSON files with mode `0600` and subdirectories with mode `0700`. - Run OpenClaw under a dedicated, unprivileged service account rather than a shared interactive account. - Keep dependency installation separate from runtime initialization. Administrators should install `jq` through an approved package-management process. - Add startup checks that reject group-readable or world-readable data directories and report incorrect ownership. - Apply similarly restrictive controls to export, backup, GDPR-export, and audit-log directories. ]]>
