Cybersecurity of Security Systems, lesson 5 of 8
Encryption
Separation keeps strangers off the network. Encryption protects a message even when a stranger is on it, and protects a disk even when it is carried out of the building. This lesson explains what encryption does, where a security system needs it, and the one extra check that makes it trustworthy.
One message on the wire
A technician signs in to a camera's settings page. Pick how the connection is protected, then play or step through.
The everyday picture
A postcard can be read by every person who handles it between you and the reader. A letter in a sealed envelope cannot. Most network traffic was designed as postcards.
Encryption is a strongbox with a lock that only your correspondent can open. Anyone may carry the box, and nobody along the way learns what is in it.
There is a second question the strongbox does not answer: are you sure you handed it to the right person? If an impostor at the door takes the box and holds the key, the lock helped nobody. That is why encryption comes paired with a way to check identity.
Keys, ciphers and certificates
- Encryption scrambles information so that it means nothing without the right key. The method of scrambling is called a cipher. The standard one today is AES, used with keys of 128 or 256 bits.
- A key is a long secret number. The cipher itself is public and well tested. All the secrecy lives in the key, so protecting keys is the real work.
- Two ends that have never met can still agree on a key across an open network, using a pair of mathematically linked keys: a public one that can be shown to anyone and a private one that never leaves its owner. You do not need the mathematics. You need to know it happens automatically at the start of each connection.
- A certificate is a small file that says "this public key belongs to this device", signed by someone both sides trust, called a certificate authority. It is the identity check from the picture above.
- TLS is the standard that bundles all of this for network connections. When a web address starts with HTTPS, the page is carried inside TLS.
Messages in transit
A security system has many conversations. Each one has an older open form and a protected form. Your job is to choose the protected one wherever the equipment offers it.
| Conversation | Open form | Protected form |
|---|---|---|
| Browser or setup tool to a device's settings page | HTTP | HTTPS |
| Camera to recorder, video stream | Plain streaming | Encrypted streaming, where both ends support it |
| Recorder or server to viewing software | Varies by maker | TLS, usually a setting |
| Controller to access server | Plain on older systems | TLS |
| Reader to controller | Wiegand, which has no protection | OSDP with its secure channel switched on |
| Card to reader | Older proximity cards send a fixed number | Smart cards that hold keys and prove themselves |
| System to email or text alerts | Plain mail | Mail sent over TLS |
The reader and card rows were covered in the Access Control course. They are the same idea at a different point in the chain.
The first row matters most, because that conversation carries passwords. On a device set to accept plain HTTP, a password typed into the sign-in page crosses the network readable, as the first situation in the drawing shows. Set every device to HTTPS only.
Check yourself
A connection is encrypted, but the workstation never checks who is at the other end. What is the remaining risk?
Stored data
Information sitting on a disk is called data at rest. It needs protection from a different event: the disk leaving your control. Recorders are stolen in burglaries, sometimes precisely to remove the evidence. Failed disks go back under warranty. Old servers are sold.
| What is stored | Where | Protection to look for |
|---|---|---|
| Recorded video | Recorder or server disks | Disk or volume encryption, if the product offers it |
| Video on a camera's memory card | Inside the camera | Card encryption, a setting on many cameras |
| Cardholder database | Access server | Encrypted disk, and an encrypted database where offered |
| Backups and saved configurations | Another machine, cloud storage, a technician's laptop | Encrypt the backup file with its own passphrase |
| Exported clips | USB drive, email, a shared link | Password-protected export, sent separately from the password |
| Technician's laptop and phone | In a van | Full-disk encryption, built into current operating systems |
Two relatives of encryption appear in the same settings pages. Passwords should be stored as a hash, a one-way scramble that lets a device check a password without keeping it. And firmware files carry a digital signature, which lets a device confirm the file really came from the maker and was not altered, as lesson 3 mentioned.
Try a toy cipher
This tool uses one of the oldest ciphers there is: slide every letter along the alphabet by a secret number of places. It is far too weak for real use, and it shows the two facts that matter. The scrambled text is useless without the key, and the method can be public as long as the key is not.
Scramble a message, then try to read it
Living with certificates
Open a new camera's page over HTTPS and the browser usually shows a warning. The camera made its own certificate at the factory, a self-signed one, and nobody the browser trusts has vouched for it. The traffic is still encrypted. What is missing is the identity check.
- Small sites. A self-signed certificate with HTTPS is far better than plain HTTP. Accept that the warning will appear, and do not teach users that warnings are always safe to click through on other websites.
- Larger sites. The customer's IT department can run its own certificate authority and issue a certificate to each device. Workstations then trust them without warnings, and an impostor is refused, as the third situation in the drawing shows. The same certificates can serve 802.1X from lesson 4.
- Certificates expire. Each has an end date, often one to a few years out. When it passes, connections fail or warnings return. Record the dates in the device list and renew ahead of time. Some video and access platforms issue and renew device certificates automatically, which is worth asking about.
- Old protocol versions. TLS has had several versions. Versions 1.2 and 1.3 are the current ones. Turn off anything older where the device allows it.
What encryption cannot do
- It does not help if the password is weak. A stranger who signs in gets a perfectly encrypted connection to your recorder.
- It protects the journey, not the ends. If the workstation itself is infected, the message is read before it is scrambled.
- It moves the secret into the key. A key written on a sticky note is a password on a sticky note.
- It can lock you out. Lose the key to an encrypted disk or backup and the data is gone for good. Keep recovery keys in the password manager from lesson 2.
People sometimes worry that encryption will slow the video. Current cameras and recorders have hardware built for it, and the cost is usually small. Check the maker's guidance if a recorder is already near its limit.
Three examples
Simple: one setting on twelve cameras
A technician finds twelve cameras that accept both HTTP and HTTPS. Staff have bookmarked the HTTP address, so every sign-in crosses the network readable. She sets each camera to HTTPS only, updates the bookmarks and changes the passwords, because the old ones may already have been seen.
Medium: the recorder that left in a van
Burglars at a jewelry store took the recorder with them. The store lost its evidence, and the thieves gained a month of video showing staff routines and the safe being opened. Two measures would have changed that outcome. A copy of the video kept off site, or in the cloud, would have preserved the evidence. Encrypted disks would have kept the video private. The store's replacement has both, and the recorder now lives in a locked steel enclosure.
Advanced: the day every camera went dark
A campus had done things properly: its own certificate authority, a certificate on each of 300 cameras, and a recording server that refused any camera it could not verify. Three years later all 300 certificates expired on the same morning, and the server refused every camera at once.
Nothing was attacked. A date nobody tracked arrived. The repair was a long day of reissuing certificates. The lasting fix was to record expiry dates in the device list, set a reminder 60 days ahead, and move to the platform's automatic renewal. Strong protection needs the same routine care as firmware.
From the field
- Turn on HTTPS before you type the first real password. Otherwise the new password crosses the bench network in the open.
- When replacing Wiegand readers with OSDP, finish the job: switch on the secure channel and replace the default installation key, following the maker's procedure.
- Encrypt configuration backups. They often contain passwords for other devices.
- Wipe or destroy disks from retired recorders and servers. Agree with the customer who does it and get it in writing.
- Check the clock. Certificates carry dates. A device with the wrong year will reject good certificates.
Common mistakes
- Leaving plain HTTP switched on beside HTTPS.
- Installing OSDP readers and never enabling the secure channel.
- Emailing an exported clip and its password in the same message.
- Assuming an encrypted connection means the other end is who it claims to be.
- Letting certificates expire because nobody recorded the date.
- Encrypting a backup and losing the passphrase.
Summary
- Encryption makes information meaningless without the key. The method is public. The key is the secret.
- Protect conversations with TLS: HTTPS for settings pages, and the encrypted option on every link that offers one.
- Protect stored video, databases, backups and laptops against the disk leaving the building.
- A certificate proves who is at the other end. Track its expiry date.
- Encryption does not rescue weak passwords, infected workstations or lost keys.
Exercises
Answer each one yourself first, then open the answer.
Exercise 1. What is the difference between protecting data in transit and data at rest? Give one example of each from a video system.
Show answer
Exercise 2. The toy cipher has 25 possible keys. Why is that hopeless, and what does a real cipher do differently?
Show answer
Exercise 3. A browser warns that a new camera's certificate is not trusted. Is the connection encrypted? What is the warning really saying?
Show answer
Exercise 4 (think, don't memorize). A customer says: "Our camera network is separate from everything else, so encrypting it is a waste of effort." How do you answer?