Fuzz Testing a CAN bus Connection with a PCAN-USB FD Adapter

Overview

This guide covers testing for the following automotive modules in beSTORM:

  • CANBUS (Over PCAN)

  • OBDII (Over PCAN)

  • Unified Diagnostic Services (Over PCAN)

  • CG4579 (Over PCAN)

The CANBUS module tests the CAN bus system low-level protocol. All other protocols are higher-layer protocols built on top of CAN. This guide will explain how to connect and fuzz an external device with beSTORM using a PCAN-USB FD adapter.

Testing environment

To perform this test, you will need the following:

Connect the hardware

  1. Connect the PCAN-USB FD adapter to a USB port on the beSTORM computer. Windows should detect and install the latest drivers for the adapter.

  2. Confirm the LED on the top of the PCAN-USB FD adapter is green. This indicates the drivers were successfully installed.

  3. Connect the CAN bus hardware (the DUT) to the D-Sub connector on the other end of the PCAN-USB FD adapter.

    NOTE: If your DUT does not use a D-Sub connector, you can manually wire the CAN_Low (pin 2), CAN_GND (pin 3), and CAN_High (pin 7) D-Sub pins directly to the DUT. For a diagram of the pin assignment for the D-Sub connector, see page 14 of the PCAN-USB FD User Manual (https://www.peak-system.com/produktcd/Pdf/English/PCAN-USB-FD_UserMan_eng.pdf).
  4. Download and install the PCAN-View software (https://www.peak-system.com/quick/DrvSetup).

  5. Using PCAN-View, do the following to confirm the PCAN-USB FD adapter is properly connected to the DUT and is able to receive and transmit CAN messages:

    1. Open PCAN-View.

    2. On the Connect dialog, confirm the PCAN-USB FD adapter appears in the Available PCAN Hardware box.

    3. Select OK to complete the connection.

    4. The Receive and Transmit boxes should display CAN message activity from and to the DUT.

    5. Close PCAN-VIew.

Fuzzing with beSTORM

  1. Open beSTORM Client.

  2. Select New Project. The beSTORM New Project Wizard opens.

  3. On wizard's Welcome page, do the following:

    1. In the Project Name box, enter a name.

    2. Optionally, select a different file location for your project in the Location Name box.

    3. Leave Please select the wizard set to Simple.

    4. Leave Perform a port scan, and service detection and assist me in choosing the relevant module unchecked.

  4. Select Next.

  5. On the Basic Configuration page, select CANBUS (Over PCAN) from the Automotive group of beSTORM's predefined modules list.

  6. Select Next.

  7. On the Module Environment page, leave all parameters to their default setting.

  8. Select Next.

  9. On the Extra Configuration page, set the Saturation Rate Threshold parameter to less than 100 (for example, 15). Leave all other parameters to their default setting.

  10. Select Next.

  11. On the Complete beSTORM wizard page, clear the Auto-start beSTORM scan now checkbox and then select Finish. The beSTORM Client window opens.

  12. Select Start to begin fuzz testing.

  13. When testing is complete select Report > Generate Report from the beSTORM Client to generate a more comprehensive report of your test.