So we're talking about security logs. They're not good enough. So I think you're logging everything important. You've turned on logging in all your critical systems. You've set up a logs management tool. You've created rules to alert you when something's not right. You're totally covered if a customer accuses your employees of looking at user data. Right? Right? Right? Nope. If you're relying solely on security logs to protect your users' data, you almost certainly won't be able to tell what's happened in the event of employee access to employee abuse of user data. Security logs aren't enough to protect your users or you from malicious activity targeting user data. So first off, who am I? Why do I think I can talk about user data access logs? My name is Alicia Clock. I'm a privacy TPM at Lyft. Before Lyft, I was a security engineer in privacy. I used to work in privacy at Google, and before that, I worked for Boeing building security systems for government customers. My entire career has been about protecting data. So, now that you know who I am, what's all this about security logs not being good enough to protect your users' data? So let's start with the basics. Why do we log anything at all? Anybody? It's 6 o'clock p.m. I'm totally making this an interactive presentation. You've got to talk to me here. So why do we log stuff? In case something untoward happens. Untoward? Something untoward happens? Audit. Audit. Yeah. Regulations. Hmm? Regulations. Regulations. Yep. Developers left it in. Developers left it in. Yeah. So. Accountability. Accountability. Yeah. Generally speaking, what I'm hearing from a lot of you is we want to provide a record of an event. And specifically to aid information. And to help you with future investigations. Broadly speaking, we need to be able, if an investigation is needed, we need to be able to tell what happened. All right. But when I say an event, what does that mean? So I'm assuming you all being here at DEF CON that you're familiar with security events. But just in case, here's a real quick review. A security event can be broadly defined as an unauthorized access to one or more systems. There's a lot of possible motives. Money by stealing data that can be sold to third parties or just stealing money. Political or ideological motivations that result in vandalization or destruction. Fame and fortune by stamping over a customer's or a company's website with I hacked this. Or even just laying the groundwork for future attacks. So when you're faced with a security event, you need to know three things. When it happened, where, or on what system it happened, and what exactly happened. Let's say you get an alert that someone tried to log in as root on your system. When you go to investigate, you need to find out these three things. What, when, and where. You have to forgive me for having the awkward speaker's notes here and computer here. Because Windows 10 does not agree with multiple displays. So, a typical security log, like these sample SSH logs, provides all of the information. The when, the where, the beginning, you've got your time stamp, you've got your host name. And the what at the end. So you can look at a set of logs like this and see that somebody tried to log in as root. Or two people tried to log in as root. Or possibly the same person from two different IPs. One failed and then one succeeded. With this information, you can determine whether the attack was successful. Whether any information was accessed. About how long the attack lasted. And then you can use that information to increase your security. Maybe change the root password or implement stronger SSH policies. Or even just banning those IPs. Alright, so that's a security event. Security investigation. What's the big deal about user data access events? How are they any different? Let's take a look at what constitutes a user data access event. For starters, the definition is different. It's an access to user data without business justification. The key point here is business justification. In most companies, employees do have reasons to access user data. Like fixing bugs or providing customer support. Things like that. A user data access event is when an employee doesn't have a legitimate reason to access user data. So there's a lot of reasons why someone might look at user data. They might be maliciously stalking someone. They might have spotted a family member's or celebrity's account. Got curious. Decided to, you know, poke around and see what they could see. They might be trying to commit fraud. Maybe they're going to access a family member's account. Provide a few extra services that aren't being paid for. Erase a balance. Something like that. They may even be simply trying to help someone but aren't going through the proper channels. When you're investigating a user data access event, you need to know the same thing as a security event. Where it happened. When it happened. And what was done. But you also need three more pieces of information in order to successfully investigate. You need to know the who and the whom. That's not just a... Grammar thing. There's two specific separate things there. Who made the access and whose data was accessed. You also need to know why the access was made. The business justification for it if one exists. Typically, business justifications are represented by things like bug IDs, customer support tickets, or a specific job role or project. These three things work together to determine whether an access was business justified or not. For example, if employee John Smith accesses an account. If he accesses his wife Jane Smith's account and doesn't provide a business justification. That's kind of sketchy. But if John Smith accesses Jane Doe's account and provides a customer support ticket where Jane Doe called in for help with her account. That's probably fine. Typical business activity. Not really anything to worry about. But John Smith accesses his wife Jane Smith's account and provides that customer support ticket for Jane Doe. That's sketchy. All three of these pieces of information. Work together to indicate whether an access was appropriate. So of course in order to know these three things during an investigation. You need to have them in your logs. This means that in addition to the when, where, and what of a security event. You also need to log the who, the whom, and the why. So right about now you're probably thinking. Hold up a sec. That sounds like a lot of work. Why should I even care? So yes. Protecting user data is hard. Yes. Implementing a new type of log is time consuming and difficult. I'm not going to stand up here and tell you that it's easy. That it's going to be a quick job. Plug and play. You're done. But this is DEF CON. We know security is hard work. We know that we're used to putting in an effort to defend ourselves from malicious attackers. Shouldn't we want at least as much protection from insider access to our user data? All it takes is one bad egg. One person who can compromise your privacy. These are all real headlines written about real employees who have abused their access to user data. Some of the organizations that I have blacked out are household names. Others are less well known to the general public. But either way you can bet that the abuses had a really big effect on the organization. And an even bigger effect on the victims. And if bad publicity and customers being afraid to use your product isn't enough to motivate you. How about some cold hard law? We like law. Right? It's a good thing. Most companies, countries have some form of privacy law that dictates a requirement for companies to reasonably protect their users data. Depending on the exact country, the exact law, the exact situation in question. You or your company. Or both. Could be subject to civil fines, criminal fines, even jail time. If you don't adequately protect your user data. And if all of that isn't enough to convince you. It's just the right thing to do. It fosters trust in your users. Because they know you're trying to protect them. And if something bad does happen. They're going to be a lot more willing to forgive an honest mistake than willful recklessness. Nowadays companies even sell products based on privacy. Look at all the apps where their user model is basically we don't store your data. We don't store your messages. Or you can think about it from a selfish standpoint. You want your data protected, right? You got all these companies that have your data. You want to make sure they're protecting it. And when it comes down to the wire. We're human. We like to think we're doing the right thing. Protecting user data is part of that. Okay. So protecting user data is good for business. Good for users. Good for me. All right. We like this. But you might be thinking. All right. I don't have any user data. I'm a simple coupon company. Or maybe a news website. Or a security vendor. Totally don't have anything. It's all good. Are you sure? Absolutely sure? You probably have user data. It's nearly impossible to conduct business. In the modern world. Without involving user data in some way. Even buying groceries involves user data. If you have a store loyalty card. And things that might seem innocuous at first glance. Such as for example someone's contact list. Might turn out to be a treasure trove of information to a malicious user. An abusive husband. For example. Spying on his wife. Might look at her contacts list. And see a women's shelter. Or a divorce lawyer. That's going to be really bad for her. A curious employee. Might look at a celebrity's calendar. And see multiple appointments with a doctor. Who specializes in a particularly sensitive medical condition. That employee could sell that information to the tabloids. That's bad for the celebrity. Even a grocery store loyalty card. Can reveal a frightening amount of information about a person. You may remember there's a famous article from 2012. About a very popular grocery store chain. That sent pregnancy related coupons to a teenage girl. Before her father knew she was pregnant. He was not happy about that. So take a close look at your business. If you collect any data at all from your users. That's user data. And you need to protect it. Alright. So you got user data. You want to protect it. How do you go about actually doing that? I'm scaring everybody away. So before we even get to the logging part of user data protection. We need to start with the people side of things. Logs only tell you what happened after the fact. It's much better to invest effort in preventing abuse before it happens at all. So you want to make sure employees job roles are clear. Knowing exactly what any given employee is supposed to be doing at any given time. Let's you define what accesses they need. And conversely what access they do not need. Then enforce those job roles. Use strong ACLs. Keep them up to date as employees join and leave and change positions. You can't abuse data access if you don't have any data access. You also need to make sure that you're storing your data in a way that allows you to create and enforce good ACLs. For example, instead of dumping everything into one gigantic MySQL database. Break out your data into multiple individual tables. Or even multiple individual databases with separate ACLs. This way you can allow, for example, customer service to access a customer's billing account without seeing their message data. Or vice versa. You can allow an engineer who needs to debug the messaging system. View the broken messages. But not any of the billing data. Another part of proper data storage is ensuring that everyone who accesses the data store has their own unique ID. Just like you wouldn't give all your employees the root passwords for all your servers. Don't give them the admin password for all your user data stores. It's more common than you think. It's kind of scary. I've heard stories. So once your hardware and software are set up to protect user data. You also need to set up your employees as well. You want to create clear policies and rules about when and for what purpose employees are allowed to access user data. And make sure your employees know and understand those policies. Finally, you need to enforce the policies. Yeah, it sucks if you have to fire someone for accessing user data. But would you rather do that or be the subject of one of those headlines I showed earlier? Alright. So now once you've implemented the basic data protection mechanisms. You can focus on your logging. Because while good data protection practices will stop the merely curious. They might not be enough to stop a malicious actor. How you implement data access logging depends on where you get your software. If you write all of your own data access software. Then great. You build in your logging system. Logging function records everything that you want it to. And tailor it to your specific company. Your specific environment. Your specific data set. It's easier said than done. And we'll go into details in a minute. But generally if you write your own software. You're in a pretty good position. On the other hand. If you use COTS software. Commercial off the shelf software. Your job is a little trickier. If you have the resources for it. You could write a custom interface for your data store. For example an admin tool that sits between your database and your employees. And handles all the direct interactions with the data. This option is ideal because. Again, aside from allowing you to implement proper data access logging. It also gives you greater control over what your employees can access. What data they see. And how they do it. It also allows you to track metrics. Implement custom tools. Do a lot of useful things that you can't with a database alone. But if building and maintaining a custom data access tool is too costly for you. And let's face it. Sometimes it is. That's a lot of work. You can work with your COTS software vendors. Existing logging tools. To cobble together. Something that more or less covers what you need. You may not be able to capture everything. That we're going to talk about. To make up a complete data access log. But you can probably get pretty close. And close is a lot better than nothing. You can also encourage the company that makes your software. To implement better logging. To implement data access logging. It's unlikely to solve your problem in the short term. But over time. If enough people speak out and say. Hey we want to protect our users data. Companies will start building this in from the get go. Alright. So you're ready to implement data access logging. You need to figure out what your data access log. Your DAO is going to look like. So. Reminder. You need to log six things. Who. Whom. What. Where. When. And why. Let's cover some of the terminology of DAOs. To start. First off. We have. Actors and targets. The who and the whom. The actor. Is the human performing the data access. The person doing the thing. Being logged. Each actor gets their own DAO. Just like in regular logs. Notably. You shouldn't log when a machine accesses user data. For one. Machines are going to be providing all of the services. And you're going to make a bunch of noise to clutter up your logs. For two. Machines can't abuse user data. By definition. They only access what you tell them to access. So they're not going to be able to go off. And do unauthorized things. You also shouldn't log a user's access to their own data. For much the same reasons. Targets. On the other hand. Are the subject of the data access. They're the human whose data was looked up. A DAO can have zero or more targets. Which makes a little more sense than it sounds. Let's say an actor searches for John Jacob Jingleheimer Smith. But there is no user in your database with that name. The actor is still attempting to look up a user. He still issued a query. And the fact that no results were returned. Doesn't mean that the action isn't log worthy. For example. They may have misspelled Jingleheimer. So they try again. Spell it right. And this time they get a result. These kinds of actions. Together like that. Depending on their business justification. Could potentially indicate something suspicious. So what do I mean when I say the actor issued a query? In a DAO. The query is the input from the actor. That determines what user data is displayed. This might be a user name entered into a search box. It might be a sequel query. It might be a link in a tool that they click on. And yes. You need both the target and the query fields. Because what an actor searched for. May not necessarily be the thing that they end up accessing. For example. Let's say an actor. Needs to look up the account of one William Gates. Insurance salesman from Wyoming. Searches. Gets back results that include Bill Gates. The Microsoft billionaire. If he then clicks on Bill Gates. The Microsoft billionaire. But inputs the justification of William Gates from Wyoming. That's pretty sketchy. On the other hand. If he searches for Bill Gates. Because hey. Even billionaires aren't immune to bugs. Then you know. That's probably okay. Which leads me into. What exactly is a business justification? That is the why of an access attempt. Before looking up a particular user. An actor should be able to provide a concrete reason. Why they need to look at that user data. In other words. Why they can't use anonymous statistics. Or maybe a test account. Or something else that isn't user data. So like I said earlier. Typical justifications include bugs. Support tickets. A specific project or task. And specific job roles. Justification by job role isn't ideal. Since it makes it much harder to identify. When someone in that job role. Actively abuses their access. But depending on your company. And your data situation. It might be the only option. That doesn't drive employees. In that job role. Absolutely insane. Business justifications do not. Include any of these other things. Over here. And yes. These are all reasons. That people have provided. For accessing user data. No. Because isn't a reason. Unless you're the parent of a toddler. Neither is I wanted to. Yes. We do in fact. Look at these. These are all reasons. And no. Helping a friend. Actually isn't a good enough reason. Click. There it goes. So. Wait a minute. Why isn't. I was helping. My friend. A good enough reason. If they're helping someone. Isn't. You know. That a. Valid. Thing. Not exactly. So first off. If they're legitimately helping someone. There should be a bug. Or a customer support ticket. And they should have put that. Instead of. I was helping. Second. As a matter of policy. You generally shouldn't allow people. To work on a relative's. Or a friend's. Account. Not only. Is there the potential. For abuse. So hey. While I'm in. You know. My girlfriend's account. I'm going to look at. Who she's been talking to. Maybe. What messages she's been sending. But it also completely negates. The point. Of having. A customer support. Or a bug system. Friends and family. Of your employees. Should go through. The exact same. Help process. As everyone else. Both to make sure. That any fixes. Get applied. To everyone. Cowboy. Engineering. Over there. That's when. A reasonable observer. Might believe. That abuse. Is happening. Even if it's not. And it's almost. As bad. As actual abuse. Because it causes. Many of the same. Consequences. You lose. User trust. You might. Get. Legal liabilities. Depending on. Again. The specific laws. Of the country. And the company. So. Don't even allow. The perception. Story time. I said. This is. Going to be. Interactive. If you were. Investigating. This access. What would you. Determine. From these. Facts. Sketchy. Why. Okay. No bug. ID. That wasn't. Written. Now. Obviously. It's. Looking. For. Something. That. Sounds. Like. Smith. So. Those. Two. Are. Points. We've. Got. Somebody. They're. Using. Multiple. Search. Terms. They're. Trying. To. Find. A. Specific. Person. With. An. Unusual. Spelling. When. Returning. The. Name. Is. First. Time. But. It. Could. Indicate. That. They. Knew. That. They. Shouldn't. Be. Searching. For. Her. And. All. And. They. Provided. A. Fake. Justification. Yes. Yes. And. I'll. Now. That. We've. Established. What. All. The. Pieces. Of. A. Dial. Are. And. Why. They're. Important. Let's. Look. At. A. Very. Basic. Dial. Written. In. Plain. English. There's. Multiple. Ways. You. Format. Your. Dells. Protobuffs. Are. Good. For. It. So. Is. XML. You. Can. Use. A. Syslog. Style. If. You. Want. Just. A. Text. String. That's. Harder. To. Parse. For. Logging. Systems. But. If. That's. What. Works. For. Then. Go. For. It. Here's. The. Same. Dial. Written. In. Human. Readable. Protobuff. Over. There. And. XML. Format. Pretty. Simple. Easy. To. Read. Now. Let's. Get. Complicated. Just. Like. Any. Log. There. Are. Endless. Varieties. Of. User. Data. Access. Logs. So. These. Are. Some. Access. Frontend. Used. By. Employees. On. A. Central. Authentication. Or. Authorization. Backend. Server. While. A. Backend. Such. As. An. Authentication. System. Has. The. Advantage. Of. Being. Centralized. So. That. To. Implement. Logging. In. As. Many. Places. It's. Unlikely. To. Enough. Information. To. Make. A. Complete. Dial. Backends. Typically. Don't. Know. Anything. About. Queries. About. Justifications. About. Any. Of. That. They're. Just. There. To. Respond. To. Requests. A. Good. Rule. Of. Thumb. About. Logging. In. General. Is. To. Log. As. Close. To. The. Source. Of. Possible. And. In. The. Case. Of. User. Data. Access. Events. The. Source. Of. The. Event. Is. The. Actor. So. You. Want. To. Log. Close. To. The. Actor. Which. Means. Logging. In. The. End. Multiple. Targets. Depending. On. The. Exact. Interface. Used. To. Access. User. Data. You. Might. See. Any. Or. All. Of. These. Situations. Incidentally. None. Them. Are. Wrong. Or. Bad. They're. All. Perfectly. Legitimate. Ways. To. Access. User. Data. Again. Depending. On. The. Situation. On. The. System. On. What. They're. Trying. To. Do. You. Just. Need. To. Make. Sure. You. Log. All. The. Targets. Accessed. Accessed. By. A. Given. Query. Which. Is. Pretty. Simple. Click. You. Just. Use. Repeated. Fields. Pretty. Straightforward. Even. In. A. String. Syslog. Comma. Separated. Again. It's. A. Lot. Harder. To. Parse. But. It's. Doable. So. What. About. Multiple. Tools. That. Should. Be. The. Same. Thing. You. Purposes. They. Store. Data. Differently. There's. Different. Reasons. For. Accessing. Them. They're. Going. To. Data. Differently. And. Therefore. Each. Actor. Is. Going. To. A. Different. Motivation. For. Using. Each. Different. Tool. For. Example. An. Actor. Looking. Up. Someone. In. An. Administrative. Front. End. That. Everyone. In. Their. Job. Role. Uses. Probably. Not. Too. Suspicious. An. Actor. Who. Normally. Looks. Up. Users. In. A. Front. End. But. Then. Turns. Around. And. Goes. And. Looks. Someone. Up. In. The. Database. That's. Pretty. Sketchy. Breaking. Out. Your. Dolls. By. Tool. Makes. These. Discrepancies. A. Lot. Easier. To. Spot. And. Since. Each. Access. To. User. Data. Should. Have. A. Business. Justification. You. Want. To. Capture. The. Business. Justification. For. Using. That. Specific. Tool. If. You. Allow. Users. To. Provide. A. Blanket. Justification. For. Multiple. Accesses. Using. Multiple. Tools. It. Becomes. Much. Easier. For. Them. To. Hide. A. Single. Malicious. Access. In. A. Sea. Of. Benign. Ones. So. How. About. No. Query. You. Might. Find. Situations. Where. In. Your. System. Where. An. Actor. Is. Able. To. Access. User. Data. Without. Issuing. A. Specific. Query. So. Without. Manually. Typing. Something. Into. A. Search. Box. You. Still. Need. To. Find. A. Way. To. Capture. What. Exactly. The. Actor. Was. Trying. To. For. Knowing. What. An. Actor. Was. Trying. To. See. As. Well. As. What. They. Actually. Looked. At. Can. Tell. You. Much. More. Than. Either. Piece. Alone. For. Mouse. Based. Interactions. The. Link. The. Link. An. Actor. Clicked. On. Is. Usually. Enough. It's. Good. Standing. It's. Not. Going. To. Be. Perfect. But. A. Of. The. Times. If. Look. At. It. It'll. Have. Data. You. Know. Click. On. John. Doe. Pretty. Close. In. Cases. Where. A. Tool. Automatically. Supplies. User. Data. Without. A. Specific. Query. By. User. You. Should. Probably. First. Look. At. Why. Your. Tool. Does. That. Can. You. Modify. It. To. Only. Display. User. Data. When. A. Actor. Specifically. Requests. It. If. That. Doesn't. Make. Sense. For. Your. Tool. Then. Investigate. Ways. To. Have. The. Itself. Supply. The. Query. To. The. Dow. Along. With. The. Data. So. If. It's. A. Report. You. Log. The. Bug. I.D. As. The. Query. Or. Perhaps. The. I.D. Of. The. User. Who. Filed. The. Bug. Sometimes. You'll. Find. That. A. Tool. Displays. User. Data. Even. Though. It's. Not. Needed. For. Thing. That. They're. Doing. It's. Just. There. For. Example. Your. Customer. Support. System. Might. Show. A. User's. Purchase. History. And. Billing. Information. Even. If. Just. Calling. In. For. A. Password. Reset. Or. Your. Database. Is. Structured. So. That. It. Is. Faster. And. Easier. To. Pull. All. Of. The. User's. Data. Instead. Of. The. Little. Subset. That. The. Actor. Needs. In. Those. Cases. Rather. Than. Trying. To. Log. Around. The. Problem. You. Should. Look. At. Why. Your. Systems. Behave. That. Way. And. Try. And. Restructure. Them. So. That. They're. Only. Supplying. Data. When. It. Is. Specifically. Requested. No. Business. Justification. The. Business. Justification. Is. Very. Often. The. Hardest. Part. Of. A. Dell. To. Capture. You. Can. Get. The. Other. Five. Parts. By. Just. Recording. What. Is. Going. On. The. System. The. Bits. And. What. Is. A. Old. Way. Being. In. To. Another. Service. And. A. In. That. To. little text box that a user has to fill out with a business justification before they can click search. However, this leads to the second potential problem, which is that the employees aren't going to like this. It's time consuming. It's frustrating. They have to go look up a bug number. They have to type in a bug number. What are my notes doing? All right. Sorry. This isn't an easy problem to solve. Yes, you are giving up a little bit of employee convenience in order to make a lot of gains in user data protection. You can solve this with user education, you know, work with your employees to teach them why it's worth it. Or if your systems allow it, just remove the manual aspect altogether and, again, program the tool to automatically enter the justification for them so they don't ever have to do it. What happens if there is no easily available cleared justification? For example, front line customer support reps might take dozens of calls from users an hour. They don't have time to open a new support ticket for each one. You could require them to do it anyway. It would suck. It would slow down your customer support by a lot. You could allow them to all use a single blanket justification, like customer call. You could just allow them to use no justification. In those cases, it's really kind of up to you to look at your system, look at the accesses, look at the risk, and weigh what's the best thing to do there. So now the fun part. Get examples. So first, quick disclaimer, these are all fictional. So with that out of the way, take a look at this dial. Is there anything that jumps out at you immediately? Family. So yeah, that's not a great justification. And you can then look and see the actor and the target have the same last name. What about the tool used? Customer support billing. It's kind of sensitive data there. Employee Rose, we see, is looking at her relative Roxy's billing data. Maybe it's benign. Maybe Roxy's having a problem with her account. And Rose, being the good relative that she is, offered to help her out. Still not good, because Rose should have directed Roxy to the proper customer support channels, rather than trying to do it herself. Could be benign. But it could also be malicious. Maybe Roxy is Rose's daughter. And Rose doesn't want her having an account. She might go in and mess around with Roxy's account to prevent her from having one. Maybe they're in cahoots. Rose might be granting Roxy benefits that Roxy hasn't paid for. Clicky. How about this one? What do you see here that looks sketchy? Targets? I'll give you an extra hint, because this one's not obvious. The bug number is not me being lazy when I made up data for this slide. Yeah. So here we have an actor looking at the accounts of current and former presidents. He searched for accounts at whitehouse.gov email addresses. The tool that he's using is message viewer admin, so he probably went in and looked at the messages in our president's accounts. But the bug number he provided is almost certainly bogus. Sometimes actors with malicious intent, when they have to enter a business justification, will try and hide their activity by using keyboard strings. By providing fake justifications with keyboard strings. Things like one, two, three, four, eight, nine, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 24, 25. It's a mess for the president. Miriam linke here was theла version of the 보고뽀 Sims host, looper, Kunis. Clicky. I'm placed on theAMS website by an ad. I got the word wrong. This phrase works. An analysis bug is a separate method available to mallets, Try to find ways to Estamos Encarnados con personas en las camas con actos de comunicaciones con same action on different dates. Anything else? Account deep dive. The combination of repeated accesses over a long period of time is pretty suspicious. We've also got the automatic customer support justification which doesn't provide a lot of information and they're using this account deep dive tool. I talked earlier about setting automatic justifications for some job roles. This is why it's not a real great idea. You can't really tell here if Romeo is working on a particularly long standing customer support ticket or if he's actively stalking Juliet. So cases like this are where your investigation team's expertise and knowledge will come into play. For example, an investigator might be able to dig up a customer support ticket for each of those events which would indicate a business justification. If you're looking for a business justification. Alternatively, they might know that Romeo's co-workers almost never use the account deep dive tool and they might check Romeo's history and they see that he only uses it to access Juliet. It's a big red flag. So what's this about an investigation team? Where did this come from? So what's the point of logging all this data if no one's looking at it? Now the, one slide clicks over. So what's the point of logging all this data if no one's looking at it? There it goes. Now that you have your user data access logs, you need a team dedicated to investigating the events generated by these logs. This could be its own team adjacent to your existing SOC if you have the resources or you could include it in your SOC's regular duties. There's quite a bit of overlap between a typical security event investigator and a data event, data access event investigator. It's, the log sources are different but otherwise it's much the same skillset and tools. You all know that there's a need to make sure that the investigation team has legal support. Security events are typically caused by people outside your organization. Maybe in a few really high profile cases there might be legal action taken but for the most part it's going to be handled internally. There's no external legal ramifications. User data access events however come from your own employees. Depending on the consequences you lay out in your user data access policy you may find yourself firing people for abuse or taking other employment related actions. You need to have a legal support team to make sure that you're doing everything by the book. Just like with security logs and security events you'll want to set up an automatic logs parsing system, logs analysis system to help your investigation team sort out the sketchy from the benign. This isn't a complete list. Exactly what you look for is going to depend on your organization, on the type of user data you collect, on what resources you're going to be using, on what kind of resources you have to investigate. And not all accesses that match one or more of these are going to necessarily be malicious. But they're a good start and your investigation team will be able to develop new rules, more precise rules over time. So that's a lot. That was a lot of information. TLDR. Basically if you have user data in your systems and you almost certainly do not have access to it, you need to make sure that it is protected. But typical security logs don't capture nearly enough information to investigate potential access abuse events. You need data access logs, DALs, which capture six key pieces of information about every access made by your employees to user data. The who, who made the access, whom, whose data was accessed, what, what data was accessed, where, which is what tool or system was used, when the access was made, and the process occurred, and why, which is the business justification for the access. Without all six pieces of information, it can be difficult or impossible to determine if a particular access was benign or abusive. Once you have all of these DALs, you need a team dedicated to investigating them. They'll use many of the same tools as your existing SOC, um, but they'll need legal support to back them up. They'll create a set of rules, uh, to monitor for suspicious behavior and they'll investigate events using the information provided by the DALs. Data access logging sounds complicated, sounds like hard work. It is hard work. But we, we've never let a little hard work stand in the way of, uh, securing our users' data. So, why would we let it stand in the way of making sure our data, our users' data is protected? By protecting your users' data, you're keeping your headlines positive, you're earning your users' trust, and above all, you're protecting your users. Questions? Okay. So, uh, so, uh, so, uh, so, uh, so, uh, you mentioned before, uh, data classification, protecting the right data. Do you have any experience, and if so, what are your opinions of use of DLP systems to automatically classify data? I don't have any experience with DLP systems. Um, so, it would, it would probably depend on, uh, exactly what you're doing, what data you are collecting, um, and how much risk you're willing to accept. So... We'll say, for example, um, a cover down to the younger HIPAA. Okay. You would have specific data . Mm-hmm. Potentially. Um, you'd need to make sure that you aren't either breaching HIPAA yourself in the way that you are implementing the logging, or, um, also you're not abusing your employees' right to privacy when you're doing this. Any others? . . . . . . . . . It's a lot harder to slip something by if, you know, you have to have your code reviewed, for example, or if there's multiple people working on a system, or even if you just have multiple people watching the logs, because somebody's going to notice. It's basically who watches the watcher's situation, and you have to just make sure that you have enough people that no single person is doing all of one job. Yep? What's the quality of machine learning tools that analyze these logs? Because I can't imagine you were scanning through. You didn't mention anything about that. Because machine learning is still relatively in its infancy here. You can use it. Again, you want to be careful that you're not generating a lot of noise, and that's the hard thing, especially when you're just implementing user data access logging. There's going to be a lot of noise, because you're still going to be using it. You're still figuring out what data you have, how people use it, what are typically use patterns. And so, in my experience, it hasn't been that helpful yet, because we're still figuring out, like, where to start the machine learning off. It probably, as we develop it more, it'll be a really useful tool, because then that way no one single, like, log watcher, event analyst has to try and keep all of this in their head. Like, the machine can say, hey, you know, the last 30 accesses, by this one person were made using the customer support billing tool, and they made two with the user min pro deep dive. You know, that's harder for a human to spot, but easy for a machine to spot. So, just as we develop, as we get a better understanding of what the rules, we know what security logs should be, you know, things to watch for in those logs. We're still learning what that is in privacy logs. Anybody else? I have a quick question for you. So, when you produce things like Splunk, what kind of analyze the log, do things that you can address, what might be the best format for the developers to write for the logs? And also, if there are some templates that develop for things that you should search for, what kind of strings or what kind of... So, they're asking what templates and what kinds of strings to search for? So, that was... Let me hop back a few slides here. So, this is where I would start with the strings, and what the string exactly is going to work out to be is going to depend on how your logging tool works. But, for example, you can search for, like, well-known people. So, maybe put, you know, whoever our current president is, search for that string. Or, like, the CEO. If you're the CEO of your company, or if somebody's having their 15 minutes of fame, you know, you want to be watching out for them, because somebody might say, oh, hey, you know, who's this whoever person? I'm going to go look up and see if they have an account, because I just heard about them in the news. Looking for unusual job role and tool pairs. So, for, like, and that's where I was saying, you know, last 30 accesses they made were using this one tool. Everybody else in their job role. Only uses this one tool. And now you've got this one person with this job role using an unusual tool. And then the format exactly is going to depend on your system and exactly what you can do. If you have the ability to write your own custom logs, then you can use, you know, protobufs or XML or whatever makes sense for your system, and then you can just format them however you want. If you're working with COD software and maybe you're working off of syslogs or, like, AWS logs or something, it's going to be kind of restricted. It's going to be limited by what those logs give you. Anybody else? Going once. Going twice. Thank you very much. Thank you.