Skip to content

Commit 8ce8685

Browse files
authored
Merge pull request #149 from talsec/release/6.9.0
Release/6.9.0
2 parents 0d48d59 + 0a6c5f8 commit 8ce8685

File tree

14 files changed

+56
-14
lines changed

14 files changed

+56
-14
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ 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+
## [6.9.0] - 2024-11-19
9+
- Android SDK version: 13.0.0
10+
- iOS SDK version: 6.6.3
11+
12+
### Flutter
13+
14+
#### Added
15+
- New feature: onADBEnabled callback allowing you to detect USB debugging option enabled in the developer settings on the device
16+
17+
### Android
18+
19+
#### Added
20+
- ADB detection feature
21+
822
## [6.8.0] - 2024-11-15
923
- Android SDK version: 12.0.0
1024
- iOS SDK version: 6.6.3

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ Learn more about commercial features at [https://talsec.app](https://talsec.app)
4646

4747
Learn more about freemium freeRASP features at [GitHub main repository](https://github.com/talsec/Free-RASP-Community).
4848

49+
## :radioactive: freeMalwareDetection
50+
**freeMalwareDetection** is a powerful feature designed to enhance the security of your Android application by quickly and efficiently scanning for malicious or suspicious applications (e.g. Android malware) based on various blacklists and security policies. It helps to detect apps with suspicious package names, hashes, or potentially dangerous permissions.
51+
52+
After the integration of freeRASP, make sure you visit the [freeMalwareDetection](https://github.com/talsec/freeMalwareDetection) repository to learn more about this feature!
53+
4954
# :book: Discover the Official freeRASP Documentation
5055
Visit the [GitBook page](https://docs.talsec.app/freerasp) for comprehensive and up-to-date guides, tutorials, and technical documentation specifically for freeRASP. It serves as your go-to resource, offering everything from basic instructions to advanced tips and tricks to help you get the most out of the project.
5156

@@ -54,12 +59,6 @@ For integrating freeRASP on the Flutter platform, be sure to follow all the step
5459

5560
Be sure to bookmark it and stay informed! :books: :sparkles:.
5661

57-
## :scroll: Reference to Legacy Documentation
58-
59-
If you have any suggestions for improvement or notice anything that could be clarified in the new GitBook documentation, please open an issue. Your feedback helps us maintain high-quality resources for all users.
60-
61-
For information on older integration methods, you can refer to the [freeRASP wiki](https://github.com/talsec/Free-RASP-Flutter/wiki), which includes comprehensive legacy details and guidance. Additionally, the old integration can be found when you checkout to a specific tag. Your input is invaluable in helping us improve our resources and provide even better support for your needs.
62-
6362
# :rocket: What's New and Changelog
6463
Stay informed and make the most of freeRASP by checking out [What's New and Changelog](https://docs.talsec.app/freerasp/whats-new-and-changelog)! Here, you’ll discover the latest features, enhancements, and bug fixes we’ve implemented to improve your experience across all platforms, including Android, iOS, Flutter, React Native, Capacitor, and Cordova.
6564

@@ -72,4 +71,4 @@ If you have any ideas for improvements, feel free to [raise an issue](https://gi
7271
You can check out the project board [here](https://github.com/orgs/talsec/projects/2).
7372

7473
# :page_facing_up: License
75-
This project is provided as freemium software, i.e. there is a fair usage policy that imposes some limitations on the free usage. The SDK software consists of open-source and binary parts, which is the property of Talsec. The open-source part is licensed under the MIT License - see the LICENSE file for details.
74+
This project is provided as freemium software, i.e. there is a fair usage policy that imposes some limitations on the free usage. The SDK software consists of open-source and binary parts, which is the property of Talsec. The open-source part is licensed under the MIT License - see the LICENSE file for details.

android/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version '1.0-SNAPSHOT'
33

44
buildscript {
55
ext.kotlin_version = '1.7.20'
6-
ext.talsec_version = '12.0.0'
6+
ext.talsec_version = '13.0.0'
77
repositories {
88
google()
99
mavenCentral()
@@ -51,6 +51,10 @@ android {
5151
minSdkVersion 23
5252
consumerProguardFiles 'consumer-rules.pro'
5353
}
54+
55+
lintOptions {
56+
disable 'InvalidPackage'
57+
}
5458
}
5559

5660
dependencies {

android/src/main/kotlin/com/aheaditec/freerasp/Threat.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ internal sealed class Threat(val value: Int) {
3131
object SystemVPN : Threat(659382561)
3232

3333
object DevMode : Threat(45291047)
34+
35+
object ADBEnabled : Threat(379769839)
3436
}

android/src/main/kotlin/com/aheaditec/freerasp/handlers/PluginThreatHandler.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ internal object PluginThreatHandler : ThreatDetected, DeviceState {
7676
notify(Threat.DevMode)
7777
}
7878

79+
override fun onADBEnabledDetected() {
80+
notify(Threat.ADBEnabled)
81+
}
82+
7983
override fun onMalwareDetected(suspiciousApps: List<SuspiciousAppInfo>) {
8084
notify(suspiciousApps)
8185
}

example/android/app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ android {
4343
applicationId "com.aheaditec.freerasp_example"
4444
// Talsec library needs higher version than default (16)
4545
minSdkVersion 23
46-
// TODO: Update to "flutter.targetSdkVersion" when sdk will be updated to >= 2.0
47-
targetSdkVersion 31
46+
targetSdkVersion flutter.targetSdkVersion
4847
versionCode flutterVersionCode.toInteger()
4948
versionName flutterVersionName
5049
}

example/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pluginManagement {
1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
2121
id "com.android.application" version "7.4.2" apply false
22-
id "org.jetbrains.kotlin.android" version "1.6.10" apply false
22+
id "org.jetbrains.kotlin.android" version "1.7.20" apply false
2323
}
2424

2525
include ":app"

example/lib/threat_notifier.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class ThreatNotifier extends AutoDisposeNotifier<ThreatState> {
2727
_updateThreat(Threat.secureHardwareNotAvailable),
2828
onSystemVPN: () => _updateThreat(Threat.systemVPN),
2929
onDevMode: () => _updateThreat(Threat.devMode),
30+
onADBEnabled: () => _updateThreat(Threat.adbEnabled),
3031
);
3132

3233
Talsec.instance.attachListener(threatCallback);

lib/src/enums/threat.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ enum Threat {
5454
///
5555
/// Android only
5656
devMode,
57+
58+
/// The application is running on a device that has active ADB
59+
/// (Android Debug Bridge).
60+
///
61+
/// Android only
62+
adbEnabled,
5763
}
5864

5965
/// An extension on the [Threat] enum to provide additional functionality.
@@ -84,6 +90,7 @@ extension ThreatX on Threat {
8490
/// * 1564314755 - secureHardwareNotAvailable
8591
/// * 659382561 - systemVPN
8692
/// * 45291047 - devMode
93+
/// * 379769839 - adbEnabled
8794
static Threat fromInt(int code) {
8895
switch (code) {
8996
case 1268968002:
@@ -112,6 +119,8 @@ extension ThreatX on Threat {
112119
return Threat.systemVPN;
113120
case 45291047:
114121
return Threat.devMode;
122+
case 379769839:
123+
return Threat.adbEnabled;
115124
default:
116125
// Unknown data came from native code. This shouldn't normally happen.
117126
exit(127);

lib/src/talsec.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ class Talsec {
193193
callback.onSystemVPN?.call();
194194
case Threat.devMode:
195195
callback.onDevMode?.call();
196+
case Threat.adbEnabled:
197+
callback.onADBEnabled?.call();
196198
}
197199
});
198200
}

0 commit comments

Comments
 (0)