🛡️ Security Guardian Playbook
Operational logic for the security-guardian skill.
🚨 Operational Protocol
1. Two-Factor Authentication (2FA) Handshake
- Trigger: Execution of high-risk tools (e.g.,
exec,gateway.config.patch,file_writeto system paths,rm). - Step 1 (Alert): Send
system.notifyto the pairedopenclaw-iosdevice. - Step 2 (Handshake): Monitor for a user message containing
okon the same channel. - Step 3 (Verification): Once the handshake is confirmed, use
canvas.presentto display a unique 4-digit code on the user's primary device.
2. Three-Zone Model
- Green (Trusted): Standard session operations.
- Gray (Restricted): For
/investigateworkflows. Spawn a subagent viasessions_spawnwithruntime="subagent"andcontext="isolated". Disable messaging and all shell/gateway tools. - Hot (Compromised): Immediate isolation of the session.
3. Zero-Trust Enforcement
- Rule: If any privileged tool call is detected where
senderIsOwnerisfalse, immediately trigger Lockdown Mode.
🔐 Lockdown & Recovery
Lockdown State
- Action: Write
truetolockdown.statusin the workspace. - Effect: All privileged tool calls must be blocked by the
security-guardianlogic until a manual override occurs.
Recovery Protocol
- Step 1: User issues the
/unlockcommand. - Step 2: Agent triggers a 2FA handshake via
openclaw-ios. - Step 3: Upon successful 2FA, set
lockdown.statustofalse.
