Skip to content

Commit 5bf78af

Browse files
authored
freeRASP 8.2.0 (#62)
* feat: init update * add execution state ui * raise version * update linter * update import * fix: types exporting * fix tsc script * update android sdk * remove overlay code * fix android listener registration * fix overflow in example app * request user permissions in example app * update ios sdk * chore: update deps * fix ios plugin init * docs: add changelog * feat: add killOnBypass * chore: update example app * prettier fix * update npmignore * add permissions to malware * chore: update example tsconfig * chore: format malware component * format .kt sources * remove spaces * remove unused eeslint rule
1 parent e1dba9d commit 5bf78af

118 files changed

Lines changed: 8823 additions & 5218 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module.exports = {
1919
rules: {
2020
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
2121
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
22-
'@typescript-eslint/ban-ts-comment': 'off',
2322
'@typescript-eslint/no-explicit-any': 'off',
23+
'@typescript-eslint/ban-ts-comment': 'off',
2424
'@typescript-eslint/no-unused-vars': 'off',
2525
},
2626
};

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ config.example.json
33
*.zip
44
*.tgz
55
scripts/
6-
www/talsec.ts
6+
www/src/
77

88
# OSX
99
#

.prettierignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
example/www
2-
example/plugins
3-
example/platforms
4-
example/dist
1+
**/plugins/
2+
**/platforms/
3+
**/dist/
4+
example/www/

CHANGELOG.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,65 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [8.2.0] - 2026-02-03
9+
10+
- Android SDK version: 17.0.1
11+
- iOS SDK version: 6.13.0
12+
13+
### Cordova
14+
15+
#### Added
16+
17+
- Added `killOnBypass` to `TalsecConfig` that configures if the app should be terminated when the threat callbacks are suppressed/hooked by an attacker (Android only) ([Issue 65](https://github.com/talsec/Free-RASP-Android/issues/65))
18+
- Added API for `timeSpoofing` callback into `ThreatEventActions` (Android only)
19+
- Added API for `unsecureWifi` callback into `ThreatEventActions` (Android only)
20+
- Added API for `allChecksFinished` callback into new `RaspExecutionStateEventActions` object
21+
- Added matched permissions to `SuspiciousAppInfo` object when malware detection reason is `suspiciousPermission`
22+
23+
#### Changed
24+
25+
- Changed deprecated initialize for pluginInitialize on Android
26+
- Improved the RASP listener registration
27+
28+
#### Fixed
29+
30+
- Resolved potential collision in threat identifiers
31+
32+
### Android
33+
34+
#### Added
35+
36+
- Added `killOnBypass` method to the `TalsecConfig.Builder` that configures if the app should be terminated when the threat callbacks are suppressed/hooked by an attacker [Issue 65](https://github.com/talsec/Free-RASP-Android/issues/65)
37+
- We are introducing a new capability, detecting whether the device time has been tampered with (`timeSpoofing`)
38+
- We are introducing a new capability, detecting whether the location is being spoofed on the device (`locationSpoofing`)
39+
- We are introducing a new capability, detection of unsecure WiFi (`unecureWifi`)
40+
- Removed deprecated functionality `Pbkdf2Native` and both related native libraries (`libpbkdf2_native.so` and `libpolarssl.so`)
41+
- Added new `RaspExecutionState` which contains `onAllChecksFinished()` method, which is triggered after all checks are completed.
42+
- Added matched permissions to `SuspiciousAppInfo` object when malware detection reason is `suspiciousPermission`
43+
- New option to start Talsec, `Talsec.start()` takes new parameter `TalsecMode` that determines the dispatcher thread of initialization and sync checks (uses background thread by default)
44+
- Capability to check if another app has an option `REQUEST_INSTALL_PACKAGES` enabled in the system settings to malware detection
45+
46+
#### Fixed
47+
48+
- ANR issue caused by `registerScreenCaptureCallback()` method on the main thread
49+
- `NullPointerException` when checking key alias in Keystore on Android 7
50+
- `JaCoCo` issue causing `MethodTooLargeException` during instrumentation
51+
- `DeadApplicationException` when calling `Settings.Global.getInt` or `Settings.Secure.getInt` on invalid context
52+
- `AndroidKeyStore` crashes causing `java.util.concurrent.TimeoutException` when calling `finalize()` method on `Cipher` (GC issues)
53+
- Fixed issue with late initializers and `TalsecMode` coroutines scopes
54+
55+
#### Changed
56+
57+
- Shortened the value of threat detection interval
58+
- Refactoring of internal architecture of SDK that newly uses Coroutines to manage threading
59+
- Update of internal dependencies and security libraries
60+
61+
### iOS
62+
63+
#### Changed
64+
65+
- Updated internal dependencies
66+
867
## [8.1.1] - 2025-08-05
968

1069
### Android

example/config.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version='1.0' encoding='utf-8'?>
22
<widget id="io.ionic.starter" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3-
<name>example</name>
3+
<name>freeRASP:CDV</name>
44
<description>An awesome Ionic/Cordova app.</description>
55
<author email="support@talsec.app" href="http://talsec.app/">Talsec Team</author>
66
<content src="index.html" />
@@ -25,19 +25,23 @@
2525
<config-file parent="/*" target="AndroidManifest.xml">
2626
<uses-permission android:name="android.permission.DETECT_SCREEN_CAPTURE" />
2727
<uses-permission android:name="android.permission.DETECT_SCREEN_RECORDING" />
28+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
29+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
30+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
2831
</config-file>
2932
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
3033
<allow-intent href="market:*" />
3134
<icon src="resources/android/icon/drawable-hdpi-icon.png" />
3235
</platform>
3336
<platform name="ios">
37+
<hook src="scripts/setIOSTarget.js" type="after_prepare" />
38+
<resource-file src="resources/README.md" target="README.md" />
3439
<allow-intent href="itms:*" />
3540
<allow-intent href="itms-apps:*" />
3641
<icon src="resources/ios/icon/icon-20.png" width="20" />
3742
</platform>
3843
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
3944
<plugin name="cordova-plugin-device" spec="2.0.2" />
4045
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
41-
<plugin name="cordova-plugin-ionic-webview" spec="^5.0.0" />
4246
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
4347
</widget>

0 commit comments

Comments
 (0)