Check out our companion blog!
Sept. 14, 2026

Least Privilege Best Practices: Where to Start

Least Privilege Best Practices: Where to Start

Least privilege best practices start with one uncomfortable question: does this person actually need this access? A hospital in Portugal answered yes for everybody, gave every employee doctor-level access to patient records, and got hit with a 400,000 euro GDPR fine. The court's read was that they hadn't even attempted the concept.

Mike Saylor, Prasanna, and I get into what least privilege really means, then move straight to the part nobody wants to talk about: where you start when everybody already has domain admin. Mike lays out three approaches, from "turn everything off and see who screams" to a real analysis of job roles. We talk about why role-based administration is the vehicle that gets you there, and why role sprawl will eat you alive if you build a custom role for every human in the building.

From there we get into segregation of duties, which accounting figured out decades before IT did. Your admin account should not be the account you use to check Gmail. That leads into non-repudiation, su versus sudo, and why logs have to leave the box and land in a SIEM before somebody edits them.

The last third is action items. Inventory your privileged accounts, your service accounts, your support accounts, and the fire call accounts you break glass for. Track more than the name and the privilege level: who owns it, why it exists, when the password changed, when it expires. And if you run backups, split your roles apart. Editing backup configs, running backups, and doing restores should not be the same permission. Somebody quietly shortening retention is invisible to the person watching last night's job reports. A restore never trips an alarm at all.

If your admins fight you on any of this, Mike has a thought about that too.

00:00 The hospital where the janitor could read your chart

04:26 The 400,000 euro fine, and the failed appeal

07:50 What least privilege actually means

08:54 Three ways to start when everyone has too much

11:17 Access that follows people as jobs change

12:57 Role-based administration is the vehicle

16:13 Role sprawl and the 80/20 rule

18:26 Segregation of duties, borrowed from accounting

20:28 Back when everybody had root: su and sudo

21:59 Non-repudiation and getting logs into a SIEM

25:31 Inventory privileged, service, and fire call accounts

27:41 The three backup roles you should separate

32:39 What your account inventory should track

35:31 Expiring accounts nobody uses

36:42 When admins push back, be concerned

Speaker:

A hospital in Portugal gave every single employee doctor-level access.

Speaker:

That means the janitor could read your medical chart.

Speaker:

That cost them 400,000 euros in fines, and when they appealed, the

Speaker:

court basically said they didn't even try the concept of least privilege.

Speaker:

Today, that's what we're talking about, least privilege best practices.

Speaker:

What does that mean exactly?

Speaker:

And, and also, where do you start when everybody already has domain admin?

Speaker:

Finally, we talk about role-based administration and why that's

Speaker:

really the only realistic path here.

Speaker:

We talk about privileged account inventories, uh, fire call accounts,

Speaker:

segregation of duties, non-repudiation, and three backup roles that you should

Speaker:

split apart before somebody quietly deletes your backup configuration.

Speaker:

If this is your first time watching or listening to me, I'm

Speaker:

W. Curtis Preston, AKA Mr. Backup.

Speaker:

I've been obsessing over backup recovery, and now cyber recovery, for over 30 years.

Speaker:

If that's your bag, I'm your guy.

Speaker:

You're not gonna find anybody that cares about it more than me.

Speaker:

Ever since 1993, when I had to tell my boss that there were no backups of

Speaker:

the database that we had just lost.

Speaker:

Now I've written five O'Reilly books, a blog, and now this podcast.

Speaker:

Here, we turn unappreciated admins into cyber recovery heroes.

Speaker:

This is the Backup Wrap-Up

Speaker:

Hi, and welcome to The Backup Wrap Up.

Speaker:

I'm your host W. Curtis Preston.

Speaker:

I'm joined by the two greatest ever on the… I don't know.

Speaker:

I don't know what I'm gonna say.

Speaker:

Anyway, I'm joined with,

Speaker:

Ever, Curtis?

Speaker:

Ever, ever?

Speaker:

Ever, ever, ever, at least this week on a Thursday, on a

Speaker:

Tuesday or what- whatever it is.

Speaker:

It's a Monday.

Speaker:

I don't know what's going on in my head.

Speaker:

Hi, Prasanna.

Speaker:

Hi, Curtis.

Speaker:

I have a question for you.

Speaker:

Yeah

Speaker:

Is your poster crooked with your latest book that you and Mike wrote?

Speaker:

No,

Speaker:

The angle

Speaker:

It's the angle of the shelf.

Speaker:

The shelf is a

Speaker:

'Cause I was going off the right-hand side where the book

Speaker:

meets up with the other two books.

Speaker:

For those of you who don't know, you can watch us on YouTube.

Speaker:

We do have the videos posted, and you can see the giant… Imagine

Speaker:

if they made the book that size.

Speaker:

That would be pretty awesome

Speaker:

Does that

Speaker:

It'd be heavy

Speaker:

No, that makes it worse, didn't it?

Speaker:

No?

Speaker:

I literally think it's a, I think it's an optical illusion.

Speaker:

But you know what?

Speaker:

Just for you, I will go find a, a level and, we'll fix it in post.

