Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,43 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.2.0] - 2025-07-16

- iOS SDK version: 6.12.1
- Android SDK version: 16.0.1

### Android

#### Added

- Added support for 16 KB memory page sizes
- Added `multiInstance` callback
- Detecting whether the application is installed/running in various multi-instancing environments (e.g. Parallel Space)

#### Changed

- The ADB service running as a root is a signal for root detection
- Improved emulator detection
- Internal security improvements

#### Fixed

- Removed malware report duplicates

### iOS

#### Added

- Added palera1n jailbreak detection

#### Changed

- Improved Dopamine jailbreak detection

#### Fixed

- Resolved memory-related stability issues.

## [4.1.0] - 2025-05-15

- iOS SDK version: 6.11.0
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ dependencies {
implementation "com.facebook.react:react-native:$react_native_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
implementation "com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:15.1.0"
implementation "com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:16.0.1"
}

if (isNewArchitectureEnabled()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ internal object FreeraspThreatHandler : ThreatListener.ThreatDetected, ThreatLis
listener?.threatDetected(Threat.ScreenRecording)
}

override fun onMultiInstanceDetected() {
listener?.threatDetected(Threat.MultiInstance)
}

internal interface TalsecReactNative {
fun threatDetected(threatType: Threat)

Expand Down
4 changes: 3 additions & 1 deletion android/src/main/java/com/freeraspreactnative/Threat.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ internal sealed class Threat(val value: Int) {
object ADBEnabled : Threat((10000..999999999).random())
object Screenshot : Threat((10000..999999999).random())
object ScreenRecording : Threat((10000..999999999).random())
object MultiInstance : Threat((10000..999999999).random())

companion object {
internal fun getThreatValues(): WritableArray {
Expand All @@ -47,7 +48,8 @@ internal sealed class Threat(val value: Int) {
Malware.value,
ADBEnabled.value,
Screenshot.value,
ScreenRecording.value
ScreenRecording.value,
MultiInstance.value
)
)
}
Expand Down
10 changes: 10 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@ const App = () => {
)
);
},
// Android only
multiInstance: () => {
setAppChecks((currentState) =>
currentState.map((threat) =>
threat.name === 'Multi Instance'
? { ...threat, status: 'nok' }
: threat
)
);
},
};

const addItemsToMalwareWhitelist = async () => {
Expand Down
1 change: 1 addition & 0 deletions example/src/checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ export const androidChecks = [
{ name: 'Developer Mode', status: 'ok' },
{ name: 'Malware', status: 'ok' },
{ name: 'ADB Enabled', status: 'ok' },
{ name: 'Multi Instance', status: 'ok' },
];
10 changes: 5 additions & 5 deletions ios/TalsecRuntime.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
<key>BinaryPath</key>
<string>TalsecRuntime.framework/TalsecRuntime</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>TalsecRuntime.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>TalsecRuntime.framework/TalsecRuntime</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>TalsecRuntime.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file modified ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory
Binary file not shown.
Binary file modified ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1
Binary file not shown.
Loading
Loading