PanelSimulator Academy

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.

About 14 minutes. Read lesson 2 first. "Readers and how they talk" in the Access Control course met the same idea at the door.

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.

Workstation technician signs in Camera settings page certificate camera 14 Another device on the network it sees: nothing yet pass: tulip-93

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.

ConversationOpen formProtected form
Browser or setup tool to a device's settings pageHTTPHTTPS
Camera to recorder, video streamPlain streamingEncrypted streaming, where both ends support it
Recorder or server to viewing softwareVaries by makerTLS, usually a setting
Controller to access serverPlain on older systemsTLS
Reader to controllerWiegand, which has no protectionOSDP with its secure channel switched on
Card to readerOlder proximity cards send a fixed numberSmart cards that hold keys and prove themselves
System to email or text alertsPlain mailMail 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 storedWhereProtection to look for
Recorded videoRecorder or server disksDisk or volume encryption, if the product offers it
Video on a camera's memory cardInside the cameraCard encryption, a setting on many cameras
Cardholder databaseAccess serverEncrypted disk, and an encrypted database where offered
Backups and saved configurationsAnother machine, cloud storage, a technician's laptopEncrypt the backup file with its own passphrase
Exported clipsUSB drive, email, a shared linkPassword-protected export, sent separately from the password
Technician's laptop and phoneIn a vanFull-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

what travels on the wire
what the receiver reads

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
In transit means while it travels across a network, such as a sign-in to a camera over HTTPS or an encrypted video stream to the recorder. At rest means while it sits in storage, such as recordings on an encrypted recorder disk or an encrypted backup file.

Exercise 2. The toy cipher has 25 possible keys. Why is that hopeless, and what does a real cipher do differently?

Show answer
Someone can try all 25 by hand in a few minutes. A real cipher such as AES with a 128-bit key has about 340 followed by 36 zeros of possible keys, which no amount of guessing covers. It is the haystack idea from lesson 2 again.

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
Yes, it is encrypted. The warning says the browser cannot confirm that the device at the other end is the one you meant, because the camera signed its own certificate. On a small site that may be accepted. On a larger one, certificates issued by the customer's own authority remove the warning and add the identity check.

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?

Show answer
Separation and encryption guard against different failures, and each covers for the other. Separation can be undone by one wrong cable, one mis-set switch port or one person plugging in at an outdoor camera. When that happens, encryption is what keeps passwords and video unreadable. Stored data needs it regardless, because a stolen recorder is not a network event at all. Start with the cheap steps: HTTPS only on every device, and encrypted backups.