mfa-word
在允许访问敏感文件或系统命令之前,向用户询问密码。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw skills install shop:totalclaw:totalclaw~cenralsolution-mfa-wordcURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~cenralsolution-mfa-word/file -o cenralsolution-mfa-word.md# MFA Word (Security Gatekeeper) ## Operational Protocol 1. **Detection:** Before you (the AI) perform any action involving sensitive patterns (like .env, .ssh, passwords, or deletions), you MUST call `check_gate_status`. 2. **Standard Mode:** If `check_gate_status` returns "OPEN", you may proceed. This session is valid for 15 minutes. 3. **Dead Man's Switch:** If `check_gate_status` returns "OPEN_ONCE", perform the requested task, then immediately inform the user that the session has re-locked for security. 4. **Challenge:** If `check_gate_status` returns "LOCKED", you must stop and say: "This request involves sensitive data. Please provide your Secret Word to continue." 5. **Validation:** Once the user provides a word, call `verify_access`. Only proceed if it returns "Access Granted." ## Tools ### initialize_mfa Sets up the security layer and user preferences. - `secret`: The primary secret word. - `super_secret`: The emergency reset word. - `sensitive_list`: Array of strings or patterns to protect (default: .env, password, config, sudo). - `use_dead_mans_switch`: Boolean. If true, the gate locks after every single sensitive action. ### verify_access Validates the secret word provided by the user. - `word`: The word provided by the user in chat. ### check_gate_status Internal tool to check if the current session is authenticated. ### reset_mfa Resets the secret word using the super secret word. - `super_word`: The emergency reset word. - `new_secret`: The new primary secret. --- ## 中文说明 # MFA Word(安全守门人) ## 操作协议 1. **检测:** 在你(AI)执行任何涉及敏感模式(如 .env、.ssh、密码或删除操作)的行为之前,你必须调用 `check_gate_status`。 2. **标准模式:** 如果 `check_gate_status` 返回 "OPEN",你可以继续。此会话在 15 分钟内有效。 3. **死人开关:** 如果 `check_gate_status` 返回 "OPEN_ONCE",执行所请求的任务,然后立即告知用户该会话已为安全起见重新锁定。 4. **质询:** 如果 `check_gate_status` 返回 "LOCKED",你必须停止并说:"此请求涉及敏感数据。请提供你的密语(Secret Word)以继续。" 5. **验证:** 一旦用户提供了密语,调用 `verify_access`。仅当它返回 "Access Granted" 时才继续。 ## 工具 ### initialize_mfa 设置安全层和用户偏好。 - `secret`:主密语。 - `super_secret`:紧急重置密语。 - `sensitive_list`:要保护的字符串或模式数组(默认:.env、password、config、sudo)。 - `use_dead_mans_switch`:布尔值。如果为 true,每执行一次敏感操作后门禁都会锁定。 ### verify_access 验证用户提供的密语。 - `word`:用户在聊天中提供的密语。 ### check_gate_status 用于检查当前会话是否已认证的内部工具。 ### reset_mfa 使用超级密语重置密语。 - `super_word`:紧急重置密语。 - `new_secret`:新的主密语。