OpenClaw Setup Guide
Foundation

Weekly Security Audit

Automated weekly security checks and permission verification

A weekly cron job that checks file permissions, runs a security audit, and fixes anything that's drifted. Only messages me if something is actually wrong.

Setup Prompt (Cron Job)

Create a cron job called "Weekly Security Audit" at 10:00 AM
on Mondays.

It should:
1. Run `openclaw security audit --deep`
2. Verify file permissions:
   - ~/.openclaw should be 700
   - ~/.openclaw/openclaw.json should be 600
   - All credential files should be 600
   Fix any that have drifted.
3. Check for security advisories or updates
4. Log results in today's memory file
5. Only message me if something critical is found

Otherwise, complete silently.
  • Schedule: 0 10 * * 1 (10:00 AM every Monday)
  • Timeout: 180 seconds

Key Permissions

PathPermissionWhy
~/.openclaw/700Only owner can access
openclaw.json600Contains API keys
credentials/600Auth tokens

On this page