Skip to content

Commit 67da373

Browse files
authored
feat: remove deviceid threat check (incorrect) (#1178)
* feat: remove deviceid threat check (incorrect) * fix: en.json format
1 parent 9a73739 commit 67da373

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/locales/en/en.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,6 @@
19241924
"obfuscationissues": "Obfuscation Issues",
19251925
"developermode": "Developer Mode",
19261926
"adbenabled": "ADB Enabled",
1927-
"deviceId": "Device ID Issues",
19281927
"alert": "Please, close and reopen the app to continue.",
19291928
"help": "Help",
19301929
"rules": {
@@ -1938,8 +1937,7 @@
19381937
"securehardwarenotavailable": "Indicates that secure hardware features, such as a secure enclave or trusted execution environment (TEE), are unavailable. While this may be tolerable in some cases, it can reduce security.",
19391938
"obfuscationissues": "Indicates potential issues with code obfuscation, which is a security measure used to protect the app's code from reverse engineering. Lack of proper obfuscation increases security risks, especially on Android.",
19401939
"developermode": "Detects if the device has developer mode enabled, which may indicate an increased risk of debugging or modification attempts, particularly on Android.",
1941-
"adbenabled": "Indicates whether Android Debug Bridge (ADB) is enabled on the device, which can allow unauthorized access or debugging of the app.",
1942-
"deviceid": "Ensures that the device ID remains consistent. Unexpected changes in the device ID may indicate a security risk, such as device cloning or manipulation."
1940+
"adbenabled": "Indicates whether Android Debug Bridge (ADB) is enabled on the device, which can allow unauthorized access or debugging of the app."
19431941
}
19441942
}
19451943
}

src/security/freerasp.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export enum ThreatName {
1919
OBFUSCATION_ISSUES = "Obfuscation Issues",
2020
DEVELOPER_MODE = "Developer Mode",
2121
ADB_ENABLED = "ADB Enabled",
22-
DEVICE_ID = "Device ID",
2322
}
2423

2524
export interface ThreatCheck {
@@ -117,11 +116,8 @@ export const initializeFreeRASP = async (
117116
devMode: () => {},
118117
// eslint-disable-next-line @typescript-eslint/no-empty-function
119118
adbEnabled: () => {},
120-
deviceID: createThreatAction(
121-
setThreatsDetected,
122-
ThreatName.DEVICE_ID,
123-
i18n.t("systemthreats.rules.deviceid")
124-
),
119+
// eslint-disable-next-line @typescript-eslint/no-empty-function
120+
deviceID: () => {},
125121
};
126122

127123
const freeRASPConfig = {

0 commit comments

Comments
 (0)