Session replay is only as safe as its masks. If a mask sits in the wrong place for even a few frames, a password, card number or email address can end up in a recording that dozens of colleagues can open. PostHog Android 3.72.5, released on 20 October, fixes a case where screenshot-mode replay masks stayed at stale positions while the soft keyboard panned the window.
That is the moment users are typing sensitive data. The keyboard opens, the window shifts, and the mask drawn for the old layout no longer covers the field. Without measurement you have no way to know how often this happened in your recordings before the fix, or whether similar gaps remain in your own screens.
Data Points to Track
- posthog_android_version: the SDK version in use
- replay_mode: screenshot or wireframe
- masked_field_count: sensitive inputs per screen
- keyboard_opened: true when the soft keyboard showed on the screen
- window_input_mode: adjustPan, adjustResize or unspecified
- screen_name: the screen where the recording ran
- mask_review_result: pass or fail from your manual review
- replay_privacy_incident: a recording flagged for exposed data
Setup Steps
- Upgrade to PostHog Android 3.72.5 or later.
- List every screen with a password, payment, health or identity field.
- Record the window input mode for each of those screens as a property.
- Send a keyboard_opened event with the screen name when the keyboard appears.
- Review a sample of screenshot-mode recordings for each screen, focusing on the seconds after the keyboard opens.
- Log the result as mask_review_result so coverage is visible over time.
- Add a replay_privacy_incident event that reviewers can fire when something leaks, and route it to the privacy owner.
- Repeat the review after each major UI release.
Actionable Insights
If failures cluster on screens using adjustPan, you have found the layout pattern that matters. Test it first on every future screen.
If no failures appear after the upgrade, keep reviewing a small sample anyway. Masks depend on your layouts, and layouts change.
If older recordings predate the fix, consider whether any of them need to be reviewed or deleted under your retention policy. Involve your data protection lead for that decision.
Common Pitfalls
Do not assume masking is automatic for custom views. Check that every custom input is covered.
Do not review only on one device. Screen sizes and keyboard heights change where masks need to be.
Do not wait for a complaint. Leaks in replays are rarely reported by the people they affect.
Rolling It Out Safely
Start with the screens that hold the most sensitive data and work outward. Give reviewers a short checklist and a clear way to flag problems. Report the mask coverage number to your product and security leads each month, and treat any fall as a release blocker.
Document the review method so it can be repeated by someone new. A short written procedure, with the devices used and the screens covered, makes audits comparable from one quarter to the next and gives auditors something concrete to read.