Skip to content
Open
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
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,39 @@ 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).

## [6.1.0] - 2026-11-20

- Android SDK version: 20.0.1
- iOS SDK version: 9.0.0

### React Native

#### Changed

- `criticalChecksFinished` and `postponedChecksFinished` RASP execution state actions are now also triggered on iOS
- On iOS, `fastChecksFinished` is triggered when the fast checks are completed, while the postponed checks may still run, the same as on Android

### iOS

#### Added

- Improved app integrity detection.

#### Changed

- Improved jailbreak detection.
- Updated CA bundle.
- Updated `OpenSSL` dependency to `3.5.8`.
- Updated `curl` dependency to `8.22.0`.
- Reduced the SDK size.

#### Fixed

- Fixed crash in frida port scanning.
- Fixed stack overflow crash when `blockScreenCapture` is enabled.
- Fixed missing app integrity detection details in logs for builds with a provisioning profile.
- Fixed placement of app integrity certificate details in logs.

## [6.0.0] - 2026-11-11

- Android SDK version: 20.0.1
Expand Down
9 changes: 7 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const App = () => {
const [suspiciousApps, setSuspiciousApps] = React.useState<
SuspiciousAppInfo[]
>([]);
const [criticalChecksStatus, setCriticalChecksStatus] = React.useState<
'in progress' | 'completed'
>('in progress');
const [allChecksStatus, setAllChecksStatus] = React.useState<
'in progress' | 'completed'
>('in progress');
Expand Down Expand Up @@ -307,11 +310,12 @@ const App = () => {
};

const raspExecutionStateActions = {
// Android & iOS
criticalChecksFinished: () => {
setCriticalChecksStatus('completed');
},
fastChecksFinished: () => {
setAllChecksStatus('completed');
},
// Android only
postponedChecksFinished: () => {
setPostponedChecksStatus('completed');
},
Expand Down Expand Up @@ -378,6 +382,7 @@ const App = () => {
<DemoApp
checks={appChecks}
suspiciousApps={suspiciousApps}
criticalChecksFinishedStatus={criticalChecksStatus}
fastChecksFinishedStatus={allChecksStatus}
postponedChecksFinishedStatus={postponedChecksStatus}
/>
Expand Down
15 changes: 10 additions & 5 deletions example/src/DemoApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ export const DemoApp: React.FC<{
detail?: string;
}[];
suspiciousApps: SuspiciousAppInfo[];
criticalChecksFinishedStatus: 'in progress' | 'completed';
fastChecksFinishedStatus: 'in progress' | 'completed';
postponedChecksFinishedStatus: 'in progress' | 'completed';
}> = ({
checks,
suspiciousApps,
criticalChecksFinishedStatus,
fastChecksFinishedStatus,
postponedChecksFinishedStatus,
}) => {
Expand Down Expand Up @@ -276,15 +278,18 @@ export const DemoApp: React.FC<{
</HStack>
)}
<Text style={styles.titleText}>RASP Execution State:</Text>
{renderExecutionState(
'Critical Checks Finished',
criticalChecksFinishedStatus
)}
{renderExecutionState(
'Fast Checks Finished',
fastChecksFinishedStatus
)}
{Platform.OS === 'android' &&
renderExecutionState(
'Postponed Checks Finished',
postponedChecksFinishedStatus
)}
{renderExecutionState(
'Postponed Checks Finished',
postponedChecksFinishedStatus
)}
<Text style={styles.titleText}>freeRASP checks:</Text>
{checks.map((check: any, idx: number) => (
<Box
Expand Down
15 changes: 11 additions & 4 deletions ios/FreeraspReactNative.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ class FreeraspReactNative: RCTEventEmitter {

@objc(storeExternalId:withResolver:withRejecter:)
private func storeExternalId(externalId: String, resolve: RCTPromiseResolveBlock, rejecter reject: RCTPromiseRejectBlock) -> Void {
UserDefaults.standard.set(externalId, forKey: "app.talsec.externalid")
Talsec.storeExternalId(externalId: externalId)
resolve("OK - Store external ID")
}

@objc(removeExternalId:withRejecter:)
private func removeExternalId(resolve: RCTPromiseResolveBlock, rejecter reject: RCTPromiseRejectBlock) -> Void {
UserDefaults.standard.removeObject(forKey: "app.talsec.externalid")
Talsec.removeExternalId()
resolve("OK - External ID removed")
}

Expand Down Expand Up @@ -173,10 +173,17 @@ extension SecurityThreatCenter: @retroactive SecurityThreatHandler, @retroactive
ThreatDispatcher.shared.dispatch(threat: securityThreat)
}

// The iOS SDK reports its standard checks as a single "all checks" event, which maps to fastChecksFinished.
public func onAllChecksFinished() {
public func onCriticalChecksFinished() {
ExecutionStateDispatcher.shared.dispatch(event: RaspExecutionStates.criticalChecksFinished)
}

public func onFastChecksFinished() {
ExecutionStateDispatcher.shared.dispatch(event: RaspExecutionStates.fastChecksFinished)
}

public func onPostponedChecksFinished() {
ExecutionStateDispatcher.shared.dispatch(event: RaspExecutionStates.postponedChecksFinished)
}
}


Binary file modified ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory
Binary file not shown.
Loading
Loading