Port MASTG-TEST-0079 (iOS Object Persistence) to v2 format with demo #3561
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.
This PR closes #3020
Description
Ports the v1 test "Testing Object Persistence" (MASTG-TEST-0079) to v2 format as MASTG-TEST-0313 and adds a demo.
New v2 test (
tests-beta/ios/MASVS-CODE/MASTG-TEST-0313.md):New demo (
demos/ios/MASVS-CODE/MASTG-DEMO-0076/):MastgTest.swift- Sample code demonstrating insecure object persistence using NSCoding instead of NSSecureCodingnscoding.r2- radare2 script to identify object persistence APIs in the binaryrun.shandoutput.txt- Analysis script and expected outputMASTG-DEMO-0076.md- Demo documentationDeprecated v1 test (
tests/ios/MASVS-CODE/MASTG-TEST-0079.md):Note: MASWE-0006 (Insecure Data Storage) used as weakness since no specific MASWE exists for insecure deserialization. This is appropriate given object persistence inherently involves data storage concerns.
[x] I have read the contributing guidelines.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.