Svashasan Logo
Simulated data

Simulation, Testing and Validation · Test methodology

Fault Injection

Also known as fault injection testing, fault insertion, error injection, failure insertion

AdvancedSource-checked · awaiting technical reviewLast reviewed 6 December 2026

Deliberately introducing faults, such as corrupted signals, bit flips, sensor failures or communication errors, into hardware, software or models to check that error detection, safety mechanisms and degraded modes behave as specified.

Explanation

Hsueh, Tsai and Iyer's survey (IEEE Computer, 1997) describes fault injection as an important technique for evaluating the dependability of computer systems. Hardware-based methods inject faults at chip pins or into internal components that software cannot address, while software-based methods change the software state directly.

In automotive functional safety, ISO 26262-6:2018 lists fault injection testing among the methods for software unit verification (recommended for ASIL A to C, highly recommended for ASIL D) and for software integration verification (recommended for ASIL A and B, highly recommended for ASIL C and D), as reproduced in Vector's guide to the standard. In practice faults are injected on HIL rigs with failure-insertion hardware that creates open circuits or shorts, in software by corrupting variables or forcing return codes, on vehicle networks by dropping or corrupting messages, and in simulation by blinding or degrading sensors.

Results are only as meaningful as the fault model: the faults must be realistic for the item, the fault space can never be covered completely, and intrusive injection mechanisms can change timing. A passing campaign shows correct handling of the injected faults only.

How it works

A fault model is defined: what fails, where, when and for how long. An injection mechanism is chosen, such as a hardware switch, debugger, software hook, network tool or simulator setting. The system runs a representative workload, the fault is injected, and the test observes detection, reaction time and transition to a safe or degraded state, comparing them with the safety requirements.

Automotive applications

  • Verifying safety mechanisms and diagnostics
  • Testing degraded modes and safe states
  • Robustness testing of perception against sensor faults
  • Communication fault testing (timeouts, checksum errors)

Example

On a HIL rig, the steering-angle sensor signal is disconnected for 50 ms while lane keeping is active. The test passes if the ECU detects the fault, stops commanding steering torque, warns the driver and stores a diagnostic code within the specified reaction time.

An illustrative example: any figures in it are worked numbers, not measurements.

References

  1. Fault injection techniques and tools (M.-C. Hsueh, T. K. Tsai, R. K. Iyer), Computer 30(4), pp. 75-82, April 1997 (opens in a new tab)

    IEEE · Paper · Citation and abstract obtained via web search · retrieved 6 December 2026

  2. Following the ISO 26262-6:2018 Guidelines with VectorCAST (whitepaper V3.0, 2021-02) (opens in a new tab)

    Vector Informatik · Manufacturer documentation · ISO 26262-6:2018 Table 7 (1l) and Table 10 (1c) as reproduced · retrieved 6 December 2026

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.