freerasp-react-native 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +442 -413
  3. package/android/build.gradle +87 -87
  4. package/android/gradle.properties +4 -4
  5. package/android/src/main/AndroidManifest.xml +4 -4
  6. package/android/src/main/java/com/freeraspreactnative/FreeraspDeviceStateListener.kt +25 -0
  7. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +113 -108
  8. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativePackage.kt +17 -17
  9. package/example/Gemfile +6 -6
  10. package/example/android/app/_BUCK +55 -55
  11. package/example/android/app/build.gradle +313 -313
  12. package/example/android/app/build_defs.bzl +19 -19
  13. package/example/android/app/proguard-rules.pro +10 -10
  14. package/example/android/app/src/debug/AndroidManifest.xml +13 -13
  15. package/example/android/app/src/debug/java/com/freeraspreactnativeexample/ReactNativeFlipper.java +73 -73
  16. package/example/android/app/src/main/AndroidManifest.xml +26 -26
  17. package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainActivity.java +48 -48
  18. package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainApplication.java +91 -91
  19. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/MainApplicationReactNativeHost.java +116 -116
  20. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/components/MainComponentsRegistry.java +36 -36
  21. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -48
  22. package/example/android/app/src/main/jni/CMakeLists.txt +7 -7
  23. package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +32 -32
  24. package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -16
  25. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -45
  26. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -38
  27. package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +65 -65
  28. package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -32
  29. package/example/android/app/src/main/jni/OnLoad.cpp +11 -11
  30. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -36
  31. package/example/android/app/src/main/res/values/strings.xml +3 -3
  32. package/example/android/app/src/main/res/values/styles.xml +9 -9
  33. package/example/android/build.gradle +53 -53
  34. package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  35. package/example/android/gradle.properties +40 -40
  36. package/example/android/gradlew +234 -234
  37. package/example/android/settings.gradle +11 -11
  38. package/example/app.json +3 -3
  39. package/example/assets/checkmark-circle-outline.png +0 -0
  40. package/example/assets/checkmark-circle-outline.svg +1 -0
  41. package/example/assets/close-circle-outline.png +0 -0
  42. package/example/assets/close-circle-outline.svg +1 -0
  43. package/example/assets/talsec-logo.png +0 -0
  44. package/example/babel.config.js +17 -17
  45. package/example/index.js +5 -5
  46. package/example/ios/File.swift +6 -6
  47. package/example/ios/FreeraspReactNativeExample/AppDelegate.h +8 -8
  48. package/example/ios/FreeraspReactNativeExample/AppDelegate.mm +133 -133
  49. package/example/ios/FreeraspReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +53 -53
  50. package/example/ios/FreeraspReactNativeExample/Images.xcassets/Contents.json +6 -6
  51. package/example/ios/FreeraspReactNativeExample/Info.plist +55 -55
  52. package/example/ios/FreeraspReactNativeExample/LaunchScreen.storyboard +47 -47
  53. package/example/ios/FreeraspReactNativeExample/main.m +10 -10
  54. package/example/ios/FreeraspReactNativeExample-Bridging-Header.h +3 -3
  55. package/example/ios/FreeraspReactNativeExample.xcodeproj/xcshareddata/xcschemes/FreeraspReactNativeExample.xcscheme +106 -106
  56. package/example/ios/FreeraspReactNativeExample.xcworkspace/contents.xcworkspacedata +10 -10
  57. package/example/ios/FreeraspReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
  58. package/example/ios/FreeraspReactNativeExampleTests/FreeraspReactNativeExampleTests.m +66 -66
  59. package/example/ios/FreeraspReactNativeExampleTests/Info.plist +24 -24
  60. package/example/ios/Podfile +43 -43
  61. package/example/ios/Podfile.lock +590 -584
  62. package/example/metro.config.js +40 -40
  63. package/example/package.json +24 -21
  64. package/example/react-native.config.js +10 -10
  65. package/example/src/App.tsx +135 -89
  66. package/example/src/DemoApp.tsx +89 -0
  67. package/example/src/checks.ts +16 -0
  68. package/example/src/styles.ts +7 -0
  69. package/example/yarn.lock +4644 -4154
  70. package/freerasp-react-native.podspec +36 -36
  71. package/ios/Debug/TalsecRuntime.xcframework/Info.plist +40 -40
  72. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
  73. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
  74. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +222 -222
  75. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
  76. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +3029 -3029
  77. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +77 -77
  78. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +123 -123
  79. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +50 -50
  80. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +456 -456
  81. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +68 -68
  82. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
  83. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +504 -504
  84. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +125 -125
  85. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +51 -51
  86. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/module.modulemap +17 -17
  87. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  88. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/cacert.pem +3154 -3154
  89. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/module.modulemap +12 -12
  90. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
  91. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
  92. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +450 -450
  93. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
  94. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +3029 -3029
  95. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +77 -77
  96. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +123 -123
  97. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +50 -50
  98. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +456 -456
  99. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +68 -68
  100. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
  101. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +504 -504
  102. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +125 -125
  103. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -51
  104. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +51 -51
  105. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/module.modulemap +17 -17
  106. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  107. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +344 -344
  108. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/cacert.pem +3154 -3154
  109. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/module.modulemap +12 -12
  110. package/ios/FreeraspReactNative-Bridging-Header.h +3 -3
  111. package/ios/FreeraspReactNative.m +14 -14
  112. package/ios/FreeraspReactNative.swift +57 -53
  113. package/ios/FreeraspReactNative.xcodeproj/xcshareddata/xcschemes/FreeraspReactNative.xcscheme +67 -67
  114. package/ios/Release/TalsecRuntime.xcframework/Info.plist +40 -40
  115. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
  116. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
  117. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +222 -222
  118. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
  119. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +3029 -3029
  120. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +77 -77
  121. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +123 -123
  122. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +50 -50
  123. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +456 -456
  124. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +68 -68
  125. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
  126. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +504 -504
  127. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +125 -125
  128. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +51 -51
  129. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/module.modulemap +17 -17
  130. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  131. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/cacert.pem +3154 -3154
  132. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/module.modulemap +12 -12
  133. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
  134. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
  135. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +450 -450
  136. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
  137. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +3029 -3029
  138. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +77 -77
  139. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +123 -123
  140. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +50 -50
  141. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +456 -456
  142. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +68 -68
  143. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
  144. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +504 -504
  145. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +125 -125
  146. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -51
  147. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +51 -51
  148. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/module.modulemap +17 -17
  149. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  150. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +344 -344
  151. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/cacert.pem +3154 -3154
  152. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/module.modulemap +12 -12
  153. package/lib/commonjs/index.js.map +1 -1
  154. package/lib/module/index.js.map +1 -1
  155. package/lib/typescript/index.d.ts +35 -35
  156. package/lib/typescript/index.d.ts.map +1 -1
  157. package/package.json +161 -161
  158. package/src/index.tsx +90 -90
  159. package/ios/TalsecRuntime.xcframework +0 -1
