UAT 105 Digital Technology and Networks

Worksheet 5 Sending mission data securely

Lab 6 hAssesses CLO3, CLO2

Objective

Use hashes and HMACs to protect data and command integrity, and frame an organisation's cybersecurity

Equipment and materials

  • Sample image folder
  • Python (hashlib and hmac)
  • SITL and Wireshark from worksheet 3
  • MQTT programs from worksheet 4

Safety

  • Desk work only; no flying
  • Keep secret keys out of code and out of submitted files

Steps

  1. Build manifest.csv with the name, size and SHA-256 of every file
  2. Copy the folder, alter one file and make the checker catch it
  3. Add an HMAC and sequence number to commands; the receiver rejects bad or repeated messages
  4. Enable MAVLink signing in SITL and use Wireshark to see the extra bytes and whether content is readable
  5. Draw a six-function CSF 2.0 table and a survey mission data life-cycle chart naming the owner at each step

Record of results

Table 1 Manifest and re-check after copying
File nameSize (bytes)SHA-256 (first 8 characters)Re-check matches?
Table 2 Tests of commands with an HMAC and sequence number
Test caseSequence numberHMAC valid?Accepted by receiver?Reason
Table 3 CSF 2.0 frame of an imaginary operations unit
FunctionWhat the unit doesOwnerCheckable evidence

Questions

  1. In your tests, if a file is changed without changing its size, does the program still catch it, and why? Why can a hash alone not stop someone forging on purpose?

  2. Which attack does the sequence number stop that the HMAC alone cannot? Explain with a test case from Table 2.

  3. With MAVLink signing on, how many bytes longer is each frame, is the content still readable in Wireshark, and which CIA objective does signing protect and which does it not?

  4. If signing is turned on for the worksheet 2 data budget (HEARTBEAT 1 Hz, ATTITUDE 10 Hz, GLOBAL_POSITION_INT 4 Hz on a 57600 baud radio), what percentage of capacity is used, compared with before?

Check before you hand in

What to hand in

  • Manifest code and check result
  • HMAC code with an explanation of the attack the sequence number stops
  • MAVLink signing observations
  • CSF table and data life-cycle chart

CLO3 Explain IoT architecture and publish/subscribe messaging. CLO2 Configure and test TCP/IP networks for ground stations. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack