start	end	text
0	8010	So we're talking about security logs. They're not good enough. So I think you're logging
8010	12310	everything important. You turned on logging in all your critical systems. You set up a logs
12310	17430	management tool. You created rules to alert you when something is not right. You're totally
17430	30580	covered. If a customer accuses your employees of looking at user data. Right? Right? Nope. If
30580	35280	you're relying solely on security logs to protect your user's data, you almost certainly won't
35280	40280	be able to tell what's happened in the event of employee access to employee abuse of user
40280	45800	data. Security logs aren't enough to protect your users or you from malicious activity
45800	52920	targeting user data. So first off, who am I? Why do I think I can talk about user data access
52920	58700	logs? My name is Alicia clock. I'm a privacy TPM at Lyft. Before Lyft, I was a security
58700	63560	engineer in privacy at Google. Before that, I worked for Boeing building security systems for
63560	70760	government customers. My entire career has been about protecting data. So now that you know who
70760	74860	I am, what's all this about security logs not being good enough to protect your user's data?
79530	87630	So let's start with the basics. Why do we log anything at all? Anybody? 6 o'clock p.m. I'm
87630	91570	totally making this an interactive presentation. You ought to talk to me here. So why do we log
91570	108890	stuff? Something untoward happens. Audit. Yeah. Regulations. Developers left it in. So
109730	114070	accountability. Yeah. Generally speaking, what I'm hearing from a lot of you is we want to
114070	121550	provide a record of an event and specifically to aid in future investigations. Broadly speaking,
121570	126110	we need to be able, if an investigation is needed, we need to be able to tell what
126110	134410	happened. All right. But when I say an event, what does that mean? So I'm assuming y'all being
134410	138770	here at DEF CON that you're familiar with security events. But just in case, here's a real
138770	146450	quick review. A security event can be broadly defined as an unauthorized access to one or more
146450	152490	systems. There's a lot of possible motives for this. Money, by stealing data that can be
152490	157690	sold to third parties or just stealing money. Political or ideological motivations that
157690	164010	result in vandalization or destruction, fame and fortune by stamping over a customer's
164830	170530	company's website with, I hacked this. Or even just laying the groundwork for future attacks.
175650	180710	So when you're faced with a security event, you need to know three key things. When
180710	187330	it happened, where or on what system it happened and what exactly happened. Let's say you
187330	191490	get an alert that someone tried to log in as root on your system. When you go to
191490	202410	investigate, you need to find out these three things. What, when and where. You have to
202410	209470	forgive me for having the awkward speaker's notes here and computer here because Windows 10
209470	219290	does not agree with multiple displays. So a typical security log like these sample SSH logs
219850	225210	provides all the information, the when, the where, the beginning, you have your time stamp,
225210	230850	you have your host name and the what at the end. So you can look at a set of logs like this and
230850	236910	see that somebody tried to log in as root or two people tried to log in as root or possibly the
236910	242890	same person from two different IPs. One failed and then one succeeded. With this
242890	248070	information, you can determine whether the attack was successful, whether any information was
248070	254430	accessed, how long the attack lasted and then you can use that information to increase your
254430	260530	security. Maybe change the root password or implement stronger SSH policies or even just
260530	270470	banning those IPs. All right. So that's a security event. Security investigation. What's the
270470	277770	big deal about user data access events? How are they any different? Let's take a look at what
277770	283850	constitutes a user data access event. For starters, the definition is different. It's an
283850	288550	access to user data without business justification. The key point here is business
288550	295910	justification. In most companies, employees do have reasons to access user data, like fixing
295910	301250	bugs or providing customer support, things like that. A user data access event is when an
301250	307010	employee doesn't have a legitimate reason to access user data. So there's a lot of reasons why
307010	311370	someone might look at user data. They might be maliciously stalking someone. They might have
311370	316130	spotted a family member's or celebrity's account, got curious, decided to, you know, poke
316130	322830	around, see what they could see. They might be trying to commit fraud. Maybe they're going to
323490	328110	access a family member's account, provide a few extra services that aren't being paid for,
328110	332570	erase a balance, something like that. They may even be simply trying to help someone but
332570	340580	aren't going through the proper channels. When you're investigating a user data access event,
340580	345380	you need to know the same thing as a security event, where it happened, when it happened and
345380	351140	what was done. But you also need three more pieces of information in order to successfully
351140	356560	investigate. You need to know the who and the whom. That's not just a grammar thing. There's
356560	363600	two specific separate things there. Who made the access and whose data was accessed. You also
363600	368540	need to know why the access was made. The business justification for it if one exists.
368680	373640	Typically business justifications are represented by things like bug IDs, customer support
373640	379300	tickets or specific job role or project. These three things work together to determine whether
379300	385160	an access was business justified or not. For example, if employee John Smith accesses his
385160	389100	wife Jane Smith's account and doesn't provide a business justification, that's kind of
389100	394600	sketchy. But if John Smith accesses Jane Doe's account and provides a customer support
394600	401180	ticket where Jane Doe called in for help with her account, probably fine. Typical business
401180	407280	activity, not really anything to worry about. But John Smith accesses his wife Jane Smith's
407280	413900	account and provides that customer support ticket for Jane Doe, that's sketchy. All three of
413900	423360	these pieces of information work together to indicate whether an access was appropriate. So
423360	427000	of course in order to know these three things during an investigation, you need to have them
427000	434000	in your logs. This means that in addition to the when, where and what of a security event,
434000	442480	you also need to log the who, the whom and the why. So right about now you're probably
442480	452500	thinking, that sounds like a lot of work. Why should I even care? So yes, protecting user data
452500	457960	is hard. Yes, implementing a new type of log is time consuming and difficult. I'm not going
457960	463260	to stand up here and tell you that it's easy, that it's going to be quick job, plug and play,
463260	468560	you're done. But this is DEF CON, we know security is hard work. We know that we're used to
468560	473160	putting in an effort to defend ourselves from malicious attackers. Shouldn't we want at least
473160	484120	as much protection from insider access to our user data? All it takes is one bad egg. One person
484120	488780	who can compromise your privacy. These are all real headlines written about real employees
488780	493400	who abuse their access to user data. Some of the organizations that I have blacked out are
493400	498260	household names. Others are less well known to the general public. But either way, you can
498260	502620	bet that the abuses had a really big effect on the organizations in question and an even bigger
502620	511530	effect on the victims. And if bad publicity and customers being afraid to use your product
511530	516430	isn't enough to motivate you, how about some cold hard law? You like law, right? It's a good
516430	521530	thing. Most companies, countries have some form of privacy law that dictates the
521530	526270	requirement for companies to reasonably protect their users data. Depending on the exact
526270	532290	country, the exact law, the exact situation in question, you or your company or both could be
532290	539250	subject to civil fines, criminal fines, even jail time if you don't adequately protect your
539250	546410	user data. And if all of that isn't enough to convince you, it's just the right thing to do.
546910	551470	It fosters trust in your users because they know you're trying to protect them and if
551470	554390	something bad does happen, they're going to be a lot more willing to forgive an honest
554390	560730	mistake than willful recklessness. Nowadays, companies even sell products based on privacy.
560730	565390	Look at all the apps where their user model is basically we don't store your data, we don't
565390	570390	store your messages. Or you can think about it from a selfish standpoint. You want your data
570390	574050	protected, right? You got all these companies that have your data, you want to make sure
574050	578890	they're protecting it. And when it comes down to the wire, we're human. We like to think we're
578890	588860	doing the right thing. Protecting user data is part of that. Okay. So protecting user data is
588860	592440	good for business, good for users, good for me. All right, we like this. But you might be
592440	598480	thinking, all right, I don't have any user data. I'm a simple coupon company or maybe a
599680	607060	news website or a security vendor. Totally don't have anything. It's all good. Are you sure?
608140	619680	Absolutely sure? You probably have user data. It's nearly impossible to conduct business in the
619680	624280	modern world without involving user data in some way. Even buying groceries involves user data
624280	630140	if you have a store loyalty card. And things that might seem innocuous at first glance, such
630140	634980	as, for example, someone's contact list might turn out to be a treasure trove of information to
635080	640240	a malicious user. An abusive husband, for example, spying on his wife might look at her
640240	645100	contacts list and see a women's shelter or a divorce lawyer. That's going to be really bad for
645100	651120	her. A curious employee might look at a celebrity's calendar and see multiple appointments
651120	655040	with a doctor who specializes in a particularly sensitive medical condition. That employee
655040	660260	could sell that information to the tabloids. That's bad for the celebrity. Even a grocery store
660260	666820	loyalty card can reveal a frightening amount of information about a person. You may remember
666820	670780	there's a famous article from 2012 about a very popular grocery store chain that sent
670780	675760	pregnancy related coupons to a teenage girl before her father knew she was pregnant. He was not
675760	680280	happy about that. So take a close look at your business. If you collect any data at all from
680280	689750	your users, that's user data and you need to protect it. All right. So you got user data. You
689750	700770	want to protect it. How do you go about actually doing that? I'm scaring everybody away. So
700770	704110	before we even get to the logging part of user data protection, we need to start with the
704110	708450	people side of things. Logs only tell you what happened after the fact. It's much better to
708450	713370	invest effort in preventing abuse before it happens at all. So you want to make sure
713370	717710	employees' job roles are clear. Knowing exactly what any given employee is supposed to be
717710	723190	doing at any given time lets you define what accesses they need and conversely what accesses
723190	728130	they do not need. Then enforce those job roles. Use strong ACLs. Keep them up to date as
728130	733330	employees join and leave and change positions. You can't abuse data access if you don't have
733330	738450	any data access. You also need to make sure that you're storing your data in a way that allows
738450	742830	you to create and enforce good ACLs. For example, instead of dumping everything into one
742830	748450	gigantic MySQL database, break out your data into multiple individual tables or even multiple
748450	753090	individual databases with separate ACLs. This way you can allow, for example, customer
753090	759670	service to access a customer's billing account without seeing their message data. Or vice
759670	765970	versa, you can allow an engineer who needs to debug the messaging system, view the broken
765970	771970	messages, but not any of the billing data. Another part of proper data storage is ensuring
771970	775930	that everyone who accesses the data store has their own unique ID. Just like you wouldn't give
775930	779690	all your employees the root passwords for all your servers, don't give them the admin password
779690	785810	for all your user data stores. It's more common than you think. It's kind of scary. I've heard
785810	791410	stories. So once your hardware and software are set up to protect user data, you also need to
791410	797050	set up your employees as well. You want to create clear policies and rules about when and for
797050	801770	what purpose employees are allowed to access user data. And make sure your employees know and
801770	807750	understand those policies. Finally, you need to enforce the policies. Yeah, it sucks if you
807750	811750	have to fire someone for accessing user data, but would you rather do that or be the subject of
811750	820900	one of those headlines I showed earlier? Alright. So now once you've implemented the basic
820900	824640	data protection mechanisms, you can focus on your logging. Because while good data
824640	829380	protection practices will stop the merely curious, they might not be enough to stop a
829380	834680	malicious actor. How you implement data access logging depends on where you get your
834680	839600	software. If you write all of your own data access software, then great. You build in your
839600	843680	logging system. Logging function records everything that you want it to. And tailor it to
843680	847980	your specific company, your specific environment, your specific data set. It's easier said
847980	852160	than done and we'll go into details in a minute. But generally, if you write your own
852160	860200	software, you're in a pretty good position. On the other hand, if you use hot software,
860200	864360	commercial off the shelf software, your job is a little trickier. If you have the resources
864360	868580	for it, you could write a custom interface for your data store. For example, an admin tool
868580	873440	that sits between your database and your employees. And handles all the direct
873440	878540	interactions with the data. This option is ideal because again, aside from allowing you to
878540	883080	implement proper data access logging, it also gives you greater control over what your
883080	888480	employees can access, what data they see, and how they do it. It also allows you to, you
888480	892460	know, track metrics, implement custom tools, do a lot of useful things that you can't with a
892460	898280	database alone. But if building and maintaining a custom data access tool is too costly for
898280	903440	you, and let's face it, sometimes it is. That's a lot of work. You can work with your
903440	910160	COTS software vendors, existing logging tools to cobble together something that more or
910160	913920	less covers what you need. You may not be able to capture everything that we're going to
913920	918400	talk about to make up a complete data access log, but you can probably get pretty close. And
918400	923280	close is a lot better than nothing. You can also encourage the company that makes your
923280	929480	software to implement better logging, to implement data access logging. It's unlikely to
929480	934260	solve your problem in the short term, but over time, if enough people speak out and say,
934260	938040	you know, hey, we want to protect our users' data, companies will start building this in
938040	947130	from the get go. All right. So you're ready to implement data access logging. You need to
947130	952810	figure out what your data access log, your DAO, is going to look like. So, reminder, you
952810	964620	need to log six things. Who, whom, what, where, when and why. Let's cover some of the
964620	971060	terminology of DAOs to start. First off, we have actors and targets, the who and the whom. The
971060	976760	actor is the human performing the data access, the person doing the thing being logged. Each
976760	982260	actor gets their own DAO, just like in regular logs. Notably, you shouldn't log when a
982260	986940	machine accesses user data. For one, machines are going to be providing all of the services
986940	991380	and you're going to make a bunch of noise to clutter up your logs. For two, machines can't
991380	995240	abuse user data. By definition, they only access what you tell them to access. So they're not
995240	1000920	going to be able to go off and do unauthorized things. You also shouldn't log a user's access
1000920	1007800	to their own data. For much the same reasons. Targets, on the other hand, are the subject of
1007800	1012800	the data access. They're the human whose data was looked up. A DAO can have zero or more
1012800	1017640	targets, which makes a little more sense than it sounds. Let's say an actor searches for
1017640	1022580	John Jacob Jingleheimer Smith, but there is no user in your database with that name. The
1022580	1027580	actor is still attempting to look up a user. He still issued a query. And the fact that no
1027580	1032560	results were returned doesn't mean that the action isn't log worthy. For example, they may
1032560	1036720	have misspelled Jingleheimer. So they try again, spell it right, and this time they get a
1036720	1042500	result. These kind of actions together like that, depending on their business
1042500	1050750	justification, could potentially indicate something suspicious. So what do I mean when I
1050750	1056570	say the actor issued a query? In a DAO, the query is the input from the actor that
1056570	1060910	determines what user data is displayed. This might be a user name entered into a search
1060910	1067330	box, might be a SQL query, might be a link in a tool that they click on. And yes, you need
1067330	1071750	both the target and the query fields. Because what an actor searched for may not
1071750	1078090	necessarily be the thing that they end up accessing. For example, let's say an actor needs
1078090	1083770	to look up the account of one William Gates, insurance salesman from Wyoming. He
1083770	1088490	searches, gets back results that include Bill Gates, the Microsoft billionaire. If he
1088490	1093330	then clicks on Bill Gates, the Microsoft billionaire, but inputs the justification of
1093330	1098610	William Gates from Wyoming, that's pretty sketchy. On the other hand, if he searches for
1098610	1109340	Bill Gates, because hey, billionaires aren't immune to bugs, that's probably okay. Which
1109340	1114340	leads me into what exactly is a business justification? That is the why of an access
1114340	1119940	attempt. Before looking up a particular user, an actor should be able to provide a
1119940	1124380	concrete reason why they need to look at that user data. In other words, why they can't
1124380	1129540	use anonymous statistics or maybe a test account or something else that isn't user data.
1130240	1134660	So like I said earlier, typical justifications include bugs, support tickets, a specific
1134660	1141220	project or task and specific job roles. Justification by job role isn't ideal, since it
1141220	1145520	makes it much harder to spot when someone in that job role actively abuses their access.
1145520	1149780	But depending on your company and your data situation, it might be the only option that
1149780	1154880	doesn't drive employees in that job role absolutely insane. Business justifications do
1154880	1159740	not include any of these other things over here. And yes, these are all reasons that people
1159740	1164540	have provided for accessing user data. No, because isn't a reason, unless you're the parent
1164540	1182470	of a toddler. Neither is I wanted to. Yes, we do, in fact, look at these. And no, helping a
1182470	1186690	child isn't, I was helping my friend a good enough reason. If they're helping someone,
1186690	1192230	isn't that a valid thing? Not exactly. So first off, if they're legitimately helping someone,
1192230	1195570	there should be a bug or a customer support ticket and they should have put that instead of
1195570	1200490	I was helping. Second, as a matter of policy, you generally shouldn't allow people to work
1200490	1205590	on a relative's or a friend's account. Not only is there the potential for abuse, so hey,
1205590	1209210	while I'm in my girlfriend's account, I'm going to look at who she's been talking to, maybe
1209210	1214110	what messages she's been sending. But it also completely negates the point of having a
1214110	1219730	customer support or a bug system. Friends and family of your employees should go through the
1219730	1224170	exact same help process as everyone else. Both to make sure that any fixes get applied to
1224170	1231470	everyone, cowboy engineering over there, and to avoid even the perception of abuse. So what I
1231470	1235730	mean by the perception of abuse, that's when a reasonable observer might believe that abuse is
1235730	1241070	happening, even if it's not. And it's almost as bad as actual abuse because it causes many of
1241070	1247810	the same consequences. You lose user trust, you might get legal liabilities depending on,
1247810	1253850	again, the specific laws of the country and the company. So, don't even allow the
1253850	1263450	perception. Story time. I said this was going to be interactive. If you were investigating this
1263450	1282430	access, what would you determine from these facts? Sketchy? Why? Okay. No bug I.D.?
1294830	1301170	So, those two are the main points. We've got somebody, they are using multiple search
1301170	1307550	terms, they are trying to find a specific person with an unusual spelling. When returning the name
1307550	1313070	didn't work, they looked by e-mail which returned a user account. Then they provided an invalid
1313070	1318910	bug I.D. as a business justification. Yeah, that could be benign. They might have typoed the
1318910	1323570	bug I.D., they typoed Jane Smith the first time. But it could indicate that they knew they
1323570	1328930	shouldn't be searching for her at all. And they provided a fake justification. So this means
1328930	1334710	that you are logging both success and failure. Yes. Yes. And I'll talk about that a little more
1334710	1341810	in a minute. So, consider the pieces of information I just gave you here. This is the who, the
1341810	1347130	whom, the what and the why. Typical security logs would only give you the where, the when and
1347130	1355110	the what. It wouldn't be enough for you to figure out what was going on here. Now that we've
1355110	1359270	established what all the pieces of a dial are and why they are important, let's look at a very
1359270	1364050	basic dial written in plain English. There's multiple ways you can format your dials.
1364170	1369770	Protobufs are good for it. So is XML. You can use a syslog style if you want, just a text
1369770	1376150	string. That's harder to parse for logging systems. But if that's what works for you, go for
1376150	1386230	it. Here's the same dial written in human readable protobuf over there and XML format. Pretty
1386230	1397600	simple. Easy to read. Now let's get complicated. Just like any log, there are endless
1397600	1402040	varieties of user data access logs. So these are some of the more common complications that
1402040	1408620	you'll come across when you're trying to implement user data access logging. First off,
1408620	1414360	front end versus back end. Where should you capture your logs? At the data access front end
1414360	1420660	used by employees or on a central authentication or authorization back end server. While a
1420660	1427980	back end such as an authentication system has the advantage of being centralized so you
1427980	1431980	don't have to implement logging in as many places, it's unlikely to have enough information
1431980	1436420	to make a complete dial. Back ends typically don't know anything about queries,
1436420	1441100	about justifications, about any of that. They're just there to respond to requests. A good
1441100	1445460	rule of thumb about logging in general is to log as close to the source of the action as
1445460	1450400	possible and in the case of user data access events, the source of the event is the actor. So
1450400	1458430	you want to log close to the actor, which means logging in the front end. Multiple targets.
1459570	1463990	Depending on the exact interface used to access user data, you might see any or all of these
1463990	1469630	situations. Incidentally, none of them are wrong or bad. They're all perfectly legitimate
1469630	1473930	ways to access user data. Again, depending on the situation, on the system, on what
1473930	1479870	they're trying to do. You just need to make sure you log all the targets accessed by a
1479870	1492280	given query. Which is pretty simple. You just use repeated fields. Pretty
1492280	1502120	straightforward. Even in string sys log, comma separated, again, a lot harder to parse, but
1502120	1509360	it's doable. So what about multiple tools? That should be the same thing, right? Repeated
1509360	1515100	fields? Probably not. You should log a new record for each actor, tool, query,
1515100	1520540	combination, rather than stuffing multiple tools in a single DAO. Why? Because different
1520540	1524100	tools have different purposes. They store data differently. There's different reasons for
1524100	1528400	accessing them. They're going to show data differently. And therefore, each actor is going
1528400	1532980	to have a different motivation for using each different tool. For example, an actor looking
1532980	1537840	up someone in an administrative front end that everyone in their job role uses, probably not
1537840	1543600	too suspicious. An actor who normally looks up users in a front end, but then turns around
1543600	1549240	and looks someone up in the database, that's pretty sketchy. Breaking out your DAOs by
1549940	1555400	tool makes these discrepancies a lot easier to spot. And since each access to user data should
1555400	1559100	have a business justification, you want to make sure to capture the business justification
1559100	1564680	for using that specific tool. If you allow users to provide a blanket justification for
1564680	1569660	multiple accesses using multiple tools, it becomes much easier for them to hide a single
1569660	1581160	malicious access in a sea of benign ones. So how about no query? You might find situations
1581160	1585920	where in your system where an actor is able to access user data without issuing a specific
1585920	1591420	query. So without manually typing something into a search box. You still need to find a way to
1591420	1597000	capture what exactly the actor was trying to look for. Remember, knowing what an actor was
1597000	1602440	trying to see as well as what they actually looked at can tell you much more than either piece
1602440	1611060	alone. For mouse based interactions, the link an actor clicked on is usually enough. It's good
1611060	1616340	stand in. It's not going to be perfect but a lot of the times if you look at it, it will have
1616880	1626200	data, you know, click on John Doe. Pretty close. In cases where a tool automatically supplies user
1626200	1631880	data without a specific query by user, you should probably first look at why your tool does
1631880	1639100	that. Can you modify it to only display user data when an actor specifically requests it? If
1639100	1642860	that doesn't make sense for your tool, then investigate ways to have the tool itself supply
1642860	1650000	the query to the DAO along with the data. So if it's a bug report, you can log the bug ID as the
1650000	1656760	query or perhaps the ID of the user who filed the bug. Sometimes you'll find that a tool
1656760	1661160	displays user data even though it's not needed for the thing that they're doing. It's just
1661160	1666340	there. For example, your customer support system might show a user's purchase history and
1666340	1671720	billing information even if they're just calling in for a password reset. Or your database is
1671720	1675960	structured so that it is faster and easier to pull all of the user's data instead of the one
1675960	1683700	little subset that the actor needs. In those cases, rather than trying to log around the
1683700	1688540	problem, you should look at why your systems behave that way and try and restructure them so
1688540	1695480	that they're only supplying data when it is specifically requested. No business
1695480	1701080	justification. The business justification is very often the hardest part of a DAO to
1701080	1704900	capture. You can get the other five parts by just recording what is going on in the system,
1704900	1708760	the bits and bytes flowing across the wire. But the business justification comes from the
1708760	1713420	actor. The moment you put a human in the equation, you're dealing with a whole new set of
1713420	1719480	problems than when you're just yanking data off the wire. The most obvious problem is that
1719480	1722900	your tool might not have anywhere to enter a business justification. If you haven't been
1722900	1727780	logging DAOs yet, you don't have it set up yet. If you build your own tool, you can easily
1727780	1732640	remedy this by adding in a little text box that a user has to fill out with a business
1732640	1740020	justification before they can click search. However, this leads to the second potential
1740020	1743900	problem, which is that the employees aren't going to like this. It's time consuming. It's
1743900	1746800	frustrating. They have to go look up a bug number. They have to type in a bug number.
1757700	1763640	This isn't an easy problem to solve. Yes, you are giving up a little bit of employee
1763640	1769700	convenience in order to make a lot of gains in user data protection. You can solve this
1769700	1775550	with user education, work with your employees to teach them why it's worth it. Or if your
1775550	1781190	systems allow it, remove manual aspect altogether and program the tool to automatically enter
1781190	1785710	the justification for them so they don't ever have to do it. What happens if there is no
1785710	1791350	easily available clear justification? For example, front line customer support reps might
1791350	1795670	take dozens of calls from users an hour. They don't have time to open a new support ticket
1795670	1801290	for each one. You could require them to do it anyway. It would suck. Slow down your customer
1801290	1806530	support by a lot. You could allow them to all use a single blanket justification like
1806530	1812310	customer call. You could just allow them to use no justification. In those cases, it's
1812310	1818830	really kind of up to you to look at your system, look at the accesses, look at the risk and
1818830	1836230	weigh what's the best thing to do there. Now the fun part. Good examples. So first, quick
1836230	1843630	disclaimer, these are all fictional. So with that out of the way, take a look at this dial. Is
1843630	1852170	there anything that jumps out at you immediately? Family? So, yeah, that's not a great
1852170	1856410	justification. And you can then look and see the actor and the target have the same last
1856410	1864610	name. What about the tool you used? Customer support billing? Kind of sensitive data there.
1866270	1873390	Employee Rose, we see, is looking at her relative Roxy's billing data. Maybe it's benign.
1873510	1877130	Maybe Roxy is having a problem with her account. And Rose, being the good relative that she
1877130	1883030	is, offered to help her out. Still not good. Rose should have directed Roxy to the proper
1883030	1889010	customer support channels rather than trying to do it herself. Could be benign. But it
1889010	1894130	could also be malicious. Maybe Roxy is Rose's daughter. And Rose doesn't want her having an
1894130	1898290	account. She might go in and mess around with Roxy's account to prevent her from having
1898290	1903810	one. Maybe they're in cahoots. Rose might be granting Roxy benefits that Roxy hasn't paid
1903810	1921330	for. How about this one? What do you see here that looks sketchy? Targets? I'll give you an
1921330	1925410	extra hint because this one is not obvious. The bug number is not me being lazy when I made
1925410	1937050	up data for this slide. So here we have an actor looking at the accounts of current and
1937050	1943030	former presidents. He searched for accounts at white house.gov email addresses. The tool
1943030	1947410	that he is using is message viewer admin. So he probably went in and looked at the messages
1947410	1953070	in our president's accounts. But the bug number he provided is almost certainly bogus.
1953330	1957710	Sometimes actors with malicious intent, when they have to enter a business justification, will
1957710	1963310	try and hide their activity by using keyboard strings. By providing fake justifications with
1963310	1971030	keyboard strings. Things like 1, 2, 3, 4, ASDF, whatever the right hand version of that is
1971030	1974690	that I can't remember right now. I've seen that one too. Those are all giant red flags for
1974690	1984090	investigators. One more. You get three dells this time. And time stamps in a readable
1984090	1990970	format because they are important here. What do you guys see here? What is sketchy about
1990970	2008730	these? Same action on different dates. Anything else? I count deep dive. The combination of
2008730	2015290	repeated accesses over a long period of time is pretty suspicious. We've also got the
2015290	2020690	automatic customer support justification which doesn't provide a lot of information. And
2020690	2026630	they are using this account deep dive tool. I talked earlier about setting automatic
2026630	2031010	justifications for some job roles. This is why it's not a great idea. You can't really tell
2031010	2036950	here if Romeo is working on a particularly long standing customer support ticket or if he's
2036950	2042230	actively stalking Juliet. So cases like this are where your investigation team's expertise
2042230	2047430	and knowledge will come into play. For example, an investigator might be able to dig up a
2047430	2050730	customer support ticket for each of those events which would indicate a business
2050730	2056350	justification. Alternatively, they might know that Romeo's coworkers almost never use the
2056350	2061010	account deep dive tool and they might check Romeo's history and see he only uses it to
2061010	2068980	access Juliet. It's a big red flag. So what's this about an investigation team? Where did
2068980	2077420	this come from? So what's the point of logging all this data if no one is looking at it? Now
2077420	2086300	the slide clicks over. There it goes. Now that you have your user data access logs, you need a
2086300	2091260	team dedicated to investigating the events generated by these logs. This could be its own
2091260	2095900	team adjacent to your existing SOC if you have the resources or you can include it in your
2095900	2102200	SOC's regular duties. There's quite a bit of overlap between a typical security event
2102200	2106420	investigator and a data event, data access event investigator. It's the log sources are
2106420	2111780	different but otherwise it's much the same skill set and tools. You also need to make sure
2111780	2116280	that the investigation team has legal support. Security events are typically caused by
2116280	2121000	people outside your organization. Maybe in a few really high profile cases there might be
2121000	2125060	legal action taken but for the most part it's going to be handled internally. There's no
2125680	2132140	external legal ramifications. User data access events, however, come from your own employees.
2132140	2136520	Depending on the consequences you lay out in your user data access policy, you may find
2136520	2141960	yourself firing people for abuse or taking other employment related actions. You need to have a
2141960	2150290	legal support team to make sure you're doing everything by the book. Just like with security
2150290	2155610	logs and security events, you'll want to set up an automatic logs parsing system, logs
2155610	2160310	analysis system to help your investigation team sort out the sketchy from the benign. This
2160450	2164050	isn't a complete list. Exactly what you look for is going to depend on your organization,
2164050	2169370	the type of user data you collect, what resources you have to investigate. Not all accesses
2169370	2174030	that match one or more of these are going to necessarily be malicious. But they're a good
2174030	2179910	start and your investigation team will be able to develop new rules, more precise rules over
2179910	2193180	time. So that's a lot. That was a lot of information. TLDR. Basically, if you have user
2193180	2197780	data in your systems and you almost certainly do, you need to make sure that it is protected.
2197900	2202740	But typical security logs don't capture nearly enough information to investigate potential
2202740	2208200	access abuse events. You need data access logs, DALs, which captures six key pieces of
2208200	2214060	information about every access made by your employees to user data. The who, who made the
2214060	2222520	access, whom, whose data was accessed, what, what data was accessed, where, which is what
2222520	2227480	tool or system was used, when the access occurred, and why, which is the business
2227480	2232780	justification for the access. Without all six pieces of information, it can be difficult or
2232780	2238800	impossible to determine if a particular access was benign or abusive. Once you have all of
2238800	2243100	these DALs, you need a team dedicated to investigating them. They'll use many of the same
2243100	2248020	tools as your existing SOC, but they'll need legal support to back them up. They'll create a
2248020	2253460	set of rules to monitor for suspicious behavior, and they'll investigate events using the
2253460	2260870	information provided by the DALs. Data access logging sounds complicated, sounds like hard
2260870	2266530	work. It is hard work. But we've never let a little hard work stand in the way of securing
2266530	2271510	our user's data. So why would we let it stand in the way of making sure our user's data is
2271510	2276550	protected? By protecting your user's data, you're keeping your headlines positive, you're
2276550	2284170	maintaining your user's trust, and above all, you're protecting your users. Questions?
2298800	2310420	I don't have any experience with DLP systems. So it would probably depend on, I guess,
2310440	2315700	exactly what you're doing, what data you are collecting, and how much risk you're willing to
2315700	2336200	accept. So... Okay. Potentially. You need to make sure that you aren't either breaching
2336200	2341000	HIPAA yourself in the way that you are implementing the logging, or also you're not
2341000	2349620	abusing your employee's right to privacy when you're doing this. Any others?
2367900	2374400	Good change management. A large enough team that not one person is responsible for
2374400	2378240	everything. It's a lot harder to slip something by if, you know, you have to have your code
2378240	2384300	reviewed, for example, or if there's multiple people working on a system. Or even if you
2384300	2390520	just have multiple people watching the logs. Because somebody is going to notice. It's
2390520	2394180	basically who watches the watcher's situation and you have to just make sure that you have
2394820	2415180	enough people that no single person is doing all of one job. Because machine learning is
2415180	2422700	still relatively in its infancy here. You can use it. Again, you want to be careful that
2422700	2428040	you're not generating a lot of noise. And that's the hard thing. Especially when you're
2428040	2433320	just implementing a user data access logging, there's going to be a lot of noise because
2433320	2437140	you're still figuring out what data you have, how people use it, what are typical use
2437140	2443220	patterns. And so in my experience, it hasn't been that helpful yet because we're still
2443220	2448940	figuring out, like, where to start the machine learning off. It probably, as we develop it
2448940	2454280	more, it will be a really useful tool because then that way no one single, like, log
2454280	2459900	watcher, event analyst has to try and keep all of this in their head. Like the machine can
2459900	2466620	say, hey, you know, the last 30 accesses by this one person were made using the customer
2466620	2473060	support billing tool and they made two with user min pro deep dive. That's harder for
2473140	2479020	a human to spot but easy for a machine to spot. So just as we develop, as we get a better
2479020	2483120	understanding of what the rules, we know what security logs should be, you know, things to
2483120	2487580	log for, to watch for in those logs, we're still learning what that is in privacy logs.
2491170	2524420	Anybody else? So they were asking what templates and what kinds of strings to search for. So
2524420	2539570	that was, let me hop back a few slides here. So this is where I would start with the
2539570	2543370	strings and what the string exactly is going to work out to be is going to depend on how
2543370	2548910	your logging tool works. But for example, you can search for, like, well-known people. So
2548910	2553070	maybe put, you know, whoever our current president is, search for that string. Or like
2553070	2558110	the CEO of your company or if somebody is having their 15 minutes of fame, you know, you
2558110	2561870	want to be watching out for them because somebody might say, oh, hey, you know, who's
2561870	2565950	this whoever person? I'm going to go look up and see if they have an account because I just
2565950	2576930	heard about them in the news. Looking for unusual job role and tool pairs. So for, like,
2576930	2581650	that's where I was saying, you know, last 30 accesses they made were using this one tool.
2581870	2587090	Everybody else in their job role only uses this one tool. And now you've got this one person
2587090	2593770	with this job role using an unusual tool. And then the format exactly is going to depend on
2593770	2599090	your system and exactly what you can do. If you have the ability to write your own custom
2599090	2604130	logs, then you can use, you know, protobufs or XML or whatever makes sense for your system.
2604130	2607970	And then you can just format them however you want. If you're working with COT software and
2607970	2612850	maybe you're working off of CIS logs or AWS logs or something, it's going to be kind of
2612850	2624690	restricted by what those logs give you. Anybody else? Going once, going twice. Thank you very
2624690	2625350	much.