Speaker:

me happy, Curtis.

Speaker:

yeah.

Speaker:

you're… and then we have my co-author of this book that was hanging on the

Speaker:

wall that seems to have gone back to its original position, which for the record

Speaker:

would imply gravity and that it was in the right place in the first place.

Speaker:

Learning Ransomware Response and Recovery, Mike Saylor.

Speaker:

How's it going, Mike?

Speaker:

Well, look forward to digging into another one with you guys

Speaker:

Mike,

Speaker:

So we're…

Speaker:

I have a, question for you, Mike.

Speaker:

Does it look crooked to you?

Speaker:

That's…

Speaker:

Okay.

Speaker:

I've got a… Don't make me go downstairs and get a level.

Speaker:

I don't think I have one over… wait.

Speaker:

You know what?

Speaker:

Your phone.

Speaker:

Your phone

Speaker:

I have my iPhone

Speaker:

I think the bottom left corner for you, Curtis, when you face

Speaker:

it, needs to go to the left

Speaker:

put this right… Why is it beeping?

Speaker:

I'm gonna put this right here

Speaker:

It says 0% right now.

Speaker:

Yes.

Speaker:

it looks better

Speaker:

Now it looks straight.

Speaker:

Now it's crooked

Speaker:

looks crooked.

Speaker:

See?

Speaker:

Look straight to us now

Speaker:

See what I mean?

Speaker:

I'm you.

Speaker:

If it's off by 1%.

Speaker:

I'm just saying.

Speaker:

It's noticeable

Speaker:

My God, we've already spent 20 minutes on this.

Speaker:

So let's go, let- So we're, today we're gonna be talking about the concept of

Speaker:

least privilege, and to illustrate the concept of least privilege, I'm gonna

Speaker:

tell a story which I've mentioned a couple of times on the podcast, which

Speaker:

is, this hospital in Portugal that is, that received a, a huge fine,

Speaker:

back, let me just double-check here.

Speaker:

Yeah, it was 2018, right?

Speaker:

So this is the EU Data Protection Law, GDPR, the General Data Protection

Speaker:

Regulations, and, they, require that you implement the concept of least

Speaker:

privilege and among many other things.

Speaker:

And they discovered that this hospital, d- slightly didn't adhere to that, in

Speaker:

that what they found was easier, in this hospital, was that all employees

Speaker:

in the hospital got doctor-level access.

Speaker:

So that way, everybody, including the janitor, had access to

Speaker:

literally ev- the most private data, in, in the entire, hospital.

Speaker:

And so they found that,

Speaker:

including patient records

Speaker:

including patient records and everything, right?

Speaker:

And, the, and, th- there are different levels of access to patient records

Speaker:

even withi- within a hospital, right?

Speaker:

And then, and obviously there are people that don't need

Speaker:

any access to patient records.

Speaker:

And, why are you doing that thing?

Speaker:

You're doing

Speaker:

No, no,

Speaker:

you agree

Speaker:

a

Speaker:

me

Speaker:

qu- no, because it was going through my head, and maybe before we go onto

Speaker:

the actual topic, is it worse to give everyone admin access or to just

Speaker:

use the same password for everyone?

Speaker:

it's roughly the same thing, I'm su- I'll say it's probably worse to get

Speaker:

everybody the same password because, that means that if somebody does

Speaker:

abuse their privilege, there won't be any logging of it whatsoever.

Speaker:

the whole point, and by the way, they were fined 400,000 euro and, they appealed

Speaker:

it, unsuccessfully they appealed it.

Speaker:

And, the EU, courts found that, they d- it was like they didn't even try,

Speaker:

was basically they're like, "You di- you guys didn't try and fail. You

Speaker:

basically said, 'This sounds like a great concept. We're gonna completely

Speaker:

ignore it altogether.'" and just think about the kinds of things that are in a

Speaker:

medical record and, and thinking about the fact that the jan- that the janitor

Speaker:

had access to your medical records, right?

Speaker:

And Mike, have you, in all the consulting you've done in helping out

Speaker:

all these other companies, have you ever encountered anything that bad?

Speaker:

I hope not.

Speaker:

I would hope that never, that you've never seen that, but

Speaker:

Yeah.

Speaker:

And I've even seen it in healthcare.

Speaker:

and it wasn't just logical security, security was bad also

Speaker:

Yeah, depressing.

Speaker:

Yeah, you'd think that like with some, you would think s- with some, industries

Speaker:

like medical or finance, I'd say those are two where you've got some really bad

Speaker:

things will happen if the data gets out.

Speaker:

You would think that they would know what they're hap- that they're doing,

Speaker:

but again, I've also worked in, in finance and in, a number of areas where

Speaker:

they should really know better, and they absolutely clearly did not know better.

Speaker:

first off, d- Mike, do you wanna just define, Actually, we're g-

Speaker:

we're gonna go, we're gonna go for you the, for the deeper stuff.

Speaker:

Prasanna, I think you can define this for me.

Speaker:

what is the concept of least privilege?

Speaker:

It basically says if you are a user, you only have access to

Speaker:

things that you need and that is it.

Speaker:

So if you are a janitor, you don't need access to patient records.

Speaker:

If you're never touching like backup systems, you probably shouldn't be able

Speaker:

to go create delete backup policies.

Speaker:

And making sure you scope your permissions such that you only get access to the

Speaker:

things you need in order to do your job

Speaker:

So you're given the least amount of privilege, which is

Speaker:

too long to say that, right?

Speaker:

You're given the least amount of privilege that you need in

Speaker:

order to do your job, right?

Speaker:

Which is where we get the concept of least privilege.

Speaker:

and if we wanted to dig a little deeper in that, Mike, which we do,

Speaker:

h- how do we go about doing this?

Speaker:

Like, where do you start with this?

Speaker:

there's a lot of different ways to go about it.

Speaker:

It, company culture's gonna probably drive, what's most appropriate.

Speaker:

so from a, just a normal especially if you're the new guy and you can just blame

Speaker:

it on being new, just turn everything off and see who screams about access to what.

Speaker:

so that's one way.

Speaker:

the other way is a true analysis of job role.

Speaker:

and so it's not just, the different areas that I have access to, it's the

Speaker:

levels of access within each area.

Speaker:

So you've got a data entry clerk that doesn't need to have the ability to

Speaker:

approve a purchase order, but they still need access to the accounting system.

Speaker:

But you've got people in marketing that don't need

Speaker:

access to the accounting system.

Speaker:

They need access to certain websites, maybe websites that other people in

Speaker:

the company shouldn't be able to go to.

Speaker:

so there's the, turn everything off and wait for people to ask.

Speaker:

There is the, turn things off in a somewhat logical manner.

Speaker:

And then there's the, let's start from scratch with understanding the

Speaker:

different types of users and roles we have, and then work with those

Speaker:

departments and people to define what access is appropriate for those users

Speaker:

I

Speaker:

That seems

Speaker:

my, mom did medical transcription for, for many years, right?

Speaker:

And she therefore had technically had access to patient records,

Speaker:

but literally one patient at a time and only to that record.

Speaker:

So d- they could have given her access to the entire, that patient, but she

Speaker:

literally had access to that patient at that time to create that patient's record,

Speaker:

which was then put into the system.

Speaker:

She wasn't given access to access all of… So that's a perfect example

Speaker:

of where she does need access to, the type of information, but she

Speaker:

doesn't need access to all of it.

Speaker:

Now Prasanna, about to ask something

Speaker:

W- d- you actually brought up a great example, Curtis.

Speaker:

she had access to that system.

Speaker:

But now if I think about, an enterprise or an organization, they probably have

Speaker:

hundreds of applications out there, hundreds of systems, each using their

Speaker:

own different, potentially different role and permission-based systems.

Speaker:

Eh, how do you even go about doing the, options two or three,

Speaker:

Mike, that you talked about?

Speaker:

turning everything off just seems so much easier until someone complains

Speaker:

than trying to do, this fine-grain mechanisms, like either of the

Speaker:

fine-grain mechanisms you talked about

Speaker:

Well, use- user access management is, resource intensive regardless

Speaker:

of which way you go about it.

Speaker:

if you turn everything off, you should have a good help desk, right?

Speaker:

'Cause you're gonna get phone calls.

Speaker:

Now, Mike,

Speaker:

If, if-

Speaker:

to that, you really need support from on high if you're gonna do that method,

Speaker:

Yeah,

Speaker:

Because you're

Speaker:

for sure

Speaker:

you're going to impact services, right?

Speaker:

the… Yeah, go ahead

Speaker:

and I've got a story about a disgruntled desk person that was berated by an

Speaker:

executive for that very reason, and it

Speaker:

Oh, no

Speaker:

well.

Speaker:

then, all right, so then, options two and three, where you're going

Speaker:

about it a little more methodically, there's resources not only up front

Speaker:

to go and define all these things, but in all three cases, how are we

Speaker:

gonna manage this going forward?

Speaker:

Bob doesn't… Bob transferred from accounting to HR or from marketing

Speaker:

to sales or from IT some other role.

Speaker:

We've gotta make sure there's a way of communicating those changes so that

Speaker:

changes to their access, follows them.

Speaker:

there are ways that there's human ways of doing that, so every

Speaker:

month I'm running a, an analysis or we implement tools to do that.

Speaker:

A, a lot of HR systems as a person's job role changes or their status

Speaker:

changes, there's a workflow for that.

Speaker:

there's automation in Microsoft products, that you can define workflows

Speaker:

f- for, but it all takes a, a bit of strategy and resource planning, and a

Speaker:

lot of organizations just don't do it

Speaker:

Yeah.

Speaker:

and, and they suffer as a result, right?

Speaker:

and so th- there's a word that's come up a lot in your, in your answer,

Speaker:

which is the word role, right?

Speaker:

R- R-O-L-E, role, and which brings up a, a very related

Speaker:

topic was, which is role-based administration controls, or RBAC.

Speaker:

I think that's really the only way that you can get… if you're gonna, if you

Speaker:

have any hope of getting this done, it's y- it's by defining roles of the

Speaker:

