Repository navigation
Add Android MASTG Test, Demo, Knowledge and Best Practice for AndroidX Security State - #4004
Draft
cpholguera with Copilot wants to merge 2 commits into
Draft
cpholguera with Copilot wants to merge 2 commits into
cpholguera with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: cpholguera <29175115+cpholguera@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add new TEST, DEMO, KNOW, and BEST entries for Security State
Add Android MASTG Test, Demo, Knowledge and Best Practice for AndroidX Security State
Oct 1, 2026
This branch has not been deployed
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.
Adds MASTG content for the AndroidX Security State library (
androidx.security:security-state), which reports per-component patch compliance and update availability beyondBuild.VERSION.SECURITY_PATCH. It does not cover device authenticity or tampering; Play Integrity is needed for that.All IDs are drafting placeholders (
0x01). Real IDs need to be assigned after review.MASTG-KNOW-0x01,MASVS-CODE)SecurityStateManagerandSecurityPatchState, the vulnerability report feed, and the library's scope.MASTG-BEST-0x01)MASTG-TEST-0x01, static)Build.VERSION.SECURITY_PATCHreads. It fails if the APIs are absent or their result is never evaluated.MASWE-0077, chosen from memory because the MASWE list isn't in the repo. Please confirm.rules/mastg-android-device-security-state.yml)INFO) for the same APIs.MASTG-DEMO-0x01)output.txtis real semgrep output (5 findings) from running the rule onMastgTest_reversed.java.For reviewers
MastgTest_reversed.javais hand-written, not decompiled from a built APK.