UAT 105 Digital Technology and Networks
Worksheet 5 Sending mission data securely
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
- Build manifest.csv with the name, size and SHA-256 of every file
- Copy the folder, alter one file and make the checker catch it
- Add an HMAC and sequence number to commands; the receiver rejects bad or repeated messages
- Enable MAVLink signing in SITL and use Wireshark to see the extra bytes and whether content is readable
- 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
| File name | Size (bytes) | SHA-256 (first 8 characters) | Re-check matches? |
|---|---|---|---|
| Test case | Sequence number | HMAC valid? | Accepted by receiver? | Reason |
|---|---|---|---|---|
| Function | What the unit does | Owner | Checkable evidence |
|---|---|---|---|
Questions
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?
Which attack does the sequence number stop that the HMAC alone cannot? Explain with a test case from Table 2.
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?
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