different organizations, different parts of the organizations, different levels

Speaker:

within the organizations, and then saying, "This person has moved from A to

Speaker:

B. They're no longer in A, they're now in B," and you give them this new role.

Speaker:

any thoughts on that?

Speaker:

Completely agree.

Speaker:

And that's something that you can do over time as new users come in.

Speaker:

Bob needs access to X, Y, and Z. Was that consistent with Bob's coworkers?

Speaker:

If so, I can save that as a profile for that role.

Speaker:

So now when Bob leaves and Susan comes in, I don't have to go

Speaker:

reassess what Susan needs access to.

Speaker:

I just apply a role to her and then address any exceptions.

Speaker:

She needs access to the check printer or a certain website or…

Speaker:

So those are one-off exceptions, and you'd wanna document those.

Speaker:

But for the most part, you can define roles that way and simply assign

Speaker:

them to people as they fill that role or as that role becomes defined.

Speaker:

And then maybe Bob didn't leave the company, Bob went to another department.

Speaker:

is there already a role for that?

Speaker:

And if not, I'll define one or save whatever I create for Bob as that role.

Speaker:

so there are ways to do it.

Speaker:

You just need to do it

Speaker:

it does start with that mindset, right?

Speaker:

That you're like, that this is a good thing, that we're gonna do

Speaker:

least privilege, that we're gonna do, and the, and that the vehicle

Speaker:

through which we're gonna do least privilege is role-based administration.

Speaker:

And so when you have a new user, when you have a change in your user, like you

Speaker:

said, you don't just go and add them.

Speaker:

You go and you create a role, for that user.

Speaker:

Even if it's just one, at least at that point it's just one.

Speaker:

when that person leaves or that person gets promoted and you put another person

Speaker:

in, theoretically you should then be able to just assign that role to them.

Speaker:

Prasanna, you've been, I think in your career you've been on the vendor side,

Speaker:

Yep.

Speaker:

Yep

Speaker:

I'm sure you've seen issues like this, on the vendor side

Speaker:

Oh, yeah.

Speaker:

as users transition in and out of roles, like we talk about

Speaker:

backup apps all the time, right?

Speaker:

You have different levels even within backup apps.

Speaker:

You have the person who's responsible for restoring, right?

Speaker:

Being your sort of tier one support, right?

Speaker:

And then as you look up to, the people who are managing

Speaker:

policies and super admin, right?

Speaker:

All those different roles.

Speaker:

But then also within organizations themselves, like when I was

Speaker:

working at a vendor, right?

Speaker:

It's not oh, I had an individual role for me.

Speaker:

It was like, oh, I'm part of product org, or I'm part of the engineering org.

Speaker:

I'm gonna be assigned to that role, and whatever they get

Speaker:

is the access that I needed.

Speaker:

And one question I know, Curtis, you made at the point about yes,

Speaker:

you should go create a role for an individual if it didn't exist before.

Speaker:

But I think you have to also ask yourself, is creating a role the right thing to do?

Speaker:

Because if you go down that path, there is a possibility that you

Speaker:

could say, "Okay, Curtis, you need this extra role or privilege.

Speaker:

Mike needs this other privilege," even though, 99% they might be the same.

Speaker:

And so I think you also need to worry about the sprawl in terms of

Speaker:

the number of roles, managing the roles, and everything else like that.

Speaker:

So just the…

Speaker:

Creek

Speaker:

Yeah.

Speaker:

Yeah, I think the way to do that is at least, in my thoughts, the way to do that

Speaker:

is to find out what's the 90%, right?

Speaker:

The 80/20 rule, right?

Speaker:

To find the roles that, Mike works in IT, right?

Speaker:

Mike works in this part of IT, and therefore he needs these privileges that

Speaker:

everyone who works in IT works in, right?

Speaker:

or that every wo- everyone who works in IT has, right?

Speaker:

and even if you have… I don't think it's a good idea to create a role… I

Speaker:

just said create a role for one person, but what I mean here is I don't think

Speaker:

it's idea to create a custom role for each person in the organization, right?

Speaker:

To create…

Speaker:

You wanna create a role that fits the most people, and then you add

Speaker:

exceptions, to that, to that role.

Speaker:

Maybe that's another role.

Speaker:

Maybe it's just another, what do you call that?

Speaker:

ad hoc.

Speaker:

Maybe it's just another ad hoc permission that you're added on.

Speaker:

again, this is one of those things where it's like a lot of other things that it

Speaker:

does require a lot of work upfront, and I think that's a really good question

Speaker:

that you ask, Prasanna, is that we don't want… Not everybody does an I- not

Speaker:

everybody in IT does the same thing, and so we don't wanna create 37 roles.

Speaker:

I think we can create roles that are really important and that really

Speaker:

need to be reserved, and that we only give those permissions those people.

Speaker:

a domain admin?

Speaker:

What's…

Speaker:

Yeah.

Speaker:

Everyone gets domain admin.

Speaker:

What do you think, Mike?

Speaker:

or local admin.

Speaker:

But yeah, lowest common denominator per role is a great, is a good approach.

Speaker:

and what's interesting is, from a… and so acc- access and access, the

