1 00:00:02,840 --> 00:00:10,240 Welcome to the annual DEF CON convention. This meeting was held in exciting Las Vegas, Nevada, from July 9th through the 11th, 1999. 2 00:00:12,000 --> 00:00:14,100 This is video tape number 14. 3 00:00:20,640 --> 00:00:26,300 This is video tape number 14. 4 00:00:26,380 --> 00:00:43,260 This is video tape number 14. 5 00:00:44,100 --> 00:00:48,100 What we're going to talk about this evening, and I want to thank you for all coming. 6 00:00:49,080 --> 00:00:50,680 I realize the bands have started. 7 00:00:52,160 --> 00:00:54,920 We're going to talk about cyber forensic analysis. 8 00:00:55,940 --> 00:00:58,460 There are all types of forensic analysis. 9 00:00:58,640 --> 00:01:00,100 I make some distinctions. 10 00:01:01,640 --> 00:01:10,640 Forensic computer analysis deals with specifically the removal of information from hard drives, 11 00:01:10,900 --> 00:01:13,920 or floppy drives, floppy disks for that matter, 12 00:01:14,620 --> 00:01:18,940 in such a way that the information can be used as evidence in a court. 13 00:01:21,160 --> 00:01:28,600 Now, I'm as caught up in hype as the next guy, so I had to figure out a way to use the term cyber. 14 00:01:30,340 --> 00:01:35,480 And so I use the term cyber to refer to things that have to do with networks. 15 00:01:37,700 --> 00:01:43,520 And cyber forensic analysis, then, is the forensic analysis of information. 16 00:01:44,100 --> 00:01:47,460 On a network that we can use, then, as evidence in a court of law. 17 00:01:49,160 --> 00:01:53,680 Then we have one other kind of forensic analysis, and that's software forensic analysis, 18 00:01:53,840 --> 00:01:56,580 which we won't be discussing tonight because it's black magic. 19 00:01:57,940 --> 00:02:02,500 And that is the forensic analysis of code to determine who wrote it. 20 00:02:08,460 --> 00:02:09,580 All right, change. 21 00:02:09,760 --> 00:02:10,220 Thank you. 22 00:02:11,020 --> 00:02:14,000 First of all, let's define what we're talking about here. 23 00:02:14,000 --> 00:02:16,780 We're talking about crimes against a computer. 24 00:02:17,540 --> 00:02:20,860 That's crimes where the computer is the victim. 25 00:02:22,020 --> 00:02:27,160 And the FBI tells us that they define that as computer crime. 26 00:02:27,920 --> 00:02:35,960 They say that everything else is, in fact, traditional crime, and it just happens to be done with a computer. 27 00:02:37,160 --> 00:02:41,300 So we refer to that as computer-related crime. 28 00:02:41,660 --> 00:02:43,980 And that includes crimes where the computer is the victim. 29 00:02:43,980 --> 00:02:48,860 The computer contains the evidence and crimes where the computer is used to commit the crime. 30 00:02:49,200 --> 00:02:53,480 Now, let me put everything we're going to talk about in a little bit of perspective. 31 00:02:55,360 --> 00:03:01,160 Probably 90% of the investigations that I'm involved in are corporate investigations. 32 00:03:01,660 --> 00:03:08,080 They haven't got a thing to do with some hacker or a cracker or a thing that goes bump in the night 33 00:03:08,500 --> 00:03:10,980 breaking in to my clients from the Internet. 34 00:03:12,180 --> 00:03:13,960 Probably 80% to 90% of the time, it's the computer. 35 00:03:13,960 --> 00:03:20,100 90% of the investigations I do have to do with inside people who are doing something 36 00:03:20,100 --> 00:03:28,000 naughty within the organization. And so there are a number of things that I can do in the 37 00:03:28,000 --> 00:03:34,260 course of an investigation that are much more difficult to do if we have to do them over 38 00:03:34,260 --> 00:03:41,960 a network like the public internet. However, the techniques are not dissimilar. With that 39 00:03:41,960 --> 00:03:52,380 in mind, let's simplify things greatly. Let's say that there are only four kinds of attacks. 40 00:03:54,320 --> 00:04:04,100 There are denial of service attacks, social engineering attacks, technical attacks, which 41 00:04:04,100 --> 00:04:10,100 is where I put the whole gamut of exploits. 42 00:04:11,080 --> 00:04:11,940 Whole gamut. 43 00:04:11,960 --> 00:04:19,360 Whole gamut of attacks that exploit bugs in a system. And then we have sniffing. These 44 00:04:19,360 --> 00:04:25,880 are the kinds of attacks that an investigator needs to be prepared to deal with. Yes, sir? 45 00:04:29,220 --> 00:04:34,940 Sniffing is passive. But one of the things that an intruder wants to do, probably the 46 00:04:34,940 --> 00:04:39,680 most important thing that an intruder can do, is to gather information that will let 47 00:04:39,680 --> 00:04:41,840 that intruder enter the system. 48 00:04:41,960 --> 00:04:43,160 The intruder will then send out a message to the system without triggering an alarm. 49 00:04:44,680 --> 00:04:52,240 Therefore, the intruder wants to see if he or she can get passwords and accounts. And 50 00:04:52,240 --> 00:04:58,300 that becomes part of a total attack. And therefore, we're concerned with passive sniffing. Furthermore, 51 00:04:59,720 --> 00:05:07,680 one of my favorite attacks when I'm doing vulnerability testing for a client is to compromise 52 00:05:07,680 --> 00:05:11,940 a machine on the ISP. Put a sniffer there and knock it off. It's a bad idea. It's no 53 00:05:11,940 --> 00:05:20,780 watch. But nobody here has ever done anything like that. So yes, sniffing is passive. But 54 00:05:20,780 --> 00:05:27,280 sniffing is an important part of any attack. So, if we're investigators, put ourselves 55 00:05:27,280 --> 00:05:34,220 in the position of the investigator. And if we're investigators, we need to deal with 56 00:05:34,220 --> 00:05:40,680 the attack as the attacker dishes it out to us. Well, the first thing any good attacker 57 00:05:40,680 --> 00:05:48,580 is going to do is gain information about the target. And they do stuff like internet searches, 58 00:05:48,720 --> 00:05:55,420 who is, NS lookup, dig, all sorts of those little things which everybody does. Doesn't 59 00:05:55,420 --> 00:06:04,920 break any laws. Isn't there moral, unethical, illegal, or fattening? But, they do it. And 60 00:06:04,920 --> 00:06:09,900 we can't tell as investigators. The only way we're ever going to know 61 00:06:09,900 --> 00:06:10,660 is if we're 62 00:06:10,680 --> 00:06:16,460 able. That the attacker did these things is if we're able to eventually do a forensic 63 00:06:16,460 --> 00:06:22,400 analysis of the attacker's drive, the attacker's disk. And then we may see evidence there. 64 00:06:22,520 --> 00:06:28,260 Then again, we may not. The next thing the attacker may try to do is do some preliminary 65 00:06:28,260 --> 00:06:34,360 probing. Now, they want to get passwords. They want to get information. But they don't 66 00:06:34,360 --> 00:06:39,880 want to trigger any alarms at this point because it's too early in the game to get caught. 67 00:06:41,060 --> 00:06:45,760 And so they'll do things like another one of my favorites is a pop password attack. 68 00:06:46,260 --> 00:06:52,420 Just run a little attack against the popper. Do some password guessing. Doesn't usually 69 00:06:52,420 --> 00:07:02,200 log. Maybe a DNS zone transfer just to sort of figure out what's out there. Amazes me 70 00:07:02,200 --> 00:07:10,660 how many ISPs leave their name servers unprotected. Maybe do some simple mail proofing. Maybe 71 00:07:10,680 --> 00:07:17,460 do other simple probes. And these probes may or may not log. And on a big system, they're 72 00:07:17,460 --> 00:07:23,240 going to log in such a way, probably, that they're going to be very hard to find. So 73 00:07:23,240 --> 00:07:29,480 forensically, as investigators, we're going to need some tools that are going to be able 74 00:07:29,480 --> 00:07:35,100 to parse these big logs. Anybody ever seen a firewall log that's been running for about 75 00:07:35,100 --> 00:07:40,660 three days on a big company? Yeah. You're going to need a tool to parse those logs. 76 00:07:42,360 --> 00:07:49,180 And then, of course, some attackers will get frisky and start looking for back doors 77 00:07:49,180 --> 00:07:54,880 and do something like a ping scan. That ought to show up in a log somewhere. If it doesn't, 78 00:07:54,880 --> 00:08:00,420 the logging's not set up right. And then we're going to try some technical attacks. 79 00:08:00,660 --> 00:08:07,560 We may try a little social engineering. All of these things are things that the investigator 80 00:08:08,020 --> 00:08:09,280 needs to look for. 81 00:08:09,660 --> 00:08:10,640 And let me tell you a little bit about these things. First of all, these things are things 82 00:08:10,660 --> 00:08:12,580 that the investigator needs to look for. And let me tell you, folks, there is no such 83 00:08:12,580 --> 00:08:18,420 thing, and I've been doing this for a very long time, I have never, never seen a smoking 84 00:08:18,420 --> 00:08:28,920 gun in a forensic dump of a disk. Never found the big clue. It's dozens upon dozens 85 00:08:28,920 --> 00:08:35,460 of little clues that you put together. And they're buried. They're buried inside of these 86 00:08:35,460 --> 00:08:35,980 big logs. 87 00:08:39,000 --> 00:08:40,640 Next thing that's going to happen is that the investigator's going to have to find 88 00:08:40,640 --> 00:08:44,700 out what's going to happen if the intruder is good at what he or she does and does in 89 00:08:44,700 --> 00:08:49,560 fact penetrate the system, is they're going to try to clean up. They're going to try 90 00:08:49,560 --> 00:08:53,800 to delete their tools and work files. They're going to try to modify logs. Here are some 91 00:08:53,800 --> 00:08:59,300 Unix examples of logs that they might try to modify. And we're concerned then about 92 00:08:59,300 --> 00:09:04,000 what's left on the computer. In a few minutes, I'm going to tell you a little bit about criminal 93 00:09:04,000 --> 00:09:07,620 profiling and how we use it to investigate a security incident. 94 00:09:10,180 --> 00:09:10,620 I'm going to tell you a little bit about criminal profiling and how we use it to investigate 95 00:09:10,640 --> 00:09:10,920 a security incident. 96 00:09:10,920 --> 00:09:18,300 Now if you do like I do and you deal in a corporate environment, the people who are 97 00:09:18,300 --> 00:09:25,080 in that corporate environment have an expectation of privacy. And if there are no policies to 98 00:09:25,080 --> 00:09:32,300 the contrary, you're not going to be able to investigate this incident from the inside. 99 00:09:33,740 --> 00:09:40,620 Because we've got a law called the Electronic Communication Privacy Act that says, if you're 100 00:09:40,640 --> 00:09:48,440 that without a policy, the only thing we can look at is source and destination address. 101 00:09:50,400 --> 00:09:57,960 We can't look at content. Well, that may make it very difficult to investigate an incident. 102 00:09:58,360 --> 00:10:03,160 So we need policies. So those of you who are here from the corporate side, go back and 103 00:10:03,160 --> 00:10:09,120 tell your people, we need policies. Policies define the actions you can take, and they 104 00:10:09,120 --> 00:10:14,980 have to be clear and simple to understand, and the employee needs to acknowledge them, 105 00:10:15,800 --> 00:10:23,880 usually in writing. Now, there's been a trend lately towards putting little snippets of 106 00:10:23,880 --> 00:10:32,780 privacy policies in login banners, and that seems to work. However, here's a caveat for 107 00:10:32,780 --> 00:10:39,040 you, and the caveat is that we're dealing in murky waters legally here. There isn't 108 00:10:39,040 --> 00:10:39,100 a law that says, you know, you can't do this, you can't do that, you can't do that, you can't do that. 109 00:10:39,120 --> 00:10:43,420 There's been a lot of case law. It's not well understood. It depends upon what part 110 00:10:43,420 --> 00:10:48,980 of the country you're in, and the courts may or may not interpret those login banners 111 00:10:48,980 --> 00:10:57,260 as sufficient. So from the corporate side, see your lawyers. If you're a hacker on the 112 00:10:57,260 --> 00:11:02,240 inside of a company, and you're going to get even with your company and break in, before 113 00:11:02,240 --> 00:11:04,600 you do, see your lawyers. Yes, sir? 114 00:11:10,440 --> 00:11:21,260 Yes. The question is, are there not provisions in the law that allow for troubleshooting 115 00:11:21,260 --> 00:11:28,020 and for monitoring? You may monitor for the normal course of business. It's called the 116 00:11:28,020 --> 00:11:33,600 business exception. And in the normal course of business, you may monitor for maintenance 117 00:11:33,600 --> 00:11:39,100 for those types of things. But what you use to monitor for the normal course of business 118 00:11:39,100 --> 00:11:48,320 is strictly limited, based on the laws. Now, if you have a policy, and again, corporate 119 00:11:48,320 --> 00:11:55,900 people, if your policy says that the employee has no expectation of privacy, and they consent 120 00:11:55,900 --> 00:12:07,020 to monitoring, then you're okay. You're okay. Now, here's the Electronic Communications 121 00:12:07,020 --> 00:12:08,120 Privacy Act. 122 00:12:08,200 --> 00:12:09,020 This is the law. 123 00:12:09,020 --> 00:12:16,580 This is the law that enables you, as a corporate investigator, to investigate. And for those 124 00:12:16,580 --> 00:12:21,620 of you who may put yourselves in a position to be investigated, this law is one that 125 00:12:21,620 --> 00:12:22,840 you really need to know about. 126 00:12:24,140 --> 00:12:29,200 First of all, it says that the owner of a system can intercept communications between 127 00:12:29,200 --> 00:12:36,700 an intruder and the owner's system. That means that if you come in from the outside, the 128 00:12:36,700 --> 00:12:37,960 victim can monitor you. 129 00:12:40,180 --> 00:12:49,660 The next one deals with inside. You can intercept with prior consent of the user. And that's 130 00:12:49,660 --> 00:12:56,220 where the policy that's been acknowledged by the employee comes in. Once the employee 131 00:12:56,660 --> 00:13:02,700 acknowledges that policy, that constitutes prior consent. You can always intercept the 132 00:13:02,700 --> 00:13:07,100 portion of communications necessary to determine origin and destination, and you can intercept 133 00:13:07,100 --> 00:13:07,820 where necessary. 134 00:13:07,960 --> 00:13:08,300 Then I'm talking about being a developer, and then you must identify who's behind what. 135 00:13:08,300 --> 00:13:10,520 If you're a person, what's actually necessary to protect your rights or property? 136 00:13:11,280 --> 00:13:12,340 That's murky. 137 00:13:14,140 --> 00:13:15,460 Ask your lawyers. 138 00:13:16,260 --> 00:13:23,380 I had somebody, when I gave this talk over at Black Hat, I had somebody say, well, that 139 00:13:23,380 --> 00:13:24,120 covers everything. 140 00:13:24,500 --> 00:13:27,620 And my answer to that is maybe yes, maybe no. 141 00:13:27,760 --> 00:13:34,220 It depends on how the court in the particular area where you're located interprets it. 142 00:13:34,980 --> 00:13:36,420 So ask your lawyer. 143 00:13:36,940 --> 00:13:37,560 Okay. 144 00:13:37,560 --> 00:13:43,580 Ok, now we've got that tool. Let's figure out what it is we want to do when we do an investigation. 145 00:13:44,740 --> 00:13:50,700 First of all, we want to ensure that all applicable logs and evidence are preserved. 146 00:13:50,940 --> 00:13:58,600 And I can't emphasize this too strongly. That is among the first things you do. 147 00:13:58,740 --> 00:14:04,060 And you preserve the evidence not by walking up to the victim computer and typing down 148 00:14:04,060 --> 00:14:10,000 copy such and such a log to another disk. You don't touch that computer. 149 00:14:12,380 --> 00:14:18,640 So, corporate investigators, if you walk up to the crime scene, the victim computer, 150 00:14:19,680 --> 00:14:25,720 and the screensaver's on, don't wiggle the mouse. Don't touch that computer. 151 00:14:25,880 --> 00:14:27,960 I'm going to tell you what to do with it here in a while. 152 00:14:28,680 --> 00:14:33,020 And those of you who may find yourself in some small amount of trouble 153 00:14:33,020 --> 00:14:34,040 for a minor reason, 154 00:14:34,060 --> 00:14:34,900 minor transgression, 155 00:14:37,800 --> 00:14:41,780 watch to see if you happen to be fortunate enough to be there during the seizure, 156 00:14:42,000 --> 00:14:46,000 watch to see how that computer sees. 157 00:14:46,880 --> 00:14:49,660 If the cop walks up and starts typing on it, 158 00:14:50,700 --> 00:14:52,180 you win. He loses. 159 00:14:54,600 --> 00:15:03,140 Because the cardinal rule of forensic analysis is you must not, 160 00:15:03,140 --> 00:15:04,400 you being the investigator, 161 00:15:05,140 --> 00:15:07,820 must not contribute to the evidence. 162 00:15:08,860 --> 00:15:14,340 And a good defense attorney will mail you every time if you do. 163 00:15:15,180 --> 00:15:16,540 Trust me. I know. 164 00:15:18,020 --> 00:15:20,160 This is the voice of experience talking. 165 00:15:22,600 --> 00:15:27,280 Okay, the next goal of our investigation is to understand how the intruder entered the system. 166 00:15:28,000 --> 00:15:29,220 That's the critical goal. 167 00:15:29,520 --> 00:15:32,800 The next one is to obtain the information we need 168 00:15:32,800 --> 00:15:36,800 to justify a trap and trace of the phone line if the intruder is using a phone 169 00:15:37,280 --> 00:15:41,880 or to subpoena information from the ISP if they come in over the internet. 170 00:15:42,180 --> 00:15:45,400 Of course, if this is an entirely internal attack, 171 00:15:45,600 --> 00:15:47,480 we don't have to worry about those things. 172 00:15:48,600 --> 00:15:53,100 Trap and trace is something that you will need to get law enforcement involved to do. 173 00:15:53,520 --> 00:15:57,120 You can't just go put a trap on a phone line. 174 00:15:57,620 --> 00:16:00,080 You can call a phone company and ask them to do it, 175 00:16:00,100 --> 00:16:01,400 and they'll do it, 176 00:16:01,400 --> 00:16:03,540 but you'll never see the information. 177 00:16:03,540 --> 00:16:06,680 You'll never see the data unless you have a warrant. 178 00:16:07,040 --> 00:16:07,860 Yes, sir? 179 00:16:08,540 --> 00:16:09,140 . 180 00:16:13,360 --> 00:16:19,780 You know, a lot of PBXs now have caller ID, 181 00:16:20,060 --> 00:16:22,000 and the answer to that is yes. 182 00:16:22,440 --> 00:16:23,040 . 183 00:16:23,780 --> 00:16:24,380 No. 184 00:16:26,420 --> 00:16:28,480 Unless, unless you have a policy. 185 00:16:29,320 --> 00:16:29,920 Okay? 186 00:16:29,920 --> 00:16:33,560 An acknowledged policy, and that's prior consent. 187 00:16:33,880 --> 00:16:34,280 Yes, sir? 188 00:16:35,600 --> 00:16:36,240 . 189 00:16:45,720 --> 00:16:46,800 I don't know. 190 00:16:47,240 --> 00:16:47,880 . 191 00:16:49,960 --> 00:16:51,200 It's the same as voice? 192 00:16:51,520 --> 00:16:51,600 . 193 00:16:51,600 --> 00:16:53,160 Yeah, I don't know. 194 00:16:53,320 --> 00:16:59,240 I've never been involved in an investigation where we were doing that. 195 00:16:59,860 --> 00:17:01,440 So I can't answer the question. 196 00:17:01,880 --> 00:17:05,240 But if it's the same as voice, I'll buy that. 197 00:17:05,300 --> 00:17:06,280 That makes sense to me. 198 00:17:07,280 --> 00:17:07,760 Okay? 199 00:17:08,540 --> 00:17:12,600 All right, the next thing we want to know is why the intruder has chosen the computer. 200 00:17:12,740 --> 00:17:18,740 This is our first little bit of criminal profiling, 201 00:17:18,760 --> 00:17:20,340 and I'm going to come to that more in a minute. 202 00:17:20,780 --> 00:17:25,060 It helps us to decide what kind of a person may be doing this, 203 00:17:25,200 --> 00:17:26,520 their skill levels, 204 00:17:26,520 --> 00:17:28,780 and it helps us narrow down our suspects. 205 00:17:30,640 --> 00:17:34,020 Now, we need to have as much evidence of the intrusion as possible, 206 00:17:34,120 --> 00:17:37,720 and we're going to talk about collecting and preserving evidence here in a minute as well. 207 00:17:38,080 --> 00:17:43,860 We want to obtain information that will help us narrow the list of suspects, 208 00:17:44,960 --> 00:17:47,560 document the damage caused by the intruder. 209 00:17:47,620 --> 00:17:53,620 This is important because the amount of damage determines a lot of things, 210 00:17:53,840 --> 00:17:56,360 among them the threshold as to whether or not 211 00:17:56,520 --> 00:17:57,820 law enforcement will investigate. 212 00:17:59,160 --> 00:18:04,100 Another one is what the penalties are if there's a criminal prosecution. 213 00:18:08,160 --> 00:18:13,680 And we need to gather enough information to decide if law enforcement should be involved. 214 00:18:17,300 --> 00:18:22,780 Our immediate objective in any network-based intrusion is to preserve the evidence. 215 00:18:23,000 --> 00:18:24,780 It is extremely fragile. 216 00:18:25,680 --> 00:18:29,940 The evidence lives in a variety of places on the Internet. 217 00:18:31,100 --> 00:18:35,580 Most of those places, if not all of them, will be outside of our control. 218 00:18:36,480 --> 00:18:39,220 Many of those places do not log. 219 00:18:39,880 --> 00:18:44,300 If they do log, the logs may turn over very rapidly, 220 00:18:45,380 --> 00:18:47,520 and the information will be gone. 221 00:18:50,060 --> 00:18:54,680 So, remember, when you have an Internet-based attack, 222 00:18:54,680 --> 00:18:58,760 you need to do your backtrace as rapidly as you can. 223 00:18:59,040 --> 00:19:02,160 And if we're talking about something like harassing email, 224 00:19:02,460 --> 00:19:05,640 or cyber-stalking, or something of that nature, 225 00:19:05,840 --> 00:19:12,600 the data that you need to trace back that email header may disappear very rapidly. 226 00:19:14,320 --> 00:19:19,340 We contact system administrators on intermediate sites and request log preservation. 227 00:19:19,960 --> 00:19:23,320 Now, if you're dealing with private sites, 228 00:19:24,440 --> 00:19:28,720 generally, the system administrator will give you what you want if he's got it. 229 00:19:28,840 --> 00:19:32,640 If you're dealing with ISPs, it's a whole different story. 230 00:19:33,180 --> 00:19:35,340 ISPs are terrified of being sued. 231 00:19:36,280 --> 00:19:42,420 And so, in order to protect the rights of their subscribers and their own pocketbooks, 232 00:19:43,240 --> 00:19:48,500 ISPs will not give you the information you need without a subpoena. 233 00:19:48,880 --> 00:19:52,160 And with a subpoena, they'll usually cooperate very well. 234 00:19:52,160 --> 00:19:56,440 So, what we do is we call them up and we say, 235 00:19:56,520 --> 00:19:58,260 Look, here's the information. 236 00:19:59,580 --> 00:20:03,560 Please preserve the logs that contain what we want. 237 00:20:04,120 --> 00:20:05,740 Now, a word of caution. 238 00:20:06,940 --> 00:20:10,920 Again, when I gave this over at Black Hat, 239 00:20:11,020 --> 00:20:12,600 somebody raised their hands and said, 240 00:20:12,640 --> 00:20:17,340 Well, you know, we've had a lot of trouble with getting logs preserved, 241 00:20:17,400 --> 00:20:19,580 getting response from the ISPs. 242 00:20:19,600 --> 00:20:20,880 We send them email, 243 00:20:20,880 --> 00:20:23,560 and they either don't respond or we get a form letter. 244 00:20:23,940 --> 00:20:25,660 Two things, okay? 245 00:20:26,040 --> 00:20:27,640 Number one, don't send them email. 246 00:20:28,580 --> 00:20:29,640 You will eventually, 247 00:20:29,840 --> 00:20:34,280 but you're not going to do that until you've got a human being on the other end instead of a bot. 248 00:20:35,980 --> 00:20:37,560 Next thing you do, you always call. 249 00:20:38,560 --> 00:20:43,860 And I think there isn't anybody here who doesn't know how to find out who the contact is for an ISP. 250 00:20:44,640 --> 00:20:45,680 So you always call. 251 00:20:46,980 --> 00:20:50,720 Some of you have found out without particularly wanting to, I'm sure. 252 00:20:51,820 --> 00:20:53,020 So you always call. 253 00:20:53,120 --> 00:20:57,160 Second of all, you ensure that you give them enough information. 254 00:20:57,680 --> 00:20:59,540 You can't call them up and say, 255 00:20:59,560 --> 00:21:00,260 I've been hacked. 256 00:21:02,240 --> 00:21:03,160 Save the log. 257 00:21:04,740 --> 00:21:07,520 Because you'll be able to see over the phone. 258 00:21:09,600 --> 00:21:10,520 Yes, back here. 259 00:21:24,940 --> 00:21:27,100 They have every right to say that. 260 00:21:28,240 --> 00:21:29,600 You can't force it. 261 00:21:30,260 --> 00:21:31,580 You can't force it. 262 00:21:32,300 --> 00:21:35,480 There's no law that forces an ISP to keep logs. 263 00:21:35,700 --> 00:21:38,840 And in fact, there are ISPs that purposely do not keep logs 264 00:21:39,620 --> 00:21:43,200 because they believe it's how they protect the privacy of their subscribers. 265 00:21:43,880 --> 00:21:45,700 So if they tell you that, 266 00:21:46,640 --> 00:21:47,840 I've tried crying. 267 00:21:51,260 --> 00:21:53,260 I put my wife on the phone once. 268 00:21:55,260 --> 00:21:57,240 Anything you can do to get them to do it. 269 00:21:57,280 --> 00:21:58,220 Because they don't have to. 270 00:21:58,280 --> 00:21:58,680 Yes, sir. 271 00:22:01,000 --> 00:22:04,280 Interaction with government, law enforcement. 272 00:22:05,100 --> 00:22:06,840 How long does the process take? 273 00:22:08,060 --> 00:22:09,740 Usually, it's a little bit longer. 274 00:22:10,080 --> 00:22:11,400 Like, it's a few hours. 275 00:22:11,820 --> 00:22:17,200 So how long does the process take with law enforcement, ISP? 276 00:22:18,300 --> 00:22:20,860 How long does the process take with law enforcement? 277 00:22:20,860 --> 00:22:22,480 How long does the process take with law enforcement, ISPs, and so forth? 278 00:22:22,720 --> 00:22:23,780 Okay, first of all, 279 00:22:24,760 --> 00:22:26,080 I'm going to answer your question, 280 00:22:26,180 --> 00:22:27,700 but let me digress just a little bit 281 00:22:27,700 --> 00:22:30,260 so that we're all talking the same language here. 282 00:22:33,520 --> 00:22:35,100 Warrants and subpoenas are different. 283 00:22:36,000 --> 00:22:39,060 A subpoena is something that an attorney can draft. 284 00:22:39,680 --> 00:22:42,380 It has to be pursuant to a filed lawsuit. 285 00:22:43,280 --> 00:22:45,100 But an attorney can draft it. 286 00:22:45,220 --> 00:22:47,480 A warrant is issued by a judge. 287 00:22:48,400 --> 00:22:48,880 Okay? 288 00:22:48,880 --> 00:22:51,760 Law enforcement generally does warrants. 289 00:22:52,600 --> 00:22:54,680 Civil cases generally do subpoenas, 290 00:22:54,740 --> 00:22:57,720 although law enforcement can do subpoenas also. 291 00:22:59,300 --> 00:23:00,900 If we have to do a subpoena, 292 00:23:01,840 --> 00:23:03,320 it can go very quickly, 293 00:23:03,420 --> 00:23:06,080 and I'm going to show you how to do that here in just a couple of minutes. 294 00:23:06,340 --> 00:23:09,420 If we have to do a warrant and law enforcement is involved, 295 00:23:09,840 --> 00:23:10,960 it can go on forever. 296 00:23:11,840 --> 00:23:14,440 My advice is, if you're a corporate investigator, 297 00:23:16,100 --> 00:23:17,900 first of all, make sure you know what you're doing. 298 00:23:18,880 --> 00:23:19,200 Okay? 299 00:23:19,420 --> 00:23:21,420 And that's real important, 300 00:23:21,620 --> 00:23:25,640 because you can really screw up an investigation royally 301 00:23:25,640 --> 00:23:27,480 by not doing it right. 302 00:23:27,880 --> 00:23:29,600 But if you're a corporate investigator, 303 00:23:29,900 --> 00:23:30,580 you know what you're doing, 304 00:23:30,620 --> 00:23:32,240 you've got a team that knows what they're doing, 305 00:23:32,340 --> 00:23:34,140 and you've got consultants that know what they're doing, 306 00:23:34,800 --> 00:23:35,860 conduct the investigation, 307 00:23:35,860 --> 00:23:38,360 and then spoon-feed it to law enforcement. 308 00:23:40,520 --> 00:23:42,640 You'll have a better chance of getting it investigated. 309 00:23:43,760 --> 00:23:44,240 Okay? 310 00:23:45,820 --> 00:23:46,300 So, 311 00:23:46,800 --> 00:23:48,480 it can take a while. 312 00:23:48,880 --> 00:23:49,980 It can take a while. 313 00:23:50,060 --> 00:23:50,940 The reason, by the way, 314 00:23:51,000 --> 00:23:52,640 you may have trouble getting it investigated 315 00:23:53,260 --> 00:23:56,000 is because there's a lot more incidents 316 00:23:56,000 --> 00:23:57,960 than there is law enforcement to do it. 317 00:23:58,160 --> 00:23:59,940 And so they set thresholds. 318 00:24:00,000 --> 00:24:03,180 And the other thing is that it isn't really the cops 319 00:24:03,180 --> 00:24:05,920 that decide what to investigate in this particular case. 320 00:24:06,200 --> 00:24:07,180 It's the prosecutors. 321 00:24:07,580 --> 00:24:10,480 If the prosecutors don't believe they can prosecute the case, 322 00:24:10,560 --> 00:24:11,340 they won't take it. 323 00:24:11,400 --> 00:24:12,780 And I've had that happen many times. 324 00:24:12,940 --> 00:24:13,240 Yes? 325 00:24:20,940 --> 00:24:21,440 . 326 00:24:43,480 --> 00:24:43,980 Yeah. 327 00:24:45,100 --> 00:24:46,740 And you can do that, 328 00:24:46,860 --> 00:24:48,320 but there is a caveat. 329 00:24:49,200 --> 00:24:53,300 And this is all a matter of judgment here. 330 00:24:53,920 --> 00:24:54,180 Okay? 331 00:24:54,900 --> 00:24:58,920 The caveat is that once you do that, 332 00:24:58,940 --> 00:25:01,280 you've essentially given the case over to law enforcement. 333 00:25:01,660 --> 00:25:06,140 Now, some organizations have policies about that 334 00:25:06,140 --> 00:25:07,060 and some don't. 335 00:25:10,320 --> 00:25:12,600 Myself, the type of work that I do, 336 00:25:12,760 --> 00:25:16,800 I prefer, frankly, to get law enforcement involved 337 00:25:16,800 --> 00:25:18,620 because you, 338 00:25:18,880 --> 00:25:20,400 usually we're dealing with something, 339 00:25:20,640 --> 00:25:22,400 we're not dealing with simple hacks. 340 00:25:23,040 --> 00:25:24,500 We're dealing with fraud. 341 00:25:25,280 --> 00:25:29,300 We're dealing with some non-computer crime. 342 00:25:29,500 --> 00:25:30,700 In other words, a traditional crime 343 00:25:30,700 --> 00:25:31,980 where a computer was involved. 344 00:25:33,080 --> 00:25:34,820 And those kind of crimes, 345 00:25:35,060 --> 00:25:36,320 especially in a big organization, 346 00:25:36,580 --> 00:25:38,840 need to be turned over to law enforcement for investigation. 347 00:25:39,160 --> 00:25:40,060 On the other hand, 348 00:25:40,640 --> 00:25:42,660 law enforcement does have thresholds 349 00:25:42,660 --> 00:25:44,780 and some companies have policies about 350 00:25:44,780 --> 00:25:46,880 not bringing law enforcement in 351 00:25:46,880 --> 00:25:48,860 because they want to keep the noise level there. 352 00:25:48,880 --> 00:25:54,600 So, frankly, what the lady says is absolutely right 353 00:25:54,600 --> 00:25:57,380 and it may be your only, 354 00:25:57,500 --> 00:25:59,600 only hope of preserving those laws. 355 00:26:00,300 --> 00:26:01,580 On the other hand, 356 00:26:01,640 --> 00:26:03,180 the ISP may say, 357 00:26:03,280 --> 00:26:05,580 hey, we don't got no stinking logs. 358 00:26:06,980 --> 00:26:11,080 And then it's between law enforcement and the ISP. 359 00:26:12,360 --> 00:26:14,880 But they better really have no stinking logs 360 00:26:14,880 --> 00:26:16,100 if they say that, too. 361 00:26:18,880 --> 00:26:19,300 Excuse me? 362 00:26:24,060 --> 00:26:24,940 Okay, so, 363 00:26:26,300 --> 00:26:28,440 next thing you need to do is contain the damage. 364 00:26:29,960 --> 00:26:30,840 And then, 365 00:26:30,920 --> 00:26:33,120 you want to collect local logs, 366 00:26:33,300 --> 00:26:34,880 any logs you can get your hands on. 367 00:26:36,440 --> 00:26:37,320 And finally, 368 00:26:37,960 --> 00:26:39,500 we're going to image the disks 369 00:26:39,500 --> 00:26:40,760 on the victim computers. 370 00:26:40,900 --> 00:26:42,300 And we're going to talk here in a few minutes 371 00:26:42,300 --> 00:26:45,340 about disk imaging, so let's pass that for a moment. 372 00:26:47,280 --> 00:26:48,700 Now, crime scene analysis 373 00:26:48,880 --> 00:26:50,740 is a branch of criminal profiling 374 00:26:50,740 --> 00:26:52,640 that uses standard investigative techniques 375 00:26:52,640 --> 00:26:53,860 to analyze crime scenes. 376 00:26:54,080 --> 00:26:57,700 This is what normal investigators are comfortable with. 377 00:26:57,860 --> 00:26:59,660 They're used to looking at crime scenes. 378 00:26:59,780 --> 00:27:02,080 They're used to analyzing the evidence. 379 00:27:02,320 --> 00:27:04,060 And it's good in computer incidents 380 00:27:04,060 --> 00:27:05,840 because we can look at 381 00:27:05,840 --> 00:27:08,760 what kind of activities 382 00:27:08,760 --> 00:27:12,140 the intruder performed on the computer. 383 00:27:12,420 --> 00:27:14,620 And we can learn a lot about the intruder 384 00:27:14,620 --> 00:27:18,160 from the kinds of activities that they performed. 385 00:27:20,420 --> 00:27:23,280 So, as we develop a profile of an intruder, 386 00:27:23,360 --> 00:27:25,020 we'll start with crime scene analysis. 387 00:27:25,220 --> 00:27:26,420 How was access obtained? 388 00:27:27,380 --> 00:27:29,600 What kind of skills were required 389 00:27:29,600 --> 00:27:30,860 to obtain access? 390 00:27:31,260 --> 00:27:33,180 It's quite one thing 391 00:27:33,640 --> 00:27:35,420 to take a canned program 392 00:27:35,420 --> 00:27:36,760 off the internet 393 00:27:36,760 --> 00:27:40,260 and run it against a system 394 00:27:40,260 --> 00:27:42,180 and cause the system to go down. 395 00:27:43,080 --> 00:27:45,100 Simple denial of service attack, 396 00:27:45,300 --> 00:27:47,480 maybe a simple SIN flight 397 00:27:47,480 --> 00:27:48,720 or a mail bomb 398 00:27:48,880 --> 00:27:49,260 or something. 399 00:27:49,340 --> 00:27:50,280 A monkey can do that. 400 00:27:51,160 --> 00:27:53,920 It's quite another to go into a system 401 00:27:53,920 --> 00:27:55,180 as one that I saw, 402 00:27:55,860 --> 00:27:56,760 a mainframe, 403 00:27:56,820 --> 00:27:58,620 where they zapped a single word 404 00:27:58,620 --> 00:28:00,620 of a program in memory 405 00:28:00,620 --> 00:28:02,800 that caused that system to go down 406 00:28:02,800 --> 00:28:05,120 and they bypassed all the security 407 00:28:05,120 --> 00:28:06,560 in the mainframe to do it. 408 00:28:06,700 --> 00:28:09,980 Those are two distinctly different skill sets 409 00:28:09,980 --> 00:28:12,300 required to conduct those two attacks. 410 00:28:13,320 --> 00:28:15,160 And we can learn a great deal 411 00:28:15,160 --> 00:28:16,760 by analyzing the crime scene 412 00:28:16,760 --> 00:28:18,180 as to what kind of skills 413 00:28:18,180 --> 00:28:18,980 were required. 414 00:28:19,240 --> 00:28:20,360 And we can narrow 415 00:28:20,980 --> 00:28:23,240 our range of suspects considerably. 416 00:28:23,880 --> 00:28:25,860 Now how did the intruder behave 417 00:28:25,860 --> 00:28:26,680 on the system? 418 00:28:26,820 --> 00:28:27,620 Did they do damage? 419 00:28:28,300 --> 00:28:29,880 Were they able to clean up? 420 00:28:30,220 --> 00:28:32,040 If they're a skilled intruder, 421 00:28:32,140 --> 00:28:33,620 did they clean up their tools? 422 00:28:33,920 --> 00:28:35,420 Can we find nothing? 423 00:28:36,120 --> 00:28:37,920 Or do we go into 424 00:28:38,820 --> 00:28:40,320 on a Unix machine 425 00:28:40,320 --> 00:28:41,580 slash temp 426 00:28:43,400 --> 00:28:45,300 slash dot tools 427 00:28:46,960 --> 00:28:48,680 and in there we find 428 00:28:48,680 --> 00:28:50,500 a copy of our canned shadow. 429 00:28:51,380 --> 00:28:54,280 Oh yes, this is a skilled intruder 430 00:28:54,280 --> 00:28:55,260 of the first order. 431 00:29:00,240 --> 00:29:01,760 Did they steal anything? 432 00:29:02,980 --> 00:29:04,340 Was it worth stealing? 433 00:29:06,020 --> 00:29:07,460 What was the motive? 434 00:29:08,400 --> 00:29:10,820 Why did they break into the system? 435 00:29:11,580 --> 00:29:13,340 Are they a disgruntled employee? 436 00:29:14,420 --> 00:29:17,660 Or are they like a group 437 00:29:17,660 --> 00:29:19,700 that seems to have gotten into 438 00:29:20,360 --> 00:29:22,180 the DEFCON website? 439 00:29:24,180 --> 00:29:25,840 Oh, probably none of you 440 00:29:25,840 --> 00:29:26,760 have had a chance to look 441 00:29:26,760 --> 00:29:28,220 at the DEFCON website today. 442 00:29:31,140 --> 00:29:33,020 You'll find it somewhat different. 443 00:29:35,020 --> 00:29:36,500 It's been changed. 444 00:29:38,260 --> 00:29:39,640 We should be able to tell 445 00:29:39,640 --> 00:29:41,140 a great deal about that intruder. 446 00:29:42,140 --> 00:29:43,320 And the person I'm talking to 447 00:29:43,320 --> 00:29:43,580 who's the shit. 448 00:29:43,580 --> 00:29:43,780 mobile-premiality types. 449 00:29:44,720 --> 00:29:46,640 Also, we want to consider opportunity. 450 00:29:47,320 --> 00:29:49,640 In the case of the mainframe attack, 451 00:29:49,940 --> 00:29:52,180 the attacker had to have been on site. 452 00:29:52,480 --> 00:29:54,840 The only access to the mainframe 453 00:29:54,840 --> 00:29:56,600 at this particular level of security 454 00:29:56,600 --> 00:29:57,640 had to be local. 455 00:29:58,040 --> 00:30:00,160 So, it had to be done 456 00:30:00,160 --> 00:30:02,080 at a time when the intruder 457 00:30:02,080 --> 00:30:04,060 was physically in the computer center. 458 00:30:04,800 --> 00:30:06,660 So, this tells us a great deal. 459 00:30:06,840 --> 00:30:08,200 It helps us build a picture 460 00:30:08,920 --> 00:30:10,360 of the event. 461 00:30:11,680 --> 00:30:13,300 So, we're going to build 462 00:30:13,300 --> 00:30:39,340 We're now an incident hypothesis. We're going to try to figure out what happened, and we start with witness accounts. And what I do is when there's an event, the first thing I do is I talk to as many people who are present at the event as I can. System administrators, users who are on the system and observe some event occur. How did they know that they'd been attacked? How did they know what happened? How did they know when it happened? 463 00:30:40,080 --> 00:30:50,240 All of you, I'm sure, have heard stories about eyewitness accounts of automobile accidents where there were 15 people who saw the accident and not one of them got the color of the car right. 464 00:30:51,160 --> 00:31:03,360 This happens here, too. Absolutely happens here, too. So we need to begin to get a picture. So I start with witness accounts. Then we consider how the intruder could have gained access, and we eliminate the obvious. 465 00:31:03,940 --> 00:31:09,320 I mean, if we know for a fact that the intruder dialed into a car. 466 00:31:09,320 --> 00:31:15,180 So we have a maintenance modem on a unit's host, and we can establish that unequivocally. 467 00:31:15,260 --> 00:31:18,760 There's a pretty good probability they didn't break through the firewall and come in from the Internet. 468 00:31:19,460 --> 00:31:26,380 We can pretty well eliminate that as a possibility. It helps us when we do our backtrace. 469 00:31:27,040 --> 00:31:34,020 Then we, again, consider skill level and inside knowledge, and we want to create mirrors of the affected computers. 470 00:31:34,120 --> 00:31:39,240 I'm nibbling around the edges of this collection of evidence thing here, and I'm going to get to it here in a minute. 471 00:31:39,320 --> 00:31:47,400 But a mirror is a perfect physical copy of the disk that we are investigating. 472 00:31:47,920 --> 00:31:52,500 Because we never, never, never work on the actual evidence. Never. 473 00:31:53,020 --> 00:31:54,940 Because we don't want to contribute to it. 474 00:31:57,460 --> 00:32:08,900 So we've developed a profile of the intruder, considered a path into the victim computer, and now we're going to try to recreate the incident in the lab using our mirrors, our perfect copies. 475 00:32:08,900 --> 00:32:11,240 If we are fortunate enough to have them. 476 00:32:11,580 --> 00:32:14,320 Typically we will have a mirror of the victim computer. 477 00:32:16,080 --> 00:32:18,320 And consider alternative explanations. 478 00:32:20,060 --> 00:32:21,280 Let me tell you. 479 00:32:22,700 --> 00:32:34,120 It's really embarrassing to go up before your boss with a report this thick of an investigation and say, 480 00:32:34,240 --> 00:32:37,640 We have absolute conclusive evidence that Joe did this. 481 00:32:37,640 --> 00:32:39,700 He had motive. He had means. 482 00:32:40,920 --> 00:32:43,060 And somebody in the back of the room says, 483 00:32:43,200 --> 00:32:43,780 But wait a minute. 484 00:32:45,000 --> 00:32:47,840 Joe was canoeing in the Rocky Mountains when this occurred. 485 00:32:48,680 --> 00:32:50,340 And it was an inside job. 486 00:32:51,360 --> 00:32:52,700 Well, it could have been Joe. 487 00:32:55,840 --> 00:32:57,360 So test your alternatives. 488 00:32:59,680 --> 00:33:02,200 Now we're ready to start looking at some backtracing. 489 00:33:02,640 --> 00:33:05,940 The elements of the backtracing are the endpoints, obviously. 490 00:33:07,320 --> 00:33:09,040 Any intermediate systems. 491 00:33:09,140 --> 00:33:15,040 And if we're dealing with harassing email or something of that nature, we're going to need email headers. 492 00:33:15,080 --> 00:33:18,940 If we have a sniffer online, we're going to want to look at packet headers. 493 00:33:20,320 --> 00:33:22,780 And obviously we want to look at logs. 494 00:33:23,160 --> 00:33:29,760 Our objective in a backtrace over the internet is to get to a dial-in point of presence. 495 00:33:32,540 --> 00:33:33,060 Okay. 496 00:33:33,720 --> 00:33:36,620 Now maybe this is coming from another network. 497 00:33:37,500 --> 00:33:41,660 And if that's the case, that's what we'll do instead of a dial-in point of presence. 498 00:33:41,820 --> 00:33:46,900 But the reason we want to get to a dial-in point of presence is because that's where the logs are. 499 00:33:47,540 --> 00:33:49,160 You know, it's like Willie Sutton. 500 00:33:49,180 --> 00:33:50,160 Why do you rob banks? 501 00:33:50,300 --> 00:33:51,440 Well, that's where the money is. 502 00:33:52,580 --> 00:33:56,680 So we want to get to a dial-in point of presence because that's where the logs are. 503 00:33:58,880 --> 00:34:02,580 The only messages that we can't backtrace when we're talking about email, 504 00:34:02,580 --> 00:34:06,920 harassing email, are those that use a true anonymizer and those where there are no logs. 505 00:34:07,120 --> 00:34:09,120 And let's define a true anonymizer. 506 00:34:09,500 --> 00:34:12,600 A true anonymizer is something similar to a mix master, 507 00:34:12,920 --> 00:34:17,520 something where encryption is used to obscure the source 508 00:34:18,520 --> 00:34:24,180 and even such things as the time of the connection are changed. 509 00:34:25,380 --> 00:34:32,220 And even the owner of the anonymizer couldn't backtrace this if he wanted to. 510 00:34:33,360 --> 00:34:35,000 Those are not traceable. 511 00:34:35,060 --> 00:34:35,540 Yes, sir? 512 00:34:39,080 --> 00:34:46,020 I'm going to show you in a minute. 513 00:34:46,680 --> 00:34:51,100 The question was how do I get around email that comes from an unobvious place 514 00:34:51,100 --> 00:34:56,160 such as somebody masquerading as him or using hotmail or something of that nature 515 00:34:56,160 --> 00:34:59,180 where it isn't directly traceable to an individual. 516 00:34:59,560 --> 00:35:01,220 In that particular case, 517 00:35:01,220 --> 00:35:04,240 your ISP will tell you, oh, yes, we can do that. 518 00:35:04,440 --> 00:35:06,780 It comes from Joe Fabitz. 519 00:35:07,660 --> 00:35:11,940 And Joe Fabitz lives at 1234 West Avenue, New York, 520 00:35:12,080 --> 00:35:13,860 which is, by the way, a parking lot. 521 00:35:16,720 --> 00:35:20,500 Because we know for a fact that nobody would log into hotmail 522 00:35:20,500 --> 00:35:23,040 and put a false name and address in there, would they? 523 00:35:25,220 --> 00:35:26,480 But that's who did it. 524 00:35:28,160 --> 00:35:30,740 No, we have other ways that we have to do that. 525 00:35:30,740 --> 00:35:32,100 And they don't always work. 526 00:35:32,240 --> 00:35:33,820 But I'm going to show you one here in a minute. 527 00:35:33,900 --> 00:35:34,280 Yes, sir? 528 00:35:35,300 --> 00:35:38,260 How often do you see users do anonymizing? 529 00:35:38,520 --> 00:35:41,920 It depends upon the community. 530 00:35:42,800 --> 00:35:46,760 If I'm dealing with a community of sophisticated computer users, 531 00:35:46,920 --> 00:35:48,980 similar to the ones we find around here, 532 00:35:49,640 --> 00:35:51,180 I see a lot of anonymizers. 533 00:35:51,940 --> 00:35:53,800 And I have to tell you a story. 534 00:35:53,900 --> 00:35:58,080 I generally don't go heavy on war stories on these shorter presentations. 535 00:35:58,080 --> 00:36:04,540 But we had a situation where we were tracing harassing email messages 536 00:36:04,540 --> 00:36:07,900 where the victim had had her life threatened. 537 00:36:08,440 --> 00:36:15,740 And the person who did this was doing it through a service like hotmail. 538 00:36:16,660 --> 00:36:19,040 I mean, we had 13 messages. 539 00:36:19,740 --> 00:36:22,340 And we had taken those 13 messages. 540 00:36:22,420 --> 00:36:24,180 We'd gone through the subpoena process. 541 00:36:24,580 --> 00:36:27,320 We'd gotten all the information from the ISP. 542 00:36:28,080 --> 00:36:29,620 We knew who was doing this. 543 00:36:30,340 --> 00:36:32,620 And then they started using an anonymizer. 544 00:36:35,800 --> 00:36:36,300 Why? 545 00:36:39,760 --> 00:36:40,680 They were caught. 546 00:36:42,540 --> 00:36:43,220 Oh, well. 547 00:36:45,800 --> 00:36:47,640 So these are not traceable. 548 00:36:47,720 --> 00:36:48,160 Yes, sir? 549 00:36:51,860 --> 00:36:53,040 Anonymizers, they can be. 550 00:36:53,820 --> 00:36:55,120 They can be effective. 551 00:36:55,120 --> 00:36:58,460 But I find that when I use them, 552 00:36:58,460 --> 00:37:00,840 about half the time the anonymizer gulps my message 553 00:37:00,840 --> 00:37:02,600 and it never pops out the other end. 554 00:37:03,640 --> 00:37:04,280 Yes, sir? 555 00:37:04,580 --> 00:37:08,140 You talked about making a dis-image on a torqued machine. 556 00:37:08,700 --> 00:37:12,400 Do we have procedures for firewall or truth detection? 557 00:37:13,120 --> 00:37:16,680 Wow, that's a tough one because it's hard to take that machine down. 558 00:37:17,060 --> 00:37:19,020 One of the things I'm going to tell you in a minute 559 00:37:19,020 --> 00:37:21,000 is that the way you do it is you pull the plug. 560 00:37:21,440 --> 00:37:23,260 And there's a good reason for doing that. 561 00:37:23,280 --> 00:37:24,240 And that's kind of dangerous. 562 00:37:24,240 --> 00:37:25,000 It's dangerous with a firewall. 563 00:37:25,260 --> 00:37:28,360 And if your firewall is built on a computer, 564 00:37:29,520 --> 00:37:31,940 then we can take our chances and do that. 565 00:37:32,060 --> 00:37:34,040 But what if it's something like a Cisco PIX? 566 00:37:34,860 --> 00:37:35,760 You're out of luck. 567 00:37:36,600 --> 00:37:37,180 Yes, sir? 568 00:37:37,500 --> 00:37:39,040 I have a question. 569 00:37:39,860 --> 00:37:41,480 I can see in this scenario, 570 00:37:41,780 --> 00:37:44,400 you've got a PC, 571 00:37:44,640 --> 00:37:45,660 you've got somebody, 572 00:37:45,860 --> 00:37:46,620 you've got somebody sitting, 573 00:37:46,860 --> 00:37:47,700 you've got a computer, 574 00:37:48,240 --> 00:37:49,240 you've got a PC, 575 00:37:50,440 --> 00:37:50,740 you've got somebody, 576 00:37:51,160 --> 00:37:52,000 you've got somebody sitting, 577 00:37:52,000 --> 00:37:52,240 you've got a computer, 578 00:37:52,940 --> 00:37:54,220 you've got a PC, 579 00:37:55,760 --> 00:37:58,740 you've got a PC. 580 00:37:58,740 --> 00:38:00,420 What is the 581 00:38:00,420 --> 00:38:07,900 The question is basically, if I may paraphrase, 582 00:38:08,140 --> 00:38:11,460 what happens if it's one of those machines you can't take down? 583 00:38:11,640 --> 00:38:13,640 Like a server, something like that. 584 00:38:15,920 --> 00:38:17,620 This is a judgment call. 585 00:38:18,880 --> 00:38:23,320 We have had clients tell us that we cannot take their machine down. 586 00:38:24,220 --> 00:38:25,280 They have to keep it running. 587 00:38:25,360 --> 00:38:27,640 It's a file server or something like that. 588 00:38:27,860 --> 00:38:33,200 And we've had to make the best image of it we can, knowing that the evidence has been contributed to. 589 00:38:33,740 --> 00:38:39,140 It's not the best, but business drives security, not the other way around. 590 00:38:39,520 --> 00:38:41,820 I'm going to do another quick one here, and then we've got to move on. 591 00:38:41,880 --> 00:38:42,160 Yes. 592 00:38:49,560 --> 00:38:50,700 That's a problem, too. 593 00:38:51,300 --> 00:39:00,500 The question is, what do you do if a portion of the disk that you're imaging has intellectual property and they don't want you to take it off-site? 594 00:39:00,740 --> 00:39:08,500 First of all, let's make the assumption for a minute that I'm working for you as opposed to being your adversary. 595 00:39:10,060 --> 00:39:11,600 There won't be a problem. 596 00:39:11,680 --> 00:39:12,920 Obviously, we'll work it out. 597 00:39:13,320 --> 00:39:18,340 If, on the other hand, I am your adversary and I've subpoenaed that information, 598 00:39:19,420 --> 00:39:20,680 then what you do is you're going to have to make sure that you're working for me. 599 00:39:20,680 --> 00:39:24,780 What you need to do, and you need to do it tickety-boo, real fast, 600 00:39:25,500 --> 00:39:28,680 is you need to go to court and you need to get an order to stop me 601 00:39:29,300 --> 00:39:40,860 so that you can have the judge can issue an order that will protect the information on that from being revealed. 602 00:39:42,380 --> 00:39:43,680 It's intellectual property. 603 00:39:43,800 --> 00:39:45,060 This happens fairly frequently. 604 00:39:45,080 --> 00:39:46,600 I've had it happen several times. 605 00:39:46,680 --> 00:39:49,800 We've done some patent cases where that has happened. 606 00:40:00,380 --> 00:40:02,480 You may lose the case because of that. 607 00:40:02,500 --> 00:40:02,860 That's right. 608 00:40:03,060 --> 00:40:06,080 The judge may step in and quash the whole thing. 609 00:40:06,520 --> 00:40:07,360 That happens. 610 00:40:07,700 --> 00:40:08,140 Yes. 611 00:40:08,380 --> 00:40:10,480 Yes, one more, and then we've got to move or we won't. 612 00:40:10,680 --> 00:40:12,980 You guys will be here too long and you'll miss the music. 613 00:40:13,320 --> 00:40:20,260 What extent of, like, you know, any company has intellectual property that doesn't say anything other than that? 614 00:40:20,280 --> 00:40:20,660 That's right. 615 00:40:20,680 --> 00:40:20,860 That's right. 616 00:40:20,960 --> 00:40:25,760 So, to what extent does it involve national security? 617 00:40:26,140 --> 00:40:33,340 If it involves national security, you can bet that the situation is going to be such that that information is going to be protected. 618 00:40:33,840 --> 00:40:36,320 You can just absolutely guarantee it. 619 00:40:37,140 --> 00:40:40,920 Other than that, it's whatever you can work out with the owner of the information. 620 00:40:41,780 --> 00:40:44,960 You know, they may get the judge to issue a protective order. 621 00:40:45,400 --> 00:40:50,240 I've had situations where I've imaged a disc that had medical records on it, 622 00:40:50,680 --> 00:40:54,160 and those medical records were deemed to be private to the individuals, 623 00:40:54,720 --> 00:41:02,300 and so a representative from the organization that maintained those medical records 624 00:41:02,300 --> 00:41:05,940 was permitted under supervision to delete them before we imaged the disc. 625 00:41:07,880 --> 00:41:08,820 It's tricky. 626 00:41:09,260 --> 00:41:10,220 It's very tricky. 627 00:41:13,040 --> 00:41:19,640 Okay, we've got some enabling relationships when we go after a backtrace, 628 00:41:19,640 --> 00:41:23,380 and we'll start down at the attack victim, down at the bottom. 629 00:41:24,040 --> 00:41:26,200 I don't know that I have enough cord here. 630 00:41:28,060 --> 00:41:29,100 I guess I do. 631 00:41:30,520 --> 00:41:34,280 This is the first place that we're going to look for logs in the victim. 632 00:41:34,500 --> 00:41:36,940 The next place we'll look is intermediate hosts. 633 00:41:37,260 --> 00:41:38,200 Now, here we have a router. 634 00:41:38,300 --> 00:41:39,440 Routers don't have discs. 635 00:41:39,580 --> 00:41:42,300 Some of them log to an external device. 636 00:41:42,480 --> 00:41:43,440 Some of them don't. 637 00:41:43,640 --> 00:41:45,500 They have cache in them, though. 638 00:41:46,400 --> 00:41:48,800 And they cache their routing tables. 639 00:41:48,900 --> 00:41:49,620 And they cache their data. 640 00:41:49,640 --> 00:41:51,240 They cache the traffic that goes through them. 641 00:41:51,340 --> 00:41:53,440 That information can be extracted. 642 00:41:54,540 --> 00:42:00,780 Then we want to get up to the ISP where the point of presence exists. 643 00:42:01,260 --> 00:42:04,400 There are going to be logs on the ISP's dial-in router, 644 00:42:04,520 --> 00:42:07,240 like an Ascend or a Cisco dial-in. 645 00:42:07,400 --> 00:42:10,180 There's also going to be logs at the telephone company. 646 00:42:10,520 --> 00:42:12,760 Now, you've got to subpoena those logs. 647 00:42:13,340 --> 00:42:16,520 You're not going to get them just by asking for them, 648 00:42:16,580 --> 00:42:18,100 but they're there. 649 00:42:18,100 --> 00:42:20,540 So that's where we want to end up. 650 00:42:20,640 --> 00:42:23,440 And that's the key to the backtrace. 651 00:42:25,540 --> 00:42:27,340 Now, obtaining subpoena. 652 00:42:28,480 --> 00:42:31,120 The way we do it is we notify the organization, 653 00:42:31,540 --> 00:42:32,660 usually an ISP, 654 00:42:32,780 --> 00:42:34,840 that we're going to subpoena, 655 00:42:34,900 --> 00:42:36,760 and request they preserve the evidence, 656 00:42:36,940 --> 00:42:38,920 and we ask them who to send the subpoena to. 657 00:42:39,020 --> 00:42:42,840 Most of the larger ISPs have people that you send subpoenas to. 658 00:42:44,620 --> 00:42:48,080 So we always get, or usually get, cooperation there. 659 00:42:48,780 --> 00:42:52,280 Then we get our lawyer to file a John and Jane Doe lawsuit, 660 00:42:52,820 --> 00:42:54,180 which basically says, 661 00:42:55,500 --> 00:42:56,640 Somebody hacked me. 662 00:42:56,680 --> 00:42:58,980 I don't know who it is, but I'm going to sue the bastards. 663 00:43:01,820 --> 00:43:04,340 And you've got to let me go look for information 664 00:43:04,340 --> 00:43:06,260 so that I can find out who they are, 665 00:43:06,320 --> 00:43:08,480 because if you don't, I'll never be able to find out who they are. 666 00:43:09,620 --> 00:43:11,520 Believe it or not, the court will let you do this. 667 00:43:13,680 --> 00:43:15,420 This is fairly controversial. 668 00:43:16,480 --> 00:43:18,080 But in most states, they'll let you do it. 669 00:43:18,100 --> 00:43:22,360 Then subpoena the logs you need and get everything on the first pass. 670 00:43:22,600 --> 00:43:24,420 Don't expect to go back for more. 671 00:43:25,220 --> 00:43:30,100 And you may have to depose the people who collected the logs 672 00:43:30,100 --> 00:43:31,920 to find out how they collected them, 673 00:43:31,960 --> 00:43:34,460 because we have issues of things like chain of evidence 674 00:43:35,120 --> 00:43:36,600 and chain of custody. 675 00:43:38,800 --> 00:43:40,900 Okay, if we're going to use logs for evidence, 676 00:43:41,080 --> 00:43:43,560 they can be modifiable, which of course isn't possible, 677 00:43:43,760 --> 00:43:46,100 but we want to raise the bar as high as possible. 678 00:43:46,220 --> 00:43:48,080 If they've been sprued off to a protected area, 679 00:43:48,080 --> 00:43:48,780 a protected log host, 680 00:43:48,940 --> 00:43:51,100 if they've been saved to optical media, 681 00:43:51,850 --> 00:43:54,680 if we have collaborating copies and backups, 682 00:43:54,980 --> 00:43:58,300 then we can probably use the logs as evidence. 683 00:43:58,460 --> 00:44:00,540 However, there will be questions of authenticity 684 00:44:01,600 --> 00:44:05,700 and there will be questions on accuracy of the logs. 685 00:44:07,000 --> 00:44:12,160 You must be prepared as the expert to answer those questions. 686 00:44:12,920 --> 00:44:15,380 And when the opposing attorney says, 687 00:44:16,010 --> 00:44:17,280 could the logs have been modified? 688 00:44:18,860 --> 00:44:19,920 What's the answer? 689 00:44:21,680 --> 00:44:22,800 Yes, absolutely. 690 00:44:25,580 --> 00:44:27,580 The logs need to be complete too. 691 00:44:27,740 --> 00:44:31,100 And complete in my mind is we have to cover all super user access, 692 00:44:31,740 --> 00:44:33,480 log in and log out times, 693 00:44:33,680 --> 00:44:36,520 attempt to use controlled services that's an NT thing, 694 00:44:36,760 --> 00:44:38,960 attempt to access critical resources, 695 00:44:39,600 --> 00:44:42,520 and I like to cover email details as well. 696 00:44:42,740 --> 00:44:43,920 That makes big logs. 697 00:44:45,140 --> 00:44:48,060 And there are organizations who do not want to log out 698 00:44:48,080 --> 00:44:48,980 and log email details 699 00:44:48,980 --> 00:44:52,600 because they don't want them to be subject to discovery. 700 00:44:59,520 --> 00:45:01,380 And then there are those organizations 701 00:45:01,380 --> 00:45:04,660 who have been subject to some minor mischief 702 00:45:04,660 --> 00:45:06,340 where the logs just disappeared. 703 00:45:08,180 --> 00:45:10,680 Appropriate retention, assuming all around, 704 00:45:11,040 --> 00:45:13,100 is usually six months or more 705 00:45:13,100 --> 00:45:15,340 because we can go months and not even know 706 00:45:15,340 --> 00:45:16,360 that there's been an attack. 707 00:45:19,020 --> 00:45:20,720 Okay, tracing email headers. 708 00:45:20,840 --> 00:45:22,640 I told you I was going to show you how to do this. 709 00:45:23,040 --> 00:45:26,160 Everybody knows how to trace an email header when it's easy. 710 00:45:26,820 --> 00:45:29,960 Okay, and everybody in here I think probably knows 711 00:45:29,960 --> 00:45:35,540 that the farther down towards the Dear John part of it 712 00:45:35,540 --> 00:45:37,800 is the source and the farther up, 713 00:45:37,820 --> 00:45:40,380 the stuff that nobody seems to pay any attention to 714 00:45:40,380 --> 00:45:41,280 is the destination. 715 00:45:41,860 --> 00:45:46,520 In this particular case, you'll notice that on number one there, 716 00:45:46,520 --> 00:45:50,200 the grade-in part, it was received from read-at-local-host 717 00:45:50,200 --> 00:45:52,420 on web03.iname.net. 718 00:45:52,560 --> 00:45:55,900 Now what this is, for those of you who have never used iName, 719 00:45:55,940 --> 00:45:59,700 this is one of these outfits where you can get 720 00:45:59,700 --> 00:46:01,880 one of those free email accounts, you see. 721 00:46:02,420 --> 00:46:08,360 And you go into their web server and you compose it on a form 722 00:46:08,360 --> 00:46:14,620 and the web server uses a post and sends it out. 723 00:46:14,620 --> 00:46:17,980 So the reason that it looks like it came from read-at-local-host 724 00:46:17,980 --> 00:46:20,060 is because that's the process. 725 00:46:21,420 --> 00:46:23,440 Okay, but it's worthless. 726 00:46:24,920 --> 00:46:28,200 There isn't a piece of useful information there 727 00:46:28,200 --> 00:46:29,760 except for the time and date. 728 00:46:30,900 --> 00:46:33,180 That's the only useful information. 729 00:46:37,580 --> 00:46:40,000 That message ID number? 730 00:46:40,480 --> 00:46:41,580 Totally useless. 731 00:46:43,420 --> 00:46:46,760 It's probably, the log that contains that probably 732 00:46:46,760 --> 00:46:49,920 had been gone for days by the time I got to this. 733 00:46:51,000 --> 00:46:54,040 So what we need to do is we need to understand the system 734 00:46:54,040 --> 00:46:56,460 and the system is a web-based system 735 00:46:56,460 --> 00:46:58,880 and since it's a web-based system, we hope 736 00:46:59,540 --> 00:47:02,740 there's an access log, an HTTP access log 737 00:47:02,740 --> 00:47:04,780 and an HTTP referrer log 738 00:47:04,780 --> 00:47:06,720 and I'm running out of things to cross up here. 739 00:47:07,520 --> 00:47:11,560 Turns out in this case there was an HTTP access log 740 00:47:11,580 --> 00:47:15,840 and we were able to look at web 03 741 00:47:16,360 --> 00:47:19,380 and see that on Saturday, 12 September 1998 742 00:47:19,380 --> 00:47:22,960 at 18.25.13 Eastern Daylight Time, 743 00:47:23,140 --> 00:47:26,380 don't forget the time, don't forget the time zone, 744 00:47:27,920 --> 00:47:29,940 that there was a particular connection. 745 00:47:30,480 --> 00:47:32,300 We had about 13 of these 746 00:47:32,300 --> 00:47:35,480 and it turns out that the connection was 747 00:47:35,480 --> 00:47:38,620 owned by the same ISP in every single case. 748 00:47:39,320 --> 00:47:41,420 We were able to go to the ISP 749 00:47:41,980 --> 00:47:44,220 because we had the source IP addresses 750 00:47:44,220 --> 00:47:47,260 which turned out to be dial-up points of presence 751 00:47:48,100 --> 00:47:50,840 and we were able to find out who owned the account 752 00:47:51,500 --> 00:47:53,800 and we went to the person who owned the account 753 00:47:53,800 --> 00:47:55,580 and she said I didn't do it 754 00:47:56,180 --> 00:47:57,580 and her husband said I did! 755 00:47:59,600 --> 00:48:00,780 And we had him. 756 00:48:03,300 --> 00:48:06,420 So the trick here is, and the question that you asked 757 00:48:06,420 --> 00:48:09,780 is forget about who it's from, it doesn't make any difference 758 00:48:09,780 --> 00:48:12,040 they're probably lying about who they are anyway 759 00:48:13,100 --> 00:48:15,120 and go for the time of the connect 760 00:48:15,120 --> 00:48:17,680 and start working back a step at a time 761 00:48:17,680 --> 00:48:20,200 until you get to the dial-in point of presence. 762 00:48:20,400 --> 00:48:23,440 When you get there, you've got your best chance 763 00:48:23,440 --> 00:48:24,940 I don't guarantee you're going to win 764 00:48:24,940 --> 00:48:26,280 but you've got your best chance. 765 00:48:30,320 --> 00:48:33,800 So, in this case we contacted iName's security officer 766 00:48:34,580 --> 00:48:36,600 he gave us the connect account name, 767 00:48:36,840 --> 00:48:39,260 time, message ID and source IP address, 768 00:48:39,260 --> 00:48:40,800 all of which were totally worthless 769 00:48:40,800 --> 00:48:42,500 except for the source IP address. 770 00:48:45,080 --> 00:48:48,980 We located the ISP, contacted their security officer, 771 00:48:49,120 --> 00:48:51,000 got their logs from the source IP 772 00:48:51,000 --> 00:48:53,140 which was the dial-in point of presence 773 00:48:53,140 --> 00:48:54,420 it happened to be in a Sun router 774 00:48:56,300 --> 00:48:59,120 and found out who was connected at the time of the email. 775 00:48:59,680 --> 00:49:00,440 Yes sir. 776 00:49:05,500 --> 00:49:06,540 You cried? 777 00:49:10,900 --> 00:49:13,140 I had a lot of time invested in that. 778 00:49:13,320 --> 00:49:15,620 It took me 15 minutes to do that trace. 779 00:49:17,800 --> 00:49:19,160 No, we'd have been in trouble. 780 00:49:19,240 --> 00:49:20,840 If the logs were gone, we'd have been in trouble. 781 00:49:22,140 --> 00:49:25,720 Because we had gotten back to the ISP 782 00:49:26,070 --> 00:49:27,800 but we wouldn't have been able to go further. 783 00:49:30,000 --> 00:49:30,420 Yes. 784 00:49:30,720 --> 00:49:32,360 Do you have multiple instances 785 00:49:32,360 --> 00:49:34,480 where you've been able to get a broad enough 786 00:49:35,090 --> 00:49:38,380 that you can do something about it? 787 00:49:41,560 --> 00:49:44,340 If the question was if I had broad enough 788 00:49:44,340 --> 00:49:46,880 number of instances, 789 00:49:47,300 --> 00:49:49,100 could I get telephone company logs? 790 00:49:49,540 --> 00:49:51,660 The answer is yes, I could anyway. 791 00:49:53,200 --> 00:49:55,360 But you have to, when you write a subpoena, 792 00:49:55,420 --> 00:49:57,380 and your lawyer will know how to do this, 793 00:49:57,460 --> 00:49:59,160 you have to write it very specifically. 794 00:49:59,420 --> 00:50:01,160 Not as specifically as a warrant. 795 00:50:01,340 --> 00:50:02,800 You've got some breadth there. 796 00:50:02,980 --> 00:50:04,980 The reason you write a subpoena specifically 797 00:50:04,980 --> 00:50:08,060 is to make sure that you get what you really want. 798 00:50:16,840 --> 00:50:19,080 No, in this particular case, 799 00:50:19,340 --> 00:50:21,520 in this particular case, the ISP, 800 00:50:21,540 --> 00:50:24,020 and this would be different from ISP to ISP 801 00:50:24,020 --> 00:50:26,440 and from dial-in to dial-in, 802 00:50:26,500 --> 00:50:27,920 but in this particular case, 803 00:50:28,140 --> 00:50:32,880 the IP address is dynamically assigned to the port 804 00:50:32,880 --> 00:50:35,380 and it was logged port and IP address 805 00:50:35,380 --> 00:50:37,880 so we knew which port it was 806 00:50:37,880 --> 00:50:39,340 and we didn't have to do all that. 807 00:50:39,540 --> 00:50:40,900 Okay, there's a question over here. 808 00:50:41,380 --> 00:50:45,180 How often, in real cases that you've worked in, 809 00:50:45,260 --> 00:50:46,540 you encounter a problem, 810 00:50:46,640 --> 00:50:49,960 you go all the way back to get into the account 811 00:50:49,960 --> 00:50:51,700 of who was affected at the time 812 00:50:51,700 --> 00:50:57,120 and you discover that it's an American online user 813 00:50:57,700 --> 00:51:00,700 that basically used somebody else's account 814 00:51:00,700 --> 00:51:03,980 via, you know, like, you know, all the tricks they use. 815 00:51:04,220 --> 00:51:05,880 It happens. It happens. 816 00:51:05,880 --> 00:51:09,360 And in that particular case, 817 00:51:09,400 --> 00:51:12,900 the only way you win is to have enough information 818 00:51:12,900 --> 00:51:15,180 that you can begin to start correlating things 819 00:51:15,180 --> 00:51:16,740 and start working through the maze. 820 00:51:17,040 --> 00:51:19,640 But in the case of America Online, 821 00:51:20,300 --> 00:51:22,060 the maze is so big 822 00:51:22,060 --> 00:51:25,400 and there's so much stuff going on 823 00:51:25,400 --> 00:51:28,960 that it becomes almost impossible to get enough 824 00:51:28,960 --> 00:51:30,920 because where you really have to go from here 825 00:51:30,920 --> 00:51:32,480 is to the telephone company. 826 00:51:32,600 --> 00:51:34,620 That's really the next step back 827 00:51:34,620 --> 00:51:37,820 and find out what the dial-in was. 828 00:51:38,180 --> 00:51:40,740 And that can be a massive problem. 829 00:51:41,680 --> 00:51:42,540 Massive problem. 830 00:51:43,120 --> 00:51:45,160 Okay, yeah, there's one back here. 831 00:51:45,220 --> 00:51:47,080 This is the last one for just a second. 832 00:51:47,260 --> 00:51:48,160 We will not finish. 833 00:51:51,340 --> 00:51:52,040 I'm sorry? 834 00:51:56,200 --> 00:51:57,840 Oh, okay, I'm sorry. 835 00:51:57,880 --> 00:51:58,660 I was having trouble hearing. 836 00:51:58,860 --> 00:52:03,920 The question is if it was a publicly accessible port 837 00:52:03,920 --> 00:52:06,520 such as a cyber cafe or something like that. 838 00:52:08,040 --> 00:52:10,320 Well, all I can say is that you're going to need 839 00:52:10,320 --> 00:52:11,800 some good old-fashioned cop work. 840 00:52:12,460 --> 00:52:15,120 It won't have anything to do with forensics. 841 00:52:15,440 --> 00:52:18,920 There's going to be just standard police investigation 842 00:52:18,920 --> 00:52:21,300 questioning people who was there at the time, 843 00:52:21,440 --> 00:52:22,560 that kind of thing, 844 00:52:23,480 --> 00:52:26,340 because the forensics isn't going to do a bit of good for you there. 845 00:52:26,580 --> 00:52:30,480 The toughest thing to do is to put a human at the machine. 846 00:52:30,540 --> 00:52:32,200 We can trace back to the machine, 847 00:52:32,280 --> 00:52:33,840 but putting a human at the machine 848 00:52:33,920 --> 00:52:36,920 and identifying that human is the hardest thing to do. 849 00:52:37,540 --> 00:52:37,880 Okay. 850 00:52:38,460 --> 00:52:39,980 Evidence collection and preservation. 851 00:52:40,480 --> 00:52:41,640 Forensic computer evidence. 852 00:52:41,720 --> 00:52:44,920 We create physical images using a product called SafeBack. 853 00:52:45,160 --> 00:52:46,080 There are others. 854 00:52:46,140 --> 00:52:47,580 I happen to like SafeBack. 855 00:52:48,080 --> 00:52:49,820 It makes a physical image. 856 00:52:50,060 --> 00:52:51,420 That is the evidence. 857 00:52:51,920 --> 00:52:54,200 Everything else that you do with that is a lead. 858 00:52:55,140 --> 00:52:58,480 So protect the evidence, the entire physical backup. 859 00:52:59,020 --> 00:53:00,640 Never work on the image. 860 00:53:00,800 --> 00:53:01,840 Make a second copy. 861 00:53:02,780 --> 00:53:03,900 Forensic computer evidence. 862 00:53:03,920 --> 00:53:04,320 Data analysis. 863 00:53:04,540 --> 00:53:06,200 I use stuff from NTI, 864 00:53:06,440 --> 00:53:08,000 New Technologies Incorporated, 865 00:53:08,060 --> 00:53:08,800 but there are others. 866 00:53:09,100 --> 00:53:12,220 And that does DOS and Windows 95 and 98. 867 00:53:12,600 --> 00:53:15,920 There's some new stuff and it's free from NT Objectives 868 00:53:16,500 --> 00:53:18,960 that will help you do stuff with NT, 869 00:53:19,620 --> 00:53:20,760 which is pretty good. 870 00:53:21,080 --> 00:53:22,680 Never work on the evidence 871 00:53:22,680 --> 00:53:24,520 and always ensure a chain of custody. 872 00:53:24,600 --> 00:53:26,860 And chain of custody means that you can account 873 00:53:26,860 --> 00:53:28,420 of your own knowledge 874 00:53:28,420 --> 00:53:31,580 for everybody who has handled that evidence 875 00:53:31,580 --> 00:53:32,720 since you collected it. 876 00:53:34,180 --> 00:53:34,720 Okay? 877 00:53:35,020 --> 00:53:36,760 Now what can we do with forensics? 878 00:53:36,860 --> 00:53:38,360 We can identify email addresses, 879 00:53:38,720 --> 00:53:40,560 URLs, graphic and zip files. 880 00:53:40,960 --> 00:53:43,800 We can search for keywords even in erased files. 881 00:53:44,040 --> 00:53:45,360 We can recover deleted logs. 882 00:53:45,600 --> 00:53:48,140 We can trace chain of events within computers, 883 00:53:48,320 --> 00:53:49,320 devices, or networks. 884 00:53:49,860 --> 00:53:51,820 And we can locate masqueraders. 885 00:53:51,900 --> 00:53:54,200 We can't necessarily identify them, 886 00:53:54,280 --> 00:53:55,740 but we can locate them. 887 00:53:57,000 --> 00:53:59,740 Remember, every action on a network or in a computer 888 00:53:59,740 --> 00:54:00,940 leaves a fingerprint. 889 00:54:01,160 --> 00:54:01,700 It's there. 890 00:54:02,560 --> 00:54:03,820 It may be real. 891 00:54:03,820 --> 00:54:04,880 It may be real hard to find, 892 00:54:05,000 --> 00:54:05,840 but it's there. 893 00:54:08,840 --> 00:54:09,820 I can try. 894 00:54:15,500 --> 00:54:16,180 Come on. 895 00:54:23,360 --> 00:54:24,860 Well, we're not... 896 00:54:27,720 --> 00:54:28,840 I'm afraid we're... 897 00:54:28,840 --> 00:54:29,420 There we go. 898 00:54:30,320 --> 00:54:31,400 That's the one you want? 899 00:54:32,060 --> 00:54:32,580 Okay. 900 00:54:36,900 --> 00:54:39,180 I hate it when a computer's smarter than I am. 901 00:54:40,060 --> 00:54:41,100 Happens all the time. 902 00:54:41,560 --> 00:54:42,780 May I proceed? 903 00:54:47,380 --> 00:54:47,860 Okay. 904 00:54:52,920 --> 00:54:56,240 The places we look for are Slack space, 905 00:54:56,480 --> 00:54:58,700 which is the unused portion of a cluster 906 00:54:58,700 --> 00:55:00,100 after the end of file marker. 907 00:55:01,580 --> 00:55:02,880 Mostly in DOS. 908 00:55:02,880 --> 00:55:05,760 But some Intel-based Unixes, 909 00:55:05,760 --> 00:55:09,600 like Linux and FreeBSD, 910 00:55:09,820 --> 00:55:11,820 we get something similar to this. 911 00:55:12,100 --> 00:55:15,320 An allocated space is the space where nothing is 912 00:55:15,320 --> 00:55:16,980 or where erased files are. 913 00:55:18,600 --> 00:55:21,020 Swap files, Windows swap files, 914 00:55:21,360 --> 00:55:22,560 they hold treasures. 915 00:55:22,880 --> 00:55:24,280 And cache files. 916 00:55:25,360 --> 00:55:27,180 Especially Internet cache files. 917 00:55:27,360 --> 00:55:29,200 We can often find passwords 918 00:55:29,200 --> 00:55:31,060 and all sorts of other stuff in there. 919 00:55:31,900 --> 00:55:35,080 But you have to do it from the physical backup. 920 00:55:35,600 --> 00:55:36,940 No other way to do it. 921 00:55:38,360 --> 00:55:38,920 Okay? 922 00:55:38,940 --> 00:55:39,840 Logical backups, 923 00:55:40,120 --> 00:55:41,360 they're the ones for you 924 00:55:41,360 --> 00:55:42,880 that you normally do every night 925 00:55:42,880 --> 00:55:43,740 before you go home. 926 00:55:43,780 --> 00:55:44,720 Everybody backs up. 927 00:55:45,960 --> 00:55:47,460 Based upon the FAT 928 00:55:47,460 --> 00:55:49,080 or whatever file system is reporting. 929 00:55:49,540 --> 00:55:51,360 It's not the real file space, 930 00:55:51,540 --> 00:55:52,540 it's just the file. 931 00:55:53,300 --> 00:55:54,780 The file space includes 932 00:55:55,560 --> 00:55:57,280 the attached Slack space. 933 00:55:57,940 --> 00:55:59,580 And that's a physical thing. 934 00:55:59,580 --> 00:56:01,120 It's clusters. 935 00:56:01,980 --> 00:56:02,500 Okay? 936 00:56:03,220 --> 00:56:04,300 Physical is 937 00:56:04,900 --> 00:56:06,580 bitstream backup or mirror. 938 00:56:07,180 --> 00:56:09,740 A mirror is when you take the bitstream backup 939 00:56:09,740 --> 00:56:12,960 and you do a restore to a hard disk. 940 00:56:13,900 --> 00:56:16,600 And it contains everything that was on the source 941 00:56:16,600 --> 00:56:17,480 even if it's nothing. 942 00:56:17,600 --> 00:56:19,280 That means it actually contains 943 00:56:19,280 --> 00:56:20,960 the empty sectors. 944 00:56:23,220 --> 00:56:24,940 That's critical in the investigation. 945 00:56:25,440 --> 00:56:27,120 All those things I said we could get, 946 00:56:27,260 --> 00:56:29,340 we gotta do this or we don't. 947 00:56:31,480 --> 00:56:32,040 Okay? 948 00:56:32,800 --> 00:56:35,260 So physical backups for DOS and Windows. 949 00:56:36,140 --> 00:56:38,380 What we do is we pull the plug. 950 00:56:38,520 --> 00:56:39,680 And the reason we pull the plug 951 00:56:39,680 --> 00:56:42,920 is because we don't wanna collapse any files. 952 00:56:43,440 --> 00:56:44,980 We want them to stay there. 953 00:56:45,100 --> 00:56:48,180 Also, Windows creates and deletes 954 00:56:48,780 --> 00:56:51,400 dozens of files during the boot process 955 00:56:51,400 --> 00:56:52,960 and during the shutdown process. 956 00:56:53,400 --> 00:56:55,800 So we want to ensure 957 00:56:56,520 --> 00:56:59,500 that we don't contribute 958 00:56:59,500 --> 00:56:59,560 to any kind of trouble. 959 00:56:59,580 --> 00:57:06,200 to the evidence. And then we're going to reboot using a DOS disk with a backup on it. Okay, quickly. 960 00:57:09,360 --> 00:57:17,040 I'm going to get to Unix. It's two slides forward. Okay, take the backup for evidence. Take the second one as a work copy. 961 00:57:17,140 --> 00:57:23,560 Restore it to a lab computer. Now we have a mirror and we can go and analyze that mirror and preserve our evidence. 962 00:57:25,600 --> 00:57:35,420 For NT, we do the same thing. But after we build the mirror, we reboot it with DOS and NTFS DOS. Wonderful tool. 963 00:57:35,740 --> 00:57:45,680 Let's just look at the NTFS file system as if it were a DOS system. And then we can get the SAM so that we can go take a look at passwords. 964 00:57:46,140 --> 00:57:53,380 We can analyze other files in there using DOS tools. And we can use a tool. 965 00:57:53,560 --> 00:57:57,160 This is a tool called NTlast, which is one of the tools from NT Objectives. 966 00:58:02,780 --> 00:58:07,900 Now, Intel Unixes. Intel Unixes we treat pretty much like DOS. 967 00:58:12,020 --> 00:58:19,760 Once we have got a mirror of the Unix though, what's going to happen is it isn't going to boot. 968 00:58:20,300 --> 00:58:22,220 The mirror usually won't boot. 969 00:58:22,440 --> 00:58:23,500 So we mounted it. 970 00:58:23,560 --> 00:58:24,340 We stick it as a second volume. 971 00:58:25,580 --> 00:58:35,360 So if we've got a Linux disk that we're working on, we stick it as a second volume on a Linux machine, boot the machine, go in and work on that disk. 972 00:58:35,760 --> 00:58:42,140 We can also use the DOS tools to analyze the bit stream, the backup, not the mirror, but the backup. 973 00:58:42,780 --> 00:58:43,300 Yes. 974 00:58:49,180 --> 00:58:51,560 Yes it does because it's a physical backup. 975 00:58:51,680 --> 00:58:52,980 It doesn't care what's on there. 976 00:58:52,980 --> 00:58:54,900 It's just copying sector by sector. 977 00:58:55,640 --> 00:58:56,620 Good question. 978 00:58:57,540 --> 00:58:59,600 Okay, we've got another question here. 979 00:58:59,880 --> 00:59:01,760 Have you been ignoring cryptographic file systems? 980 00:59:02,700 --> 00:59:03,440 Oh, yes. 981 00:59:04,460 --> 00:59:05,020 Yes. 982 00:59:06,060 --> 00:59:08,880 It's a wonder that I'm not bald from tearing my hair out. 983 00:59:09,600 --> 00:59:14,060 Cryptographic file systems and certain types of compression just ruin this whole thing. 984 00:59:16,720 --> 00:59:17,900 Quickly, yes. 985 00:59:20,840 --> 00:59:22,020 Yes, it does. 986 00:59:22,160 --> 00:59:22,380 Yes, it does. 987 00:59:22,400 --> 00:59:22,960 Yes, it does. 988 00:59:22,960 --> 00:59:28,700 SIDEX's product, it's one of the real, he said the sector translation have anything, have any effect. 989 00:59:28,820 --> 00:59:33,260 And what he's talking about is the difference in disk geometry between the source and destination. 990 00:59:33,660 --> 00:59:34,380 I assume. 991 00:59:35,000 --> 00:59:36,080 That's what you're talking about. 992 00:59:39,600 --> 00:59:40,760 Yes, yes, yes, yes. 993 00:59:41,600 --> 00:59:46,520 In general, in general, and this is a general statement, there are exceptions. 994 00:59:47,840 --> 00:59:52,340 Some of the remappers, some of the compressors, some of the things that change the interleave. 995 00:59:53,460 --> 00:59:55,040 This doesn't work right with. 996 00:59:55,280 --> 01:00:02,180 But generally speaking, the SIDEX product will try to adjust the geometry between the source and destination when it does the restore. 997 01:00:02,880 --> 01:00:09,040 It also gives you some ways of doing it directly and ignoring all of that and just moving the sectors. 998 01:00:10,980 --> 01:00:12,040 It's not perfect. 999 01:00:12,200 --> 01:00:12,840 None of it is. 1000 01:00:13,260 --> 01:00:13,820 . 1001 01:00:18,120 --> 01:00:22,200 Well, as long as we're not doing anything to the evidence and we're only, yes. 1002 01:00:22,200 --> 01:00:22,360 Yeah. 1003 01:00:22,540 --> 01:00:23,320 That's right. 1004 01:00:23,520 --> 01:00:24,020 It's read only. 1005 01:00:24,320 --> 01:00:24,840 All right. 1006 01:00:24,880 --> 01:00:27,980 So non-Intel Unix is like Solaris. 1007 01:00:28,820 --> 01:00:31,900 We remove the disk, place it in an Intel computer. 1008 01:00:32,140 --> 01:00:37,480 Be careful because we don't want to contribute to the evidence. 1009 01:00:38,320 --> 01:00:41,180 Boot it with a floppy, a DOS floppy. 1010 01:00:41,980 --> 01:00:47,880 Remember, we're taking a physical image, so it doesn't matter that the file system isn't even slightly compatible. 1011 01:00:48,740 --> 01:00:49,980 Take your image. 1012 01:00:50,680 --> 01:00:52,360 And we create the mirror. 1013 01:00:52,500 --> 01:00:55,940 Mount the mirror as a second volume in another Solaris computer. 1014 01:00:56,320 --> 01:00:57,700 And go to work on it. 1015 01:00:58,420 --> 01:00:58,980 Yes. 1016 01:00:59,540 --> 01:01:00,100 . 1017 01:01:00,840 --> 01:01:01,860 Oh, yes. 1018 01:01:01,920 --> 01:01:02,380 Raids. 1019 01:01:07,040 --> 01:01:08,340 Those are eight disks. 1020 01:01:09,120 --> 01:01:10,120 We pop them. 1021 01:01:10,360 --> 01:01:11,980 And we do them like this. 1022 01:01:12,280 --> 01:01:13,540 And birthdays pass. 1023 01:01:17,880 --> 01:01:18,960 There's no other way. 1024 01:01:18,960 --> 01:01:22,760 So an eight-disk RAID would be a blessing from heaven. 1025 01:01:23,580 --> 01:01:24,320 Trust me. 1026 01:01:24,660 --> 01:01:31,140 When I walk in and I see a cabinet with about 40 in it, generally speaking, I raise my rates. 1027 01:01:34,920 --> 01:01:35,360 Okay. 1028 01:01:35,740 --> 01:01:37,240 Authenticating electronic evidence. 1029 01:01:37,760 --> 01:01:42,940 This is a problem because you've got to be able to show at the time that it's used in court that it hasn't changed. 1030 01:01:43,300 --> 01:01:47,200 We fingerprint it with a product from NTI called CRC-MD5. 1031 01:01:47,200 --> 01:01:53,500 It does a 32-bit CRC check on every file plus an MD5 message digest hash. 1032 01:01:54,000 --> 01:02:02,000 And you're not going to change that file in any way, shape, or form without it showing up one or the other or both of those places. 1033 01:02:02,660 --> 01:02:03,160 Okay. 1034 01:02:03,300 --> 01:02:04,600 Then we encrypt it. 1035 01:02:06,420 --> 01:02:10,020 And we don't tell the password to anybody, you know. 1036 01:02:10,060 --> 01:02:11,160 We keep the key to ourselves. 1037 01:02:11,280 --> 01:02:14,640 And we use a nice, meaty encryption algorithm. 1038 01:02:14,780 --> 01:02:16,860 We use 256-bit Blowfish. 1039 01:02:18,620 --> 01:02:22,420 I'm sure there are those of you who can crack that, but not within the useful life of the file. 1040 01:02:25,460 --> 01:02:28,420 And that's the same as signing and sealing physical evidence. 1041 01:02:28,860 --> 01:02:30,620 Maintain a formal chain of custody. 1042 01:02:31,580 --> 01:02:32,020 Okay. 1043 01:02:33,160 --> 01:02:36,100 Remember I told you we can get stuff out of routers? 1044 01:02:37,200 --> 01:02:38,260 This is one way. 1045 01:02:39,160 --> 01:02:43,820 We can use a tool such as ODS's secure detector, and it can find all those things. 1046 01:02:45,560 --> 01:02:46,440 Uses RMON2. 1047 01:02:46,440 --> 01:02:47,580 And queries the cache. 1048 01:02:49,760 --> 01:02:52,800 I'm moving fast here because we're running out of time. 1049 01:02:54,140 --> 01:02:58,520 CMDS is the computer misuse detection system. 1050 01:02:59,520 --> 01:03:02,440 And what we do is we feed it logs. 1051 01:03:03,280 --> 01:03:05,140 It's got to be at least 30 days. 1052 01:03:05,340 --> 01:03:06,240 The more the better. 1053 01:03:06,600 --> 01:03:11,680 And what it does is it looks for changes in usage patterns of users. 1054 01:03:11,820 --> 01:03:15,560 And what that does for us is help us to determine if perhaps somebody's masqueraded. 1055 01:03:15,560 --> 01:03:18,860 And come in as a legitimate user. 1056 01:03:19,000 --> 01:03:21,920 Their usage patterns will differ markedly. 1057 01:03:22,540 --> 01:03:29,200 Or if we have a normal, legitimate user who's gone rogue on us and is going into places they've never gone before, it'll show up. 1058 01:03:29,700 --> 01:03:31,060 This is a neat program. 1059 01:03:31,440 --> 01:03:33,420 It's available also from ODS networks. 1060 01:03:34,020 --> 01:03:35,060 Costs a lot of money. 1061 01:03:36,920 --> 01:03:37,680 I'm done. 1062 01:03:39,440 --> 01:03:40,000 Questions? 1063 01:03:42,520 --> 01:03:43,340 Thank you. 1064 01:03:45,120 --> 01:03:46,280 I'm also out of breath. 1065 01:03:46,880 --> 01:03:48,460 I'll hang out and answer questions. 1066 01:03:48,560 --> 01:03:48,880 Yes?