Port MASTG-TEST-0065 to v2: iOS Data Encryption on the Network #3564
+603 −0
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 #831
Description
Ports iOS v1 test MASTG-TEST-0065 "Testing Data Encryption on the Network" to MASTG v2 format, splitting it into atomic tests per the porting guidelines.
New Tests:
MASTG-TEST-0313: Hardcoded HTTP URLs - static analysis using r2 to detect HTTP URLs in iOS binariesMASTG-TEST-0314: ATS Configurations Allowing Cleartext Traffic - static analysis ofNSAppTransportSecurityexceptions in Info.plistMASTG-TEST-0315: Uses of Low-Level Networking APIs that Bypass ATS - static analysis to detect Network framework, CFNetwork, or BSD sockets that bypass ATS protectionsNew Demos:
MASTG-DEMO-0076: Insecure ATS config withNSAllowsArbitraryLoads=trueMASTG-DEMO-0077: HTTP URL detection in binary (draft, requires MASTestApp rebuild)MASTG-DEMO-0078: Low-level Network framework usage bypassing ATS (draft, requires MASTestApp rebuild)MASTG-DEMO-0079: BSD sockets usage bypassing ATS (draft, requires MASTestApp rebuild)Updates:
MASTG-TEST-0236(platform: network): Added related-tests linking to new iOS tests including MASTG-TEST-0315MASTG-TEST-0065: Deprecated withcovered_bypointing to new v2 testsAll tests reference weakness
MASWE-0050and profiles[L1, L2]. Dynamic analysis is covered by existingMASTG-TEST-0236.[x] I have read the contributing guidelines.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.