Speaker:

appropriateness of an access, of access, and the process that you go

Speaker:

through to and assign that access is what we would call a control from

Speaker:

an audit and governance perspective.

Speaker:

if you look at the business side, accounting, finance as an example, have

Speaker:

controls called segregation of duties.

Speaker:

So I can't be a requester and an approver in the accounting system.

Speaker:

So the accounting system itself already has roles defined that address

Speaker:

segregation of duties, concerns, controls.

Speaker:

We've tried over the years to apply that to IT, but we s- we

Speaker:

sh- as IT practitioners, we so fight, wanting anything to do

Speaker:

with how business does its thing.

Speaker:

quite similarly, they don't wanna do anything… they try.

Speaker:

But they wanna be separate from IT, The pretty people wanna be

Speaker:

separate from the geeks, as we used to say at one of the telecoms.

Speaker:

But if we could better adopt, and maybe it just takes a culture, a, a leadership

Speaker:

culture to start that is a- adopt that segregation of duties mindset.

Speaker:

as a… E- even if I had a privileged account, I should not be running my

Speaker:

privileged account while I'm surfing the internet or checking my Gmail, right?

Speaker:

I should only be using my admin account when I'm doing administrative things.

Speaker:

so that's actually a segregation of duties, and I think one of the

Speaker:

topics we may touch on is, then how do I tell what Mike did when Mike

Speaker:

was an admin and what Mike did when Mike was using his normal account?

Speaker:

that's important, too.

Speaker:

Which

Speaker:

Much like on the business side

Speaker:

go ahead

Speaker:

Much like on the business side from a transaction perspective, if I log

Speaker:

in as, just some generic accounting clerk and I'm doing transactions, I'm

Speaker:

entering deposits or I'm paying bills, and there comes an issue with those

Speaker:

transactions, fraud or miscalculation or I miskeyed how am I gonna know who did it?

Speaker:

And if I'm a, an accounting system admin and I can add new users or change

Speaker:

payees, and I do it accidentally, I make a mistake, but I'm logged

Speaker:

in as accounting system admin,

Speaker:

Yeah.

Speaker:

And

Speaker:

where's the accountability or the traceability of that

Speaker:

transaction to a person?

Speaker:

And when I go back to my early days, literally just everybody had root

Speaker:

day

Speaker:

What's back in the day, everybody had root, and then, when we needed

Speaker:

Oracle, I just logged in as root and then I SU'd Oracle, right?

Speaker:

Because we were big at Oracle environment.

Speaker:

And th- we did not have a culture of logging in as yourself

Speaker:

and becoming root, right?

Speaker:

or, using, I think sudo was a thing back then.

Speaker:

I think I remember, I was at a bank and we had a regulation that required

Speaker:

all… There was this thing that said all software wi- will be purchased from

Speaker:

an established vendor, which meant that open source software wasn't a thing.

Speaker:

And at the time, sudo, the only time you could get sudo was open source.

Speaker:

so I don't think we had sudo, which for those of you, if you're not

Speaker:

a Unix person, s- SU is the thing to become super user, AKA root.

Speaker:

And, sudo was like SU do, right?

Speaker:

it was like a do this thing as me, using my account, but do it as root.

Speaker:

And you could do it in such a way that stay in your account.

Speaker:

You don't even ever become root or administrator, but it runs that particular

Speaker:

command as root or administrator.

Speaker:

and so yeah, that, that idea, Mike, of not logging in as… Because

Speaker:

if you, if everybody logs in as root or Oracle or administrator,

Speaker:

you've got no accountability.

Speaker:

by the way, that, I'm gonna go over- There was a word, Mike, that was

Speaker:

used in this thing, non-repudiation.

Speaker:

that's a big word for me.

Speaker:

I'm gonna ask you, can you define that word or is it comp-

Speaker:

So you can't, you, so non-repudiation means you can't say you didn't do it

Speaker:

Okay.

Speaker:

All right.

Speaker:

I'm, so I'm gonna ask you that on the record.

Speaker:

That was more me asking you if you could, if you were comfortable.

Speaker:

Yeah.

Speaker:

Okay.

Speaker:

All right.

Speaker:

So Mike, th- this, we've been talking about not logging in as

Speaker:

admin and, staying, do- doing things as you as much as possible.

Speaker:

and one of the words that comes up, in that, when we talk about that is

Speaker:

this cons- concept of non-repudiation.

Speaker:

you wanna talk about that?

Speaker:

Yeah, it's, so essentially it just means that there's this transaction

Speaker:

log, so it could be an event log or, a log out of a, a financial system that

Speaker:

says you can't say you didn't do it.

Speaker:

it says M Saylor, time, date stamp, did these things.

Speaker:

can't repudiate that.

Speaker:

So having a control in place for non-repudiation.

Speaker:

and if you say it in German, it sounds really aggressive

Speaker:

what's the word in German?

Speaker:

I don't know, but just if you say it with a German accent,

Speaker:

it almost sounds threatening

Speaker:

yeah, which, also brings up this idea, if we're gonna do least privilege,

Speaker:

