Looking after the accounts that can change everything

8 min 5 sections 4 practice questions 1 source citedISC2 objective 7.4

Most people in a building can open their own office. A few hold a master key that opens every door, switches off the alarm and wipes the camera recordings. On a computer system those master keys are privileged accounts. No background is assumed. They are what an intruder most wants and what a dishonest insider already has, so they are issued sparingly, lent for short periods and watched closely.

By the end of this unit you will be able to:

  • Explain what makes an account privileged and why such accounts need extra control
  • Put in order the steps by which privileged access is requested, granted, recorded and closed
  • Tell apart personal administrator, service, shared, emergency and default accounts
  • Choose the control that answers a stated weakness in privileged access

The log says 'admin' did it

An illustrative example

A firm of eight accountants keeps its client files on one server. Years ago a contractor created a single administrator login called admin. Its password is on a note in the office manager's drawer. Four current staff know it, and so does a partner who left last spring.

On a Monday morning every client folder for one large customer has gone. The server's log is clear: the folders were deleted at ten past two on Sunday morning by the account named admin.

The log names the account that deleted the files. Why can the firm still not say who did it, and what should have been set up differently?

What makes an account privileged

An ordinary account lets a person use a system: read their own files, send email, enter an order. A privileged account can change the system itself or override its controls.

  • Create, change and delete other accounts, and grant rights to them.
  • Install software and change settings.
  • Read or alter any file, whoever owns it.
  • Switch off security tools and , or erase what a log has recorded.
  • Restore or delete backups.

Such accounts go by several names: administrator, superuser, and root, the name of the all-powerful account on Unix and Linux systems. People hold some of them. Programs hold others. They exist on servers, on network equipment, in databases and in the consoles that control cloud services.

An intruder who enters through an ordinary account looks at once for a way to obtain a privileged one. This step is called privilege escalation. With a privileged account the intruder can reach everything and can also remove the traces.

Privileged account management (PAM) is the set of rules, processes and tools that decides who may hold elevated rights, when and for how long. It also records what is done with them.

Six rules for every privileged account

Few
Only people whose job needs elevated rights hold them. The owner of the system approves each grant, and the approval is recorded. People who hold them are vetted more thoroughly than other staff, and their rights are reviewed more often.
Personal
Each administrator has an account of their own, so every action traces to one person. A login that several people share makes that impossible.
Separate
An administrator has two accounts. The everyday one is for email and browsing. The privileged one is used only for administration.
Strongly proved
Signing in needs : two or more different kinds of proof, such as a password and a code from a device the person carries.
Recorded
Every use of a privileged function is written to a log, and the log is kept where the administrator cannot change it.
Reviewed
The list of people with privileged rights is checked on a schedule. Rights are removed the day someone changes role or leaves.

The separate rule answers a common attack. A malicious email attachment runs with the rights of whoever opens it. Opened from an everyday account it can do little. Opened from an administrator's account it can do anything that account can.

Some organisations go a step further and give administrators a second computer for privileged work. It has no email and no web browsing. It is often called a privileged access workstation.

Lending power for one job: vaults and just-in-time access

A hotel does not give a visiting electrician a master key to keep. Reception hands one over for the job, writes down the time and takes it back.

Rights that an account holds all the time, used or not, are called standing privileges. They are available to an intruder at any hour. Just-in-time (JIT) access replaces them. Elevated rights are granted when a particular task needs them, for a set time, and are then removed automatically.

The tool that makes this workable is a credential vault: a protected store that holds the passwords and keys of privileged accounts. Administrators do not know those passwords. They sign in to the vault as themselves and ask it for access. Taking a credential out for use is called check-out.

  1. The administrator signs in to the vault with multi-factor authentication and requests access to one system, giving a reason.
  2. The request is approved. For the most sensitive systems a second person must approve, which is dual control.
  3. The vault opens a session to the system for a limited time. The administrator never sees the password.
  4. The session is recorded: what was typed and what appeared on the screen. This is session recording.
  5. When the time is up the session closes and the vault changes the password, so nothing learned during the session can be used again.
  6. Someone independent reviews the record.

Service, shared, emergency and default accounts

Not every privileged account belongs to a named person. A service account is used by a program, such as the nightly backup, to sign in to other systems. A break-glass account is kept sealed for emergencies, like the fire alarm behind a glass panel. Where waiting would put a life or someone's safety at , it is opened at once and the use is reviewed afterwards, because the safety of people comes first.

Kinds of privileged account, the risk each carries and the control
KindWhat it isRiskControl
Personal administratorA named person's account with elevated rightsUsed for everyday work, it exposes those rights to attackSeparate account for administration, multi-factor sign-in, actions logged
Service accountAn account a program uses, not a personPassword never changes, rights too wide, nobody watching, a named owner, secret kept in the vault and changed on a schedule
Shared accountOne login used by several peopleNo action can be tied to one personAvoid. If unavoidable, reach it only through the vault so each use has a name
Emergency or break-glassA sealed account for when normal sign-in failsPowerful, rarely checked, easily forgottenCredentials sealed, every use raises an alert and is reviewed, password changed after use
Default accountBuilt in by the maker, with a published passwordAnyone can look the password upChange the password or disable the account before the system goes live

A service account should not allow a person to sign in with it at a keyboard. If it does, it becomes a shared account that nobody is watching.

Common misconception

“Experienced IT staff can safely keep administrator rights on their everyday accounts, because they know what they are doing.”

