Lab
  • DRM packaging tutorialsCourse
  • 5 things you need to know about multi-DRMCourse
  • Getting started with Doverunner Anti PiracyCourse
  • Getting started with Doverunner Forensic WatermarkingCourse
  • Getting started with Doverunner Mobile App SecurityCourse
  • Getting started with Doverunner Multi-DRMCourse
  • Getting started with Doverunner Transcoding & PackagingCourse
  • Packaging content with the DRM CLI PackagerLesson · DRM packaging tutorials
한국어

Seal your app

Upload an app build to Doverunner Console and apply runtime protection (RASP) with no code changes.

Lesson 13 min

DRM: —Status: idle

Transcript
Seal your app with Doverunner Mobile App Security. Step 1 of 3. In this lesson you'll protect a finished mobile app without changing a line of code. You'll walk through the Android sealing wizard, make sure the sealed app is signed, and see the two ways to protect an iOS app. Sealing adds runtime protection to a build you've already made. You upload the finished app to Doverunner Console, and sealing adds code protection, integrity checks, environment detection, and threat tool detection. Your source code stays untouched, and a sealed app defends itself while it runs on the user's device. Start in Doverunner Console, under Mobile App Security, Android. On the App Configuration tab, click Register New App, choose Native or Hybrid, and enter your app name and package name. Sealing only works for a package that's registered here. Next, open Apply AppSealing and upload your APK or AAB. In basic configuration, choose the framework your app uses, such as native, Unity, Flutter, or React Native. Then pick the sealing mode. Test mode applies the same protection as Release, shows a periodic test message in the app, and is free. Release mode removes the message and is charged. Turn on at least one Dex protection option, and apply your ProGuard or R8 setup before sealing. The next steps decide how your app reacts to risk. Environment detection covers rooted devices, emulators, and similar setups. Tool and package detection covers things like macro tools, packet interception tools, and keyloggers. Advanced detection covers screen mirroring and capture, over-the-air updates, and overlay windows. For each option you choose the response, and the panel on the right always shows the security settings that will be applied. Then click Start AppSealing. When sealing finishes, download the sealed app. Sealing changes the app, so the original signature is no longer valid, and the app has to be signed again before you can install it or submit it to the store. The download offers three choices: without signing, signed with the AppSealing key, or signed with your own key. To use your own key, register your keystore under Manage KeyStore first. If you download it unsigned, sign it yourself with apksigner for an APK, or jarsigner for an AAB. On iOS you have two options. IPA sealing takes a compiled IPA, protects it in the console, and gives you a protected build back. The original signature is invalidated, so the console can re-sign it for you, or you re-sign it yourself. SDK sealing is different. You register a project with your bundle ID prefix, download the SDK, and add it to your build, so protection is applied on every build with your normal signing. Choose IPA sealing to protect a build you already have, and SDK sealing to protect every build automatically. Your app is sealed and signed. Once it's released, the next step is watching for hacking attempts on the Dashboard. That's the next lesson.

Where this lesson fits

This is lesson 1 of 3 in the Mobile App Security course:

  1. Seal your app (this lesson)
  2. Monitor threats on the Dashboard
  3. Configure alerts and preferences in the Console settings

Sealing is the step that adds protection to your app. The next two lessons cover what happens after release: reading the hacking attempts your sealed app reports, and setting up alerts for them.

What sealing does

Doverunner Mobile App Security protects a mobile app at runtime (RASP, Runtime Application Self-Protection) without any code changes. You build your app as usual and upload the finished build to Doverunner Console. Sealing wraps it with a security module that starts alongside your app and keeps defending it on the user's device.

Every sealed Android app gets the same always-on protections, which you can't turn off:

Group What it covers
Code Encryption SO encryption for native code, DLL encryption for Unity and Xamarin (Mono) apps, JavaScript bundle encryption for React Native apps
Anti Debugging & Runtime attack Debugger attach blocking, Frida and Xposed framework detection, trampoline code hooking detection, memory dump detection, SSL pinning bypass prevention
Anti Tampering Code, resource and asset integrity checks, package name and AndroidManifest manipulation detection, memory manipulation blocking
Virtual environments Virtual OS, virtual space tools, Xiaomi Dual App and Second Space
Cheating Tools Game Guardian, Lucky Patcher, speedhack tools, APK editors
Threat detection & Analytics Real-time hacking data sent to the Dashboard, and localized threat messages

