Introduction
Welcome to Mobile Application Shielding for Android 8.3.0!
This is a release of Mobile Application Shielding, which contains enhancements and other product updates. It also contains a compatibility release (App Shielding for Android 8.3.0-SDKcompat) to support compatibility with third party SDKs (e.g., payment SDKs).
Except for the compatibility feature, there are no differences between App Shielding for Android 8.3.0-SDKcompat and App Shielding for Android 8.3.0. Thus, no separate set of documents has been provided for the compat release.
For more information about new features and fixed defects, refer to the respective sections in this article. For information about configuring and using Mobile Application Shielding, see the Mobile Application Shielding Integration Guide.
Supported versions
App Shielding
The minimum supported version is now App Shielding v6.5.1.120993.
Android
App Shielding version 8.3.0 was successfully tested with Android 16.
Android 5.0 (API level 21) – Android 16 (API level 36).
Shielding Tool:
Windows 10: 64-bit Java 17
Mac OSX (10.9+)
Ubuntu Linux 22.04 LTS or 24.04 LTS
Android platform updates
The Android minimum supported version is 5.0 (API level 21). This version of App Shielding supports Android 16.
If you want your protected app to run on Android 15 or later, you must upgrade to App Shielding 6.6.0 or later.
Beginning with Android 15, Android supports devices that are configured to use a page size of 16 KB (i.e., 16 KB devices). App Shielding has been updated to work on these 16 KB devices. However, if your app uses any native libraries, you must ensure that these libraries are ready for 16 KB page sizes. For more information, refer to the Android Developer documentation.
Other platform updates: Jigsaw engine
The Jigsaw engine has been upgraded to version 1.28.1, which improves the obfuscation of Android syscalls when code is embedded into the protected binary.
New features and other updates
New Premium Feature: OneSpan API Protection
With this version, we are launching another Premium Feature, OneSpan API Protection, as an extension to OneSpan Mobile Application Shielding. With OneSpan API Protection, you can verify that a connecting client is legitimate Android or iOS app which is protected with App Shielding.
For example, your app might need to call an API endpoint on your server to log in a user. OneSpan API Protection ensures that not only is the request from a source that you trust but that the requesting app and/or device has not been compromised. With OneSpan API Protection you can choose to reject requests from rooted/jailbroken devices, repackaged apps, and apps where runtime manipulations or hooking frameworks were detected.
To implement this premium feature in your integration, you need a license for OneSpan API Protection. For information how to obtain this, please contact your sales representative. For more information about the feature, see the product documentation (valid license required to access the documents).
With a valid license you can enable this feature in the configuration for your shielding project in the OneSpan Mobile Portal.
HTML reports
App Shielding now produces integration reports in HTML format that summarize the application data, configuration options, log data, and applied Shielding Tool rules. Sensitive information, such as tokens, is redacted in the report. The following report file is generated in the same directory as the protected app in the following format: app_ext_IntegrationReport_timestamp.html.
Magisk Detector added to Advanced Configuration Mode
In the Advanced Configuration Mode on Android, the Magisk Detector option is now available. This is a heuristic-based detector for rooted Android devices with Magisk. To see and select this new option, enable Advanced Configuration in your project configuration on the OneSpan Mobile Portal.
Code Injection
The new App Shielding Code Injection detection feature checks if code was injected into the application’s process. This feature is enabled in the Edit configuration page in the OneSpan Mobile Portal with the Code Injection configuration option. For more information, see Configuration Options for Android: Code Injection.
If checkCodeInjection is enabled, you can capture the CODE_INJECTION callback type that provides CodeInjectionData, including an isCodeInjected()method. For more information, see Callbacks on Android. For more information on how to configure callbacks, see Configure callbacks on Android.
Pull binding configurations
The bindingStyle Shielding Tool rule now supports pull binding configurations, including new integer pull bindings. The default configuration looks like the following:
bindingStyle default-bindings {
pull {
max-integers 0
max-strings all
}
}
bind:default-bindings *;The max-integers and max-strings options can be 0 to disable bindings, all to enable bindings for all in-scope integers/strings, or a positive integer to explicitly set the number of bindings. Pull bindings increase security but add a performance overhead. We recommend keeping the default for string bindings and only add integer pull bindings for specific needs. For more information, see Binding rules.
The Shielding Tool supports advanced binding styles for even stronger bindings. These bindings are experimental and very resource-heavy, so consult with OneSpan Support if you want to implement them.
Fixes and other changes
RASP-6138: Kotlin sample project not built
Description: The Kotlin sample project was not built when Kotlin versions were duplicated in the configuration, unless the sample had been updated to include API Protection. This should not be the case, the sample should build successfully with a single, consistent Kotlin version configuration, regardless of whether API Protection is included in the sample code, or not.
Status: This issue has been fixed. The Kotlin sample project has been updated.
SHAND-5211: Improved memory scanning detection
Description: Memory scanning detection has been improved to detect scans sooner.
SHAND-5251: Improved native code hook detection
Description: The native code hook detection has been improved to more accurately detect modifications to system libraries.
SHAND-5427: Improved coverage of native library integrity checks with Shielding Tool
Description: The coverage of native library integrity checks has been improved and now includes non-writable PT_LOAD segments when the textSection option is enabled. For reference, integrity checks are enabled in a Shielding Tool rules file using the following syntax:
cfg
verify "myLib.so" {
textSection;
...
};SHAND-5508: False positive with native code hook detection
Description: Sometimes, a a false positive occurred with native code hook detection and apps that were configured to allow their own debugger detection.
Status: This issue has been fixed.
SHAND-5515: Potential false positives in memory scanning detection
Description: Memory scanning detection potentially resulted in false positives.
Status: This issue has been fixed.
SHAND-5574: Issue when Shielding Tool parsed native libraries
Description: Sometimes, an issue with a BufferUnderflowException occurred at protection time when the Shielding Tool parsed native libraries with a file size of 0.
Status: This issue has been fixed. The Shielding Tool now skips parsing such files and prints the following warning: WARNING: Error during reading of library file 'lib/arm64-v8a/libempty.so': Invalid library, file size is 0. .
SHAND-5592: Improved binding security
Description: The security of App Shielding bindings has been improved and they now protect against binding tampering.
Other Notices
Additional rules for API Protection
For App Shielding implementations with the API Protection premium feature, users need to add the following to run the app after shielding:
# Preserve the class name (and members)
preserve class okhttp3.internal.platform.PlatformInitalizer;
preserve class okhttp3.internal.platform.PlatformInitalizer {
preserve <members>;
}Virtual space app restrictions
Some virtual space apps use techniques similar to malware (e.g., native code hooking), which can trigger App Shielding security protections. As the App Shielding detection capabilities improve, additional virtual space apps might be restricted.
Known limitations
The limitations described here have not yet been solved for the current Mobile Application Shielding version. Possible workarounds are described where available.
Exit on emulator URL not triggered reliably
For some configuration options, App Shielding can launch a web page that displays an explanation if a given condition is met and the application is shut down. To launch such a web page, the URL is added to the configuration. For the Exit on emulator URL option, i.e. to launch a web page when the application is shut down because the app is run in an emulator, the URL is not being reliably triggered. There is no guarantee that the web page is launched even though the application may be running in an emulator. We therefore recommended to not using this option.
For general information about launching a web page with an explanation, see Exit URL launching on Android.
Build failures for Java/Kotlin sample
To resolve build failures of the Java/Kotlin sample app, edit the CMakeLists.txt file located in the cpp folder. Replace target_compile_features(native-lib PRIVATE cxx_std_17) with the following two lines:
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)With this change, the sample should build successfully.
Methods to block screenshots also block screen mirroring tools
Description: The methods used to block screenshots also block some screen mirroring tools. However, the scrcpy tool is only blocked on Android 12 and later. On Android 15, this option also blocks partial screen sharing.
Bypassing App Shielding protection in Cordova-based applications
Description: Because of the nature of pure Javascript frameworks such as Cordova, the effectiveness of the push and pull bindings of App Shielding is affected. As a result, it might be possible to extract all Javascript files from a shielded application and build a new Cordova-based application with the extracted Javascript files. That new application will behave identical to the original one but has two major differences:
It is no longer protected with App Shielding.
It is signed with a different developer certificate.
Because this new application is signed with a different developer certificate, it is recognized by the stores or every device as a completely different and new application in comparison to the original shielded application. It cannot be avoided that a new application like this is built that looks and behaves similar to the original application.
OneSpan risk assessment: Threat actors will need to make heavy use of targeted phishing attacks to convince users of the original application to install the rogue version. For attackers, however, it is much easier to use existing malware frameworks that mimic hundreds of login screens in one single piece of malware. In addition, the existence of any rogue versions of the application does not affect the security features of the original shielded application. Everyone who is using the genuine, shielded application is protected with all the features of App Shielding, including all security measures of the original application. Therefore, we consider this issue to be of low risk.
NFC payment failure in shielded apps with Thales Gemalto SDK
Description: When using the shielded version of the app, NFC payments fail. This is caused by a compatibility issue with the Thales Gemalto TSH Pay SDK which also provides debugger detection. The SDK incorrectly flags the App Shielding debugger detection as a native debugger.
Solution: Allowlisting. For implementations integrating both the Thales Gemalto SDK and App Shielding, debuggers coming from the SDK's own debugging processes and sub-processes should be added to an allowlist within the Thales Gemalto SDK.
It is essential to not only add the processes to the allowlist but also their sub-processes. Otherwise, the SDK will still handle App Shielding as a native debugger!
Magisk and root hider tools on new Android versions
Root hider tools such as Magisk Hide are designed to hide the fact that the device is compromised (rooted). Android has been increasingly restricted in what can be inspected and observed of the system from inside an app. This means that a rooted system with a root hider tool can be hard to detect due to missing privileges.
On Android 8+, App Shielding may not able to reliably detect a rooted device with Magisk Hide depending on the version of these tools.