Skip to content

Hide one-time codes and reset links from the model #128

Closed

Description

@itsskofficial

One-time codes, magic sign-in links and password-reset links are the shortest path from a prompt injection to account takeover. Meta Muse's email connector strips exactly these before the agent reads mail.

Idea: Replace OTPs, magic sign-in links and password-reset links with placeholders such as [sign-in link removed] or [one-time code removed] before mail text reaches any prompt. Apply it to Gmail and IMAP tool results, the proactivity prefilter and context, and follow-up drafting. The original is shown only when the user explicitly asks for it in the app.

Status in Sentient today: Partial. sentient/browser/safety.py already recognises OTP, password and card fields in the browser, but the mail path passes these through unchanged.

Where:

  • a shared redactor (for example sentient/integrations/common.py) used by normalize_message in sentient/integrations/plugins/gmail.py and normalize_raw in sentient/integrations/plugins/email_imap.py
  • sentient/proactivity/prefilter.py and sentient/proactivity/followups.py
  • a config switch in the integrations section of sentient/config/schema.py

Done when:

  • sample emails with OTPs, magic links and reset links reach the model only as placeholders
  • ordinary links and numbers are untouched
  • the user can still see the original in the app on request
  • tests cover Gmail, IMAP, proactivity and follow-ups

Sources:

Roadmap ID: SAFE-3 · Priority: P0 · Size: S

Activity

  1. self-assigned this
    on Oct 9, 2026
  2. added
    enhancement
    area: proactivity
    area: integrations
    priority: P0
    size: S
    on Oct 9, 2026
  3. added a commit that references this issue on Oct 9, 2026
    49dfb5a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: integrationsarea: proactivityenhancementpriority: P0size: S

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions