MASTG-TEST-0299: Data Protection Classes for Files in Private Storage
Overview¶
This test retrieves the data protection classes of files ( File System APIs) created or modified in the app's private storage ( App Sandbox Directories) during typical app usage. The goal is to ensure that files containing sensitive data are assigned appropriate data protection classes to safeguard them when the device is locked.
Steps¶
- Ensure the device / simulator is in a clean state (no prior test artifacts). Terminate the app if running.
- Launch and exercise the app to trigger typical workflows (authentication, profile loading, messaging, caching, offline usage, cryptographic operations).
- Retrieve the list of files from the app's private storage (sandbox) directory tree (
/var/mobile/Containers/Data/Application/<UUID>/) including the data protection classes ( Accessing App Data Directories).
Observation¶
The output should contain:
- List of files in private storage including at least path and data protection class.
Evaluation¶
The test case fails if files containing sensitive data have the data protection class set to NSFileProtectionNone.