IntelRealSense / RealSenseID

Intel® RealSense™ ID SDK
https://intelrealsense.com/facial-authentication/
Apache License 2.0
98 stars 56 forks source link

Secure mode reset #131

Open rick51231 opened 2 years ago

rick51231 commented 2 years ago

Hi everyone. Recently I have played with serial protocol and sent "HostEcdsaKey" message with empty body. As I see, now device in secure mode, which one I can't unpair. Any way to factory reset device or do something else? Tried to downgrade firmware with "face database reset" - no luck.

Start session:

[2021-10-07 18:15:00.992] [debug] [PacketSender] Sending packet 'c'
[2021-10-07 18:15:00.996] [debug] [PacketSender] Waiting packet..
[2021-10-07 18:15:01.306] [debug] [PacketSender] Received packet 'Y' after 309 millis
[2021-10-07 18:15:01.306] [error] [SecureSession] Mutual authentication failed

Unpair:

[2021-10-07 18:15:40.455] [debug] [PacketSender] Sending packet 'a'
[2021-10-07 18:15:40.461] [debug] [PacketSender] Waiting packet..
[2021-10-07 18:15:40.766] [debug] [PacketSender] Received packet 'Y' after 305 millis
[2021-10-07 18:15:40.766] [error] [SecureSession] Mutual authentication failed

Assume, that I've sent an empty packet, I've tried to change sample pub key to 0x00:

static unsigned char SAMPLE_HOST_PUB_KEY[PUB_KEY_SIZE] = {
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

Got luck with pairing request, but other requests are still the same:

Connected to device
[2021-10-07 18:15:39.389] [info] [FaceAuthenticatorImpl] Pairing start
[2021-10-07 18:15:39.391] [debug] [PacketSender] Sending packet 'a'
[2021-10-07 18:15:39.395] [debug] [PacketSender] Waiting packet..
[2021-10-07 18:15:39.556] [debug] [PacketSender] Received packet 'b' after 161 millis
[2021-10-07 18:15:39.556] [info] [FaceAuthenticatorImpl] Pairing Ok
Final status:Ok

Device info:

Additional information:
 * Firmware: RECOG:1.6.21.0|AS2DLR:31.5.21.0|OPFW:4.3.0.8200|NNLAS:7.13.21.0|NNLED:7.26.21.0|DNET:20.4.21.0|YOLO:6.6.21.0
 * Host: 0.25.0