MASTG-TEST-0292: `setRecentsScreenshotEnabled` Not Used to Prevent Screenshots When Backgrounded
Placeholder MASTG-TEST
This test hasn't been created yet and it's a placeholder. But you can check its status or start working on it yourself. If the issue has not yet been assigned, you can request to be assigned to it and submit a PR with the new content for that test by following our guidelines.
Check our GitHub Issues for MASTG-TEST-0292
If an issue doesn't exist yet, please create one and assign it to yourself or request to be assigned to it.
Draft Description¶
This test verifies whether an app prevents sensitive data from being captured in the Recents screen when backgrounded.
For more details, check the associated weakness: Sensitive Data Leaked via Screenshots
Mitigations¶
- Preventing Screenshots and Screen Recording
- Use
setRecentsScreenshotEnabled
to Prevent Screenshots When Backgrounded
Demos¶
MASTG-DEMO-0062: Enabling Screenshots in Recents via setRecentsScreenshotEnabled with semgrep