MASTG-MITIG-0004: Exclude Sensitive Data from Backups
For the sensitive files found, instruct the system to exclude them from the backup:
- If you are using Auto Backup, mark them with the
exclude
tag inbackup_rules.xml
(for Android 11 or lower usingandroid:fullBackupContent
) ordata_extraction_rules.xml
(for Android 12 and higher usingandroid:dataExtractionRules
), depending on the target API. Make sure to use both thecloud-backup
anddevice-transfer
parameters. - If you are using the key-value approach, set up your BackupAgent accordingly.