if we're going to, have this culture where everybody's logging in as

Speaker:

themselves as much as possible, and when they need administrator, they're

Speaker:

going to become administrator rather than logging in as administrator.

Speaker:

and, I like that word of non-repudiation.

Speaker:

then

Speaker:

There…

Speaker:

that we need

Speaker:

wait.

Speaker:

For…

Speaker:

ahead

Speaker:

Wait, before you go on, but in order for those logs to be like my Msaylor

Speaker:

did X, Y, and Z, those also need to be protected, immutable, right?

Speaker:

All the things that we've talked about to ensure they can't be changed

Speaker:

And that's, and we've talked, I'm pretty sure we've talked about that

Speaker:

on other episodes, but the idea that logs should be immediately sent to

Speaker:

some sort of log gathering system, would this… it always escapes me.

Speaker:

is this EDR, ACR, SOAR?

Speaker:

What are we looking

Speaker:

Fem

Speaker:

Mike?

Speaker:

Tim

Speaker:

What?

Speaker:

Oh, SIEM.

Speaker:

Okay.

Speaker:

Siem.

Speaker:

Yep.

Speaker:

So the, the

Speaker:

S-I-E-M

Speaker:

the logs need to be immediately sent to a SIEM tool, which is,

Speaker:

me, information… God dang it.

Speaker:

What does SIEM stand for?

Speaker:

It's

Speaker:

S-I-E-

Speaker:

security

Speaker:

event management

Speaker:

There we go.

Speaker:

Okay.

Speaker:

SIEM, which is not pronounced seam, who,

Speaker:

Depends on where you're from

Speaker:

Australians

Speaker:

SIEMonster, that's why they called the company SIEMonster because where

Speaker:

they're from, it's pronounced seam, and they had no idea that the rest

Speaker:

of the world pronounces it SIEM.

Speaker:

Anyway, just a little bit of, We had their CEO on here a while ago.

Speaker:

it seems like it was yesterday, but my goodness, that's probably five years ago.

Speaker:

so yeah, th- that has to happen because again, with- without that,

Speaker:

you don't have the non-repudiation, and without that, you can't have this

Speaker:

ability to do, to regularly do an audit, to then go in and say, "Was

Speaker:

anybody logging in as administrator?

Speaker:

Was administrator doing some things that where people were logging in?"

Speaker:

And by the way, another thing that you can do is you can prevent the

Speaker:

direct logging in of administrator, especially via remote, sessions, right?

Speaker:

you can say that this can only happen on the console, and then you control

Speaker:

that in a number of different ways.

Speaker:

so let's talk about some action items, Mike.

Speaker:

this first idea and, i- is this idea of an inventory.

Speaker:

h- what are we talking about there?

Speaker:

So what, what accounts, so those could be accounts that people log

Speaker:

in with, could be service accounts, it could be support accounts, and

Speaker:

they're also called, there, there are accounts we call fire call accounts.

Speaker:

So we-- those are admin accounts that break glass in the event of fire.

Speaker:

we need to inventory all of those and maintain some awareness of

Speaker:

which ones are still active.

Speaker:

and that should happen as often as it makes sense for your environment.

Speaker:

Once a year at least.

Speaker:

is, would be better, but if your environment experiences turnover, and

Speaker:

that turnover could be third parties, vendors, support, new applications, new

Speaker:

projects that, some big implementation or migration, or just normal employee

Speaker:

turnover, you need to do an assessment of that, as often as it makes sense

Speaker:

Are there tools to help with that, Mike?

Speaker:

Because I could imagine it could get very gnarly in a large organization

Speaker:

or a, an organization with a lot of these systems in place

Speaker:

There are, and it doesn't…

Speaker:

there, there's an IT tool for everything, and some of them are pretty pricey.

Speaker:

today with the evolution of Python and PowerScript, there… and there's so many

Speaker:

forums out there of admins that just wanna share knowledge and support each other.

Speaker:

are free open source scripts and tools all day long.

Speaker:

you just need to put the effort into finding one and testing it,

Speaker:

and do test it before you use it.

Speaker:

even Microsoft has free training on how to use the tools that come

Speaker:

with Active Directory as an example.

Speaker:

And then for those environments where there's some, it's a hybrid of,

Speaker:

Windows, Linux, Unix, or even macOS, both Microsoft and these open source

Speaker:

communities have and documentation on how to implement either scripts or

Speaker:

middleware third-party tools, to pull that information into one, one report

Speaker:

No, I would add to that inventory, you talked about mainly about

Speaker:

particular accounts, right?

Speaker:

I would add to that inventory the idea of, critical roles, right?

Speaker:

Because for example, and again, I'll speak specifically from

Speaker:

the backup software side.

Speaker:

we… A long time ago, we got away from having to run the backup as root, right?

Speaker:

Everyone's logging into the backup system as themselves, and they're

Speaker:

doing everything that they have.

Speaker:

the backup system itself is all-powerful, but when they're logging into the backup

Speaker:

system, they're logging in as themselves.

Speaker:

But in the backup world, I can think of, three, main roles that I would want to.

Speaker:

You, earlier you talked about the idea of segregation.