Skill is not the issue. Anything that runs under that account, such as a malicious web page or attachment, runs with administrator rights. A separate account and time-limited rights cost seconds and remove that exposure.

Watching what privileged users do

Privileged actions are few compared with ordinary ones, so each can be examined. Certain actions deserve an alert every time.

  • An account is created, or is added to a group of administrators.
  • A log is cleared, or logging is switched off.
  • A security tool is stopped or its settings are changed.
  • A is used.
  • A privileged sign-in happens at an unusual hour or from an unusual place.
  • An administrator opens sensitive records that the task did not call for.

Two conditions make the monitoring worth having. The records go to a separate system that the administrators being watched cannot alter. The person who reviews them is not one of those administrators. Reviewing one's own actions is no review, which is applied to the reviewers.

A privileged action should always answer four questions: who, on which system, with whose approval, and what exactly was done.

Worked example: Fixing the accountants' server

The firm has one shared login called admin, known to five people, one of whom has left. Nothing ties an action to a person, and the password has not changed in years.

  1. Change the admin password at once and seal it in an envelope in the safe. It is now the break-glass account, and any use of it is to be reported to the partners.
  2. Give the office manager and the IT contractor a personal administrator account each, separate from their everyday accounts, with multi-factor sign-in.
  3. Remove administrator rights from everyone else. Nobody else's job needs them.
  4. Send the server's log to a storage service that neither administrator can alter, and have a partner read a summary of privileged actions each month.
  5. Add a step to the leaver's checklist: privileged accounts are disabled on the last day, and any shared secret the leaver knew is changed.

A deletion at ten past two on a Sunday would now show one person's account, and the record of it would be out of that person's reach.

A question, worked through

Five database administrators at a hospital trust all sign in with one built-in account whose password they share. After an unexplained change to a table of patient records, the audit log shows only that shared account. The security manager must make sure future changes can be traced to a person, and maintenance must not stop while this is done.

What should the security manager recommend FIRST?

  1. Put the shared account behind a vault that needs a personal sign-in
  2. Require two administrators to approve every database change
  3. Send the database audit logs to a server the team cannot alter
  4. Review the five administrators' access rights every quarter
Decide on your answer, then open the reasoning
  1. The aim is accountability: each change must be tied to one person. The constraint is that maintenance carries on.
  2. Rule out c. Protecting the log is sound, but the protected log would still say only that the shared account made the change.
  3. Rule out d. A quarterly review confirms who holds rights. It does not show who used them on a given night.
  4. Option b adds dual control. It makes a lone change harder and slows every change, yet the log would still name only the shared account.
  5. Option a makes each administrator sign in as themselves to reach the account, records the session and lets work continue. It answers the stated aim, so a comes first.

Answer: A. Put the shared account behind a vault that needs a personal sign-in

Choosing between good answers

Several people share one account and an action cannot be traced to a person
choose personal accounts, or access through a vault with personal sign-in. More logging does not fix a shared name.
Administrators use one account for email and for administration
choose separate accounts, with the privileged one used only for administration.
Powerful rights are held all the time and used rarely
choose just-in-time access that grants the rights for one task and removes them.
A question asks who should review administrators' activity
choose someone independent of them, working from records they cannot alter.

Check your understanding

4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 4

A network engineer uses one account for email, web browsing and changing the settings on the firm's routers. The security manager's concern is a malicious email attachment running with that account's rights.

Which change removes this exposure?

What to remember

  • A privileged account can change a system or override its controls. It is an intruder's main target.
  • Privileged accounts are kept few, personal, separate from everyday accounts, strongly authenticated, logged and reviewed.
  • Just-in-time access lends rights for one task. A vault holds the secrets, records the session and changes the password afterwards.
  • Service accounts get least privilege, an owner and changing secrets. Shared accounts are avoided. Break-glass accounts are sealed and every use is reviewed.
  • Privileged activity is reviewed by someone other than the person who carried it out.

Say it from memory

  1. Name the main controls of privileged account management.

    Few privileged accounts, each personal and separate from the everyday account. Multi-factor sign-in. Just-in-time, time-limited rights. Secrets in a vault that records sessions and changes passwords after use. Privileged actions logged and independently reviewed. Regular review and prompt removal.

    Read this part again

  2. What is privilege escalation, and what does privileged account management decide?

    Privilege escalation is an intruder who entered through an ordinary account obtaining a privileged one, which lets them reach everything and remove the traces. Privileged account management (PAM) is the rules, processes and tools that decide who may hold elevated rights, when and for how long. It also records what is done with them.

    Read this part again

  3. In order, what happens when an administrator uses a credential vault for just-in-time access?

    The administrator signs in to the vault with multi-factor authentication and requests one system, giving a reason. The request is approved, by a second person for the most sensitive systems. The vault opens a time-limited session without showing the password. The session is recorded. When time is up the session closes and the vault changes the password. Someone independent reviews the record.

    Read this part again

  4. What is the control for a service account, a break-glass account and a default account?

    Service account: least privilege, a named owner, and its secret kept in the vault and changed on a schedule. Break-glass account: credentials sealed, every use raises an alert and is reviewed, and the password is changed after use. Default account: change the password or disable it before the system goes live.

    Read this part again

  5. What two conditions make monitoring of privileged users worth having?

    The records go to a separate system that the administrators being watched cannot alter. The person who reviews them is not one of those administrators, because reviewing one's own actions is no review.

    Read this part again

Sources