PanelSimulator Academy

Cybersecurity of Security Systems, lesson 8 of 8

When something goes wrong

Every protection in this course lowers the odds. None brings them to zero. This last lesson is about the day a camera, recorder or server is found doing something it should not: how to notice, how to stop it spreading, how to get back to a system you can trust, and how to prepare so that the day is an inconvenience and not a disaster.

About 14 minutes. Read the rest of the course first.

Three incidents, five stages

Pick an incident, then play or step through how it is handled.

Security network Workstation Access server Camera 7 Video server Door controller Internet Backupkept apart log

The everyday picture

A grease fire starts in a restaurant kitchen. A crew that has never thought about it throws water on the pan, and the fire spreads. A crew that has drilled does four things in order: shuts off the gas, covers the pan, gets people out, and calls for help. Afterward they find out why the oil overheated and fix that too.

The drilled crew is not smarter. They decided what to do on a calm day, and wrote the phone number on the wall.

A security incident goes the same way. The actions are simple. What goes wrong is the order, and the panic.

Signs that something is wrong

An incident is any event in which a device or account may have been used by someone who should not have been able to. Most do not announce themselves. They show up as small oddities that are easy to explain away.

What you noticeOrdinary causeWhat it can also mean
A camera restarts by itself or runs hot and slowPower fault, failing unitIt is busy doing work for someone else
The site's internet is slow at odd hoursBackups, a busy networkA device is sending traffic outward
Settings have changed: a schedule, a stream, a time zoneA colleague did itSomeone signed in who should not have
An account, card or access level nobody remembers creatingPoor record keepingSomeone is preparing a way in
Sign-in failures in the log, many in a rowA forgotten passwordGuessing
Gaps in recordings, or a log that has been clearedDisk fault, power cutSomeone removing traces
Files that will not open and a demand for paymentNoneRansomware. This one does announce itself.

The rule is the one you already use for door alarms, from "Events, alarms and monitoring" in the Access Control course: find the ordinary cause and confirm it, or treat the event as real. "It was probably nothing" is not a finding.

The five stages

Guides to incident handling, including the widely used one from NIST, describe the same sequence in slightly different words. For a security system it comes down to five stages.

  1. Notice. Write down what you saw and the time. Decide whether it is a fault or an incident. If unsure, treat it as an incident.
  2. Contain. Stop it spreading. Take the affected device off the network by unplugging its network cable or disabling its switch port. Leave it powered if you can, because a restart can erase traces held in memory. Do not start fixing yet.
  3. Keep evidence. Before anything is reset, save what will be lost: logs, the configuration, a list of accounts, the firmware version. Protect relevant video from being overwritten. Note who handled what, and when.
  4. Recover. Return to a state you can trust. For a camera or controller that means a factory reset, current firmware from the maker, the hardening checklist and new passwords. For a server it means a clean rebuild and a restore from a backup made before the trouble started. Then change every password the affected device knew.
  5. Learn. Find how it got in and close that path on every similar device, not only the one that was caught. Update the checklist so the next site starts ahead.

Containing means the system does less for a while: one camera dark, or remote access off. That is the right trade. Say so to the customer plainly, and arrange a stopgap such as a guard patrol or a temporary camera if the gap matters.

Check yourself

A recorder is behaving strangely and you suspect it has been taken over. What do you do first, after noting the time?

Getting ready beforehand

Everything in the five stages depends on things that must already exist. This is the list to build on a calm day.

Have readyWhy it matters on the day
The device list from lesson 1You can tell which devices share the model, firmware or password of the one affected
Saved configurations for every deviceA reset camera is back in service in minutes, not rebuilt from memory
Backups of servers and databases, testedA rebuild is possible at all
Logs copied to a separate log serverThe record survives even if the device is wiped
Correct clocks everywhereEvents from different devices can be put in order
A one-page plan with names and phone numbersNobody wonders who decides, or whom to call at 2 a.m.
Spare devices, or a known lead timeContaining a device does not leave a door or a camera position bare for weeks

Backups deserve a rule of thumb. Keep three copies of anything that matters, on two different kinds of storage, with one copy somewhere else. People call this the 3-2-1 rule. Ransomware has added a condition: at least one copy must be out of reach of the network, either offline or in storage that cannot be altered once written. A backup that the infected server could reach is usually encrypted along with everything else.

And restore one, once a year, to prove it works. "Software, servers and cloud" made the same point: hand over a restore, not just a backup.

Put the steps in order

A technician finds a camera sending traffic to the internet. Click the six actions in a sound order.

What comes next?

