MASTG-TEST-0298: Runtime Monitoring of Files Eligible for Backup
Overview¶
This test logs every file written to the app's data container at /var/mobile/Containers/Data/Application/$APP_ID to identify which files are eligible for backup. Files stored in the tmp or Library/Caches subdirectories are not logged, as they are not backed up.
Steps¶
- Use runtime method hooking (see Method Hooking) and look for uses of file system APIs such as
open,fopen,NSFileManager, orFileHandlethat create or write files. - Exercise the app to trigger file creation and writing.
Observation¶
The output should list every file the app opens that is eligible for backup.
Evaluation¶
The test case fails if any sensitive files are found in the output.
Mitigations¶
Demos¶
MASTG-DEMO-0067: Runtime Tracking of Files Eligible for Backup with Frida