- 01Request
Service, identifier and parameters
- 02Authority
Session, identity and permitted role
- 03Conditions
Vehicle state, limits and freshness
- 04Effect
Apply once, record the actual result
Separate the session from permission to act
A diagnostic session establishes a context for supported operations. Security access or authentication adds another condition, and the application may still need to check whether the operation is safe in the current vehicle state. Build an operation-level policy for writes, routines, programming and sensitive reads. A useful review question is: if a tester is validly authenticated, which requests must still be refused? Keep those refusals visible in the requirements and tests.
Check the exact protocol and stack support
UDS SecurityAccess, service 0x27, and Authentication, service 0x29, are different services. AUTOSAR’s R25-11 release clarification says its Dcm Authentication support is limited to the PKI sub-functions, without the separate challenge-response authentication sub-functions. That is a stack-release constraint, not a statement that every UDS implementation has the same limitation. Check your supplier’s implementation, configured services and the project’s protocol edition before choosing a scheme.
References: AUTOSAR R25-11 release questions and answers · AUTOSAR R25-11: Security Events Specification
Write the permission rule before the callback
For a calibration write, a policy could require the permitted session, an authorised role, a permitted identifier, an acceptable value and a suitable operating mode. The details come from the system requirements. Evaluate the conditions at the point where the write can take effect, particularly when a request waits for another component. A successful earlier check may be stale by then. Avoid spreading different versions of the policy across several callbacks without a common owner.
Treat timeouts and resets as changes of authority
Record what happens to authentication state, security level, partial transfers and pending routines when the session times out, the connection changes or the ECU resets. Decide which state may survive each event and why. For rate limits and failed-attempt handling, balance abuse resistance with an authorised recovery process. An indefinitely locked service tool can become an availability problem. This is a design trade-off to review with safety and service teams, not a universal retry count to copy.
Make the denied path observable
AUTOSAR’s security-events report distinguishes failed access and authentication from write outcomes. That separation is useful when designing logs: a rejected request, a permitted request and a completed change are different events. Include an operation identifier, reason category and correlation information where appropriate. Do not log keys, authentication material or unnecessary personal data. Set storage and processing limits so diagnostic traffic cannot consume the resources needed by the control function.
References: AUTOSAR R25-11: Security Events Specification
Test the application effect, not only the response code
A negative response is insufficient evidence if an asynchronous callback has already changed state. Observe the controlled value, output or flash region as well as the protocol response. Repeat checks across reconnects, session changes and resets. AUTOSAR’s FOTA explanation describes diagnostic responsibilities such as session handling, programming conditions and transfer processing; it provides useful context, but a project still has to verify the actual integration. Use the table below to structure that review.
References: AUTOSAR R25-11: Explanation of Firmware Over-The-Air
AT THE DESIGN REVIEW
Four checks that an unlock test misses
Run these only in an authorised test environment with the agreed safety controls.
Wrong authority
CheckValid connection, insufficient permission for this operation.
Evidence to keepNo application-side change.
Changed conditions
CheckVehicle mode changes while work is pending.
Evidence to keepThe operation follows the defined cancellation or revalidation rule.
Expired session
CheckA request follows the session timeout.
Evidence to keepExpired permissions do not silently carry over.
Interrupted write
CheckReset or communication loss during a permitted operation.
Evidence to keepPersistent state and completion reporting remain consistent.
Sources and editions
Checked on 11 November 2026. Links support the technical discussion; the review examples are Aceman’s engineering analysis.
- AUTOSAR R25-11 release questions and answers Maintainer clarification of Authentication service support
- AUTOSAR R25-11: Security Events Specification Published technical report
- AUTOSAR R25-11: Explanation of Firmware Over-The-Air Published explanatory document
Related experience: see the project and Aceman’s responsibility