Click the action you would take first, then the next, and so on.

    Who needs to know

    • The customer's named contact, at once, by phone. Do not use email on a network you suspect.
    • The customer's IT team or outside IT provider. The security system may be one symptom of a wider problem, and they may have tools and logs you lack.
    • Your own manager. If one customer was reached through something your company did, such as a shared password, other customers may be exposed too.
    • The customer's insurer, if they hold cyber insurance. Many policies require prompt notice and supply specialist responders.
    • Legal counsel. Every state has a law on notifying people when their personal information is exposed, and some industries have further rules. Whether an incident triggers them is a decision for the customer and its lawyer. Your job is to make sure they know the facts quickly.
    • Law enforcement, where a crime is suspected. In the United States the FBI's Internet Crime Complaint Center takes reports.

    Whether to pay a ransom is never the installer's decision. It belongs to the customer, with its insurer, lawyer and law enforcement.

    Know your own limits as well. A technician can contain a device and rebuild it. Working out how far an intruder got into a large network is specialist work. Say so early and help the customer bring in people who do it.

    Three examples

    Simple: camera 7

    A restaurant's internet slows every night. The router's log shows one camera sending steady traffic outward. The technician notes the time, unplugs the camera's network cable, and saves its log and settings. He resets it, installs current firmware, applies the hardening checklist and sets a new password.

    Then he asks how. The router had UPnP on, and the camera had opened its own port. He turns UPnP off and checks the other five cameras, which share the old password. They get new ones too. Total time: one visit.

    Medium: the card nobody issued

    A monthly review of the access software's operator log shows a cardholder added at 2:14 a.m. by the shared administrator login, with access to every door. The manager disables that card and changes the administrator password within the hour. She exports the operator log and the door events for that card, and marks the matching video so that it is kept.

    The card had opened the stockroom twice. That made it a matter for the police, and the saved records were what they asked for. The lasting fixes were personal accounts, a second sign-in step, and an alert whenever a cardholder is added outside working hours.

    Advanced: ransomware on the video server

    A logistics company arrives on Monday to find its video server's files encrypted and a demand for payment on screen. The security manager follows the one-page plan. The server's network cable is pulled and it is left running. IT, the insurer and counsel are called from a cell phone. The insurer's responders take a copy of the disk before anything else is touched.

    The cameras had been set to record to their own memory cards whenever the server was unreachable, so recording never stopped. The server was rebuilt from clean media on Tuesday and its configuration restored from Friday's offline backup. The responders traced the entry to an old remote-desktop program on a guard-room PC, the "fourth method" lesson 6 warned about. Two days of disruption, no ransom paid, and no gap in the video.

    From the field

    • Carry the customer's emergency contacts on paper or in your phone, not only in a system that may be down.
    • Photograph screens with your phone before you touch anything. It is fast and it keeps the time.
    • Assume the neighbors are affected. Devices that share a password, model or firmware with the bad one get the same treatment.
    • Practice once a year. Sit down with the customer for an hour, pick a scenario from this lesson and talk it through. Gaps in the plan show up immediately.
    • Write a short report afterward: what happened, what was done, what changes. Customers remember how you handled a bad day.

    Common mistakes

    • Explaining away an oddity without confirming the ordinary cause.
    • Resetting the device first, which destroys the evidence of how it happened.
    • Fixing the one device that was caught and leaving its identical neighbors.
    • Restoring from a backup that was taken after the trouble started.
    • Keeping the only backup where the affected server could reach it.
    • Saying nothing to the customer in the hope that nobody notices.

    Summary

    • Incidents usually look like small faults. Confirm the ordinary cause or treat them as real.
    • Five stages, in order: notice, contain, keep evidence, recover, learn.
    • Contain by taking the device off the network. Save logs and settings before resetting anything.
    • Recovery depends on preparation: a device list, saved configurations, tested backups with one copy out of reach, and a plan with phone numbers.
    • Tell the customer at once. Notification, ransom and legal questions are theirs to decide, with their advisers.

    Exercises

    Answer each one yourself first, then open the answer.

    Exercise 1. Name the five stages in order, with one sentence on each.

    Show answer
    Notice: record what you saw and when. Contain: take the device off the network so the problem cannot spread. Keep evidence: save logs, settings and relevant video before changing anything. Recover: reset or rebuild, update, harden and change passwords. Learn: find the way in and close it everywhere.

    Exercise 2. Why leave a suspect device powered when you disconnect it?

    Show answer
    Some traces of what happened exist only in the device's working memory, and a restart erases them. Disconnecting the network stops the harm while keeping those traces for whoever investigates. On a small job you may decide the evidence is not needed, but make that a decision, not an accident.

    Exercise 3. A company backs up its access database every night to a second disk inside the same server. Measure that against the 3-2-1 rule.

    Show answer
    It has two copies, not three. Both are in the same machine, so there is no copy elsewhere, and a fire, theft or ransomware infection takes both together. Add a copy on different storage in another place, with at least one copy offline or unalterable, and test a restore.

    Exercise 4 (think, don't memorize). You find that a recorder you installed has been reachable from the internet for a year because of a port you forwarded during commissioning and forgot. Nothing looks wrong. What do you do?

    Show answer
    Close the port now, then tell the customer what you found and that it was your error. Treat the recorder as possibly affected: save its logs and account list, look for accounts or settings nobody recognizes, update it, and change its passwords and any password it shared with other devices. Check your other sites for the same habit. Owning it is uncomfortable. It is also what keeps the customer, because the alternative is that they learn it from someone else.