Repository navigation
Description
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 bynormalize_messageinsentient/integrations/plugins/gmail.pyandnormalize_rawinsentient/integrations/plugins/email_imap.py sentient/proactivity/prefilter.pyandsentient/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
Hide one-time codes and sign-in links from the model (existence-maste…