Create content for MASTG-TEST-0287 SharedPreferences security test#3707
Merged
Conversation
Co-authored-by: cpholguera <29175115+cpholguera@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update MASTG-KNOW-0036 with EncryptedSharedPreferences links
Create content for MASTG-TEST-0287 SharedPreferences security test
Feb 13, 2026
cpholguera
approved these changes
Feb 13, 2026
cpholguera
marked this pull request as ready for review
February 13, 2026 18:06
cpholguera
added a commit
that referenced
this pull request
Jun 4, 2026
* Update MASTG-KNOW-0036 with EncryptedSharedPreferences links Clarified the usage of EncryptedSharedPreferences and added a link to its source code. Updated the warning regarding the Jetpack security crypto library deprecation. * fix test ref * Add Deterministic AEAD * Create content for MASTG-TEST-0287 SharedPreferences security test (#3707) * Initial plan * Create content for MASTG-TEST-0287 and remove status/note fields Co-authored-by: cpholguera <29175115+cpholguera@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: cpholguera <29175115+cpholguera@users.noreply.github.com> * draft best * Apply suggestions from code review Co-authored-by: Jaco <43786394+jacobocasado@users.noreply.github.com> * Apply suggestion from @jacobocasado Co-authored-by: Jaco <43786394+jacobocasado@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Jaco <43786394+jacobocasado@users.noreply.github.com> Co-authored-by: Carlos Holguera <perezholguera@gmail.com> * Update MASTG-KNOW-0036.md to clarify SharedPreferences usage and deprecation of insecure modes * fix md * Apply suggestions from code review Co-authored-by: Jaco <43786394+jacobocasado@users.noreply.github.com> * Update MASTG-TEST-0287.md to change test type and refine steps for validating sensitive data storage in SharedPreferences * fix best ID * update title --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Jaco <43786394+jacobocasado@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaced placeholder for MASTG-TEST-0287, which detects sensitive data stored unencrypted via Android's SharedPreferences API.
Changes
Overview: Frames the security risk of storing sensitive data in plaintext XML files within the app sandbox, explaining threat scenarios (device compromise, backup extraction, physical access)
Steps: Dynamic testing approach using method tracing (@MASTG-TECH-0033) with Frooky (@MASTG-TOOL-0145) to monitor:
SharedPreferences.Editor.putStringandputStringSetcallsCipher,KeyStore,KeyGenerator,Base64)Evaluation: Four complementary methods for identifying unencrypted storage:
Cipheroperations before write calls)Metadata: Added
prerequisites: [identify-sensitive-data]field; removedstatusandnotefieldsThe test complements MASTG-DEMO-0059 which demonstrates the vulnerability using MASTestApp.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.