PanelSimulator Academy

Cybersecurity of Security Systems, lesson 7 of 8

Hardening a device

A device comes out of the box set up to be easy to install, with features switched on that most sites never use. Hardening means going through it and closing everything the job does not need. This lesson gathers lessons 2 to 6 into one checklist for cameras, controllers and recorders, and shows how to apply it to hundreds of devices without losing a week.

About 14 minutes. Read lessons 2 to 6 first.

Close the openings on one camera

Each box is a way in. Click one to deal with it, or use the buttons to compare the two extremes.

Camera 8 openings left

The everyday picture

Before a shop closes for the night, someone walks the building. They lock the front door, then the back door, the roller shutter and the roof hatch. They check the window in the stockroom that staff open in summer. They switch on the alarm and take the spare key off the hook by the till.

None of those steps is clever. The value is in doing all of them, every night, from a list, because a burglar needs only the one that was missed.

Hardening is the closing-up walk for a device. You do it once at installation and repeat it after any reset or major update.

Attack surface

Every program inside a device that listens for messages from the network is called a service. The web page is a service. So is the video stream, and so is the feature that lets a setup tool find the camera. Each one is a door that might have a fault in it one day.

The total of everything that can be reached and tried is the device's attack surface. You cannot know which service will have the next fault. You can make sure that most of them are not there to be found. A service that is switched off cannot be attacked, needs no password and never needs an urgent patch.

A documented set of secure settings for a model is called a baseline. Most professional makers publish a hardening guide for their products. Start from it, and keep your own baseline per model so that every technician sets devices up the same way.

Services to question

Names and menus vary by maker. The table lists what to look for and the usual answer. If a site truly needs something marked "off", write down why.

ServiceWhat it is forUsual setting
Plain web page (HTTP)Settings pages without encryptionOff. HTTPS only, lesson 5.
Remote console (Telnet, SSH)A text command line for engineersOff. Telnet has no encryption at all.
File transfer (FTP)Sending snapshots to a file serverOff unless used, then the encrypted form
UPnPAsking the router to open ports automaticallyOff, lesson 6
DiscoveryLets setup tools find the device on the networkOff once the device is set up, if the recorder does not rely on it
Network monitoring (SNMP)Lets IT watch the device's healthOff, or version 3 with a password if IT uses it
Maker's cloud or relay linkRemote viewing through the makerOff unless it is the chosen remote method
Open video integrationLets other makers' recorders connectOn only if used, with its own account and a strong password
Audio, and unused inputs and outputsMicrophone, speaker, relay contactsOff if not part of the design. Recording sound also raises legal questions.

Check yourself

A camera's file-transfer service is on but nobody uses it. What is the best reason to switch it off?

The checklist by device

The same eight ideas apply to every device. The details differ.

StepCameraDoor controllerRecorder or server
1. FirmwareCurrent, from the makerCurrent, from the makerOperating system, software and firmware all current
2. AccountsNew administrator password. A separate streaming account for the recorder.New password. Installer code changed.Personal accounts, roles, second step for administrators
3. ServicesUnused ones off, as in the table aboveWeb page off if the server manages itUnused programs removed. No email or web browsing on it.
4. EncryptionHTTPS only. Encrypted stream and memory card where offered.Encrypted link to the server. OSDP secure channel to readers.TLS to clients. Encrypted disks and backups.
5. NetworkFixed or reserved address, right VLAN, allowed-address list set to the recorderRight VLAN, talks only to its serverFirewall on, only the needed ports open
6. TimeSet to a trusted time server, with the right time zone. Evidence with a wrong clock is weak evidence.
7. LoggingLogging on. Where possible, send a copy of the log to a central log server, so that it survives if the device is wiped.
8. RecordSave the configuration, encrypted. Update the device list with version, address and date hardened.

The allowed-address list in step 5 goes by names such as IP filter or access list. It tells the device to answer only the recorder and the technician's management station, and to ignore everything else. It is a second fence inside the first, and it costs nothing.

For servers, published benchmarks exist for each mainstream operating system. If the customer has an IT department, ask for its standard build and put the security software on top of that.

The physical side

  • Reset buttons. Anyone who can press it for ten seconds gets a factory-fresh device. Mount cameras out of reach, and lock controller and recorder enclosures.
  • Tamper switches. Controller cabinets and many cameras have one. Wire it and treat its alarm as real.
  • Memory cards. A card in a camera can be removed by anyone with a screwdriver. Encrypt it and use a housing with security screws.
  • USB sockets and screens. A recorder in a manager's office with a mouse attached and no screen lock is signed in for everyone. Set the screen to lock itself, and put the recorder in a locked cabinet.
  • Cable. Run it inside the wall or in conduit behind outdoor cameras, never as a loop someone can cut or tap.

