MFA WORD

v1.1.0

Enforces MFA by requiring a secret word to access protected sensitive data and allows emergency reset with a super secret word.

0· 718· 2 versions· 0 current· 0 all-time· Updated 2mo ago· MIT-0

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.

Version tags

2favk977km58q2vrt6k7cn1bm5tf01814zt3access-controlvk977km58q2vrt6k7cn1bm5tf01814zt3anti-injectionvk977km58q2vrt6k7cn1bm5tf01814zt3audit-logsvk977km58q2vrt6k7cn1bm5tf01814zt3authenticationvk977km58q2vrt6k7cn1bm5tf01814zt3credential-safetyvk977km58q2vrt6k7cn1bm5tf01814zt3dead-mans-switchvk977km58q2vrt6k7cn1bm5tf01814zt3ecurityvk977km58q2vrt6k7cn1bm5tf01814zt3encryptionvk977km58q2vrt6k7cn1bm5tf01814zt3file-protectionvk977km58q2vrt6k7cn1bm5tf01814zt3gatekeepervk977km58q2vrt6k7cn1bm5tf01814zt3guardrailsvk977km58q2vrt6k7cn1bm5tf01814zt3latestvk977km58q2vrt6k7cn1bm5tf01814zt3mfavk977km58q2vrt6k7cn1bm5tf01814zt3middlewarevk977km58q2vrt6k7cn1bm5tf01814zt3pii-protectionvk977km58q2vrt6k7cn1bm5tf01814zt3privacyvk977km58q2vrt6k7cn1bm5tf01814zt3safetyvk977km58q2vrt6k7cn1bm5tf01814zt3session-lockvk977km58q2vrt6k7cn1bm5tf01814zt3sha256vk977km58q2vrt6k7cn1bm5tf01814zt3zero-trustvk977km58q2vrt6k7cn1bm5tf01814zt3