The options you choose in the wizard decide the rest: how the app reacts to rooted devices, emulators, malicious tools and similar threats.

Before you start

  • A finished build. An APK or AAB for Android, or a compiled IPA for iOS. You don't need the source code.
  • A Doverunner Console account. Sign in at console.doverunner.com.
  • Your app framework. Native (Java/Kotlin), Unity, Unreal, Flutter, Xamarin, React Native, Ionic, Cordova, or another. For React Native, know which version you used.
  • Your keystore details (optional). You need them only if you want the Console to sign the sealed app for you.
  • ProGuard/R8 applied. If you plan to use Dex protection, apply your usual ProGuard or R8 obfuscation first. Dex protection builds on top of it and doesn't replace it.

Android: seal an APK or AAB

In Doverunner Console, open Mobile App Security > Android. The Android menu has App Configuration, Apply AppSealing, Preset, Threat Response Messages, Historical Information, and Manage KeyStore.

1. Register your app

  1. On the App Configuration tab, click Register New App.
  2. Choose the app type, Native or Hybrid.
  3. Enter the app name and the package name.

Sealing only works for a package that is registered here. Once registered, the app appears as a card on the App Configuration tab. Each card has a Service toggle that controls whether Doverunner tracks hacking events for the app. Usage-based charges apply while it is on, so turn it off for apps you stop using.

2. Upload the file

Open Apply AppSealing and upload your APK or AAB. The first wizard step, Upload File, also lists the always-on protections shown above. After the upload, a Preset selector appears in the right-hand panel, so you can apply a saved sealing preset instead of setting every option by hand.

Throughout the wizard, the right-hand panel shows Security settings to be applied and updates with every choice you make.

3. Basic Configuration

Option What to choose
Select your app framework The framework your app is built with, for example Native, Unity, Flutter, or React Native
Select AppSealing Version The sealing version. Use the latest to get the newest protections and framework support. Some options below depend on the version
Sealing Mode Test applies the same protection as Release, shows a periodic test message on screen, and is free. Release removes the message and is charged
SO Encryption Yes (default) encrypts all compatible .so files, No encrypts none, Selective lets you choose the files
Dex Protection Dex Encryption, Dex String Obfuscation, and Call Hiding. Turn on at least one

Use Test while you try sealing out, and switch to Release for the build you ship. Dex String Obfuscation and Call Hiding also offer an intensity setting: Fast (default, best performance), Balance, and Maximum (strongest, with some performance cost). In Selective mode, Dex String Obfuscation and Call Hiding use the package lists you maintain in App Configuration, so fill those in before you seal.

On sealing version 3.2.0.0 and later, Integrity Options let you tune the integrity check, and Enable Signing Certificate Identity Check verifies your app's signing certificate at runtime to detect resigned or repackaged copies.

4. Environment Detection

This step decides how the app reacts when it runs in a risky environment. For most detections you choose Block (terminate the app) or Allow.

Option What it detects Default
Rooting Rooted devices and rooting tools Block
Developer Options Whether Android Developer Options are on Allow
USB Debugging Whether USB debugging is on Block
Wi-Fi Identification Collects the security type of the connected Wi-Fi network for monitoring (Android 12 and later) Disable
Emulators Android emulators. Optional lets you allow specific emulators Block
Work Profile & Samsung Security Folder Apps running in a work profile or Samsung Secure Folder. Optional lets you allow Secure Folder Block

5. Tool & Package Detection

This step covers malicious tools installed on the same device.

Option What it detects Default
Malicious Tool Detection Master switch for this step. Allow turns off all tool and package detection Block
Macro Tools Macro automation tools Block
Packet Attacks Packet interception tools Block
Keylogger Keyloggers that collect the user's touch input Allow
Package Whitelist Package names to exempt from detection Empty

While Malicious Tool Detection is on Block, tools Doverunner hasn't categorized are also detected and terminate the app. The app shows a message naming the detected package. If that package is harmless, add it to the Package Whitelist.

6. Advanced Detection

Option What it does Default
Screen Mirroring & Capture Covers screen capture, recording, mirroring, and remote control. When blocked, capture tools see a black screen and the app keeps running Allow
Overlay Windows Hides other apps' overlay windows drawn over your app (Android 12 and later). The app keeps running Allow
Over the Air Update Delivers your custom threat blocklist to active installs without a new release (Enterprise plan) No

