UDS 0x27 SecurityAccess

Unlock protected services with a seed/key exchange: odd sub-functions request a seed, even ones send the key.

Request and response

Bytes
Request27 <level, odd> then 27 <level + 1> <key>
Positive response67 <level> <seed> then 67 <level + 1>
Negative response7F 27 <NRC>

The positive response service ID is the request's plus 0x40: 27 answers with 67. The byte after the service ID is a sub-function; setting its bit 7 (adding 0x80) asks the ECU not to send a positive response.

Example

Request:   27 01
Response:  67 01 12 34 56 78

Seed for level 1; the key goes back as 27 02 <key>.

Worth knowing

  • Odd sub-functions request a seed, the next even one sends the key computed from it.
  • A seed of all zeros means the level is already unlocked.
  • Wrong keys count towards a limit; after it the ECU refuses seeds for a delay (NRC 0x36, then 0x37).
  • Security access is lost on session change, reset and S3 timeout.

Negative response codes it often returns

Do it in your browser