Free-RASP-ReactNative icon indicating copy to clipboard operation
Free-RASP-ReactNative copied to clipboard

Issue on IOS event detection

Open Kiran0791 opened this issue 1 year ago • 10 comments

After the app is installed for the first time the event are triggered. But if the close and restarted the app its not detecting the threat.

Can i get some help on this or is there any config am missing

Kiran0791 avatar Feb 28 '24 04:02 Kiran0791

Hello @Kiran0791 , could you please explain what exact threat are you referring to? Or is it all threats?

Kind regards, Talsec team

msikyna avatar Feb 28 '24 07:02 msikyna

Hi, Its on all threat looks like. on fresh install i am able to see secureHardwareNotAvailable but if i close the app and open again its not detecting

Kiran0791 avatar Feb 28 '24 07:02 Kiran0791

Hi @Kiran0791 ,

First, thanks for opening the issue.

Couple of questions, so we can determine where the problem is:

  • Do you close the app completely, or just put it in the background?
  • How long do you wait after you reopen the app?
  • Do you launch the app on a simulator or real device?

You can also check our implementation in the demo app in example folder.

Kind regards, Tomas

tompsota avatar Feb 28 '24 08:02 tompsota

  • Completely closed the app
  • Reopened the app immediately and also waited for few mins
  • On both real device and simulator faced the issue. pen-test were able to bypass by relaunching the app

I have followed the similar implementation as in demo app

Kiran0791 avatar Feb 28 '24 09:02 Kiran0791

I tested the most recent version of freerasp but can't reproduce the problem. Do you use the useFreeRasp hook?

tompsota avatar Feb 28 '24 13:02 tompsota

Yes useFreeRasp is used. also A common component created and its loaded from App.js

Below is the code file.txt

Kiran0791 avatar Feb 28 '24 14:02 Kiran0791

Hi, the integration seems fine. I used your component with slight modifications, which you can check here. Then loaded this component in the App.tsx. However I receive the callbacks even after closing and reopening the app.

Are you testing dev or release build? If you are on simulator and use the out-of-the-box simulator without any modifications with dev build, then you will receive just secureHardwareNotAvailable check (some checks are ignored in the dev build by freerasp automatically, see docs here). However this check is later ignored in the code snippet provided. There should be only log visible, but UI won't change. In the production build, however, you should always receive all the callbacks except passcode and deviceID, which are ignored again in the code snippet.

tompsota avatar Feb 29 '24 09:02 tompsota

It happened on release build. Wat is advisable. To show a screen or to crash app when threat is detected. Previously i was crashing the app and once the user relauched the app these events were not getting triggered

Kiran0791 avatar Feb 29 '24 09:02 Kiran0791

You can read more about threats and recommended actions in our wiki here.

Anyway, the bug you describe is concerning. Can you explain step-by-step how to reproduce the bug?

You can also reach out to us at [email protected] if that option suits you better.

tompsota avatar Feb 29 '24 10:02 tompsota

Hello! This issue has been marked as inactive. If there is no further activity within the next 14 days, this issue will be automatically closed. If you believe this issue is still relevant and requires attention, please comment or provide additional information.

github-actions[bot] avatar Jun 12 '24 07:06 github-actions[bot]

Hello! This issue has been marked as inactive. If there is no further activity within the next 14 days, this issue will be automatically closed. If you believe this issue is still relevant and requires attention, please comment or provide additional information.

github-actions[bot] avatar Aug 26 '24 06:08 github-actions[bot]

Hello! This issue has been closed. If you believe this issue is still relevant and requires attention, please reopen the issue.

github-actions[bot] avatar Sep 09 '24 06:09 github-actions[bot]