You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Threat Analysis and Risk Assessment (TARA) — cpp-LIN
Document ID: TARA-cpp-LIN-001 Revision: 0.1 Date: 2026-06-19 Author: Matt Jones Standards: ISO/SAE 21434:2021, IEC 62443-4-1:2018 SL-2, IEC 62443-4-2:2019 Target Security Level: SL-2 (resistance against intentional violation with moderate resources)
1. Scope and Context
This TARA covers the cpp-LIN library as a SEooC (Safety Element out of Context).
The library processes LIN bus frames in software. Physical bus access, transceiver
hardware, and network topology are integrator responsibilities (see SEOOC.md).
The primary security objective is to prevent an attacker with access to the LIN bus
or the host software environment from:
Injecting corrupt frames that reach safety-critical actuators
Replaying legitimate frames out of temporal context
Exhausting resources and causing Denial-of-Service on the LIN schedule
Bypassing E2E protection to cause undetected data corruption
2. Asset Identification
Asset ID
Asset
Confidentiality
Integrity
Availability
A-01
LIN frame payload (safety-critical)
Low
High
High
A-02
Frame ID / PID (routing)
Low
High
Medium
A-03
E2E sequence counter
Low
High
Medium
A-04
E2E CRC / header bytes
Low
High
Medium
A-05
LDF configuration data
Low
High
Medium
A-06
Master schedule table
Low
High
High
A-07
Bus subscriber registry
Low
Medium
Medium
A-08
Heap and channel buffers
Low
Medium
High
3. Threat Scenarios
THREAT-01 — LIN Bus Frame Injection
Field
Value
ID
THREAT-01
Assets
A-01, A-02
STRIDE
Spoofing, Tampering
Attack vector
Physical or logical LIN bus access
Threat
Attacker injects a crafted LIN frame with a valid-looking PID and corrupted payload, bypassing validate_frame() if the integrating system does not call it.
Medium (CRC-16 has 2^-16 false-accept probability)
Controls
SC-05
Residual risk
Low — CRC-16 false-accept rate is ≤1.5×10^-5 per frame; acceptable for ASIL-B
THREAT-05 — LDF File Tampering
Field
Value
ID
THREAT-05
Assets
A-05, A-06
STRIDE
Tampering, Spoofing
Attack vector
Compromised build system or insecure boot
Threat
Attacker modifies the LDF file to change frame IDs, signal offsets, or schedule timing, causing the master to poll wrong IDs or decode signals incorrectly.