-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensitive Data Leaked via Screenshots (by @guardsquare) #3112
base: master
Are you sure you want to change the base?
Conversation
- Screenshots not deleted when backgrounding | ||
- Auto-Generated Screenshots | ||
- https://developer.apple.com/documentation/uikit/uiscreen/2921651-iscaptured | ||
- https://developer.apple.com/documentation/uikit/uitraitcollection/scenecapturestate | ||
status: draft |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status: draft | |
status: new |
- Screenshots not deleted when backgrounding | ||
- Auto-Generated Screenshots | ||
- https://developer.apple.com/documentation/uikit/uiscreen/2921651-iscaptured | ||
- https://developer.apple.com/documentation/uikit/uitraitcollection/scenecapturestate | ||
status: draft | ||
|
||
--- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mitigations section missing
- Screenshots not deleted when backgrounding | ||
- Auto-Generated Screenshots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about these 2 topics? Shouldn't we add them as Modes of Introduction & tests?
@@ -0,0 +1,30 @@ | |||
--- | |||
platform: ios | |||
title: References to Screen Capturing API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about?
title: References to Screen Capturing API | |
title: Uses of Screen Capturing APIs with r2 |
@@ -0,0 +1,28 @@ | |||
--- | |||
title: References to Screen Capturing API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: References to Screen Capturing API | |
title: References to Screen Capturing APIs |
--- | ||
title: References to Screen Capturing API | ||
platform: ios | ||
id: MASTG-TEST-0240 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check file name
@@ -0,0 +1,26 @@ | |||
--- | |||
title: Sensitive Data Leaked via Screenshots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about?
title: Sensitive Data Leaked via Screenshots | |
title: References to Screen Capturing Prevention APIs |
platform: android | ||
id: MASTG-TEST-0216 | ||
type: [static] | ||
weakness: MASWE-0055 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add best-practices:
platform: ios | ||
id: MASTG-TEST-0240 | ||
type: [static] | ||
weakness: MASWE-0055 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add best-practices:
@@ -0,0 +1,29 @@ | |||
--- | |||
platform: android | |||
title: Sensitive Data Leaked via Screenshots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: Sensitive Data Leaked via Screenshots | |
title: Uses of FLAG_SECURE with semgrep |
|
||
### Evaluation | ||
|
||
The test succeeds because the app contains API that detects screen capturing. It's difficult to say whether the app actually uses this API but its presence indicates that the developer is aware of this API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...or if it applies to the relevant screens (?)
- [FLAG_SECURE](https://developer.android.com/security/fraud-prevention/activities#flag_secure) - prevents screen recording | ||
- [DETECT_SCREEN_CAPTURE](https://developer.android.com/about/versions/14/features/screenshot-detection#implementation) - detects when a screenshot is taken |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [FLAG_SECURE](https://developer.android.com/security/fraud-prevention/activities#flag_secure) - prevents screen recording | |
- [DETECT_SCREEN_CAPTURE](https://developer.android.com/about/versions/14/features/screenshot-detection#implementation) - detects when a screenshot is taken | |
- [`FLAG_SECURE`](https://developer.android.com/security/fraud-prevention/activities#flag_secure): prevents screen recording. | |
- [`DETECT_SCREEN_CAPTURE`](https://developer.android.com/about/versions/14/features/screenshot-detection#implementation): detects when a screenshot is taken. |
This PR closes #2695