Speaker:

If possible, I would like to segregate these.

Speaker:

One of is the ability to the backups, right?

Speaker:

To configure the backups, which would mean adding things to

Speaker:

the backups, more importantly, taking things out of the backups.

Speaker:

also extending retention, reducing retention, right?

Speaker:

the, just, or just completely deleting an entire configuration

Speaker:

from the backups, right?

Speaker:

that's one.

Speaker:

The second would be like running the backups, like making sure that the backups

Speaker:

are running, the ability to run one if it's not, if it didn't work last night.

Speaker:

Also, the ability to report on those backups to figure out, what's working

Speaker:

or what worked or didn't work.

Speaker:

And by the way, going back to that, the reason why it's really important,

Speaker:

if possible, to segregate that, the editing from the running is that,

Speaker:

and, is that when someone, takes something out of the backups, person

Speaker:

running the backups quite possibly is not going to a- ever see that, right?

Speaker:

because what happens is they get exception reporting.

Speaker:

They don't… and even if they get success reporting, they generally

Speaker:

ignore the exis- all the successes because they get thousands of those

Speaker:

a night, and they don't get a failure something didn't run anymore, right?

Speaker:

They don't see that, right?

Speaker:

And so we wanna have that, the idea of editing the backups be a very

Speaker:

big thing and that's logged anytime, when it goes into that role and

Speaker:

does anything, so that gets logged.

Speaker:

And then the third would be, of course, restores, right?

Speaker:

If possible, if we can segregate those three different roles, because why are

Speaker:

restores, a po- a, an issue, especially when we're talking about the kinds

Speaker:

of things we talk about, Prasanna?

Speaker:

Because you can have a bad actor who restores data to some

Speaker:

location or other things like that

Speaker:

Yeah.

Speaker:

Remember, our friend, Mr. Red Hat,

Speaker:

Yes

Speaker:

Dwayne LaFlotte.

Speaker:

Remember he talked about he restored an active directory server, an

Speaker:

active directory, a domain controller to some other area, and then he

Speaker:

had all the time in the world to hack against that thing, right?

Speaker:

and of course, it can also be used to exfiltrate just anything

Speaker:

if you're able to do a restore.

Speaker:

Because the, the other thing, one of the real concerns with

Speaker:

backups and with restores is that they fall under the radar.

Speaker:

a restore isn't gonna set off an alarm, quite possibly in, some

Speaker:

sort of, event management tool.

Speaker:

It's not gonna… It's gonna, it's gonna show up as regular.

Speaker:

and maybe it should.

Speaker:

maybe all restores should trigger some sort of report so that at least we

Speaker:

know, somebody can double-check and make sure that we did the right thing.

Speaker:

But, but that's the issue with restore.

Speaker:

So my point, all of that was to just say we need to inventory these roles.

Speaker:

There are dozens of those roles throughout the environment,

Speaker:

not just the backup stuff.

Speaker:

application access, records access, access to things like security controls,

Speaker:

network controls, server controls.

Speaker:

All of these things have roles that you can define them and segregate those,

Speaker:

or inventory those as much as possible.

Speaker:

So

Speaker:

the,

Speaker:

I think…

Speaker:

go

Speaker:

ahead

Speaker:

wait.

Speaker:

I have one thing, sorry.

Speaker:

Going back to Mike, I know you mentioned you wanna periodically

Speaker:

inventory these things, right?

Speaker:

Or audit, right?

Speaker:

To make sure that people have the right roles and you're doing the right things.

Speaker:

I'm wondering though, as you start to tie roles with, Curtis, what

Speaker:

did you say the other thing was?

Speaker:

Roles with… You had another piece that you put in there.

Speaker:

administrative accounts?

Speaker:

Yeah, with the accounts, which I think you should also bring in, the

Speaker:

resource themsel- or itself, right?

Speaker:

Like for instance, if it's this role with this type of account accessing,

Speaker:

say, an AWS resource, right?

Speaker:

and looking at it end to end.

Speaker:

I think those are the sort of things you probably wanna have, like some sort

Speaker:

of automation, because resources might get spun up quickly or brought down,

Speaker:

or even virtualization environments, to always make sure that what is actually

Speaker:

getting assigned matches, like what should be there, rather than just looking at

Speaker:

it more from an auditing perspective, but like an ongoing running basis.

Speaker:

What do you think of that, Mike?

Speaker:

th-there are tools for that.

Speaker:

a lot of the, a lot of the implementation of those tools I've seen fall off

Speaker:

over time because it's just more work.

Speaker:

you've got a tool.

Speaker:

The tool populates based on Active Directory primarily, unless you've

Speaker:

got something like Samba or some other middleware that's pulling out

Speaker:

of the Unix and other environments, you're not gonna see that in the tool.

Speaker:

So there's something else that just complexity.

Speaker:

right, then, if you don't have the tool that consolidates that into

Speaker:

one view from a user perspective, then you've gotta log in to or at

Speaker:

least review each one of these.

Speaker:

You've gotta review in Active Directory all these different accounts, to see if

Speaker:

there's notes or expiration or whatever.