When each step happens

  • On the bench: firmware, passwords, services, HTTPS, time. The device should never meet the customer's network in its factory state.
  • On site: address and VLAN, allowed-address list, connection to the recorder or server, physical security.
  • At handover: remove installer accounts, switch off discovery, save configurations, hand over the device list.
  • Every year, and after any reset: compare each device with the baseline. Settings drift, and a reset undoes everything at once.

Hand work or a template?

Hardening by hand through each device's web pages is slow and easy to get slightly wrong. Makers' bulk tools and many video platforms can push one set of settings, a template, to every device of a model. Building and testing the template takes time once.

How long will hardening take?

Twenty minutes by hand and three with a template are typical allowances. Time your own.

by hand
with a template
devices before the template pays for itself

Three examples

Simple: one camera on the bench

A technician unpacks a camera for a small shop. In fifteen minutes at the bench she updates the firmware, sets the site's administrator password, adds a streaming-only account, turns on HTTPS only, turns off UPnP, the remote console and file transfer, and sets the time server. On site she adds the address and the allowed-address list. The camera never spent a minute on the shop's network in its factory state.

Medium: the reset that undid everything

A controller at a clinic developed a fault, and a technician cured it with a factory reset. Doors worked again and he left. The reset had also brought back the default password, the plain web page and the discovery service. It stayed that way for eight months, until an annual check against the baseline caught it.

Two habits prevent this. Restore the saved configuration after a reset instead of rebuilding by hand, and tick through the checklist before leaving any device you have reset.

Advanced: three hundred cameras, four models

A school district adds 300 cameras of four models. The integrator builds one template per model from the maker's hardening guide, tests each on a single camera with the district's recording software, and has the district's IT team review them. The templates are pushed with the maker's bulk tool as cameras come off the pallet.

By the tool above, 300 cameras at 20 minutes each is 100 hours by hand. Four templates at an hour each plus 3 minutes per camera is 19 hours. The saved time matters less than the result: 300 cameras with identical settings, and a file that shows what those settings are.

From the field

  • Test before you roll out. Switching off a service the recorder depends on makes cameras vanish. Try the template on one device first.
  • Change one group of settings at a time on a working system, so that a problem points to its cause.
  • Keep the baseline with the job file, one page per model, dated.
  • Do not lock yourself out. Set the allowed-address list last, and include the management station.
  • Print the checklist on the commissioning sheet, one row per device, with initials. What is signed for gets done.

Common mistakes

  • Changing the password and calling the device hardened.
  • Leaving setup conveniences on after commissioning: discovery, UPnP, the installer account.
  • Hardening the cameras and forgetting the recorder's operating system.
  • No record of the settings, so nobody can tell what has drifted.
  • Forgetting that a factory reset removes every protection at once.
  • A locked-down device with its reset button in public reach.

Summary

  • Every service that listens is a possible way in. Switch off what the site does not use.
  • Eight steps: firmware, accounts, services, encryption, network, time, logging, record.
  • Start from the maker's hardening guide and keep a baseline for each model.
  • Harden on the bench, finish on site, and check again each year and after any reset.
  • Templates make many devices identical and turn days of work into hours.

Exercises

Answer each one yourself first, then open the answer.

Exercise 1. What is a device's attack surface, and what is the simplest way to shrink it?

Show answer
Everything on the device that can be reached and tried from the network: each listening service, each account, each open port. The simplest way to shrink it is to switch off every service the site does not use.

Exercise 2. You have 45 cameras of one model. By hand takes 20 minutes each. A template takes 60 minutes to build and 3 minutes per camera. Compare the two.

Show answer
By hand: 45 times 20 is 900 minutes, or 15 hours. With a template: 60 plus 45 times 3 is 60 plus 135, which is 195 minutes, or 3 hours 15 minutes. The template saves 11 hours 45 minutes and makes all 45 identical.

Exercise 3. Why set the time server during hardening? It does not seem like a security setting.

Show answer
Video and event logs are evidence, and after an incident they are how you work out what happened in what order. Both depend on correct clocks. Certificates also carry dates, so a device with the wrong date may reject good ones.

Exercise 4 (think, don't memorize). After you harden a site's cameras, the customer's older recording software can no longer find three of them. A colleague suggests turning everything back on. What do you do?

Show answer
Find the one setting that matters instead of undoing all of them. Compare a working camera with a missing one, or re-enable services one at a time on a single camera until it reappears. Most often the software relied on discovery, the open integration service or an older connection method. Then choose: update the recording software so that it works with the secure setting, or leave that one service on for those cameras, note the exception in the baseline, and keep everything else closed.