Skip to content

Conversation

serek8
Copy link
Collaborator

@serek8 serek8 commented Jan 13, 2025

Closes #2970 closes #2984.

This PR ports two legacy test cases (MASTG-TEST-0010 and MASTG-TEST-0059) by deprecating them and introducing new MASTG V2 versions that test for sensitive information exposure in auto-generated screenshots on Android and iOS platforms.

  • Deprecates existing test cases MASTG-TEST-0010 (Android) and MASTG-TEST-0059 (iOS)
  • Adds new comprehensive test cases MASTG-TEST-0289, MASTG-TEST-0290, and MASTG-TEST-0291 for screenshot security testing
  • Introduces supporting materials including semgrep rules, demos, and best practices documentation

Changes

File Description
tests/android/MASVS-PLATFORM/MASTG-TEST-0010.md Marks legacy Android screenshot test as deprecated
tests/ios/MASVS-PLATFORM/MASTG-TEST-0059.md Marks legacy iOS screenshot test as deprecated
tests-beta/android/MASVS-PLATFORM/MASTG-TEST-0289.md New runtime verification test for Android screenshot protection
tests-beta/android/MASVS-PLATFORM/MASTG-TEST-0291.md New static analysis test for Android FLAG_SECURE usage
tests-beta/ios/MASVS-PLATFORM/MASTG-TEST-0290.md New runtime verification test for iOS screenshot protection
rules/mastg-android-sensitive-data-in-screenshot.yml Semgrep rules for detecting FLAG_SECURE usage patterns
demos/android/MASVS-PLATFORM/MASTG-DEMO-0061/* Demo files showing FLAG_SECURE implementation and detection
knowledge/ios/MASVS-STORAGE/MASTG-KNOW-0099.md Enhanced documentation about iOS screenshot storage mechanics
best-practices/MASTG-BEST-0014.md New best practices guide for preventing screenshots

@serek8 serek8 requested a review from cpholguera January 13, 2025 13:41
@serek8 serek8 changed the title Sensitive Data Leaked via Screenshots Sensitive Data Leaked via Screenshots (by @guardsquare) Jan 13, 2025
@sushi2k sushi2k requested review from sushi2k and removed request for cpholguera January 17, 2025 08:38
@cpholguera cpholguera changed the title Sensitive Data Leaked via Screenshots (by @guardsquare) New MASWE-0055: Sensitive Data Leaked via Screenshots (by @guardsquare) Feb 24, 2025
@cpholguera
Copy link
Collaborator

@serek8 please check the suggested changes. Thanks!

@cpholguera cpholguera requested a review from Copilot August 31, 2025 09:17
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR ports two legacy test cases (MASTG-TEST-0010 and MASTG-TEST-0059) by deprecating them and introducing new MASTG V2 versions that test for sensitive information exposure in auto-generated screenshots on Android and iOS platforms.

  • Deprecates existing test cases MASTG-TEST-0010 (Android) and MASTG-TEST-0059 (iOS)
  • Adds new comprehensive test cases MASTG-TEST-0289, MASTG-TEST-0290, and MASTG-TEST-0291 for screenshot security testing
  • Introduces supporting materials including semgrep rules, demos, and best practices documentation

Reviewed Changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/android/MASVS-PLATFORM/MASTG-TEST-0010.md Marks legacy Android screenshot test as deprecated
tests/ios/MASVS-PLATFORM/MASTG-TEST-0059.md Marks legacy iOS screenshot test as deprecated
tests-beta/android/MASVS-PLATFORM/MASTG-TEST-0289.md New runtime verification test for Android screenshot protection
tests-beta/android/MASVS-PLATFORM/MASTG-TEST-0291.md New static analysis test for Android FLAG_SECURE usage
tests-beta/ios/MASVS-PLATFORM/MASTG-TEST-0290.md New runtime verification test for iOS screenshot protection
rules/mastg-android-sensitive-data-in-screenshot.yml Semgrep rules for detecting FLAG_SECURE usage patterns
demos/android/MASVS-PLATFORM/MASTG-DEMO-0061/* Demo files showing FLAG_SECURE implementation and detection
knowledge/ios/MASVS-STORAGE/MASTG-KNOW-0099.md Enhanced documentation about iOS screenshot storage mechanics
best-practices/MASTG-BEST-0014.md New best practices guide for preventing screenshots

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@cpholguera cpholguera merged commit 9a7030e into OWASP:master Aug 31, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants