# Optional Timelock for Private Key Reveals

**URL:** <https://community.metamask.com/t/optional-timelock-for-private-key-reveals/31261>\
**Category:** Feature Requests\
**Created:** [February 17, 2026, 12:52pm UTC](https://community.metamask.com/t/optional-timelock-for-private-key-reveals/31261 "2026-02-17T12:52:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![griff](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/griff/32/39438_2.png) [@griff](https://community.metamask.com/u/griff)\
**Post date:** [February 17, 2026, 12:52pm UTC](https://community.metamask.com/t/optional-timelock-for-private-key-reveals/31261/1 "2026-02-17T12:52:55Z")

</div>

**Description:**

Problem

With AI agents increasingly using MetaMask to interact with Web3 apps, they’re vulnerable to prompt injection attacks. If an AI agent gets compromised through prompt injection, it can instantly extract private keys from MetaMask with no opportunity for the human owner to intervene.

Proposed Solution

Add an optional timelock setting in Advanced preferences:

• User enables “Private Key Reveal Delay”  
• Configurable delay options: 1 hour, 1 day, 1 week  
• When user clicks “Export Private Key”, show countdown timer instead of immediate reveal  
• Include cancel button during countdown  
• After timeout, proceed with normal password confirmation

UI Flow

1. Click “Export Private Key”
2. If enabled: “Private key will be revealed in 23:45:12… [Cancel]”
3. After timeout: Normal password prompt + key display  
This would make MetaMask safer for AI agent interactions while maintaining human control over critical operations.

**Purpose:**

• AI Safety: Prevents prompt-injected AI agents from instant key theft  
• Human Oversight: Gives owners time to notice and stop unauthorized access  
• General Security: Additional protection against malware/phishing  
• Backward Compatible: Opt-in feature, default OFF  
UI Flow

**Extension/Mobile/Both:  
Both**

**Images/Attachments:**

---

<div class="post-metadata">

**Author:** ![Coffee7643](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/coffee7643/32/36480_2.png) [@Coffee7643](https://community.metamask.com/u/Coffee7643)\
**Post date:** [February 17, 2026, 1:52pm UTC](https://community.metamask.com/t/optional-timelock-for-private-key-reveals/31261/2 "2026-02-17T13:52:26Z")

</div>

Hi and thank you for creating this feature request post! 😀 ☕

---

<div class="post-metadata">

**Author:** ![UmerKhalid](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/umerkhalid/32/39413_2.png) [@UmerKhalid](https://community.metamask.com/u/UmerKhalid)\
**Post date:** [February 18, 2026, 6:11am UTC](https://community.metamask.com/t/optional-timelock-for-private-key-reveals/31261/3 "2026-02-18T06:11:35Z")

</div>

The issue raised in this post highlights a serious security concern regarding AI agents interacting with MetaMask. Adding an optional “Private Key Reveal Delay” in Advanced settings is a practical and forward-thinking solution. A configurable countdown (1 hour, 1 day, 1 week) with a visible timer and cancel option would introduce an important safety buffer. This delay would help prevent instant private key extraction in case of prompt injection, while still allowing legitimate users to proceed after the timeout and password confirmation. Keeping the feature opt-in and backward compatible makes it flexible without disrupting existing users.