Some options, such as Hardware Key Attestation and Customize Threat Response Messages, are add-ons that appear only when they are enabled for your account. A sixth step, Access Signals, also appears only when that add-on is active. The wizard you see may therefore have five steps or six.

Choose how the app responds

With sealing version 3.3.0.0 and later, most detections offer four responses instead of two:

Response Behavior
Block Detects the threat and terminates the app
Monitor Detects and logs the threat without terminating the app
Callback Detects and logs the threat, and calls your app's threat callback handler without terminating the app
Allow Doesn't respond

7. Start sealing

Review the Security settings to be applied panel, then click Start AppSealing. When sealing finishes, a download prompt appears.

Download and sign the sealed app

Sealing changes your app, so the original signature is no longer valid. The sealed app has to be signed again before you can install it or submit it to the store. The download prompt offers three choices:

Choice What you get
Download without signing An unsigned file. It can't be installed until you sign it yourself
Download signed app with Doverunner key An APK signed with Doverunner's key, ready to install on a test device. Not available for AAB. A different signing key disables authentication features such as Google login, so don't ship this build
Download signed app with your key An app signed with your own registered key, ready to install or submit. Disabled until you register a keystore

To use your own key, open Manage KeyStore and register the Alias, KeyStore Password, Key Password, and KeyStore File. Keystore and key information is encrypted and used only for signing. On accounts that use multiple keystores, the Manage KeyStore menu isn't shown and keystores are managed per app in App Configuration instead.

If you download the app unsigned, sign it yourself:

Format Tool Command
APK apksigner apksigner sign --ks your.keystore your-app.apk
AAB jarsigner jarsigner -keystore your.keystore your-app.aab alias

You can download a sealed app again from Historical Information for one month after sealing. After that the record shows Expired.

iOS: IPA sealing or SDK sealing

On iOS, both methods protect your app without source code changes. They differ in where protection is applied.

IPA Sealing SDK Sealing
What you provide A compiled .IPA A project registered with a Bundle ID prefix
Where protection is applied To the finished binary, in the Console In your build, through the downloaded SDK
Build changes None You integrate the SDK
Signing The original signature is invalidated. The Console re-signs the app, or you re-sign it yourself Your build signs as usual
Best when You want to protect a build you already have You want every build protected automatically

IPA sealing

Open iOS Mobile App Security > IPA Sealing and upload the .IPA. The Code Signing switch in the wizard decides who re-signs the app. With Code Signing ON (the default), you also upload a provisioning profile (.mobileprovision), a signing certificate (.p12), and its password, and the downloaded IPA is ready to install or submit. With it OFF, you upload only the IPA and re-sign the result yourself.

The IPA must be a decrypted build. An app downloaded from the App Store carries FairPlay encryption and can't be sealed.

SDK sealing

Open iOS Mobile App Security > SDK Projects, click Create Project, and enter a project name and your app's Bundle ID prefix, for example com.example. The console appends .*, so every Bundle ID that starts with the prefix is covered. The prefix can't be changed after you create the project. Then download the SDK and integrate it into your build.

Tips and common mistakes

  • Register the package first. Sealing works only for registered packages.
  • Apply ProGuard or R8 before Dex protection. Dex protection is a second layer, not a replacement.
  • Start with Test mode. It applies the same protection as Release, so you can check the results before you pay for a Release build.
  • Never ship an unsigned or Doverunner-signed build. Sign with your own key, through Manage KeyStore or by hand.
  • Fill in the package list before using Selective. With Dex String Obfuscation or Call Hiding on Selective and an empty list, sealing stops with an error. Add packages in App Configuration first.

Recap

  • Sealing adds runtime protection to a finished build without touching your source code.
  • On Android: register the app, upload the APK or AAB in Apply AppSealing, walk through the wizard, and start sealing.
  • The sealed app must be signed again. Register your keystore in Manage KeyStore, or sign it yourself with apksigner or jarsigner.
  • On iOS, choose IPA sealing to protect a build you already have, or SDK sealing to protect every build.

Next, lesson 2 shows how to watch hacking attempts on your sealed app in the Dashboard.

Learn more