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. - Standard Mode: If
check_gate_status returns "OPEN", you may proceed. This session is valid for 15 minutes. - 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. - Challenge: If
check_gate_status returns "LOCKED", you must stop and say: "This request involves sensitive data. Please provide your Secret Word to continue." - 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. - INLINECODE6 : The emergency reset word.
- INLINECODE7 : Array of strings or patterns to protect (default: .env, password, config, sudo).
- INLINECODE8 : 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.
checkgatestatus
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. - INLINECODE11 : The new primary secret.
MFA 词 (安全守门人)
操作协议
- 1. 检测: 在你(AI)执行任何涉及敏感模式(如 .env、.ssh、密码或删除操作)的动作之前,你必须调用 checkgatestatus。
- 标准模式: 如果 checkgatestatus 返回 OPEN,你可以继续。此会话有效期为 15 分钟。
- 死机开关: 如果 checkgatestatus 返回 OPENONCE,执行请求的任务,然后立即通知用户会话已出于安全原因重新锁定。
- 挑战: 如果 checkgatestatus 返回 LOCKED,你必须停止并说:此请求涉及敏感数据。请提供您的秘密词以继续。
- 验证: 一旦用户提供一个词,调用 verifyaccess。仅当返回 Access Granted 时才继续。
工具
initialize_mfa
设置安全层和用户偏好。
- - secret:主要秘密词。
- supersecret:紧急重置词。
- sensitivelist:要保护的字符串或模式数组(默认:.env、password、config、sudo)。
- usedeadmans_switch:布尔值。如果为 true,则在每次敏感操作后门都会锁定。
verify_access
验证用户提供的秘密词。
checkgatestatus
内部工具,用于检查当前会话是否已认证。
reset_mfa
使用超级秘密词重置秘密词。
- - superword:紧急重置词。
- newsecret:新的主要秘密词。