package/README.md CHANGED
@@ -1,413 +1,442 @@
1
-
2
-
3
- ![FreeRasp](https://raw.githubusercontent.com/talsec/Free-RASP-Community/master/visuals/freeRASPforRN.png)
4
-
5
- ![GitHub Repo stars](https://img.shields.io/github/stars/talsec/Free-RASP-Community?color=green) ![GitHub](https://img.shields.io/github/license/talsec/Free-RASP-Community) ![GitHub](https://img.shields.io/github/last-commit/talsec/Free-RASP-Community) ![Publisher](https://img.shields.io/pub/publisher/freerasp)
6
- # freeRASP for React Native
7
-
8
- 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
-
10
- # :notebook_with_decorative_cover: Table of contents
11
-
12
- - [Overview](#overview)
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)
21
- - [Security Report](#security-report)
22
- - [Enterprise Services](#bar_chart-enterprise-services)
23
- * [Plans Comparison](#plans-comparison)
24
-
25
- # Overview
26
-
27
- 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.
28
-
29
- freeRASP plugin is designed to combat
30
-
31
- * Reverse engineering attempts
32
- * Re-publishing or tampering with the apps
33
- * Running application in a compromised OS environment
34
- * Malware, fraudsters, and cybercriminal activities
35
-
36
- Key features are the detection and prevention of
37
-
38
- * Root/Jailbreak (e.g., unc0ver, check1rain)
39
- * Hooking framework (e.g., Frida, Shadow)
40
- * Untrusted installation method
41
- * App/Device (un)binding
42
-
43
- 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.
44
-
45
- 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.
46
-
47
- It allows easy to implement API protection and App Integrity verification on the backend to prevent API abuse:
48
-
49
- * Bruteforce attacks
50
- * Botnets
51
- * Session-hijacking
52
- * DDoS
53
-
54
- 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).
55
-
56
- Learn more about commercial features at [https://talsec.app](https://talsec.app).
57
-
58
- Learn more about freemium freeRASP features at [GitHub main repository](https://github.com/talsec/Free-RASP-Community).
59
-
60
- # Usage
61
-
62
- We will guide you step-by-step, but you can always check the expected result in the example.
63
-
64
-
65
- ## (Optional) Create a new React Native demo application
66
- Create a new React Native project:
67
-
68
- $ npx react-native init AwesomeProject
69
-
70
- ## Step 1: Install the plugin
71
-
72
- $ npm install https://github.com/talsec/Free-RASP-ReactNative.git
73
-
74
- or
75
-
76
- $ yarn add https://github.com/talsec/Free-RASP-ReactNative.git
77
-
78
- ## Step 2: Set up the dependencies
79
- ### Android
80
- 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:
81
- ```gradle
82
- allprojects {
83
- repositories {
84
- google()
85
- mavenCentral()
86
- ... your repositories
87
- maven{url = uri("https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp")}
88
- maven{url = uri("https://developer.huawei.com/repo/")}
89
- maven{url = uri("https://jitpack.io")}
90
- }
91
- }
92
- ```
93
-
94
- ### iOS
95
- freeRASP React Native plugin uses Pods. Navigate to the `ios` folder and run:
96
-
97
- $ pod install
98
-
99
-
100
- ## Step 3: Dev vs Release version
101
- 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:
102
-
103
- * Emulator-usage (simulator)
104
- * Debugging (debug)
105
- * Signing (appIntegrity)
106
- * Unofficial store (unofficialStore)
107
-
108
- Which version of freeRASP is used is tied to the application's development stage - more precisely, how the application is compiled.
109
-
110
- ### Android
111
- Android implementation of the React Native plugin detects selected development stage and automatically applies the suitable version of the library.
112
-
113
- * `npx react-native run-android` (debug) -> uses dev version of freeRASP
114
- * `npx react-native run-android --variant release` (release) -> uses release version of freeRASP
115
-
116
- ### iOS
117
- 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.
118
-
119
- 1. Add pre-built script for changing the Debug and Release versions of the framework:
120
- * Open up the **.xcworkspace** file
121
- * Go to **Product** -> **Scheme** -> **Edit Scheme...** -> **Build (dropdown arrow)** -> **Pre-actions**
122
- * Hit **+** and then **New Run Script Action**
123
- * Set **Provide build setting from** to your application
124
- * Copy-paste following script:
125
- ```shell
126
- cd "${SRCROOT}/../node_modules/freerasp-react-native/ios"
127
- if [ "${CONFIGURATION}" = "Release" ]; then
128
- rm -rf ./TalsecRuntime.xcframework
129
- ln -s ./Release/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
130
- else
131
- rm -rf ./TalsecRuntime.xcframework
132
- ln -s ./Debug/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
133
- fi
134
- ```
135
- * **Close**
136
- 3. Add dependency on the symlink
137
- * Go to your **Target** -> **Build Phases** -> **Link Binary With Libraries**
138
- * Add dependency (drag & drop right after **libPods**) on the symlink on the following location:
139
- *AwesomeProject/node_modules/freerasp-react-native/ios/TalsecRuntime.xcframework*
140
- * If there is no symlink, try to create it manually in that folder by the following command:
141
- * $ ln -s ./Debug/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
142
-
143
-
144
- Followingly:
145
- * `npx react-native run-ios` (debug) -> uses dev version of freeRASP
146
- * `npx react-native run-ios --configuration Release` (release) -> uses release version of freeRASP
147
-
148
- ## Step 4: Import freeRASP into the app
149
-
150
- We provide a custom hook that handles all required logic as registration of freeRASP, mounting and unmounting of listeners for you. Import the hook into your app:
151
-
152
- ```ts
153
- import { useFreeRasp } from 'freerasp-react-native';
154
- ```
155
-
156
- ## Step 5: Setup the configuration, callbacks and initialize freeRASP
157
- First, the configuration and callbacks will be explained. Then the **Initialization** chapter shows the implementation.
158
- ### Configuration
159
- 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.
160
-
161
- For Android:
162
- - `packageName` - package name of your app you chose when you created it
163
- - `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.
164
- - `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.
165
-
166
- For iOS similarly to Android, `appBundleId` and `appTeamId` are required.
167
-
168
- Lastly, pass a mail address to `watcherMail` to be able to get reports. Mail has a strict form `name@domain.com` which is passed as String.
169
-
170
- ### Callbacks
171
-
172
- freeRASP executes periodical checks when the application is running. Handle the detected threats in the **listeners**. For example, you can log the event, show a window to the user or kill the application. Visit our [wiki](https://github.com/talsec/Free-RASP-Community/wiki/Threat-detection) to learn more details about the performed checks and their importance for app security.
173
-
174
- ### Initialization
175
-
176
- You should initialize the freeRASP in the entry point to your app, which is usually in `App.jsx` or `App.tsx`. Just copy & paste this code inside your root component / function, then setup the configuration and reactions to listeners:
177
-
178
- ```ts
179
- // app configuration
180
- const config = {
181
- androidConfig: {
182
- packageName: 'com.awesomeproject',
183
- certificateHashes: ['your_signing_certificate_hash_base64'],
184
- // supportedAlternativeStores: ['storeOne', 'storeTwo'],
185
- },
186
- iosConfig: {
187
- appBundleId: 'com.awesomeproject',
188
- appTeamId: 'your_team_ID',
189
- },
190
- watcherMail: 'your_email_address@example.com',
191
- };
192
-
193
- // reactions for detected threats
194
- const actions = {
195
- // Android & iOS
196
- 'privilegedAccess': () => {
197
- console.log('privilegedAccess');
198
- },
199
- // Android & iOS
200
- 'debug': () => {
201
- console.log('debug');
202
- },
203
- // Android & iOS
204
- 'simulator': () => {
205
- console.log('simulator');
206
- },
207
- // Android & iOS
208
- 'appIntegrity': () => {
209
- console.log('appIntegrity');
210
- },
211
- // Android & iOS
212
- 'unofficialStore': () => {
213
- console.log('unofficialStore');
214
- },
215
- // Android & iOS
216
- 'hooks': () => {
217
- console.log('hooks');
218
- },
219
- // Android & iOS
220
- 'device binding': () => {
221
- console.log('device binding');
222
- },
223
- // iOS only
224
- 'deviceID': () => {
225
- console.log('deviceID');
226
- },
227
- // iOS only
228
- 'missingSecureEnclave': () => {
229
- console.log('missingSecureEnclave');
230
- },
231
- // iOS only
232
- 'passcodeChange': () => {
233
- console.log('passcodeChange');
234
- },
235
- // iOS only
236
- 'passcode': () => {
237
- console.log('passcode');
238
- },
239
- };
240
-
241
- useFreeRasp(config, actions);
242
- ```
243
-
244
- When freeRASP initializes correctly, you should see `freeRASP initialized` message in logs. Otherwise, you'll see warning with description of what went wrong.
245
-
246
- _You can override this default behavior by extending the `actions` object with `'started'` key (to change action after successful initialization), and `'initializationError'` key (to set up action after unsuccessful initialization)_
247
-
248
- ## Step 6: User Data Policies
249
-
250
- Google Play [requires](https://support.google.com/googleplay/android-developer/answer/10787469?hl=en) all app publishers to declare how they collect and handle user data for the apps they publish on Google Play. They should inform users properly of the data collected by the apps and how the data is shared and processed. Therefore, Google will reject the apps which do not comply with the policy.
251
-
252
- Apple has a [similar approach](https://developer.apple.com/app-store/app-privacy-details/) and specifies the types of collected data.
253
-
254
- You should also visit our [Android](https://github.com/talsec/Free-RASP-Android) and [iOS](https://github.com/talsec/Free-RASP-iOS) submodules to learn more about their respective data policies.
255
-
256
- And you're done 🎉!
257
-
258
- If you encounter any other issues, you can see the list of solved issues [here](https://github.com/talsec/Free-RASP-ReactNative/issues?q=is%3Aissue+is%3Aclosed), or open up a [new one](https://github.com/talsec/Free-RASP-ReactNative/issues?q=is%3Aissue+is%3Aopen).
259
-
260
- # Security Report
261
-
262
- The Security Report is a weekly summary describing the application's security state and characteristics of the devices it runs on in a practical and easy-to-understand way.
263
-
264
- The report provides a quick overview of the security incidents, their dynamics, app integrity, and reverse engineering attempts. It contains info about the security of devices, such as OS version or the ratio of devices with screen locks and biometrics. Each visualization also comes with a concise explanation.
265
-
266
- To receive Security Reports, fill out the _watcherMail_ field in [config](#step-3-setup-the-configuration-for-your-app).
267
-
268
- ![dashboard](https://raw.githubusercontent.com/talsec/Free-RASP-Community/master/visuals/dashboard.png)
269
-
270
- # :bar_chart: Enterprise Services
271
- 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).
272
-
273
- ## Commercial version
274
- 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.
275
-
276
- It allows easy to implement API protection and App Integrity verification on the backend to prevent API abuse:
277
-
278
- - Bruteforce attacks
279
- - Botnets
280
- - Session-hijacking
281
- - DDoS
282
-
283
- 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).
284
-
285
- Learn more about commercial features at [https://talsec.app](https://talsec.app/).
286
-
287
- **TIP:** You can try freeRASP and then upgrade easily to an enterprise service.
288
-
289
-
290
- ## Plans Comparison
291
-
292
- <table>
293
- <thead>
294
- <tr>
295
- <th></th>
296
- <th>freeRASP</th>
297
- <th>Business RASP+</th>
298
- </tr>
299
- </thead>
300
- <tbody>
301
- <tr>
302
- <td colspan=5><strong>Runtime App Self Protection (RASP, app shielding)</strong></td>
303
- </tr>
304
- <tr>
305
- <td>Advanced root/jailbreak protections</td>
306
- <td>basic</td>
307
- <td>advanced</td>
308
- </tr>
309
- <tr>
310
- <td>Runtime reverse engineering controls
311
- <ul>
312
- <li>Debug</li>
313
- <li>Emulator</li>
314
- <li>Hooking protections (e.g. Frida)</li>
315
- </ul>
316
- </td>
317
- <td>basic</td>
318
- <td>advanced</td>
319
- </tr>
320
- <tr>
321
- <td>Runtime integrity controls
322
- <ul>
323
- <li>Tamper protection</li>
324
- <li>Repackaging / Cloning protection</li>
325
- <li>Device binding protection</li>
326
- <li>Unofficial store detection</li>
327
- </ul>
328
- </td>
329
- <td>basic</td>
330
- <td>advanced</td>
331
- </tr>
332
- <tr>
333
- <td>Device OS security status check
334
- <ul>
335
- <li>HW security module control</li>
336
- <li>Screen lock control</li>
337
- </ul>
338
- </td>
339
- <td>yes</td>
340
- <td>yes</td>
341
- </tr>
342
- <tr>
343
- <td>UI protection
344
- <ul>
345
- <li>Overlay protection</li>
346
- <li>Accessibility services protection</li>
347
- </ul>
348
- </td>
349
- <td>no</td>
350
- <td>yes</td>
351
- </tr>
352
- <tr>
353
- <td colspan=5><strong>Hardening suite</strong></td>
354
- </tr>
355
- <tr>
356
- <td>Security hardening suite
357
- <ul>
358
- <li>Customer Data Encryption (local storage)</li>
359
- <li>End-to-end encryption</li>
360
- <li>Strings protection (e.g. API keys)</li>
361
- <li>Dynamic certificate pinning</li>
362
- </ul>
363
- </td>
364
- <td>no</td>
365
- <td>yes</td>
366
- </tr>
367
- <tr>
368
- <td colspan=5><strong>AppiCrypt® - App Integrity Cryptogram</strong></td>
369
- </tr>
370
- <tr>
371
- <td>API protection by mobile client integrity check, online risk scoring, online fraud prevention, client App integrity check. The cryptographic proof of app & device integrity.</td>
372
- <td>no</td>
373
- <td>yes</td>
374
- </tr>
375
- <tr>
376
- <td colspan=5><strong>Monitoring</strong></td>
377
- </tr>
378
- <tr>
379
- <td>AppSec regular email reporting</td>
380
- <td>yes (up to 100k devices)</td>
381
- <td>yes</td>
382
- </tr>
383
- <tr>
384
- <td>Data insights and auditing portal</td>
385
- <td>no</td>
386
- <td>yes</td>
387
- </tr>
388
- <tr>
389
- <td>Embed code to integrate with portal</td>
390
- <td>no</td>
391
- <td>yes</td>
392
- </tr>
393
- <tr>
394
- <td>API data access</td>
395
- <td>no</td>
396
- <td>yes</td>
397
- </tr>
398
- <td colspan=5><strong>Fair usage policy</strong></td>
399
- </tr>
400
- <tr>
401
- <td>Mentioning of the app name in Talsec marketing communication (e.g. "Trusted by Talsec section" on social media)</td>
402
- <td>over 100k downloads</td>
403
- <td>no</td>
404
- </tr>
405
- <tr>
406
- <td>Threat signals data collection to Talsec database for processing and product improvement</td>
407
- <td>yes</td>
408
- <td>no</td>
409
- </tr>
410
- </tbody>
411
- </table>
412
-
413
- For further comparison details (and planned features), follow our [discussion](https://github.com/talsec/Free-RASP-Community/discussions/5).
1
+ ![FreeRasp](https://raw.githubusercontent.com/talsec/Free-RASP-Community/master/visuals/freeRASPforRN.png)
2
+
3
+ ![GitHub Repo stars](https://img.shields.io/github/stars/talsec/Free-RASP-Community?color=green) ![GitHub](https://img.shields.io/github/license/talsec/Free-RASP-Community) ![GitHub](https://img.shields.io/github/last-commit/talsec/Free-RASP-Community) ![Publisher](https://img.shields.io/pub/publisher/freerasp)
4
+
5
+ # freeRASP for React Native
6
+
7
+ 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.
8
+
9
+ # :notebook_with_decorative_cover: Table of contents
10
+
11
+ - [Overview](#overview)
12
+ - [Requirements](#requirements)
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)
21
+ - [Security Report](#security-report)
22
+ - [Enterprise Services](#bar_chart-enterprise-services)
23
+ - [Commercial version](#commercial-version)
24
+ - [Plans Comparison](#plans-comparison)
25
+
26
+ # Overview
27
+
28
+ 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
+
30
+ freeRASP plugin is designed to combat
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
36
+
37
+ Key features are the detection and prevention of
38
+
39
+ - Root/Jailbreak (e.g., unc0ver, check1rain)
40
+ - Hooking framework (e.g., Frida, Shadow)
41
+ - Untrusted installation method
42
+ - App/Device (un)binding
43
+
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
+
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
+
48
+ It allows easy to implement API protection and App Integrity verification on the backend to prevent API abuse:
49
+
50
+ - Bruteforce attacks
51
+ - Botnets
52
+ - Session-hijacking
53
+ - DDoS
54
+
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
+
57
+ Learn more about commercial features at [https://talsec.app](https://talsec.app).
58
+
59
+ Learn more about freemium freeRASP features at [GitHub main repository](https://github.com/talsec/Free-RASP-Community).
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
+
68
+ # Usage
69
+
70
+ We will guide you step-by-step, but you can always check the expected result in the example.
71
+
72
+ ## (Optional) Create a new React Native demo application
73
+
74
+ Create a new React Native project:
75
+
76
+ $ npx react-native init AwesomeProject
77
+
78
+ ## Step 1: Install the plugin
79
+
80
+ $ npm install https://github.com/talsec/Free-RASP-ReactNative.git
81
+
82
+ or
83
+
84
+ $ yarn add https://github.com/talsec/Free-RASP-ReactNative.git
85
+
86
+ ## Step 2: Set up the dependencies
87
+
88
+ ### Android
89
+
90
+ 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
+
92
+ ```gradle
93
+ allprojects {
94
+ repositories {
95
+ google()
96
+ mavenCentral()
97
+ ... your repositories
98
+ maven{url = uri("https://nexus3-public.monetplus.cz/repository/ahead-talsec-free-rasp")}
99
+ maven{url = uri("https://developer.huawei.com/repo/")}
100
+ maven{url = uri("https://jitpack.io")}
101
+ }
102
+ }
103
+ ```
104
+
105
+ ### iOS
106
+
107
+ freeRASP React Native plugin uses Pods. Navigate to the `ios` folder and run:
108
+
109
+ $ pod install
110
+
111
+ ## Step 3: Dev vs Release version
112
+
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:
114
+
115
+ - Emulator-usage (simulator)
116
+ - Debugging (debug)
117
+ - Signing (appIntegrity)
118
+ - Unofficial store (unofficialStore)
119
+
120
+ Which version of freeRASP is used is tied to the application's development stage - more precisely, how the application is compiled.
121
+
122
+ ### Android
123
+
124
+ Android implementation of the React Native plugin detects selected development stage and automatically applies the suitable version of the library.
125
+
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
128
+
129
+ ### iOS
130
+
131
+ 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.
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
138
+ - Copy-paste following script:
139
+ ```shell
140
+ cd "${SRCROOT}/../node_modules/freerasp-react-native/ios"
141
+ if [ "${CONFIGURATION}" = "Release" ]; then
142
+ rm -rf ./TalsecRuntime.xcframework
143
+ ln -s ./Release/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
144
+ else
145
+ rm -rf ./TalsecRuntime.xcframework
146
+ ln -s ./Debug/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
147
+ fi
148
+ ```
149
+ - **Close**
150
+ 2. Add dependency on the symlink
151
+ - Go to your **Target** -> **Build Phases** -> **Link Binary With Libraries**
152
+ - Add dependency (drag & drop right after **libPods**) on the symlink on the following location:
153
+ _AwesomeProject/node_modules/freerasp-react-native/ios/TalsecRuntime.xcframework_
154
+ - If there is no symlink, try to create it manually in that folder by the following command:
155
+ - $ ln -s ./Debug/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
156
+
157
+ Followingly:
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
161
+
162
+ ## Step 4: Import freeRASP into the app
163
+
164
+ We provide a custom hook that handles all required logic as registration of freeRASP, mounting and unmounting of listeners for you. Import the hook into your app:
165
+
166
+ ```ts
167
+ import { useFreeRasp } from 'freerasp-react-native';
168
+ ```
169
+
170
+ ## Step 5: Setup the configuration, callbacks and initialize freeRASP
171
+
172
+ First, the configuration and callbacks will be explained. Then the **Initialization** chapter shows the implementation.
173
+
174
+ ### Configuration
175
+
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.
177
+
178
+ For Android:
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.
183
+
184
+ For iOS similarly to Android, `appBundleId` and `appTeamId` are required.
185
+
186
+ Lastly, pass a mail address to `watcherMail` to be able to get reports. Mail has a strict form `name@domain.com` which is passed as String.
187
+
188
+ ### Callbacks
189
+
190
+ freeRASP executes periodical checks when the application is running. Handle the detected threats in the **listeners**. For example, you can log the event, show a window to the user or kill the application. Visit our [wiki](https://github.com/talsec/Free-RASP-Community/wiki/Threat-detection) to learn more details about the performed checks and their importance for app security.
191
+
192
+ ### Initialization
193
+
194
+ You should initialize the freeRASP in the entry point to your app, which is usually in `App.jsx` or `App.tsx`. Just copy & paste this code inside your root component / function, then setup the configuration and reactions to listeners:
195
+
196
+ ```ts
197
+ // app configuration
198
+ const config = {
199
+ androidConfig: {
200
+ packageName: 'com.awesomeproject',
201
+ certificateHashes: ['your_signing_certificate_hash_base64'],
202
+ // supportedAlternativeStores: ['storeOne', 'storeTwo'],
203
+ },
204
+ iosConfig: {
205
+ appBundleId: 'com.awesomeproject',
206
+ appTeamId: 'your_team_ID',
207
+ },
208
+ watcherMail: 'your_email_address@example.com',
209
+ };
210
+
211
+ // reactions for detected threats
212
+ const actions = {
213
+ // Android & iOS
214
+ 'privilegedAccess': () => {
215
+ console.log('privilegedAccess');
216
+ },
217
+ // Android & iOS
218
+ 'debug': () => {
219
+ console.log('debug');
220
+ },
221
+ // Android & iOS
222
+ 'simulator': () => {
223
+ console.log('simulator');
224
+ },
225
+ // Android & iOS
226
+ 'appIntegrity': () => {
227
+ console.log('appIntegrity');
228
+ },
229
+ // Android & iOS
230
+ 'unofficialStore': () => {
231
+ console.log('unofficialStore');
232
+ },
233
+ // Android & iOS
234
+ 'hooks': () => {
235
+ console.log('hooks');
236
+ },
237
+ // Android & iOS
238
+ 'device binding': () => {
239
+ console.log('device binding');
240
+ },
241
+ // Android & iOS
242
+ 'secureHardwareNotAvailable': () => {
243
+ console.log('secureHardwareNotAvailable');
244
+ },
245
+ // Android & iOS
246
+ 'passcode': () => {
247
+ console.log('passcode');
248
+ },
249
+ // iOS only
250
+ 'deviceID': () => {
251
+ console.log('deviceID');
252
+ },
253
+ // iOS only
254
+ 'passcodeChange': () => {
255
+ console.log('passcodeChange');
256
+ },
257
+ };
258
+
259
+ useFreeRasp(config, actions);
260
+ ```
261
+
262
+ When freeRASP initializes correctly, you should see `freeRASP initialized` message in logs. Otherwise, you'll see warning with description of what went wrong.
263
+
264
+ _You can override this default behavior by extending the `actions` object with `'started'` key (to change action after successful initialization), and `'initializationError'` key (to set up action after unsuccessful initialization)_
265
+
266
+ ## Step 6: User Data Policies
267
+
268
+ Google Play [requires](https://support.google.com/googleplay/android-developer/answer/10787469?hl=en) all app publishers to declare how they collect and handle user data for the apps they publish on Google Play. They should inform users properly of the data collected by the apps and how the data is shared and processed. Therefore, Google will reject the apps which do not comply with the policy.
269
+
270
+ Apple has a [similar approach](https://developer.apple.com/app-store/app-privacy-details/) and specifies the types of collected data.
271
+
272
+ You should also visit our [Android](https://github.com/talsec/Free-RASP-Android) and [iOS](https://github.com/talsec/Free-RASP-iOS) submodules to learn more about their respective data policies.
273
+
274
+ And you're done 🎉!
275
+
276
+ If you encounter any other issues, you can see the list of solved issues [here](https://github.com/talsec/Free-RASP-ReactNative/issues?q=is%3Aissue+is%3Aclosed), or open up a [new one](https://github.com/talsec/Free-RASP-ReactNative/issues?q=is%3Aissue+is%3Aopen).
277
+
278
+ # Troubleshooting
279
+
280
+ ### Could not determine the dependencies of task `':freerasp-react-native:compileDebugAidl'`
281
+
282
+ **Solution:**
283
+
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)
286
+
287
+ # Security Report
288
+
289
+ The Security Report is a weekly summary describing the application's security state and characteristics of the devices it runs on in a practical and easy-to-understand way.
290
+
291
+ The report provides a quick overview of the security incidents, their dynamics, app integrity, and reverse engineering attempts. It contains info about the security of devices, such as OS version or the ratio of devices with screen locks and biometrics. Each visualization also comes with a concise explanation.
292
+
293
+ To receive Security Reports, fill out the _watcherMail_ field in [config](#configuration).
294
+
295
+ ![dashboard](https://raw.githubusercontent.com/talsec/Free-RASP-Community/master/visuals/dashboard.png)
296
+
297
+ # :bar_chart: Enterprise Services
298
+
299
+ 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).
300
+
301
+ ## Commercial version
302
+
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.
304
+
305
+ It allows easy to implement API protection and App Integrity verification on the backend to prevent API abuse:
306
+
307
+ - Bruteforce attacks
308
+ - Botnets
309
+ - Session-hijacking
310
+ - DDoS
311
+
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).
313
+
314
+ Learn more about commercial features at [https://talsec.app](https://talsec.app/).
315
+
316
+ **TIP:** You can try freeRASP and then upgrade easily to an enterprise service.
317
+
318
+ ## Plans Comparison
319
+
320
+ <table>
321
+ <thead>
322
+ <tr>
323
+ <th></th>
324
+ <th>freeRASP</th>
325
+ <th>Business RASP+</th>
326
+ </tr>
327
+ </thead>
328
+ <tbody>
329
+ <tr>
330
+ <td colspan=5><strong>Runtime App Self Protection (RASP, app shielding)</strong></td>
331
+ </tr>
332
+ <tr>
333
+ <td>Advanced root/jailbreak protections</td>
334
+ <td>basic</td>
335
+ <td>advanced</td>
336
+ </tr>
337
+ <tr>
338
+ <td>Runtime reverse engineering controls
339
+ <ul>
340
+ <li>Debug</li>
341
+ <li>Emulator</li>
342
+ <li>Hooking protections (e.g. Frida)</li>
343
+ </ul>
344
+ </td>
345
+ <td>basic</td>
346
+ <td>advanced</td>
347
+ </tr>
348
+ <tr>
349
+ <td>Runtime integrity controls
350
+ <ul>
351
+ <li>Tamper protection</li>
352
+ <li>Repackaging / Cloning protection</li>
353
+ <li>Device binding protection</li>
354
+ <li>Unofficial store detection</li>
355
+ </ul>
356
+ </td>
357
+ <td>basic</td>
358
+ <td>advanced</td>
359
+ </tr>
360
+ <tr>
361
+ <td>Device OS security status check
362
+ <ul>
363
+ <li>HW security module control</li>
364
+ <li>Screen lock control</li>
365
+ </ul>
366
+ </td>
367
+ <td>yes</td>
368
+ <td>yes</td>
369
+ </tr>
370
+ <tr>
371
+ <td>UI protection
372
+ <ul>
373
+ <li>Overlay protection</li>
374
+ <li>Accessibility services protection</li>
375
+ </ul>
376
+ </td>
377
+ <td>no</td>
378
+ <td>yes</td>
379
+ </tr>
380
+ <tr>
381
+ <td colspan=5><strong>Hardening suite</strong></td>
382
+ </tr>
383
+ <tr>
384
+ <td>Security hardening suite
385
+ <ul>
386
+ <li>Customer Data Encryption (local storage)</li>
387
+ <li>End-to-end encryption</li>
388
+ <li>Strings protection (e.g. API keys)</li>
389
+ <li>Dynamic certificate pinning</li>
390
+ </ul>
391
+ </td>
392
+ <td>no</td>
393
+ <td>yes</td>
394
+ </tr>
395
+ <tr>
396
+ <td colspan=5><strong>AppiCrypt® - App Integrity Cryptogram</strong></td>
397
+ </tr>
398
+ <tr>
399
+ <td>API protection by mobile client integrity check, online risk scoring, online fraud prevention, client App integrity check. The cryptographic proof of app & device integrity.</td>
400
+ <td>no</td>
401
+ <td>yes</td>
402
+ </tr>
403
+ <tr>
404
+ <td colspan=5><strong>Monitoring</strong></td>
405
+ </tr>
406
+ <tr>
407
+ <td>AppSec regular email reporting</td>
408
+ <td>yes (up to 100k devices)</td>
409
+ <td>yes</td>
410
+ </tr>
411
+ <tr>
412
+ <td>Data insights and auditing portal</td>
413
+ <td>no</td>
414
+ <td>yes</td>
415
+ </tr>
416
+ <tr>
417
+ <td>Embed code to integrate with portal</td>
418
+ <td>no</td>
419
+ <td>yes</td>
420
+ </tr>
421
+ <tr>
422
+ <td>API data access</td>
423
+ <td>no</td>
424
+ <td>yes</td>
425
+ </tr>
426
+ <tr>
427
+ <td colspan=5><strong>Fair usage policy</strong></td>
428
+ </tr>
429
+ <tr>
430
+ <td>Mentioning of the app name in Talsec marketing communication (e.g. "Trusted by Talsec section" on social media)</td>
431
+ <td>over 100k downloads</td>
432
+ <td>no</td>
433
+ </tr>
434
+ <tr>
435
+ <td>Threat signals data collection to Talsec database for processing and product improvement</td>
436
+ <td>yes</td>
437
+ <td>no</td>
438
+ </tr>
439
+ </tbody>
440
+ </table>
441
+
442
+ For further comparison details (and planned features), follow our [discussion](https://github.com/talsec/Free-RASP-Community/discussions/5).