Privileged Access Management: Guarding the Keys to the Kingdom
Privileged Access Management: Guarding the Keys to the Kingdom Part of my Identity and Access Management study notes, Chapter 2. Key takeaways Privileged accounts can change config…

Privileged Access Management: Guarding the Keys to the Kingdom
Part of my Identity and Access Management study notes, Chapter 2.
Key takeaways
- Privileged accounts can change configuration or reach all the data, so they are the highest-value target in any environment
- The core rule is the same as in Chapter 1: enforce least privilege everywhere, not just on end users
- PAM rests on four ideas: protect the credentials, secure the sessions, monitor everything, and limit what can run
- A password in a spreadsheet is a breach waiting to happen, and a shared admin login is an audit nightmare
- Controls only count if you can prove they work, which is where logging, session recording and reports come in
Background
In Chapter 1 I covered how access decisions are made (identify, authenticate, authorize, account). Chapter 2 zooms in on the accounts where a wrong decision hurts the most.
Privileged access management (PAM) is the set of strategies and technologies for controlling privileged access and permissions for users, accounts, processes and systems across an IT environment. My course frames it as six topics: privileged accounts, credential management, session management, monitoring and analysis, PAM solutions, and application whitelisting. This post walks through them in that order.
1. What counts as a privileged account?
A privileged account has special permissions on a system, application, database or other asset. It can perform administration (like changing configuration) or has full access to the data. They come in more flavors than "the admin":
| Type | What it is |
|---|---|
| Local admin | Non-personal account with administrative access to one host or instance only |
| Domain admin | Administrative access across all workstations and servers in a Windows domain |
| Emergency ("break-glass") admin | Gives otherwise unprivileged users admin access to secure systems in an emergency |
| Root account | Super-administrator on systems and platforms such as Linux or AWS |
| Service account | Privileged local or domain account used by an application or service to talk to the operating system (a backup account, for example) |
| Application admin | Special access to an application and its database, for imports, exports, scripts, backups and restores |
The key principle repeats: enforce least privilege over end users, endpoints, accounts, applications, services and systems.
Notice that service accounts are on this list. If you read my Chapter 1 post on Kerberos, they're the accounts behind Kerberoasting, which is why using managed service accounts there is really a PAM decision.
2. Privileged credential management
Three rules cover most of the risk:
- Use a password manager. Storing credentials in documents, spreadsheets or on paper can lead to a data breach.
- Avoid shared credentials unless absolutely necessary. Shared privileged logins increase the risk of data loss, and when five people use one account, the logs can't tell you which of them did something.
- Encrypt everything, and make credentials accessible only to those who need or own them.
3. Privileged session management
Credentials get you in; the session is what you do once you're there. The classic threat is the man-in-the-middle (MITM) attack, where an attacker secretly relays, and possibly alters, communication between two parties who think they're talking directly.
Three questions to ask of every privileged session:
- Integrity: Is the destination authentic? Are changes on the system being tracked?
- Monitoring: Are we watching how privileged accounts are used, and can we trace the activity later for audit?
- Encryption: Is the session between the privileged user and the asset encrypted, so only authorized people can view the traffic?
Certificates tie this together. They verify and validate users and applications, and they can also encrypt the session between client and server. The answer to "what protects us against a man-in-the-middle attack?" is encryption, backed by certificates that prove you're talking to the real destination.
4. Monitoring and analysis
If a privileged account is the most dangerous thing in your environment, it should also be the most closely watched:
- Logging and auditing. Every action by a privileged account is logged so it can be audited later.
- Anomalies and alerting. Usage is monitored for malicious behavior, and detections generate alerts.
- Session recording. Where laws and regulations allow, privileged sessions are recorded so they can be reviewed and tracked later.
On Windows, one handy signal is Event ID 4672, logged when an account with special privileges logs on.
5. Putting it together: PAM solutions
A PAM solution bundles these ideas into one platform that sits between privileged users and the systems they administer.

Its components map straight onto what we've covered:
- Credential management: privileged credentials stored in a secure database
- Access management: only authorized users can reach credentials or systems, and MFA can be required
- Session management: secure connectivity to resources via RDP, SSH, HTTPS and more, with optional recording
- Logging and auditing: every privileged action is logged
- Security monitoring: anomalies in privileged usage raise alerts
- Reporting: reports on privileged account usage and administration activity
The risk this reduces most is the abuse of privileged accounts, whether by an insider with too much access or by an attacker who stole one.
6. One more layer: application whitelisting
Even a perfectly controlled admin account can run something malicious. Application whitelisting is one of the Australian Signals Directorate's Essential Eight mitigation strategies, designed mainly to stop malicious code from executing. Implemented properly, only authorized applications (executables, software libraries, scripts and installers) can run.
On Windows, Software Restriction Policies (SRP) is a Group Policy feature that identifies software running on domain computers and controls whether it's allowed to run. AppLocker is the newer Microsoft solution for the same job.
7. Hands-on: the PAM labs
This chapter's labs built directly on the Chapter 1 Active Directory lab:
- Delegated admin roles. I created separate admin accounts for DHCP and DNS and put each in the matching administrators group. Then I tested what each could do: the DHCP admin could work with DHCP but ran into walls on DNS and on creating AD users, and vice versa. It was the clearest demo of least privilege I've seen.
- Renaming the local administrator through Group Policy. Worth knowing this is a speed bump, not a real control: it doesn't change the account's underlying identity, so it only helps against lazy guessing.
- Auditing privilege use. I enabled success and failure auditing for privilege use, made a test change, and reviewed the Security log in Event Viewer.
- A password manager. I moved my lab Windows accounts into one as "Server" items and explored what else it can store.
- A PAM platform demo. In ManageEngine PAM360 I compared the Password Administrator, Password User and Password Auditor roles, then produced a user access and activity report and an ISO 27001 compliance report.
What I learned
- "Privileged" is a bigger category than "admin": service, root, emergency and application accounts all count
- Least privilege is easy to say and satisfying to prove: split admin roles, then test their limits
- Credentials, sessions and logs are three separate things to protect, and a gap in any one undermines the other two
- If you can't audit it, you can't claim you control it, and compliance reports like ISO 27001 depend on that evidence
- Whitelisting limits the damage even when an account or session is compromised
Next up, Chapter 3: Identity Governance and Administration, covering onboarding, termination and access controls over the full life of an identity.
Spotted something wrong, or want to talk security? Reach me at tpjn02@gmail.com or try my AI twin.