You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
freeRASP for React Native is a mobile in-app protection and security monitoring plugin. It aims to cover the main aspects of RASP (Runtime App Self Protection) and application shielding.
9
8
10
9
# :notebook_with_decorative_cover: Table of contents
11
10
12
11
-[Overview](#overview)
12
+
-[Requirements](#requirements)
13
13
-[Usage](#usage)
14
-
*[(Optional) Create a new React Native demo application](#optional-create-a-new-react-native-demo-application)
15
-
*[Step 1: Install the plugin](#step-1-install-the-plugin)
16
-
*[Step 2: Set up the dependencies](#step-2-set-up-the-dependencies)
17
-
*[Step 3: Dev vs Release version](#step-3-dev-vs-release-version)
18
-
*[Step 4: Import freeRASP into the app](#step-4-import-freerasp-into-the-app)
19
-
*[Step 5: Setup the configuration, callbacks and initialize freeRASP](#step-5-setup-the-configuration-callbacks-and-initialize-freerasp)
20
-
*[Step 6: User Data Policies](#step-6-user-data-policies)
14
+
-[(Optional) Create a new React Native demo application](#optional-create-a-new-react-native-demo-application)
15
+
-[Step 1: Install the plugin](#step-1-install-the-plugin)
16
+
-[Step 2: Set up the dependencies](#step-2-set-up-the-dependencies)
17
+
-[Step 3: Dev vs Release version](#step-3-dev-vs-release-version)
18
+
-[Step 4: Import freeRASP into the app](#step-4-import-freerasp-into-the-app)
19
+
-[Step 5: Setup the configuration, callbacks and initialize freeRASP](#step-5-setup-the-configuration-callbacks-and-initialize-freerasp)
20
+
-[Step 6: User Data Policies](#step-6-user-data-policies)
The freeRASP is available for Flutter, Cordova, React Native, Android, and iOS developers. We encourage community contributions, investigations of attack cases, joint data research, and other activities aiming to make better app security and app safety for end-users.
29
29
30
30
freeRASP plugin is designed to combat
31
31
32
-
* Reverse engineering attempts
33
-
* Re-publishing or tampering with the apps
34
-
* Running application in a compromised OS environment
35
-
* Malware, fraudsters, and cybercriminal activities
32
+
- Reverse engineering attempts
33
+
- Re-publishing or tampering with the apps
34
+
- Running application in a compromised OS environment
35
+
- Malware, fraudsters, and cybercriminal activities
36
36
37
37
Key features are the detection and prevention of
38
38
39
-
* Root/Jailbreak (e.g., unc0ver, check1rain)
40
-
* Hooking framework (e.g., Frida, Shadow)
41
-
* Untrusted installation method
42
-
* App/Device (un)binding
39
+
- Root/Jailbreak (e.g., unc0ver, check1rain)
40
+
- Hooking framework (e.g., Frida, Shadow)
41
+
- Untrusted installation method
42
+
- App/Device (un)binding
43
43
44
44
Additional freeRASP features include low latency, easy integration and a weekly [Security Report](#security-report) containing detailed information about detected incidents and potential threats, summarizing the state of your app security.
45
45
46
46
The commercial version provides a top-notch protection level, extra features, support and maintenance. One of the most valued commercial features is AppiCrypt® - App Integrity Cryptogram.
47
47
48
48
It allows easy to implement API protection and App Integrity verification on the backend to prevent API abuse:
49
49
50
-
* Bruteforce attacks
51
-
* Botnets
52
-
* Session-hijacking
53
-
* DDoS
50
+
- Bruteforce attacks
51
+
- Botnets
52
+
- Session-hijacking
53
+
- DDoS
54
54
55
55
It is a unified solution that works across all mobile platforms without dependency on external web services (i.e., without extra latency, an additional point of failure, and maintenance costs).
56
56
57
57
Learn more about commercial features at [https://talsec.app](https://talsec.app).
58
58
59
59
Learn more about freemium freeRASP features at [GitHub main repository](https://github.com/talsec/Free-RASP-Community).
60
60
61
+
# Requirements
62
+
63
+
Following minimal version requirements has to be met
64
+
in order to run freeRASP in your app:
65
+
66
+
-`react-native` >= `0.65.3`
67
+
61
68
# Usage
62
69
63
70
We will guide you step-by-step, but you can always check the expected result in the example.
64
71
65
-
66
72
## (Optional) Create a new React Native demo application
freeRASP needs to have access to the maven repository containing freeRASP. Add following lines into the `android/build.gradle` file, in the `allprojects.repositories` section:
91
+
82
92
```gradle
83
93
allprojects {
84
94
repositories {
@@ -93,58 +103,61 @@ allprojects {
93
103
```
94
104
95
105
### iOS
106
+
96
107
freeRASP React Native plugin uses Pods. Navigate to the `ios` folder and run:
97
108
98
109
$ pod install
99
110
100
-
101
111
## Step 3: Dev vs Release version
112
+
102
113
The Dev version is used to not complicate the development process of the application, e.g. if you would implement killing of the application on the debugger callback. It disables some checks which won't be triggered during the development process:
103
114
104
-
* Emulator-usage (simulator)
105
-
* Debugging (debug)
106
-
* Signing (appIntegrity)
107
-
* Unofficial store (unofficialStore)
115
+
- Emulator-usage (simulator)
116
+
- Debugging (debug)
117
+
- Signing (appIntegrity)
118
+
- Unofficial store (unofficialStore)
108
119
109
120
Which version of freeRASP is used is tied to the application's development stage - more precisely, how the application is compiled.
110
121
111
122
### Android
123
+
112
124
Android implementation of the React Native plugin detects selected development stage and automatically applies the suitable version of the library.
113
125
114
-
*`npx react-native run-android` (debug) -> uses dev version of freeRASP
115
-
*`npx react-native run-android --variant release` (release) -> uses release version of freeRASP
126
+
-`npx react-native run-android` (debug) -> uses dev version of freeRASP
127
+
-`npx react-native run-android --variant release` (release) -> uses release version of freeRASP
116
128
117
129
### iOS
118
-
For the iOS implemtation, it's neccesary to add script into the Xcode environment, that automatically switches between the library dev/release versions according to selected development stage. Then, it is necessary to embedd a symlink to correct TalsecRuntime.xcframework.
119
130
120
-
1. Add pre-built script for changing the Debug and Release versions of the framework:
121
-
* Open up the **.xcworkspace** file
122
-
* Go to **Product** -> **Scheme** -> **Edit Scheme...** -> **Build (dropdown arrow)** -> **Pre-actions**
123
-
* Hit **+** and then **New Run Script Action**
124
-
* Set **Provide build setting from** to your application
For the iOS implemtation, it's neccesary to add script into the Xcode environment, that automatically switches between the library dev/release versions according to selected development stage. Then, it is necessary to embedd a symlink to correct TalsecRuntime.xcframework.
143
132
133
+
1. Add pre-built script for changing the Debug and Release versions of the framework:
134
+
- Open up the **.xcworkspace** file
135
+
- Go to **Product** -> **Scheme** -> **Edit Scheme...** -> **Build (dropdown arrow)** -> **Pre-actions**
136
+
- Hit **+** and then **New Run Script Action**
137
+
- Set **Provide build setting from** to your application
*`npx react-native run-ios` (debug) -> uses dev version of freeRASP
147
-
*`npx react-native run-ios --configuration Release` (release) -> uses release version of freeRASP
158
+
159
+
- `npx react-native run-ios` (debug) -> uses dev version of freeRASP
160
+
- `npx react-native run-ios --configuration Release` (release) -> uses release version of freeRASP
148
161
149
162
## Step 4: Import freeRASP into the app
150
163
@@ -155,14 +168,18 @@ import { useFreeRasp } from 'freerasp-react-native';
155
168
```
156
169
157
170
## Step 5: Setup the configuration, callbacks and initialize freeRASP
171
+
158
172
First, the configuration and callbacks will be explained. Then the **Initialization** chapter shows the implementation.
173
+
159
174
### Configuration
175
+
160
176
You need to provide configuration for freeRASP to work properly and initialize it. The freeRASP configuration contains configs for both Android and iOS. You must fill all the required values for the plugin to work.
161
177
162
178
For Android:
163
-
- `packageName` - package name of your app you chose when you created it
164
-
- `certificateHashes` - hash of the certificate of the key which was used to sign the application. **Hash which is passed here must be encoded in Base64 form.** If you are not sure how to get your certificate hash, you can check out the guide on our [Github wiki](https://github.com/talsec/Free-RASP-Community/wiki/Getting-your-signing-certificate-hash-of-app). Multiple hashes are supported, e.g. if you are using a different one for the Huawei App Gallery.
165
-
- `supportedAlternativeStores` _(optional)_ - If you publish on the Google Play Store and/or Huawei AppGallery, you **don't have to assign anything** there as those are supported out of the box.
179
+
180
+
- `packageName` - package name of your app you chose when you created it
181
+
- `certificateHashes` - hash of the certificate of the key which was used to sign the application. **Hash which is passed here must be encoded in Base64 form.** If you are not sure how to get your certificate hash, you can check out the guide on our [Github wiki](https://github.com/talsec/Free-RASP-Community/wiki/Getting-your-signing-certificate-hash-of-app). Multiple hashes are supported, e.g. if you are using a different one for the Huawei App Gallery.
182
+
- `supportedAlternativeStores` _(optional)_ - If you publish on the Google Play Store and/or Huawei AppGallery, you **don't have to assign anything** there as those are supported out of the box.
166
183
167
184
For iOS similarly to Android, `appBundleId` and `appTeamId` are required.
168
185
@@ -264,8 +281,8 @@ If you encounter any other issues, you can see the list of solved issues [here](
264
281
265
282
**Solution:**
266
283
267
-
* In `package.json`, update `react-native` to a higher patch version and run `npm install` (or `yarn install`).
268
-
* [See this issue to find out which patch version is relevant for you.](https://github.com/facebook/react-native/issues/35210)
284
+
- In `package.json`, update `react-native` to a higher patch version and run `npm install` (or `yarn install`).
285
+
- [See this issue to find out which patch version is relevant for you.](https://github.com/facebook/react-native/issues/35210)
269
286
270
287
# Security Report
271
288
@@ -278,25 +295,26 @@ To receive Security Reports, fill out the _watcherMail_ field in [config](#step-
We provide app security hardening SDK: i.e. AppiCrypt®, Customer Data Encryption (local storage), End-to-end encryption, Strings protection (e.g. API keys) and Dynamic Certificate Pinning to our commercial customers as well. To get the most advanced protection compliant with PSD2 RT and eIDAS and support from our experts, contact us at [talsec.app](https://talsec.app).
282
300
283
301
## Commercial version
302
+
284
303
The commercial version provides a top-notch protection level, extra features, support, and maintenance. One of the most valued commercial features is [AppiCrypt®](https://www.talsec.app/appicrypt) - App Integrity Cryptogram.
285
304
286
305
It allows easy to implement API protection and App Integrity verification on the backend to prevent API abuse:
287
306
288
-
- Bruteforce attacks
289
-
- Botnets
290
-
- Session-hijacking
291
-
- DDoS
307
+
- Bruteforce attacks
308
+
- Botnets
309
+
- Session-hijacking
310
+
- DDoS
292
311
293
312
It is a unified solution that works across all mobile platforms without dependency on external web services (i.e., without extra latency, an additional point of failure, and maintenance costs).
294
313
295
-
Learn more about commercial features at [https://talsec.app](https://talsec.app/).
314
+
Learn more about commercial features at [https://talsec.app](https://talsec.app/).
296
315
297
316
**TIP:** You can try freeRASP and then upgrade easily to an enterprise service.
0 commit comments