Speaker:

so long story short, however you decide to do the inventory, to your point,

Speaker:

it needs more than just, "Here's the name of the account and the level of

Speaker:

privilege." It also needs to include, why did, why was this, created?

Speaker:

What's the description?

Speaker:

What's the reason?

Speaker:

Who's the stakeholder?

Speaker:

Who owns this?

Speaker:

Is IT, cis admin?

Speaker:

Is it networking?

Speaker:

Is it the security guys?

Speaker:

Is it the business?

Speaker:

'cause it, it could be anybody.

Speaker:

So when we're doing this review, again should happen as often as necessary

Speaker:

or appropriate, I'm reviewing this particular account to determine if that

Speaker:

role is still appropriate and then who has access to this, to this account.

Speaker:

There could be any number of other fields to track, when's the last time

Speaker:

this account's password was changed?

Speaker:

is there a defined expiration for this account?

Speaker:

'Cause maybe it's something I set up for a, a vendor to do an implementation

Speaker:

or help me, do whatever, and, I'm gonna auto-expire it 90 days from

Speaker:

now just so that I don't have to worry about it between now and then.

Speaker:

when's the last time someone reviewed this account?

Speaker:

So there's a lot you could track.

Speaker:

And if you do that in one place, and even in small environments,

Speaker:

you've probably got a dozen or more of these privileged accounts.

Speaker:

If you didn't have a good way of tracking and inventorying and man-managing all

Speaker:

of those, you've gotta go into each one of those accounts manually to review

Speaker:

notes and settings and other things

Speaker:

this, still just call it a spreadsheet for now.

Speaker:

you mana- as you manage the spreadsheet, you're only having to manage changes to

Speaker:

one or m-more, not all of them probably.

Speaker:

And then you just go back into your Active Directory or your

Speaker:

system to update that vice versa.

Speaker:

Yeah.

Speaker:

and you touched on one final thing that we were gonna talk about,

Speaker:

and that is this idea of expiring accounts that aren't being used.

Speaker:

because th-there was a story that we covered a little while ago

Speaker:

where somebody used an account that hadn't been used in a long time.

Speaker:

Do you remember that, Prasanna?

Speaker:

and we said, if they just had, automatic expiration of accounts, have happened.

Speaker:

But,

Speaker:

that one

Speaker:

yeah.

Speaker:

and that, that's true of a, of special account or that's true of a special

Speaker:

privilege that you one-off that you gave somebody like you, Mike, you talked about

Speaker:

with the vendor, that things like that should definitely have an expiration date.

Speaker:

All right, so the idea of least privilege, good, right?

Speaker:

you should have the least amount of privilege you need to do your job,

Speaker:

and you should, inventory this as much as possible, inventory the accounts

Speaker:

that have these special privileges, inventory the special privileges

Speaker:

and different functionality that you have and where all of that, is used,

Speaker:

and then put all of that together.

Speaker:

And then, slo- it can start with a simple, inventory and that

Speaker:

inventory can be a mess, right?

Speaker:

Here's Curtis and here's the 1,700 different things that he has access to.

Speaker:

and then you start putting, trying to put that together

Speaker:

to, to move towards role-based administration and least privilege.

Speaker:

it's going to be an effort, but, I would say one that's well worth it.

Speaker:

Any final thoughts on that?

Speaker:

I'll add real quick that if you're in an environment where admins are

Speaker:

against this idea of least privilege and against the idea of inventorying

Speaker:

accounts for… If you're getting any pushback at all, you should be concerned

Speaker:

Go to a new company?

Speaker:

Yeah.

Speaker:

it's like in, in the backup world, like if you're having to argue with senior

Speaker:

management that RAID is not a backup, maybe you should be somewhere else.

Speaker:

all right.

Speaker:

or if they're pushing for, RDP really needs to be, internet facing.

Speaker:

Accessible from the internet?

Speaker:

Yeah.

Speaker:

yeah, exactly.

Speaker:

All right.

Speaker:

that is, Oh, wait a minute.

Speaker:

so again, thanks for coming on, Mike

Speaker:

Anytime

Speaker:

And, Prasanna, thank you too as well

Speaker:

Thanks, Curtis.

Speaker:

I think after this, if you can adjust the poster, I wanna say

Speaker:

it's like a millimeter maybe.

Speaker:

Your bottom left corner needs to go left about a millimeter

Speaker:

I'm American.

Speaker:

I do inches and s-

Speaker:

Oh, sorry, the bottom right corner.

Speaker:

Yes

Speaker:

okay.

Speaker:

I'll see what I can do there.

Speaker:

All right

Speaker:

Thanks for listening, folks.

Speaker:

That is a wrap.

Speaker:

The Backup Wrap Up is written, recorded, and produced by me, W. Curtis Preston.

Speaker:

If you need backup or DR consulting, content generation, or expert witness

Speaker:

work, check out backupcentral.com.

Speaker:

You can also find links for my O'Reilly books on the same website.

Speaker:

Remember, this is an independent podcast, and any opinions that

Speaker:

you hear are those of the speaker and not necessarily an employer.

Speaker:

Thanks for listening