Temenos Digital
Min(s) read

Frida Detection Code

Description

Implementing the code changes for Frida detection both pre-login and post-login in all the specified releases.

Recommendation

Implement Frida detection to ensure the proper functioning of both pre-login and post-login processes.

Solution

Path: Shared\Visualizer\CommonsMA\modules\require\ApplicationManager.js

Change 1: (Please compare and do the changes such that any additional lines will not be missed)

Function: postAppInitiate

Replace postAppInitiate function with the below function.

ApplicationManager.prototype.postAppInitiate = function() {
try {
const registrationManager = kony.mvc.MDAApplication.getSharedInstance().getModuleManager().getModule({
 "moduleName": "RegistrationManager",
 "appName": "AuthenticationMA"
 }).businessController;
 if (SCAType === null || SCAType === undefined) {
 SCAType = "BASE";
 }
 switch (SCAType) {
 case "HID":
OLBConstants.IDENTITYSERVICENAME = "CIBACustomIdentity";
break;
 case "BASE":
	OLBConstants.IDENTITYSERVICENAME = "DbxUserLogin";
	break;
 default:
	break;
 }
 registrationManager.hideLoadingIndicator();
 registrationManager.setActionsForceTouch();
 } catch (e) {
        kony.print(e);
 }
 generateAlert = function(){
        var didobject = {
               detectedCallback: () => {
               kony.application.exit(0); //exiting form the app
               },
               "type": "fridaquickscan"
         };
          kony.os.detectDynamicInstrumentation(didobject);
         }
        kony.timer.schedule("timer4",generateAlert, 30, true);
        var navManager = applicationManager.getNavigationManager();
        navManager.stack.push("frmLogin");
        this.getDataforLogin();
        //authMode.presentationController.fetchUserNameAndPasswordInstructions();
    };

Change 2:

Function: getStorageManager

Replace getStorageManager function with the below function.

ApplicationManager.prototype.getStorageManager = function() {
  return kony.mvc.MDAApplication.getSharedInstance().getModuleManager().getModule({"moduleName" : "StorageManager", "appName" : "CommonsMA"}).businessController;
};

Change 3:

Function: getStorageManager

ApplicationManager.prototype.getStorageManager = function() {
  return kony.mvc.MDAApplication.getSharedInstance().getModuleManager().getModule({"moduleName" : "StorageManager", "appName" : "CommonsMA"}).businessController;
};

 

In this topic

Copyright © 2020- Temenos Headquarters SA

Published on :
Sunday, March 23, 2025 5:14:02 PM IST