Hands-on task
A tampered update
The monitoring agent on the server was updated from a mirror, and strange things started happening after that. The update was saved in base64: /root/update/agent.b64. The vendor publishes a checksum in /root/update/agent.sha256 (the sha256sum format: hash agent.bin).
Decode the update into /root/update/agent.bin, compare its SHA-256 with the published one and write one word to /root/update/verdict.txt: OK if they match, or TAMPERED if they don't.
- base64
- sha256sum -c
- integrity check
- exit code
- investigation