Skip to content

Commit d489b11

Browse files
committed
feat(common): rename hardwareBackedKeystore to secureHardwareNotAvailable
1 parent 9f63cf7 commit d489b11

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ const actions = {
239239
console.log('device binding');
240240
},
241241
// Android & iOS
242-
'hardwareBackedKeystoreNotAvailable': () => {
243-
console.log('hardwareBackedKeystoreNotAvailable');
242+
'secureHardwareNotAvailable': () => {
243+
console.log('secureHardwareNotAvailable');
244244
},
245245
// Android & iOS
246246
'passcode': () => {
@@ -290,7 +290,7 @@ The Security Report is a weekly summary describing the application's security st
290290
291291
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.
292292
293-
To receive Security Reports, fill out the _watcherMail_ field in [config](#step-3-setup-the-configuration-for-your-app).
293+
To receive Security Reports, fill out the _watcherMail_ field in [config](#configuration).
294294
295295
![dashboard](https://raw.githubusercontent.com/talsec/Free-RASP-Community/master/visuals/dashboard.png)
296296
@@ -423,6 +423,7 @@ Learn more about commercial features at [https://talsec.app](https://talsec.app/
423423
<td>no</td>
424424
<td>yes</td>
425425
</tr>
426+
<tr>
426427
<td colspan=5><strong>Fair usage policy</strong></td>
427428
</tr>
428429
<tr>

android/src/main/java/com/freeraspreactnative/FreeraspDeviceStateListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal object FreeraspDeviceStateListener: ThreatListener.DeviceState {
1414

1515
override fun onHardwareBackedKeystoreNotAvailableDetected() {
1616
"hardwareBackedKeystoreNotAvailable".let {
17-
listener?.deviceStateChangeDetected(it)
17+
listener?.deviceStateChangeDetected("secureHardwareNotAvailable")
1818
}
1919
}
2020

example/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ const App = () => {
9090
);
9191
},
9292
// Android & iOS
93-
'hardwareBackedKeystoreNotAvailable': () => {
93+
'secureHardwareNotAvailable': () => {
9494
setAppChecks((currentState) =>
9595
currentState.map((threat) =>
96-
threat.name === 'Hardware Backed Keystore'
96+
threat.name === 'Secure Hardware Not Available'
9797
? { ...threat, status: 'nok' }
9898
: threat
9999
)

example/src/checks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const commonChecks = [
66
{ name: 'Unofficial Store', status: 'ok' },
77
{ name: 'Hooks', status: 'ok' },
88
{ name: 'Device Binding', status: 'ok' },
9-
{ name: 'Hardware Backed Keystore', status: 'ok' },
9+
{ name: 'Secure Hardware Not Available', status: 'ok' },
1010
{ name: 'Passcode', status: 'ok' },
1111
];
1212

ios/FreeraspReactNative.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ class FreeraspReactNative: RCTEventEmitter {
4141
}
4242

4343
override func supportedEvents() -> [String]! {
44-
return ["initializationError", "started", "privilegedAccess", "debug", "simulator", "appIntegrity", "unofficialStore", "hooks", "device binding", "deviceID", "hardwareBackedKeystoreNotAvailable", "passcodeChange", "passcode"]
44+
return ["initializationError", "started", "privilegedAccess", "debug", "simulator", "appIntegrity", "unofficialStore", "hooks", "device binding", "deviceID", "secureHardwareNotAvailable", "passcodeChange", "passcode"]
4545
}
4646
}
4747

4848
extension SecurityThreatCenter: SecurityThreatHandler {
4949
public func threatDetected(_ securityThreat: TalsecRuntime.SecurityThreat) {
5050
// It is better to implement security reactions (e.g. killing the app) here.
5151
if (securityThreat.rawValue == "missingSecureEnclave") {
52-
FreeraspReactNative.shared!.sendEvent(withName: "hardwareBackedKeystoreNotAvailable", body: "hardwareBackedKeystoreNotAvailable")
52+
FreeraspReactNative.shared!.sendEvent(withName: "secureHardwareNotAvailable", body: "secureHardwareNotAvailable")
5353
} else {
5454
FreeraspReactNative.shared!.sendEvent(withName: securityThreat.rawValue, body: securityThreat.rawValue)
5555
}

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type NativeEventEmitterActions = {
2929
'deviceID'?: () => any;
3030
'passcodeChange'?: () => any;
3131
'passcode'?: () => any;
32-
'hardwareBackedKeystoreNotAvailable'?: () => any;
32+
'secureHardwareNotAvailable'?: () => any;
3333
'started'?: () => any;
3434
'initializationError'?: (reason: { message: string }) => any;
3535
};

0 commit comments

Comments
 (0)