Cybersecurity of Security Systems, lesson 2 of 8
Passwords and accounts
Lesson 1 showed that every camera, controller and recorder is a small computer with a sign-in page. That page is the front door. Most break-ins to security systems do not involve anything clever: someone simply signs in, with a password that was never changed or was shared too widely. This lesson shows how to set up passwords and accounts so that does not happen.
How big is the haystack?
Change the length, the kinds of character and how the password was chosen. The times assume the worst case: someone has stolen a copy of the stored passwords and tests them on their own computer, at about a billion guesses a second.
The everyday picture
When a housing development is built, every front door is often fitted with the same builder's lock, so the tradespeople can get in and out with one key. On moving day, the first thing a sensible owner does is change the lock. Until then, every plumber and painter who worked on the street can walk in.
A factory password is a builder's key. It was meant for the first hour of the device's life.
Now think about an office where twelve people share one key to the stockroom. When stock goes missing, nobody can say who went in. When one person leaves, either the lock is changed for everyone or, more often, it is not changed at all. A shared password is a shared key.
Three questions at sign-in
An account is the device's record of one user. Signing in answers three separate questions, and each can be weak or strong.
| Question | Trade word | Answered by | Goes wrong when |
|---|---|---|---|
| Who are you? | Identification | The username | Everyone uses the name "admin" |
| Can you prove it? | Authentication | The password, and perhaps a second step | The password is a default, short, or widely known |
| What may you do? | Authorization | The account's role | Every account is an administrator |
You met the same three questions in the Access Control course: a card number, proof that the card is real, and an access level. A sign-in page is a door, and it deserves the same thinking.
Factory passwords
For many years devices shipped with a standard username and password printed in the manual. Those pairs are public knowledge. They are the first thing any scanning program tries, which is why the tool above shows a default as found at once, however long it is.
Newer equipment is better. Many devices now refuse to do anything until you create a password at first power-up, and some ship with a unique password printed on a label. A California law in force since 2020 pushes makers in this direction for connected devices sold there. Older devices on existing sites are not covered by any of that, so check every one.
- Change the password on every device before it is connected to the customer's network, not after.
- Look for secondary accounts. Some devices have a separate default account for a service, such as the one a recorder uses to pull video. Change or disable each of them.
- A factory reset usually brings the default back. After any reset, the device is as exposed as a new one until you set it up again.
What makes a password good
Two things: nobody can guess it, and it is not used anywhere else.
Length beats cleverness. Try the tool. Eight lowercase letters give about 209 billion possibilities, which sounds large and is not. Twelve lowercase letters give about 457,000 times more. Adding capitals and symbols helps as well, but each extra character multiplies the total, so length does the most work. Current guidance from NIST, the United States standards institute, favors long passwords and no longer recommends forcing people to change them on a calendar without a reason.
Random beats memorable. A word, a name, a season with a year, or the customer's street address is on a list somewhere. A string produced by a password manager is not. A password manager is a program that creates long random passwords and stores them in an encrypted vault, so nobody has to remember or type them from memory.
Unique beats convenient. If one password opens the cameras at every customer you serve, one lost laptop exposes all of them. At the least, use a different password for each customer site, and never reuse a customer's password on anything else.
Two kinds of guessing
Passwords get guessed in two quite different ways, and each needs a different defense.
- At the sign-in page. Someone types, or a program sends, guesses to the camera or recorder over the network. Each guess needs an answer from the device, so this is slow: tens of tries a second at the very most. Here lockout helps a great deal. After a set number of wrong tries, such as five, the account refuses further attempts for a few minutes, which cuts guessing to a handful per hour. Switch it on where it exists. One caution: lock out people's accounts, not the account the recorder uses to pull video, or a single mistyped password can stop recording.
- On a stolen copy. Devices keep their passwords in scrambled form. If someone gets that scrambled list, from a configuration backup left on a shared drive, an exported settings file or a stolen recorder, they can test guesses on their own computer with no device in the way. That is where speeds of a billion guesses a second come from, and it is what the tool above shows. Lockout does nothing here, because the device is never asked. Only length and randomness protect the password.
So the two defenses work together. Lockout stops guessing at the front door. Long, random passwords protect you if a copy ever walks out the back door. The advanced example below shows how such a copy goes missing.
Check yourself
Which change makes a randomly chosen password hardest to guess?
One person, one account, one role
Every person who uses the system gets a personal account. That gives you two things a shared login never can: a log that says who did what, and the ability to remove one person without disturbing the rest.
Each account then gets a role, a named set of permissions. Give each person the smallest role that lets them do their job. The trade name for this habit is least privilege.
| Role | Typical permissions | Who holds it |
|---|---|---|
| Viewer | Watch live video. Nothing else. | Reception, a shop manager |
| Operator | View, play back, acknowledge alarms, add a visitor | Guards, front desk |
| Administrator | Everything, including settings and other people's accounts | One or two named people |
| Service | Settings and diagnostics, for a limited time | The installer's technician, during a visit |
| Device account | Only what one machine needs from another, such as pulling video | The recorder, signing in to each camera |
Accounts need a life cycle. A new starter gets one on the first day. A leaver's account is disabled on the last day, not at the next review. An account nobody has used for 90 days deserves a question. On larger sites the access or video software can be linked to the company's staff directory, so that one company login works everywhere and stops everywhere at once. That arrangement is called single sign-on.
A second step
A password can be guessed, overheard or stolen without the owner knowing. Multi-factor authentication, often shortened to MFA, asks for a second proof of a different kind: something you have as well as something you know. In practice that is a six-digit code from an app on your phone, a prompt you approve on the phone, or a small hardware key.
With MFA, a stolen password alone opens nothing. Codes sent by text message are better than no second step, but an app or a hardware key is stronger. Turn MFA on for every administrator, and for any sign-in that can be reached from outside the building. Lesson 6 returns to this.
Review these accounts
You have been asked to look over the accounts on a customer's system. Decide whether each one is fine or needs fixing.
Fine, or needs fixing?
Three examples
Simple: sixteen cameras, one afternoon
A technician sets up sixteen new cameras. Each one insists on a new password at first start. Under time pressure he types the customer's name followed by the year into all sixteen, and writes it on the inside of the cabinet door.
The cameras are no longer on a default, but the password is guessable and is on display. The fix takes ten minutes: generate one long random password for this site in the company password manager, apply it with the manufacturer's setup tool to all sixteen at once, and wipe the cabinet door.
Medium: the account that outlived the job
An installer created an account called "install" with full rights during commissioning. Two years later the customer changed service company. The account was still there, with a password known to at least six former technicians.
At handover, the installer's working accounts should be removed or disabled, and the customer given sole ownership of the administrator account. If the installer needs to return, the customer enables a service account for the visit and disables it afterward.
Advanced: what the recorder knows
A recorder signs in to each of its 80 cameras to pull video. It was set up using each camera's administrator account. A copy of the recorder's configuration, saved on a shared drive for convenience, therefore contained the means to take full control of every camera.
The better design creates a second account on each camera with rights only to stream video, and gives that one to the recorder. Then the recorder, its backups and anyone who reads them hold a key that opens very little. Most cameras support this, though the names of the permission levels vary, so check the manual.
From the field
- Use a company password manager with a vault per customer. When a technician leaves your company, you remove one person from the vault instead of changing every site.
- Set passwords on the bench. A device should never touch a customer network while it still has a default.
- Hand over ownership in writing. The handover sheet names who holds the administrator account. It does not contain the password itself.
- Keep one sealed emergency administrator account for the day the only administrator is unreachable. Record every time it is opened.
- Check that the system's clock is right. A log of who signed in is worth little if its times are wrong.
Common mistakes
- Leaving a default password in place "until commissioning is finished".
- Using one password across every customer.
- Writing passwords on the cabinet, in the as-built drawings or in an email.
- Making everyone an administrator because it avoids support calls.
- Forgetting the installer's own accounts at handover.
- Changing a short password every month instead of using a long one.
Summary
- A default password is public. Change it before the device joins the network.
- Long, random and unique passwords, kept in a password manager, defeat guessing.
- Each person gets a personal account with the smallest role that does the job.
- Accounts are removed the day a person leaves, including the installer's.
- A second sign-in step protects administrators and anything reachable from outside.
Exercises
Answer each one yourself first, then open the answer.
Exercise 1. How many possibilities does a four-digit PIN have? How many does a six-digit PIN have?
Show answer
Exercise 2. A guard only needs to watch live video and replay the last hour. Which role fits, and why not administrator?
Show answer
Exercise 3. A camera is reset to factory settings to cure a fault. What must happen before it is plugged back into the network?
Show answer
Exercise 4 (think, don't memorize). A customer with three guards on shifts wants one shared login at the guard desk "so nobody has to sign in and out". What do you suggest?