How to Restrict Debug Authentication to Only Authorized Users After Certificate-Based Provisioning on STM32H7S78-DK?
Hello ST Community,
I am working on secure provisioning and Debug Authentication using the STM32H7S78-DK board (STM32H7RS series) with the following software:
-
STM32Cube_FW_H7RS_V1.3.0
-
STM32CubeProgrammer v2.21.0
-
Certificate-based Debug Authentication
-
OEMiROT / STiRoT provisioning
Current Scenario
I have successfully provisioned the STM32H7S78-DK using the certificate-based provisioning method.
After provisioning, the device enters the CLOSED lifecycle state.
However, I have observed the following behavior:
When another user uses the Debug Authentication .bat file provided in the STM32Cube_FW_H7RS repository, they are also able to perform Debug Authentication successfully.
Expected Security Behavior
My requirement is to restrict Debug Authentication to only specifically authorized users.
For example:
-
User A provisions the device using their authorized certificates and keys.
-
User A should be able to perform Debug Authentication successfully.
-
User B, who does not have the authorized credentials, should fail Debug Authentication, even if they have access to the same repository and its Debug Authentication
.batscripts. -
Only users whose credentials were authorized during provisioning should be able to authenticate and access the debug interface.
Questions
-
Is it possible to bind Debug Authentication permissions to a specific user's private key or certificate during provisioning?
-
How can we prevent other users from successfully performing Debug Authentication using the repository-provided
.batfiles? -
Which provisioning configuration or certificate-chain settings should be modified to restrict Debug Authentication to authorized users only?
-
Is there any mechanism to revoke or reject Debug Authentication requests from unauthorized users?
-
What is the recommended approach for implementing user-specific Debug Authentication on STM32H7RS devices?
Expected Result: Debug Authentication should succeed only for the authorized user who possesses the corresponding private key. All other users without the authorized private key should receive a Debug Authentication failure.
Could you please provide the recommended configuration and step-by-step implementation procedure for achieving this?
Thank you.
