Cybersecurity of Security Systems, lesson 3 of 8
Updates and firmware
Lesson 1 showed that every security device is a small computer, and all software has faults. Some of those faults let a stranger in. Makers find them and publish fixes, but a fix only helps a device that receives it. This lesson shows why a camera nobody has touched in five years is the commonest weakness in the trade, and how to keep equipment current without causing outages.
Eight years in the life of one camera
Pick how the camera is looked after, then play or step through the years.
The everyday picture
A car maker discovers that a batch of cars has a faulty door latch. It sends every owner a recall notice. The repair is free and takes half an hour.
Two things follow. The repair only happens if the owner brings the car in. And the notice is public, so from that day anyone who cares to read it knows exactly which cars have latches that can be opened, and how to recognize them.
A firmware update is a recall repair. The announcement that comes with it is the notice. A device that misses the repair is in a worse position than before the notice went out, because now the fault is common knowledge.
Faults, fixes and notices
- A vulnerability is a fault in software that lets someone do what they should not be able to, such as getting past the sign-in page.
- A patch is the corrected software. For a camera or controller it arrives as a new firmware file. For a server it arrives as updates to the operating system and to the security software.
- A security advisory is the maker's notice. It lists the models and versions affected, how serious the fault is, and which version fixes it.
- Publicly known faults are given a catalog number that starts with CVE, so that everyone refers to the same fault by the same name. Advisories usually quote it, along with a severity score from 0 to 10. A score of 9 or more is rated critical.
The chart at the top is the whole argument in one picture. The camera's hardware does not wear out in a way you can see. What grows is the list of published ways into it.
What there is to update
A security system has more layers of software than most people expect. Each has its own source of updates.
| Layer | Where updates come from | Typical rhythm |
|---|---|---|
| Camera, controller and intercom firmware | The device maker's website or setup tool | A few releases a year |
| Recorder firmware | The recorder's maker | A few releases a year |
| Server operating system | The operating system's maker | Monthly, for mainstream systems |
| Video or access software, and its database | The software maker | Several releases a year, with fixes between |
| Operator workstations and phone apps | Operating system and app stores | Monthly or continuous |
| Network switches and routers | The network maker | A few releases a year |
Cloud-managed products are different. The provider updates its own servers, and usually pushes firmware to the devices as well, often at a quiet hour you choose. That is one of the strongest arguments for cloud on a site with nobody to look after it, as "Software, servers and cloud" in the Access Control course explained.
Check yourself
A maker publishes a fix for a serious fault. What happens to the risk for a camera that is not updated?
How soon?
Not every update is an emergency. Two questions set the pace: how serious is the fault, and how easily can someone reach the device? The figures below are a sensible starting policy, not a rule from any standard. Agree the real ones with the customer and write them into the service contract.
| Situation | Act within |
|---|---|
| Critical fault, and the device can be reached from the internet | Days. If that is not possible, take it off the internet until it is fixed. |
| Critical fault, device on a separate internal network | A few weeks |
| Ordinary security fixes | The next planned visit, at least twice a year |
| New features only | When someone needs the feature |
Someone has to hear about the fix in the first place. Subscribe to the security notices of every maker whose equipment you install, and give one named person the job of reading them.
Updating without breaking things
Installers avoid updates for an honest reason: an update can break a working system, and the phone rings. The answer is a routine that makes breakage rare and small.
- Read the release notes. They say what changed, and whether you must pass through an intermediate version on the way.
- Check that the parts still fit together. New camera firmware may need a newer version of the recording software, and the reverse. The makers publish compatibility lists.
- Get the file from the maker. Never from a forum or a search result. Modern devices check a digital signature on the file and refuse one the maker did not produce, which lesson 5 explains.
- Save the device's settings before you start.
- Update one device of each model first. Check it for a day: picture, recording, motion events, time, and that your settings survived.
- Roll out in small batches, at a quiet time, never taking down every camera that covers the same area at once.
- Never interrupt power during an update. A half-written device may need to go back to the maker.
- Write the new version in the device list.
Plan an update round
While a camera installs firmware and restarts, it records nothing. A plan turns that into a short, known gap. The tool assumes each batch is finished and checked before the next begins.
How long, and how blind?
Six minutes per camera is a typical allowance for upload, restart and a quick check. Time your own models.
When the fixes stop
Every product reaches a date after which its maker publishes no more fixes. It is called end of support, and makers announce it in advance. The device keeps working. From then on, each newly found fault stays open for good, as the third situation in the chart shows.
- Record the end-of-support date for each model in the device list, and raise it with the customer a budget year ahead.
- Ask about the maker's support policy before choosing a product. Some publish a guaranteed number of years. Some offer a long-term track that receives fixes without new features, which suits security systems well.
- If an unsupported device must stay for a while, shrink what can reach it. Lesson 4 shows how to fence it in.
Three examples
Simple: the shop that updates itself
A clothing shop has six cloud-managed cameras. The provider pushes firmware at 3 a.m. on a night the owner chose. Each camera is offline for about five minutes while the shop is closed. Nobody on site does anything, and the cameras are never more than a few weeks behind.
Medium: forty cameras vanish
A technician updates all forty cameras at a school in one evening. Next morning the recording software shows forty black tiles. The new firmware had turned off an older connection method that the school's five-year-old recording software relied on.
The cameras were fine. The pieces no longer fitted together. Checking the compatibility list, and trying one camera first, would have turned a morning without video into a note that says "update the recording software first".
Advanced: one advisory, four hundred cameras
A hospital has 400 cameras of nine models. A maker publishes a critical advisory covering two of those models. Because the hospital's device list records model and firmware version, the security manager knows within ten minutes that 85 cameras are affected and where each one is.
None can be reached from the internet, so the policy allows a few weeks. One camera of each model is updated and watched for a day. The rest follow over three nights in batches of five, with each ward told beforehand. The list also shows 30 older cameras past end of support. Those go onto a tighter network segment that week, and into next year's budget.
From the field
- Update new stock on the bench. A device may have sat in a warehouse for a year. Bring it current before it goes on the wall.
- Use the maker's bulk tool. Most can update many devices of one model together and report which succeeded.
- Standardize on fewer models. Nine models mean nine firmware files to track. Three are far easier.
- Put the update schedule in the service contract, with who does it and what it costs. Work nobody is paid for does not get done.
- Keep the previous firmware file, in case you need to go back. Check the release notes first, because some updates cannot be reversed.
Common mistakes
- "If it works, do not touch it", applied to software.
- Updating everything at once, with no test device and no way back.
- Updating the cameras and forgetting the server's operating system, or the reverse.
- Downloading firmware from somewhere other than the maker.
- Not knowing which versions are installed, so an advisory cannot be acted on.
- Running equipment years past end of support without telling the customer.
Summary
- Every published fix also publishes the fault. Devices left behind become easier targets over time.
- Firmware, operating systems, security software and network equipment all need updates.
- Seriousness and reachability decide how fast to act.
- Test one, back up, roll out in batches, record the version.
- After end of support no fix will come. Plan the replacement before that date.
Exercises
Answer each one yourself first, then open the answer.
Exercise 1. What three things does a security advisory tell you?
Show answer
Exercise 2. A site has 120 cameras. You update 4 at a time and allow 6 minutes per batch. How long does the round take, and what share of cameras is down at any moment?
Show answer
Exercise 3. Why update one camera of each model first, instead of one camera in total?
Show answer
Exercise 4 (think, don't memorize). A customer's twelve door controllers reached end of support last year. They work perfectly and the customer does not want to spend money. What do you say, and what do you do meanwhile?