Documentation

Go to Portal Website

File Sharing Prevention

PlanPlatformsMASVS
TeamiOSMASVS-STORAGE-2, MASVS-PLATFORM-1

Overview

File Sharing Prevention disables iOS file sharing capabilities that would otherwise allow users to extract app documents via the Files app or through computer-based file management (iTunes/Finder). When enabled, this control ensures that your app's Documents folder remains inaccessible to end users, preventing data exfiltration through native iOS file sharing mechanisms.

How It Works

This control modifies your app's Info.plist during the build process to enforce two critical restrictions:

These are standard iOS Info.plist keys that control file sharing behavior. When both are disabled, users cannot:

The build pipeline automatically overrides any existing values, ensuring these protections cannot be bypassed by configuration mistakes.

How to Enable the Control

Navigate to Preventative Controls from the AppTego portal, and expand the Data Sharing Protection section. Under this section you will find the File Sharing Prevention control. Click Enable to enable it for the next build or for it to be applied with a live push (if enabled).

API Configuration Example

{
  "FileSharingPrevention": {
    "protection": true
  }
}
FieldPurpose
protectionEnables file sharing prevention for protected apps.

Threats Mitigated

Data Exfiltration via Files App Prevents malicious users or insider threats from using the iOS Files app to extract sensitive documents, databases, or cached data stored in the app's Documents directory.

iTunes/Finder Document Mounting Blocks computer-based file access through iTunes or Finder, which could otherwise allow users to bypass device-level security controls and directly copy app data to external storage.

Unintended Data Exposure Prevents accidental exposure of sensitive files through file sharing features that developers may have enabled during development but forgot to disable for production builds.

Caveats

Support Matrix

PlatformMinimum VersionStatus
iOS9.0+✅ Supported
AndroidN/A⛔ Not Available

Plan Requirement

TEAM plan or higher required. Not available in FREE tier.