Security Access
Enables unlocking of protected ECU features via a challenge-response (Seed & Key) mechanism.
What is SID 0x27 Security Access?
“The client uses this service to unlock and access secured functions and data on the server by passing a security challenge.”
Many critical UDS services (like Write Data (0x2E), Routine Control (0x31), and Download (0x34)) are restricted until a specific security level is unlocked.

The two-stage challenge-response process for unlocking security levels and protected ECU functions.
Security Authentication & Protected Execution Sequence
Standard ISO 14229-1 Seed-Key Challenge & Write Pipeline
Which sub-functions and security levels does 0x27 define?
Security levels are defined by Sub-Functions. Odd numbers are used to Request Seeds, while the following even number is used to Send Keys. Use the explorer below to understand the available levels and their sub-function byte encoding.
SID 0x27 SubFunction Explorer
Select a security level to see its seed-request and key-submit subfunctions. Standard levels use odd/even pairing (0x01/0x02 for Level 1, 0x03/0x04 for Level 2, etc.).
Odd subfunctions (0x01, 0x03, 0x05) request seeds. Even subfunctions (0x02, 0x04, 0x06) submit keys. OEM levels follow the same pattern with higher values (0x05/0x06, 0x07/0x08, 0x09/0x0A).
SID 0x27 (SecurityAccess) uses subfunctions to request seeds and submit keys. The odd/even pairing is fundamental: odd subfunctions always request a seed, even subfunctions always submit a key for the corresponding level.
How does UDS seed and key authentication work?
The two-stage challenge-response process for unlocking security.
Request
Request Seed for Level 1
Response
Seed = 0x4A2B9C1D
Request
Tester sends key derived from seed
Response
Security Access Granted
What does a 0x27 request and response look like?
Security Access messages follow a strict byte-level structure. Use the explorer below to understand the exact format of seed requests, key submissions, and responses.
Protocol anatomy
0x27 Security Access
0x27 Response
Which session is required for Security Access?
Security Access (0x27) is only available in specific diagnostic sessions. Changing sessions automatically resets all security levels to LOCKED.
Session & Security Matrix
Which Security Access levels can be unlocked in each session. Select a row for details.
| Security Level & Sub-functions | DEFAULT 0x01 | EXTENDED 0x03 | PROGRAMMING 0x02 | SAFETY 0x04 | Security |
|---|---|---|---|---|---|
| — | |||||
| — | |||||
| — | |||||
| — |
Live Simulation
Try the full seed-key exchange mechanism interactively. Select a security level, request a seed, compute the key, and see how the ECU validates your response.
How does the ECU security state machine transition?
The security subsystem transitions through four discrete states: LOCKED → SEED_REQUESTED → UNLOCKED, with a LOCKED_OUT state for brute-force protection. Try the interactive simulator below to explore all state transitions.
Current state: LOCKED
No access. Security level locked.
5-second window to send valid key.
Access granted. 5s inactivity timeout (S3).
3+ failed attempts. Power cycle or wait 10min.
What happens after too many failed key attempts?
Security Access uses three independent timers to prevent brute-force attacks and manage session state. Explore the interactive simulators below to understand how they work.
Timing Constraints
Security Access respects the standard UDS timing parameters. Responses must arrive within specific windows.
NRC 0x78 (Response Pending): If processing takes longer than P2, the ECU sends 0x7F 0x27 0x78 to signal continued processing. The client should wait up to P2* for the actual response.
Which UDS services require Security Access?
A diagnostic session determines which operations are available. Security Access determines which protected operations you can use. Compare both requirements in the example below.
Filter by the security level a service requires, then open its details to see the session requirements and seed/key steps.
These are example permissions, not a live access check. Actual requirements depend on the ECU, subfunction, DID, or routine.
Showing 10 of 10 services
Select a service to view detailsSecurity State Behavior
When locked, the ECU denies protected services (e.g. 0x2E, 0x34, 0x35, 0x3D) with NRC 0x33 (SecurityAccessDenied). Submitting a key without requesting seed returns NRC 0x24 (RequestSequenceError).
All authorized protected services mapped to the unlocked level are enabled until a session transition, timeout, or ECU reset.
Triggered when this service or requested resource requires an active security unlock that has not been granted.
Triggered during unlock attempts if the calculated key fails ECU cryptographic verification.
Enforced delay lockout if the maximum number of failed key submissions (typically 3) has been exceeded.
Service Dependencies
0x27 governs cryptographic seed-key exchange and gates privileged write, routine, and flashing services. Select a node to inspect interactions.
Inspect a related service
0x10 DiagnosticSessionControl
Session Gate & Reset Trigger · 0x10 -> MANDATORY GATEWAY
How it relates to SecurityAccess
SecurityAccess is strictly forbidden in Default Session (0x01) on almost all automotive ECUs. The tester must first transition into Extended (0x03) or Programming (0x02) session. Crucially, any subsequent session change immediately relocks security state to 0x00.
Session permissions
- 0x01 Default
- Blocked
- 0x02 Programming
- Required
- 0x03 Extended
- Allowed
- 0x04 Safety
- Required
- Pre-condition: must enter Extended (10 03) or Programming (10 02)
- Attempting seed request in 0x01 yields NRC 0x7E
- Any session change resets security state machine to 0x00 (Locked)
- Re-requesting currently active session preserves unlocked state
Typical request
10 03- 10
- SID: DiagnosticSessionControl
- 03
- Sub-func: extendedDiagnosticSession
Timing
Seed request rejected in Default Session with NRC 0x7E.
Failure risk: NRC 0x7E / SEC_RELOCK
Session transition wipes security keys and collapses unlocked status.
Example packet exchange
- Tester → ECU
10 03Enter Extended Diagnostic Session
- ECU → Tester
50 03Session Granted
- Tester → ECU
27 01Request Security Seed
Diagnostic workflow
1. Diagnostic Session Switch
Enter Extended (10 03) or Programming (10 02) session
2. Seed Request Dispatch
Send 27 01 (odd subfunction) to receive pseudo-random seed from ECU
3. Cryptographic Key Calculation & Dispatch
Compute response key via OEM algorithm and send 27 02 [KEY]
4. Security Hold Loop
Send periodic 3E 80 TesterPresent heartbeat every 2000–3500ms
5. Privileged Operations Execution
Execute protected writes (0x2E), routines (0x31), or flashing (0x34)
Service rules at a glance
- Odd/Even Subfunction Pairing
- Subfunctions are strictly paired: odd for Seed request (0x01, 0x03), even for Key transmission (0x02, 0x04).
- Session Change Relock
- Any transition to a different diagnostic session immediately and unconditionally resets security to Locked (0x00).
- Anti-Brute Force Lockout
- Three consecutive invalid keys trigger NRC 0x36 or NRC 0x37 delay lockout (typically 10 seconds to 10 minutes).
- Already Unlocked Zero-Seed
- If already unlocked, requesting seed returns all zeroes (e.g. 67 01 00 00 00 00) to confirm active unlocked state.
What NRCs can SID 0x27 return?
Negative response codes
Security level sub-function is invalid or undefined (e.g. even number for seed or odd number for key).
This negative response indicates a rejection while processing the Security Access (SID 0x27) request. Verify preconditions, session levels, and message formatting per ISO 14229.
How do you unlock an ECU in practice?
Security Access workflows vary by use case. Use the interactive explorer below to walk through three real-world scenarios: standard L1 unlock, L3 flash programming, and error recovery.
Unlock Level 1 security to write DIDs or clear DTCs.
Write & Clear · 6 frames10 03DiagnosticSessionControl50 03 00 19 01 F4SessionResponse27 01RequestSeed (L1)67 01 4A 2B 9C 1DSeedResponse27 02 5F 58 CB 68SendKey (L1)67 02SecurityGrantedPress Simulate to animate the full message sequence.