1 00:00:00,000 --> 00:00:06,880 So why Collaborate? It started out because I couldn't spell, and I thought that's pretty 2 00:00:06,880 --> 00:00:12,360 cool. There's this E-R in Collaborate, and if I turn that around, that's R-E, and R-E's 3 00:00:12,360 --> 00:00:21,560 fun. And then Tim reminded me that it's Collaborate, O-R, and so now we're stuck with it, and that's 4 00:00:21,560 --> 00:00:29,100 the historical reasons for the bad name. But the goal is, it's basically very much inspired 5 00:00:29,100 --> 00:00:35,600 by Pedro Mamini's IdaSync tool, if anybody's ever heard of it and or tried to use it, and 6 00:00:36,720 --> 00:00:43,020 founded on the fact that reverse engineering binaries can be a very complex, time-consuming 7 00:00:43,020 --> 00:00:50,020 task, and working in large groups, it's nice to get a lot of eyes on the same binary and 8 00:00:50,020 --> 00:00:55,220 share the information that people are deriving as they work their way through the binary. 9 00:00:55,420 --> 00:00:58,740 In the past, prior to IdaSync, that was... 10 00:00:58,740 --> 00:01:03,600 Basically, you could either share databases in a serial fashion, I do some work, I give 11 00:01:03,600 --> 00:01:08,980 it to you, you do some work, things quickly diverge and we can get together with our laptops 12 00:01:08,980 --> 00:01:13,740 next to one another and bring comments over or devise interesting ways to export portions 13 00:01:13,740 --> 00:01:20,580 of the database using various scripting techniques. But Pedram took a great step forward when 14 00:01:20,580 --> 00:01:26,060 he came up with the notion of, well, let's build a server, let's see if we can't hack 15 00:01:26,060 --> 00:01:28,720 some asynchronous networking code into Ida via DL. 16 00:01:28,740 --> 00:01:34,960 It's plug-in architecture, and let's push some of the commands and the updates that 17 00:01:34,960 --> 00:01:39,060 people are making in the database out to that server where they can be cached and shared 18 00:01:39,590 --> 00:01:44,260 among several reverse engineers working on the same binary. 19 00:01:46,000 --> 00:01:52,860 Another problem that we were interested in overcoming was the fact that we deal with 20 00:01:52,860 --> 00:01:58,120 people using various different versions of Ida, so it becomes much more difficult to 21 00:01:58,120 --> 00:01:58,600 share databases. 22 00:01:58,740 --> 00:02:05,300 In that case, I have many starving students working for me who are very much tied to and 23 00:02:05,300 --> 00:02:10,440 appreciative of the freeware version of Ida, and that is not always capable of opening 24 00:02:10,440 --> 00:02:13,980 all databases. Newer versions of Ida have a database format 25 00:02:13,980 --> 00:02:19,700 that's not backwards compatible, so anything I create I can't just push out to share with 26 00:02:19,700 --> 00:02:25,880 my students. As we went along the way, we considered ways 27 00:02:25,880 --> 00:02:27,420 that we'd like to improve on IdaSync. 28 00:02:28,300 --> 00:02:35,780 Basically, it's a ground-up implementation of IdaSync-like ideas that doesn't borrow 29 00:02:35,780 --> 00:02:45,120 an IdaSync code too much. The overall goals of the project are to provide 30 00:02:45,120 --> 00:02:49,060 a way to capture state changes that people make to their databases. 31 00:02:50,560 --> 00:02:55,500 It's not to bring everybody onto one machine working on one database, so the state changes 32 00:02:55,500 --> 00:02:57,400 are captured in DL. 33 00:02:57,400 --> 00:03:02,860 We're typically built in one version of our server in a SQL database stored according 34 00:03:02,860 --> 00:03:07,720 to project that you happen to be working on, which is very much tied to the input file 35 00:03:08,420 --> 00:03:16,640 via MD5 sum matching. These updates are tagged based on user login credentials, so we can 36 00:03:16,640 --> 00:03:18,360 track updates to users. 37 00:03:19,340 --> 00:03:24,960 Then anybody else who joins the project can automatically receive all the updates that 38 00:03:24,960 --> 00:03:26,360 have been made. This way, they don't have to worry too much about having all the same 39 00:03:26,360 --> 00:03:27,380 updates. They can come in and just share the information, bring their data back to their 40 00:03:27,380 --> 00:03:34,400 database, very much a separate database, into a state that nearly mirrors, hopefully fully 41 00:03:34,400 --> 00:03:41,260 mirrors, the state of the original database or all of the databases that are sharing on 42 00:03:41,260 --> 00:03:46,080 the project. We wanted to be able to allow people to migrate 43 00:03:46,520 --> 00:03:52,900 in and out of the project at will and not be tied to one mass reversing session. 44 00:03:53,080 --> 00:03:54,760 Let's descend on a table. Let's all jack in. 45 00:03:54,760 --> 00:03:59,560 Let's fire up the server, share, share, share, ready, ready, break, and then everybody goes 46 00:03:59,560 --> 00:04:05,840 and has their databases diverge wildly in format. Again, the idea is you can walk away, 47 00:04:05,900 --> 00:04:11,840 come back, and get everything you missed. You can join in 10 days, 10 weeks, 10 months 48 00:04:11,840 --> 00:04:16,600 later and pick up all the changes that have made since the creation of the initial project. 49 00:04:18,460 --> 00:04:24,740 We also figured there are many times in reversing where you're working your way through the 50 00:04:24,740 --> 00:04:25,800 domain and you're running your way down a path in a binary. 51 00:04:25,960 --> 00:04:34,480 Maybe you need to manipulate the binary in some way, transform it somehow and that makes 52 00:04:34,480 --> 00:04:41,080 you pause and wonder, well, I could really screw this up, so I may like a way to either 53 00:04:41,080 --> 00:04:43,580 back out of my changes to have some sort of save point. 54 00:04:44,200 --> 00:04:50,660 The idea here was that we wanted to leverage the capabilities of the Collaborate Server 55 00:04:50,660 --> 00:04:54,720 to take a step towards save-pointing, to become active. 56 00:04:54,740 --> 00:04:59,920 checkpointing projects. The idea with a simple checkpoint is just 57 00:04:59,920 --> 00:05:03,980 a bookmark into the current database that we're maintaining of changes. 58 00:05:04,260 --> 00:05:11,040 You can come back, discard all your previous changes, connect to a project, and accept 59 00:05:11,040 --> 00:05:17,920 databases up to your last save point. While it's not a rollback, it's a replay 60 00:05:17,920 --> 00:05:20,660 to current state. Right now, we don't have a way to capture 61 00:05:20,660 --> 00:05:25,740 a sufficient amount of information to do true undo capability, but we hope that at some 62 00:05:25,740 --> 00:05:32,380 point as the IDA API evolves in the SDK that we can capture more state information and 63 00:05:32,380 --> 00:05:37,480 be able to do kind of incremental undoes, leveraging the information that's been stored 64 00:05:37,480 --> 00:05:42,200 on the server. Along with the checkpoint notion was, well, 65 00:05:42,980 --> 00:05:48,020 how about forking a project? You decide you'd like to go down two different 66 00:05:48,020 --> 00:05:48,700 paths perhaps. 67 00:05:50,800 --> 00:05:56,960 We wanted the capability to just have a group go off and work on one path, creating an entirely 68 00:05:56,960 --> 00:06:01,040 separate project while some may choose to stay in an original project. 69 00:06:01,260 --> 00:06:05,200 There's a forking capability which actually creates an entirely separate project that 70 00:06:05,200 --> 00:06:08,800 are parallel to a point but then are allowed to diverge down different paths. 71 00:06:09,080 --> 00:06:12,900 You could come in and rejoin up to any of the fork points, follow any of the fork points, 72 00:06:12,980 --> 00:06:20,440 and so on. The basic idea to get this implemented, first 73 00:06:20,660 --> 00:06:25,780 of all, if you're not familiar with IDA Sync, the way they chose to implement that was to 74 00:06:25,780 --> 00:06:32,980 add a variety of hotkeys via IDA's plugin architecture, and the hotkeys would be additional 75 00:06:33,900 --> 00:06:40,720 ways to perform some IDA actions. For example, a new hotkey sequence was added 76 00:06:40,720 --> 00:06:46,880 to add an IDA Sync specific style of comment. If you chose to insert an IDA Sync style comment, 77 00:06:47,080 --> 00:06:50,640 then the plugin would push that comment out to the server. 78 00:06:50,660 --> 00:06:56,320 But it was very much a notion of, I have extra hotkeys to learn now, and I have to remember 79 00:06:56,320 --> 00:06:59,200 to use those hotkeys in order to share my changes. 80 00:06:59,500 --> 00:07:02,720 So if I insert a normal comment, then everybody doesn't see it. 81 00:07:02,820 --> 00:07:06,940 I have to remember, oh, people are complaining I don't see it, so yeah, okay, IDA Sync comment, 82 00:07:07,160 --> 00:07:12,580 alternate hotkey sequence, and away it goes. You're limited in the number of actions that 83 00:07:12,580 --> 00:07:18,020 you could share based on the number of implemented hotkey sequences and associated actions. 84 00:07:20,820 --> 00:07:26,360 And the installation was somewhat more complex because it required you to come in and tailor 85 00:07:26,360 --> 00:07:31,860 your IDA plugin's configuration file to actually map all the new hotkey sequences into the 86 00:07:31,860 --> 00:07:39,180 IDA Sync plugin. We actually looked on with a great desire 87 00:07:39,180 --> 00:07:44,380 of using their networking code, and as we started using some of their networking code, 88 00:07:44,460 --> 00:07:49,900 we realized that the number of changes that we were pushing far outstripped the capability 89 00:07:49,900 --> 00:07:56,540 of that bit of networking code. So we basically rewrote the asynchronous networking piece 90 00:07:56,540 --> 00:08:01,920 from scratch, and I think we've come up with a pretty robust solution that is easily stripped 91 00:08:01,920 --> 00:08:08,220 out of IDA Sync, or I think, Collaborate. I did not rip it out of IDA Sync entirely. 92 00:08:09,160 --> 00:08:13,280 Easily stripped out of Collaborate and taken into any other project that you may wish to 93 00:08:13,280 --> 00:08:18,340 do asynchronous communications with. Users unfamiliar with IDA may not know that IDA's 94 00:08:18,340 --> 00:08:19,380 pretty much single-threaded. 95 00:08:20,200 --> 00:08:26,560 You don't start separate threads of execution in IDA because IDA performs no locking mechanisms 96 00:08:26,560 --> 00:08:32,480 around its internal database accesses. And because it's single-threaded, in addition 97 00:08:32,480 --> 00:08:37,360 to a locking problem, you don't want to perform any blocking operations in your plugins, otherwise 98 00:08:37,360 --> 00:08:42,780 IDA just kind of sits and waits for stuff to happen until your plugin is completed and 99 00:08:42,780 --> 00:08:44,660 returned control back to IDA. 100 00:08:45,060 --> 00:08:49,300 So the asynchronous communications are pretty much essential if you just don't want to stare 101 00:08:49,300 --> 00:08:50,000 at a frozen screen. 102 00:08:50,980 --> 00:08:56,820 So our implementation, instead, leverages the capabilities of IDA's software development 103 00:08:56,820 --> 00:09:04,480 kit and the API architecture, which allows you to register your interest in various IDA 104 00:09:04,480 --> 00:09:11,620 events that are generated or fired off in response to user actions. So these events 105 00:09:11,620 --> 00:09:16,780 are triggered automatically in association with user actions such as adding comments, 106 00:09:16,880 --> 00:09:19,280 or renaming functions, or undefined actions. And that's what we've been working on. 107 00:09:19,300 --> 00:09:23,960 We've been re-defining bytes or re-formatting portions of the database. And this seemed 108 00:09:23,960 --> 00:09:28,220 like a much more natural way to capture what was going on as the database was manipulated 109 00:09:28,220 --> 00:09:29,040 by the user. 110 00:09:29,860 --> 00:09:35,100 So we decided we would register for virtually everything, take the information that was 111 00:09:35,100 --> 00:09:40,080 forwarded to us with each notification, and push a sufficient amount of that information 112 00:09:40,080 --> 00:09:46,860 over to a server where users tied to the same project could receive them via the server's 113 00:09:46,860 --> 00:09:49,200 kind of mirroring publishing architecture. 114 00:09:51,240 --> 00:09:56,180 So that's how the server behaves, in fact. It just mirrors all received packets out to 115 00:09:56,180 --> 00:10:01,660 any connected users while caching packets, or datagrams as we call them, for anybody 116 00:10:01,660 --> 00:10:08,960 who may connect to the project in the future. Asynchronous comms, I guess I kind of get 117 00:10:08,960 --> 00:10:11,800 out of order, and that's the nature of my talks. I apologize. 118 00:10:12,760 --> 00:10:18,580 And so this pretty much summarizes stuff that I've already said. The limitations that we're 119 00:10:18,580 --> 00:10:19,180 dealing with are pretty much the same as we've been dealing with for a long time. We're 120 00:10:19,200 --> 00:10:25,840 primarily forced on us by the manner in which Ida, being a primarily GUI application on 121 00:10:25,840 --> 00:10:31,240 the Windows architecture, runs its Windows message processing loop. So we've basically 122 00:10:31,240 --> 00:10:36,800 got to get tied into that loop, and the way to do that in this case is through the use 123 00:10:36,800 --> 00:10:42,680 of Windows asynchronous sockets, which advertise various network events in the form of Windows 124 00:10:43,330 --> 00:10:45,080 messages received through the message queue. 125 00:10:48,680 --> 00:10:52,920 So some of the things that we dealt with as we developed this and worked our way through 126 00:10:52,920 --> 00:11:00,800 the Ida API were, and especially as we thought about the undo capability, there are no pre-notifications. 127 00:11:01,260 --> 00:11:05,780 Ida certainly knows it's about to rename an address, but it doesn't tell you that it's 128 00:11:05,780 --> 00:11:10,380 about to rename an address. You are notified only that the address has been renamed. So 129 00:11:10,380 --> 00:11:15,060 if we had pre-notification events, we could capture the address, and then we would have 130 00:11:15,060 --> 00:11:19,800 the current name of an address, and capture the new name of an address, and then we would 131 00:11:19,800 --> 00:11:23,820 actually be capturing sufficient information to start providing a rollback capability. 132 00:11:24,640 --> 00:11:32,200 Since we're notified after the fact of all changes, it's very difficult to know exactly 133 00:11:32,200 --> 00:11:37,680 what we would rollback to. We've thought about some techniques for leveraging a second 134 00:11:37,680 --> 00:11:45,040 kind of dummy copy of Ida on a given project, and that copy of Ida would generally be a 135 00:11:45,060 --> 00:11:47,500 copy of Ida. It would generate no updates, because there's no user associated with it, 136 00:11:47,620 --> 00:11:54,100 but receiving all updates would choose to capture its current state prior to applying 137 00:11:54,100 --> 00:11:59,100 an update, and we could use that copy of Ida to generate a sufficient amount of information 138 00:11:59,100 --> 00:12:01,300 to provide for some sort of rollback capability. 139 00:12:04,820 --> 00:12:09,500 So again, in addition to that limitation, we ran across the occasional bug here and 140 00:12:09,500 --> 00:12:13,660 there, and the occasional missing feature here and there, and received, and I can't 141 00:12:13,660 --> 00:12:15,040 thank them enough, a copy of Ida. So that's one of the things that we're trying to do. 142 00:12:15,040 --> 00:12:19,600 Tremendous support from ILFAC. For those who've ever dealt with Ida support, 143 00:12:20,180 --> 00:12:25,000 it's a pretty instantaneous turnaround on the most reasonable requests. 144 00:12:25,360 --> 00:12:29,640 So we actually made changes to the API and fixed some bugs in near instantaneous time, 145 00:12:29,760 --> 00:12:34,160 which allowed us to make continued forward progress on the project. 146 00:12:36,900 --> 00:12:40,880 So the user interface to this thing is, we tried to keep it pretty slim. We didn't want 147 00:12:40,880 --> 00:12:43,800 to keep popping dialog boxes all the time, because that's clearly pretty annoying. 148 00:12:45,960 --> 00:12:52,300 So we just went ahead and built our own dialog boxes outside of Ida, even though Ida provides 149 00:12:52,300 --> 00:13:00,960 some limited capability of building basically format string-based GUI components. We didn't 150 00:13:00,960 --> 00:13:05,080 have quite the flexibility we wanted, so we used custom Windows dialog boxes. If you've 151 00:13:05,080 --> 00:13:10,220 ever considered doing that in Ida plug-ins and not done it, then perhaps this code will 152 00:13:10,220 --> 00:13:13,880 serve as an example to help you customize your plug-ins in that direction. 153 00:13:16,840 --> 00:13:22,280 The biggest reason that drove us to that was Ida's text fields don't offer password hiding. 154 00:13:22,680 --> 00:13:27,460 So for that reason alone, we wanted to use native Windows controls and be able to obscure 155 00:13:27,460 --> 00:13:37,940 passwords as they were being entered. This kind of sums up a lot of the stuff that 156 00:13:37,940 --> 00:13:44,800 we just came to our minds as we were developing the plug-in. As we started caching these things 157 00:13:44,800 --> 00:13:49,560 on a database, every update is tied to both a project and a user, and then it occurred 158 00:13:49,560 --> 00:13:56,620 to us that maybe we wanted to be able to manage these databases somehow, which is in interesting 159 00:13:56,620 --> 00:14:01,340 ways, since we can now turn this into a sequel kind of manipulation problem, with all the 160 00:14:01,340 --> 00:14:05,120 changes that are sitting there stored on the server. Project forking was one of the 161 00:14:05,120 --> 00:14:08,540 early things that came up. Checkpoints said, hey that's pretty cool, we can just add a 162 00:14:08,540 --> 00:14:14,460 table and point at the last update, give it a pseudo name, and have a very lightweight 163 00:14:14,460 --> 00:14:14,780 project. We've kind of redid that to normal 164 00:14:14,800 --> 00:14:23,860 project, if you will. We are very interested in, in fact, it's just about off the table, 165 00:14:25,500 --> 00:14:30,120 looking at migrating projects from one server to another as a quick SQL dump, export from 166 00:14:30,120 --> 00:14:35,140 one server, import to another server. So we've tried to build in the mechanisms to allow 167 00:14:35,140 --> 00:14:39,600 you to do that and de-conflict your projects from one server to another and leave them 168 00:14:39,600 --> 00:14:45,900 with some sort of global identification capability across various servers. That way, again, instead 169 00:14:45,900 --> 00:14:51,260 of shipping your databases and worrying about what versions of IDA folks may have or may 170 00:14:51,260 --> 00:14:56,440 not have, you can say, well, fire up Collaborate, do a project dump, capture all the changes 171 00:14:56,440 --> 00:15:02,420 that you've already done and just join the project. Bring your version of 5.0 up to date 172 00:15:02,420 --> 00:15:09,580 with the stuff that we generated on 5.3 or what have you. One we keep kicking back and 173 00:15:09,600 --> 00:15:14,440 forth and we're just not sure where to go with this is the ability to work offline. 174 00:15:14,740 --> 00:15:20,540 Sort of, okay, I'm tied to a project and I'm going to be traveling and whatnot and away 175 00:15:20,540 --> 00:15:25,960 from the network connection for a while. Am I limited? Can I make any changes? Or do I 176 00:15:25,960 --> 00:15:31,200 really need to wait until I'm tied back to that server? So this was a tough one because 177 00:15:31,860 --> 00:15:38,020 we're not trying to be CVS. We're not trying to generate all kinds of conflict resolutions 178 00:15:38,020 --> 00:15:39,420 on merges and things like that. 179 00:15:39,420 --> 00:15:45,360 It's very much of a last update wins kind of thing. So if we're patching bytes on top 180 00:15:45,360 --> 00:15:51,060 of one another, whoever makes the last update kind of wins. For the time being, we're of 181 00:15:51,060 --> 00:15:54,900 the mind that if you're away from the project and not seeing updates that some folks are 182 00:15:54,900 --> 00:16:01,040 making, then you may not be influenced by their changes. They may not be influenced 183 00:16:01,040 --> 00:16:07,240 by your changes. So you don't get to make changes. Actually, you can make changes. Being 184 00:16:07,240 --> 00:16:09,400 joined to a project doesn't prevent you from just, you know, you're not going to be able 185 00:16:09,420 --> 00:16:11,680 to get changes. You're just disconnecting from the project and just going down your 186 00:16:11,680 --> 00:16:17,240 own path. You just probably don't want to rejoin the project because you've made a lot 187 00:16:17,240 --> 00:16:23,720 of changes that won't be shared. If you think you want to rejoin at some point, you can 188 00:16:23,720 --> 00:16:27,000 always set a save point before you walk away and then you'll be able to roll right back 189 00:16:27,000 --> 00:16:32,600 up to where everybody happens to be. But they won't get your changes at the present time. 190 00:16:34,100 --> 00:16:38,900 And then we thought about, well, I'm a teacher. I work with lots of students and I'd love 191 00:16:38,900 --> 00:16:44,020 to do this so I can kind of drive their IDA displays as I'm working my way through a database 192 00:16:44,020 --> 00:16:48,440 and say, we go down here and reformat code here. We'll throw in some comments here. And 193 00:16:48,440 --> 00:16:53,600 while I'm doing all this, please don't bork my database. Okay? So I really don't necessarily 194 00:16:53,600 --> 00:16:58,740 want them publishing changes out to me. So I want to make them perhaps read-only subscribers 195 00:16:58,740 --> 00:17:03,320 in this environment or prohibit them from making some of the more dangerous types of 196 00:17:03,320 --> 00:17:08,680 updates. So we started looking at, well, can we categorize the types of permissions that 197 00:17:08,680 --> 00:17:15,580 are being made and split them out into various publish and subscribe permissions. So we 198 00:17:15,580 --> 00:17:21,380 tried to offer a granular sort of subscription capability. You can subscribe to comments 199 00:17:21,380 --> 00:17:25,700 only or you can subscribe and publish comments and name changes. There's a variety of categories 200 00:17:26,760 --> 00:17:30,220 that we're not going to run down through them, but you'll see various slides that point 201 00:17:30,220 --> 00:17:30,560 to that. 202 00:17:32,680 --> 00:17:36,200 I talked a little bit about why undo is difficult, so I'm going to kind of blow through this 203 00:17:36,200 --> 00:17:36,440 slide. 204 00:17:38,980 --> 00:17:42,100 I'm going to show you a little bit about how you can push out of the database that's generating 205 00:17:42,100 --> 00:17:51,100 the change event in order to be able to roll back to its previous state. And more on why 206 00:17:51,100 --> 00:17:56,000 working offline is difficult. Again, what we don't want to be doing is popping conflict 207 00:17:56,560 --> 00:18:02,240 resolution dialog boxes all over the place and making you work it out because it hinders 208 00:18:02,240 --> 00:18:06,240 your progress through the database to be dealing with pop-up dialogs all the time. 209 00:18:11,020 --> 00:18:17,120 So basically the plug-in, again, lots of repeat here, but the plug-in just registers 210 00:18:17,120 --> 00:18:25,660 itself for all interesting notifications. We prefer to trigger the plug-in after IDA's 211 00:18:25,660 --> 00:18:30,180 initial auto-analysis phase because IDA is making massive changes to its database, generating 212 00:18:30,180 --> 00:18:36,560 a massive number of updates during that auto-analysis phase. We had played around with disabling 213 00:18:36,560 --> 00:18:38,660 auto-analysis, having everybody fire up, and then we had a lot of updates over the last 214 00:18:38,660 --> 00:18:43,680 up with nothing analyzed and then having a master database, perhaps the latest and greatest 215 00:18:43,680 --> 00:18:50,500 version of IDA with super plug-ins for analysis, do all of the analysis, and that got kind 216 00:18:50,500 --> 00:18:57,180 of hairy. So we just decided that, well, whatever version 217 00:18:57,180 --> 00:19:00,880 of IDA you're in, the initial auto analysis that you get from that version of IDA is kind 218 00:19:00,880 --> 00:19:04,740 of close enough. So we highly recommend you join after that's done. 219 00:19:04,740 --> 00:19:09,240 We tried to minimize the amount of state being saved in the plug-in. 220 00:19:09,900 --> 00:19:13,260 Things we do save are kind of just your last server that you might have been connected 221 00:19:13,260 --> 00:19:16,580 to. We save a global project ID so that we can 222 00:19:16,580 --> 00:19:21,160 streamline reconnection once you've joined a project and so on. 223 00:19:21,660 --> 00:19:26,440 And then the plug-in's job, only job, is to capture your events and package them up and 224 00:19:26,440 --> 00:19:31,520 ship them off to a server and then process incoming events that it may receive from other 225 00:19:31,520 --> 00:19:34,720 users. So the operations are pretty simple. 226 00:19:34,720 --> 00:19:40,080 We do introduce one new hot key that triggers the plug-in, and that's pretty much the extent 227 00:19:40,080 --> 00:19:47,980 of our intrusion into your IDA experience. So you can take the binary plug-in, drop it 228 00:19:47,980 --> 00:19:53,920 into your IDA plug-in's directory. At the current time, I recommend not renaming 229 00:19:53,920 --> 00:19:59,500 it from what it names. It's named by default. That actually breaks the plug-in for reasons 230 00:19:59,500 --> 00:20:04,140 that we could probably fix but haven't. And then it's just capturing all actions. 231 00:20:04,140 --> 00:20:08,600 You trigger the plug-in, it asks you to join a project, and then it's kind of hands-off. 232 00:20:08,740 --> 00:20:12,040 So there's no, oops, I forgot to push an update. It's just done for you. 233 00:20:12,520 --> 00:20:16,480 You get various notifications. If you drop your network connection, you drop 234 00:20:16,480 --> 00:20:20,460 your connection to the server, you do get a pop-up that warns you, hey, you've lost 235 00:20:20,460 --> 00:20:23,640 your connection to the server. Consider reconnecting before you generate any 236 00:20:23,640 --> 00:20:28,060 more changes. Otherwise, beware that you're diverging from 237 00:20:28,060 --> 00:20:28,980 the rest of the project. 238 00:20:34,140 --> 00:20:38,920 It's pretty useful to all users of IDA. Versions are available, and the plug-in compiles easily 239 00:20:38,920 --> 00:20:46,300 for versions of IDA from 4.9 up through 5.3. The slides came out before 5.3 did. And it 240 00:20:46,300 --> 00:20:53,020 also compiles if you have an SDK for freeware. But we provide a binary for the freeware version 241 00:20:53,020 --> 00:21:00,260 as well. Build scripts are made available for G++ and Visual Studio. 242 00:21:04,340 --> 00:21:10,520 You have to build a plug-in for your specific version of IDA. We do some very version-specific 243 00:21:10,520 --> 00:21:15,360 things as the versions become more capable. So there are some header files in there that 244 00:21:15,360 --> 00:21:18,700 have actually checked through and determined exactly which version of IDA you happen to 245 00:21:18,700 --> 00:21:23,680 be using, and we try to use the right features for your particular version. 246 00:21:24,920 --> 00:21:30,500 Again, as the SDK has evolved, more notification messages are being generated by IDA. So newer 247 00:21:30,500 --> 00:21:34,120 versions of IDA and their corresponding versions of the plug-in will be generated by IDA. So 248 00:21:34,120 --> 00:21:38,580 they're capable of generating more types of events, capturing more of the changes that 249 00:21:38,580 --> 00:21:45,760 you make to the database. Older versions of IDA, like 4.9, 5.0, actually are not nearly 250 00:21:45,760 --> 00:21:50,400 as capable in regards to publishing. But every version of the plug-in can receive and process 251 00:21:50,900 --> 00:21:58,040 every type of update. So as a 4.9 user, your changes may not be pushed to everybody as 252 00:21:58,480 --> 00:22:02,860 often as you like, but you will receive every type of update that, say, a 5.3 user makes. 253 00:22:02,860 --> 00:22:05,380 Even though you cannot make those same updates yourself. 254 00:22:07,260 --> 00:22:12,820 This is a breakdown, it probably looks better on the slide deck, of capabilities by version. 255 00:22:13,640 --> 00:22:22,060 And you can see it's kind of split up into publish and subscribe sides. And the publish 256 00:22:22,680 --> 00:22:27,620 capabilities improve as you improve IDA versions, but the subscribe capabilities are consistent 257 00:22:27,620 --> 00:22:32,240 across all versions of IDA. And so... Are you ready? 258 00:22:32,860 --> 00:22:33,660 This is Tim's slide. 259 00:22:36,720 --> 00:22:39,740 Just another quick reminder for everybody that came in late or has been moving 260 00:22:39,740 --> 00:22:44,340 around. If you want to participate in the demo, the information's over here on the left-hand 261 00:22:44,340 --> 00:22:47,440 screen. It's not going at the same time. So there's all your connection information 262 00:22:47,920 --> 00:22:53,300 for the local wireless, the auth information, and the server to connect to. And to be able 263 00:22:53,300 --> 00:22:56,720 to see both simultaneously during the demo, you might want to migrate towards the middle, 264 00:22:56,820 --> 00:23:01,400 which is why the middle's more dense. All right, so this slide talks a little bit about 265 00:23:01,400 --> 00:23:02,840 the Collaborate protocol. It's a little bit more complex than the other ones. And it's 266 00:23:02,860 --> 00:23:06,020 kind of like a binary protocol on the network. We chose to do a binary protocol instead of 267 00:23:06,020 --> 00:23:11,100 like an ASCII or an XML-based protocol, per se, because a lot of the messages that are 268 00:23:11,100 --> 00:23:16,160 generated have binary content. And we didn't want to have to waste a lot of time unpackaging 269 00:23:16,160 --> 00:23:19,520 and converting to XML and sending it across the network and then repackaging and how you 270 00:23:19,520 --> 00:23:23,840 store it. And you have to do that for every plug-in the server has to generate. So whatever, 271 00:23:24,020 --> 00:23:28,280 we'll just leave it as binary. We just have a datagram size that comes ahead, tells you 272 00:23:28,280 --> 00:23:32,760 how much more data's coming. And then we have two different types of messages that can go 273 00:23:32,860 --> 00:23:37,860 in. So one is basically destined only for the Collaborate-specific software. So that's 274 00:23:37,860 --> 00:23:41,120 how the plug-in communicates directly with the server. So we've added those messages 275 00:23:41,600 --> 00:23:48,620 unique for the Collaborate software. The other ones are due to the updates, the notifications 276 00:23:48,620 --> 00:23:52,500 that Chris was talking about that IDA generates. So we'll have different types of notifications 277 00:23:52,500 --> 00:23:57,280 that are generated when you rename a function or add a comment or make a structure or update 278 00:23:57,280 --> 00:24:02,660 a structure or whatever. All of those things go into the other type of comment. And those 279 00:24:02,860 --> 00:24:07,960 are broadcast from the plug-in to the server. The server mirrors them to all currently connected 280 00:24:08,560 --> 00:24:13,080 clients. And then if we're in a database mode for the server, it's also going to archive 281 00:24:13,080 --> 00:24:21,740 it in the SQL database. So the server maintains all state. A lot of you guys know the advantages 282 00:24:21,740 --> 00:24:26,580 of that just by the conference that you're attending. So we want to leave all of these 283 00:24:26,580 --> 00:24:32,840 decisions to be up to the user. So the plug-in has the auth components so that you can authenticate. 284 00:24:32,840 --> 00:24:35,500 You can authenticate to the server and you can connect to the server. But all of the 285 00:24:35,500 --> 00:24:39,940 important decisions are made on the server, which potentially you're supposed to trust 286 00:24:39,940 --> 00:24:45,960 more. So the server can be invoked in two different modes. The database mode, which 287 00:24:45,960 --> 00:24:50,120 is the one that we'll demo here today, and it's by far the most feature-rich version. 288 00:24:50,420 --> 00:24:54,720 There's also a basic mode. If you wanted to collaborate with some people, say, in an environment 289 00:24:54,720 --> 00:24:59,240 like this, and you didn't bring a SQL database with you and you didn't want to connect out 290 00:24:59,240 --> 00:25:02,820 on the Internet, you could pull up the server quickly. You could pull up the server quickly. 291 00:25:02,840 --> 00:25:07,320 Using your JVM. And you could all connect to the project at the same time. And it will 292 00:25:07,320 --> 00:25:12,180 do the mirroring, but it won't do any of the archiving. So a little bit more on that. 293 00:25:13,000 --> 00:25:19,560 The server requires Java. We tested it on JDK 1.6. There's the two modes, simple reflector. 294 00:25:19,980 --> 00:25:24,600 For the database mode, we're going to need the Java connection software so that Java 295 00:25:24,600 --> 00:25:30,720 can talk to the database. And that's going to allow for the persistent storage. It's 296 00:25:30,720 --> 00:25:32,560 available in all different kinds of ways. 297 00:25:33,580 --> 00:25:38,620 The plug-ins, of course, are available right now. You can grab them off of the various 298 00:25:38,620 --> 00:25:44,440 websites or the local website that we have running here. The server will be available 299 00:25:44,440 --> 00:25:50,660 starting tomorrow. We didn't release it for certain reasons until just now. And that'll 300 00:25:50,660 --> 00:25:56,040 be available in source. And it'll also be available in a jar if you didn't want to have 301 00:25:56,040 --> 00:26:01,780 to deal with the source. And it's also available as a whatever it's called, a VMware virtual 302 00:26:01,780 --> 00:26:02,420 appliance. 303 00:26:03,860 --> 00:26:07,080 So you can literally just start it up and connect to it. 304 00:26:10,400 --> 00:26:15,600 So basic mode requires no database. It still allows multiple projects. So you can have 305 00:26:16,160 --> 00:26:20,660 all kinds of different teams working on various RE projects that require more than one set 306 00:26:20,660 --> 00:26:24,660 of eyes. And they just won't be stored, right? No persistent storage. 307 00:26:25,160 --> 00:26:28,980 Also kind of as a side effect, they have no authentication for these kind of things. 308 00:26:29,100 --> 00:26:32,300 Where would the auth information come from? They're not storing it in the database. You 309 00:26:32,300 --> 00:26:36,180 have to do a flat file. It gets more confusing. It'll diverge. It'll develop a lot more. 310 00:26:36,400 --> 00:26:39,840 So really, it's a very simple thing. You'll just quickly throw up and it'll allow you 311 00:26:39,840 --> 00:26:43,600 to collaborate for a certain amount of time. And then it'll lose your changes. 312 00:26:45,620 --> 00:26:51,000 The basic mode doesn't save any information in the IDB. It doesn't have to because it 313 00:26:51,000 --> 00:26:53,880 assumes that you're not going to have any persistent storage. So you're not going to 314 00:26:53,880 --> 00:26:55,060 be reconnecting to a project later. 315 00:26:57,100 --> 00:27:01,260 So all participants have to start at the same time. And as you stop, you're kind of, you 316 00:27:01,260 --> 00:27:05,260 probably shouldn't come back to the project because your updates will not be in sync with 317 00:27:05,260 --> 00:27:06,720 anybody else that's doing it. 318 00:27:09,520 --> 00:27:16,240 So the database mode, we had a request during development to add MySQL support. So in addition 319 00:27:16,240 --> 00:27:21,760 to Postgres, it supports MySQL. Postgres, it's going to require A2 or higher. It's probably 320 00:27:21,760 --> 00:27:26,040 not a big deal because A2 and A3 have been out for a little while. That's just due to 321 00:27:26,040 --> 00:27:31,060 the nature of some of the ways that we have formed the SQL statements. So if somebody's 322 00:27:31,260 --> 00:27:34,780 more interested that we are than going and making some more functions, it'll probably 323 00:27:34,780 --> 00:27:35,820 work with older versions just fine. 324 00:27:38,440 --> 00:27:44,560 So this requires authentication. Basic RFCs for CHAP and MAC, that's good enough. We assume 325 00:27:44,560 --> 00:27:48,140 you're probably going to be running these on some sort of internal, more safe network 326 00:27:48,140 --> 00:27:48,440 anyway. 327 00:27:50,300 --> 00:27:54,260 So as Chris pointed out, all participants start by running the auto analysis in their 328 00:27:54,260 --> 00:27:58,380 plugin or in their specific version of IDA and then launching the plugin and connecting. 329 00:27:59,600 --> 00:28:00,940 As Chris pointed out again, 330 00:28:01,260 --> 00:28:05,340 the auto analysis might be a little different. It might vary based on the particular version 331 00:28:05,340 --> 00:28:11,060 of IDA. However, in practice, we've noticed that they get really close and just fine for 332 00:28:11,060 --> 00:28:12,320 the type of stuff that we're doing anyway. 333 00:28:15,640 --> 00:28:20,400 So all updates that are posted to the project from any user that's been collaborating on 334 00:28:20,400 --> 00:28:25,480 that project are archived in the database. When a new user connects, if they join that 335 00:28:25,480 --> 00:28:29,420 same project, they get all the updates at the point. So it's really easy to bring somebody 336 00:28:29,420 --> 00:28:30,680 else's IDB. 337 00:28:30,680 --> 00:28:35,380 All the way back up to speed with what everybody else has been working on, regardless of their 338 00:28:35,380 --> 00:28:35,920 version of IDA. 339 00:28:37,840 --> 00:28:45,380 To facilitate kind of joining and disjoining or leaving a project, we store a little bit 340 00:28:45,380 --> 00:28:49,860 of information in the IDA database. So this is not the SQL database. This is the IDA file, 341 00:28:50,020 --> 00:28:53,560 the database that stores your binary content. 342 00:28:54,640 --> 00:28:59,880 That information facilitates quickly reconnecting back to the database, remembering which project 343 00:28:59,880 --> 00:29:04,380 you joined to so that you automatically joined the same project. If we allowed you to join 344 00:29:04,380 --> 00:29:09,440 a different project, they would most definitely be out of sync, so to speak, and the updates 345 00:29:09,440 --> 00:29:15,060 wouldn't go across correctly. No offline work. 346 00:29:17,820 --> 00:29:22,380 All right. Plugin's available now. Server's available tomorrow. I already said that. 347 00:29:24,040 --> 00:29:28,160 Okay. So now I'm going to go through a quick overview of what some of the windows look 348 00:29:29,880 --> 00:29:33,040 like. We're going to start with the XB or 2000 kind of a machine, and then we're going 349 00:29:33,040 --> 00:29:37,060 to get into the demo. So now you guys need to make sure you have your plug-ins installed 350 00:29:37,060 --> 00:29:40,300 and you can ping the server. Actually, it doesn't ping, does it? 351 00:29:41,880 --> 00:29:47,380 You can trigger the plug-in. You can connect to it. So get that stuff ready. Again, for 352 00:29:47,380 --> 00:29:50,860 the latecomers, there's a little bit of incentive for being the first one that makes an edit 353 00:29:50,860 --> 00:29:54,320 to the database that's visible on the screen to the rest of the attendees. 354 00:29:55,620 --> 00:29:59,460 So after you open the database and the auto analysis is finished, you want to activate 355 00:29:59,460 --> 00:30:04,540 the plug-in with the hotkey Alt-F6. You want to enter the connection information for the 356 00:30:04,540 --> 00:30:09,980 server, either via host or IP, and then the port, which defaults to 5042. Run it on whatever 357 00:30:09,980 --> 00:30:19,040 you want. Then you're going to authenticate. IDA creates an MD5 hash of the binary that 358 00:30:19,040 --> 00:30:25,000 you've loaded, and that's used as a unique indicator for the project to make sure that 359 00:30:25,000 --> 00:30:28,960 when other people join, they're going to get a list of projects that are only compatible 360 00:30:28,960 --> 00:30:29,440 with what they're using. And then you're going to get a list of projects that are 361 00:30:29,440 --> 00:30:32,260 only compatible with whatever binary they've loaded in IDA. So that's just kind of a quick 362 00:30:32,260 --> 00:30:36,800 safety check that if I've loaded a binary and somebody else wants to collaborate with 363 00:30:36,800 --> 00:30:40,380 me, if they load a different binary, they're not going to hammer me with the updates that 364 00:30:40,380 --> 00:30:41,760 don't make sense for my database. 365 00:30:43,120 --> 00:30:46,660 So then the units are managed by the server. You're going to enter your username, enter 366 00:30:46,660 --> 00:30:51,160 your auth information. This is the box that Chris spoke of where we wanted to mask the 367 00:30:51,160 --> 00:30:58,160 password. Couldn't do that with the SDK capability for IDA as far as we know, so used regular 368 00:31:00,580 --> 00:31:07,220 Windows graphics. So there's two cases when you join. One case is that you were already 369 00:31:07,220 --> 00:31:11,300 joined to a project previously and that information was stored in your IDB, in which case you're 370 00:31:11,300 --> 00:31:14,900 automatically reconnected to the same project and you automatically get any updates that 371 00:31:14,900 --> 00:31:20,560 anybody else has made to the database while you were offline. If you have never had a project 372 00:31:20,560 --> 00:31:26,880 for this particular IDA database, then you can choose to start a new project or you can 373 00:31:26,880 --> 00:31:28,140 choose to join other projects. 374 00:31:28,140 --> 00:31:31,600 If other ones have been made. And the MD5 uses the uniqueness for that. 375 00:31:32,680 --> 00:31:38,940 All right, so here's a little example. So we have now connected and it shows that there's 376 00:31:38,940 --> 00:31:44,880 one project that somebody else has previously created. We know that it's not one that we 377 00:31:44,880 --> 00:31:48,680 probably made because if we did, we would have automatically joined to it. Or this could 378 00:31:48,680 --> 00:31:52,940 be us using a second instance of IDA to have two computers going for whatever reason. 379 00:31:54,280 --> 00:31:57,080 So we can use the options button to look at permissions. 380 00:31:58,140 --> 00:32:04,520 These are the granularity of permissions that were present in, what, 5.2, right? The 381 00:32:04,520 --> 00:32:09,280 slides are a little bit dated. 5.3 is now out. But you can see that we can choose publish 382 00:32:09,280 --> 00:32:12,140 and subscribe permissions as we join the project. 383 00:32:12,700 --> 00:32:16,180 So another interesting thing we can do, Chris was talking about the scenario where we don't 384 00:32:16,180 --> 00:32:20,640 want novice users mucking up a database, but we want to drive it and we want to drive 385 00:32:20,640 --> 00:32:24,180 it in a manner that they can scroll up and down in their own database and look at different 386 00:32:24,180 --> 00:32:27,900 areas and they can even make changes. We just don't want those changes to reflect the things 387 00:32:27,900 --> 00:32:30,120 that we're doing up while we're instructing or whatever. 388 00:32:31,600 --> 00:32:35,140 So there's actually three sets of permissions. We can set a permission on a particular user 389 00:32:35,140 --> 00:32:38,680 account. It's a novice user. We don't want to let them do anything. So when they log 390 00:32:38,680 --> 00:32:42,100 in, they're limited on those permissions. When you connect the plug-in and get this 391 00:32:42,100 --> 00:32:46,340 type of a graphic, then you can choose what kind of permissions you'd like for that particular 392 00:32:46,340 --> 00:32:50,960 session. And then you also set permissions on a per-project basis. So all of those things 393 00:32:50,960 --> 00:32:53,840 are combined together to figure out whatever your effective permissions are going to be 394 00:32:53,840 --> 00:32:54,800 for that particular session. 395 00:32:56,480 --> 00:32:56,880 What's that? 396 00:32:57,460 --> 00:32:57,860 Okay. 397 00:33:01,920 --> 00:33:06,680 I'll add one thing that the permissions list that you see here is actually driven 398 00:33:06,680 --> 00:33:11,100 on the server side. The server publishes this list of permissions, and then this dialog 399 00:33:11,100 --> 00:33:15,080 box is populated. So if there's stuff you just don't ever want to do, you can trim 400 00:33:15,080 --> 00:33:19,300 it at the server without having to have everybody rebuild their plug-ins. And then you just 401 00:33:19,300 --> 00:33:21,620 get the tailored list of permissions published by the server. 402 00:33:23,000 --> 00:33:23,460 Okay. 403 00:33:24,240 --> 00:33:25,160 All right. 404 00:33:27,320 --> 00:33:27,780 All right. 405 00:33:27,900 --> 00:33:28,140 Thank you. 406 00:33:28,220 --> 00:33:32,740 Then in our quest to remove hotkeys, so one of the particularly annoying things about 407 00:33:32,740 --> 00:33:37,780 the earlier projects that attempt to do this kind of thing, like IDA sync, are that you 408 00:33:37,780 --> 00:33:41,400 have to remember, consciously remember that there's different hotkeys to do different 409 00:33:41,400 --> 00:33:45,840 things. So there's a thing that looks a lot like an IDA comment, but it's really an IDA 410 00:33:45,840 --> 00:33:49,700 sync comment, and you have to use a different hotkey to get that window. And you have to 411 00:33:49,700 --> 00:33:53,580 remember to do that every time you make a comment that you want to share. So if users 412 00:33:53,580 --> 00:33:55,880 forget, then they're not sharing things anymore. 413 00:33:55,880 --> 00:34:01,100 So all of the commands that we do just subscribe to the notifications that IDA creates. You 414 00:34:01,100 --> 00:34:06,320 basically work as normal, and all the updates are sent. So we overload the activation key, 415 00:34:06,420 --> 00:34:10,700 so we really only have one hotkey for the whole plug-in. So if you hit F6 again once 416 00:34:10,700 --> 00:34:14,620 it's loaded, you get collaborate specific things. So these are the kind of things where 417 00:34:14,620 --> 00:34:18,220 you're generating those messages where the plug-in is communicating directly, and there's 418 00:34:18,220 --> 00:34:21,600 not really an IDA event notification driving those packets going across. 419 00:34:22,140 --> 00:34:25,420 So you can see that once you're in there, you can do various things like fork a project, 420 00:34:25,420 --> 00:34:30,080 I'm about to do something crazy, I want to fork off my own and not impose my crazy changes 421 00:34:30,080 --> 00:34:34,760 on other people that were working on the project. You can set a checkpoint, which is a way to 422 00:34:34,760 --> 00:34:39,000 replay up to date. It's kind of like a poor man's undo because we can't do undo yet. And 423 00:34:39,000 --> 00:34:47,780 then you can manage various things and disconnect. Okay? Ready to try the demo out? All right, 424 00:34:47,780 --> 00:34:48,640 you're going to go back to your row. 425 00:34:50,980 --> 00:34:54,200 All right, so it is demo time, and this is DEF CON. 426 00:34:55,660 --> 00:35:00,120 So we realize we're taking our presentation into our own hands here and gambling. 427 00:35:02,740 --> 00:35:12,740 So what we'll do is I'll fire up and create a project and start making some changes. Tim 428 00:35:12,740 --> 00:35:18,800 will then try to come along and join the project, and you can watch his database update 429 00:35:18,800 --> 00:35:23,520 over here. Once I've created a project, that project will be visible to anybody who's going 430 00:35:23,520 --> 00:35:24,980 to attempt to join the demo. 431 00:35:26,300 --> 00:35:27,100 Oh, God. 432 00:35:27,100 --> 00:35:30,140 Number one is the conference wireless, so is there anybody who is actually going to 433 00:35:30,140 --> 00:35:30,940 attempt to do that? 434 00:35:31,180 --> 00:35:31,720 That's great. 435 00:35:32,080 --> 00:35:35,920 That's great. So the pool of potential book winners is pretty narrow. 436 00:35:36,940 --> 00:35:37,600 Odds are good. 437 00:35:40,100 --> 00:35:44,620 If you're already connected, you've got to disconnect and reconnect to our project. 438 00:35:44,940 --> 00:35:48,960 And if you're creating a project of your own, you're actually slave to that project. 439 00:35:49,460 --> 00:35:53,280 So you can't, like, jump projects. You're going to have to actually shut down your IDA 440 00:35:53,280 --> 00:35:54,840 database, create a brand-new database. 441 00:35:55,040 --> 00:35:55,400 You have to get to do one thing at a time. 442 00:35:55,420 --> 00:35:58,740 run the, open the binary from scratch, right, and have it reanalyzed. 443 00:35:58,880 --> 00:36:01,860 Yeah, once you're tagged as being part of a project, there's no jumping projects 444 00:36:01,860 --> 00:36:07,140 unless you choose to fork one. All right, so first things over here on 445 00:36:07,140 --> 00:36:12,940 the left side, we have the server menu, and it's just a command line, little CLI thing. 446 00:36:13,520 --> 00:36:16,000 It was just easy to throw together. There's no reason this couldn't be like a 447 00:36:16,000 --> 00:36:19,900 web applet, or it could even have a dedicated plug-in or something if we wanted to, I suppose. 448 00:36:20,840 --> 00:36:23,580 But the actions that are required on the server are very minimal. 449 00:36:24,100 --> 00:36:29,920 Another thing that we really wanted to improve upon previous collaboration projects for 450 00:36:29,920 --> 00:36:36,020 IDA are that the project creation is all done from the IDA side, from the client side, so 451 00:36:36,020 --> 00:36:38,140 to speak. So the only thing that we really have to do 452 00:36:38,140 --> 00:36:42,560 over on this side in order to start collaborating from the database is create users so that 453 00:36:42,560 --> 00:36:46,760 they can authenticate to the database. So we have an add user, we have list users. 454 00:36:46,980 --> 00:36:49,200 We can show you these. They're not very flashy. 455 00:36:49,320 --> 00:36:52,060 It's all text-based. You can scroll up. 456 00:36:52,180 --> 00:36:53,560 It doesn't even work very good at this resolution. 457 00:36:53,560 --> 00:36:57,700 But you can see we have users or permissions, and there's kind of a pseudo-graphical. 458 00:36:57,840 --> 00:37:01,500 You can see that for each column, they have publish and subscribe and so forth. 459 00:37:03,500 --> 00:37:09,040 So we can list projects. We can add users. The ones with the stars will actually send 460 00:37:09,040 --> 00:37:13,960 specific messages out to all connected users, so you can get stats on the current status 461 00:37:13,960 --> 00:37:20,580 of the projects. So we can see who's connected from what IPs, ports, and then how many updates 462 00:37:20,580 --> 00:37:22,420 they send of different categories and things like that. 463 00:37:23,700 --> 00:37:29,440 Okay, so I've got IDA up over here. I tried to jack the font up so it can be seen, 464 00:37:29,580 --> 00:37:34,500 but not so much that we see only three lines. Basically, the ground rules for trying to 465 00:37:34,500 --> 00:37:39,640 get the book are once I create a project, you'll have the information you need to join. 466 00:37:39,820 --> 00:37:42,740 It'll be called something like DEF CON demo. 467 00:37:43,060 --> 00:37:45,020 There we go. DEF CON demo. 468 00:37:46,320 --> 00:37:47,000 There goes that. 469 00:37:47,020 --> 00:37:47,840 Is it already there? 470 00:37:47,980 --> 00:37:48,780 My IDA crashed. 471 00:37:49,480 --> 00:37:50,340 Your IDA crashed? 472 00:37:50,540 --> 00:37:51,140 IDA 10. 473 00:37:51,940 --> 00:37:53,460 Well, I haven't made DEF CON demo yet. 474 00:37:53,480 --> 00:37:53,540 How did you even do it? 475 00:37:53,560 --> 00:37:58,260 So clearly somebody made a malicious project and has owned the software already. 476 00:37:58,600 --> 00:38:00,360 I didn't even try and collaborate. It just tanked on its own. 477 00:38:00,600 --> 00:38:02,460 Oh, okay. That's an IDA problem. That's right. 478 00:38:04,500 --> 00:38:09,440 Okay, now, to obtain the book, you're going to have to base it. So now we have a basic 479 00:38:09,440 --> 00:38:15,100 wall of graffiti over here, and as you push your changes, your stuff is going to show 480 00:38:15,100 --> 00:38:20,660 up here, and your goal is to get something that uniquely identifies you. Your name will 481 00:38:20,660 --> 00:38:20,820 do. 482 00:38:21,800 --> 00:38:26,540 Up onto the screen. So I'm not going to judge that, but I'm going to look at my screen 483 00:38:26,540 --> 00:38:30,720 here. Tim's going to look at his screen over there, and you're going to have to get something 484 00:38:30,720 --> 00:38:36,580 to appear that's visible here. So if I'm scrolled away from this page and you get something 485 00:38:36,580 --> 00:38:40,380 in an area of the database, you can try to convince me to scroll back to where you tagged 486 00:38:40,380 --> 00:38:46,600 it, or you can try to catch up to where I happen to be on the screen. Okay? So we've 487 00:38:46,600 --> 00:38:50,800 got to see it. I've got to see it. I won't see it unless I'm actually paged somewhere. 488 00:38:50,800 --> 00:38:53,580 Let's do it. Okay, no goat seat, please. 489 00:38:57,080 --> 00:39:00,800 And that would be pretty good if you could get that Ida comment in there. Somebody somewhere 490 00:39:00,800 --> 00:39:02,040 has that, I'm sure. 491 00:39:02,480 --> 00:39:04,920 Hey, Chris. We have like five minutes left to demo. 492 00:39:05,180 --> 00:39:15,440 Okay. All right. So here we go. Alt-F6 brings it up. I've been playing around, 493 00:39:15,580 --> 00:39:20,780 so it actually cached my server information. Chris, with my very secure password, is going 494 00:39:20,780 --> 00:39:20,920 to give me a password. 495 00:39:22,400 --> 00:39:23,000 Challenge due. 496 00:39:23,000 --> 00:39:28,060 Okay. If you're trying to connect and you don't immediately get a login dialog, basically 497 00:39:28,060 --> 00:39:35,800 it didn't find the server. Okay? So there are probably lots of projects in there already. 498 00:39:39,160 --> 00:39:48,320 And I'm going to create a new one whose name is now to be revealed. So give me a name. 499 00:39:48,520 --> 00:39:49,460 Tell me what you're calling it. 500 00:39:49,560 --> 00:39:49,800 What? 501 00:39:51,580 --> 00:39:52,280 Demo 1. 502 00:39:52,680 --> 00:39:58,720 Demo 1 is the new project. So I'm joined. I'm scrolling away. Hopefully my database 503 00:39:58,720 --> 00:40:07,440 will live a while so that Tim and I can scroll around. Okay? 504 00:40:08,740 --> 00:40:09,260 Okay. 505 00:40:09,660 --> 00:40:11,820 All right. So I'll throw a comment in here. 506 00:40:12,320 --> 00:40:13,640 Where are you at? Like the main? 507 00:40:14,040 --> 00:40:16,740 Can you get there? 508 00:40:17,220 --> 00:40:17,740 Okay. 509 00:40:19,420 --> 00:40:19,940 Okay. 510 00:40:23,820 --> 00:40:24,140 Okay. 511 00:40:24,180 --> 00:40:24,340 Okay. 512 00:40:24,340 --> 00:40:24,360 Okay. 513 00:40:24,360 --> 00:40:27,020 That doesn't count as you getting your name on the screen, because I put it there for 514 00:40:27,020 --> 00:40:27,180 you. 515 00:40:30,720 --> 00:40:31,460 Where are you? 516 00:40:32,520 --> 00:40:32,840 Atwood. 517 00:40:34,080 --> 00:40:35,000 Just in the middle. 518 00:40:43,560 --> 00:40:45,000 I'm at the wrong laner. 519 00:40:45,040 --> 00:40:45,280 You get it? 520 00:40:47,420 --> 00:40:48,480 What address did you add? 521 00:40:48,520 --> 00:40:48,900 I don't know. 522 00:40:49,240 --> 00:40:49,920 I'll give you the address. 523 00:40:49,920 --> 00:40:50,820 so everybody will know where I am. 524 00:40:51,000 --> 00:40:51,480 That's true. 525 00:40:52,360 --> 00:40:52,980 There you go. 526 00:40:55,680 --> 00:40:56,480 804-9700. 527 00:41:01,620 --> 00:41:04,660 Okay, and then the idea is that we try to capture as much state as possible. 528 00:41:04,880 --> 00:41:05,560 You've updated here. 529 00:41:05,920 --> 00:41:06,380 What's that? 530 00:41:06,740 --> 00:41:07,140 Nothing. 531 00:41:08,300 --> 00:41:12,200 And as Tim scrolls in, you see he's already got the comment, and that's a simple one. 532 00:41:12,420 --> 00:41:15,900 But we can handle a lot of different types of name changes. 533 00:41:19,920 --> 00:41:22,800 Okay, so Tim gets the function name change. 534 00:41:23,940 --> 00:41:27,680 We can go crazy, go nuts with undefines and whatnot. 535 00:41:30,400 --> 00:41:31,600 We can reformat. 536 00:41:31,600 --> 00:41:33,720 You see Tim is reformatting some operands here. 537 00:41:34,740 --> 00:41:35,520 Much more useful. 538 00:41:35,920 --> 00:41:36,500 What was that? 539 00:41:36,700 --> 00:41:37,380 That's much more useful. 540 00:41:37,500 --> 00:41:38,120 That represents it. 541 00:41:38,260 --> 00:41:41,120 So it captures reformatting changes. 542 00:41:41,660 --> 00:41:45,580 We can get into the structures window, and as I start to create structures, 543 00:41:46,600 --> 00:41:48,620 Tim's already got the structure layout over there, 544 00:41:48,640 --> 00:41:49,900 and I can come in over here. 545 00:41:49,920 --> 00:41:53,300 Build structures, and his window follows a change. 546 00:41:53,640 --> 00:41:56,760 So it really doesn't matter what part of the database you're working in. 547 00:41:56,840 --> 00:41:58,500 Your changes get pushed over. 548 00:41:58,800 --> 00:42:03,840 So there's a great billboard for somebody to try to tag something on the screen. 549 00:42:06,020 --> 00:42:07,300 What other types of changes? 550 00:42:08,340 --> 00:42:14,340 So really kind of a nice one is that moving away from the sort of hotkey metaphor. 551 00:42:16,640 --> 00:42:19,900 Well, I don't have that many books for all the I's out there. 552 00:42:22,480 --> 00:42:24,940 So we still don't have a winner. 553 00:42:27,160 --> 00:42:28,880 IDC and plug-ins. 554 00:42:29,060 --> 00:42:33,460 When you generate actions in IDA using IDA's scripting language, IDC, 555 00:42:33,500 --> 00:42:38,040 or using the SDK, those things fire event notifications as well. 556 00:42:38,340 --> 00:42:42,360 So if one user on a project runs a script that modifies the database, 557 00:42:42,700 --> 00:42:49,440 all the actions that that script performed get pushed out to everybody else on the project. 558 00:42:49,440 --> 00:42:53,160 So you can run a script, run a plug-in that modifies the database somehow, 559 00:42:54,500 --> 00:42:59,220 and those scripts and plug-ins take effect across all the rest of the user. 560 00:42:59,300 --> 00:43:03,740 I get a bunch of people frantically trying to learn how to change the name of a structure field in IDA. 561 00:43:03,880 --> 00:43:05,220 It's fun. See, we can, like, chat. 562 00:43:05,480 --> 00:43:05,800 Okay. 563 00:43:08,040 --> 00:43:10,060 So maybe only you and I are joined. 564 00:43:10,220 --> 00:43:10,660 What happened over there? 565 00:43:12,040 --> 00:43:12,560 What's that? 566 00:43:12,920 --> 00:43:13,760 Your comment. 567 00:43:14,060 --> 00:43:15,680 I was here. Front row. 568 00:43:15,740 --> 00:43:16,640 Well, I see the comment. 569 00:43:17,060 --> 00:43:18,180 No, but look at it. 570 00:43:19,440 --> 00:43:19,940 Look at what? 571 00:43:21,100 --> 00:43:22,260 Yeah, somebody trashed it. 572 00:43:22,440 --> 00:43:23,220 But not mine. 573 00:43:24,740 --> 00:43:25,260 Was it? 574 00:43:25,680 --> 00:43:26,320 I don't know. 575 00:43:26,320 --> 00:43:27,080 Is that somebody's name? 576 00:43:29,960 --> 00:43:30,400 What's that? 577 00:43:31,540 --> 00:43:32,300 Rot 13? 578 00:43:32,940 --> 00:43:33,340 Social? 579 00:43:34,260 --> 00:43:35,780 Go back to the beginning of what? 580 00:43:36,640 --> 00:43:37,360 The database? 581 00:43:39,700 --> 00:43:41,220 I should go back where I was before? 582 00:43:41,460 --> 00:43:42,100 Maybe I will. 583 00:43:43,080 --> 00:43:44,320 Okay, there are bugs, so what? 584 00:43:44,560 --> 00:43:45,040 I don't know. 585 00:43:46,980 --> 00:43:49,420 Clearly, so structures was actually listed as bugs. 586 00:43:49,420 --> 00:43:51,140 One of the things that are busted on notifications. 587 00:43:52,440 --> 00:43:54,000 It's actually in your slides. 588 00:43:54,180 --> 00:43:58,500 You can scroll back and see that event notifications for structures are kind of broken. 589 00:43:59,280 --> 00:44:01,320 Okay, so this is a manifestation of that. 590 00:44:02,400 --> 00:44:03,880 Hey, do you want to show a script? 591 00:44:04,760 --> 00:44:06,180 Somebody's changing plug-in names. 592 00:44:06,320 --> 00:44:08,880 I mean, the structure field names. 593 00:44:09,740 --> 00:44:11,820 Okay, they're just choosing not to use, like, their name. 594 00:44:14,400 --> 00:44:15,580 What else do we want to show? 595 00:44:15,780 --> 00:44:16,180 Scripts. 596 00:44:16,260 --> 00:44:17,180 Oh, yeah, so scripts. 597 00:44:18,320 --> 00:44:19,280 So another thing. 598 00:44:19,280 --> 00:44:22,600 Another thing that you can do, since you're not doing specific hotkeys, 599 00:44:22,720 --> 00:44:26,200 you can get, like, byte patches or whatever else an IDC script or a plug-in could do. 600 00:44:26,400 --> 00:44:30,420 So you could actually, like, you know, buy an expensive plug-in or whatever for one machine, 601 00:44:30,880 --> 00:44:33,600 and then you could use that to drive several IDA instances. 602 00:44:34,560 --> 00:44:37,700 Okay, so Tim's going to go to the same address that I'm at, 603 00:44:37,800 --> 00:44:40,740 and you'll see I'm going to bring open IDA's scripting dialog box. 604 00:44:42,940 --> 00:44:43,300 Okay. 605 00:44:43,440 --> 00:44:44,480 I don't know how to do this. 606 00:44:52,680 --> 00:44:58,000 Okay, go back and grab some IDC script and run the script over the database. 607 00:44:58,520 --> 00:45:01,380 You know, Tim knows scripting window over there, two different screens. 608 00:45:01,660 --> 00:45:02,540 So I run it. 609 00:45:03,580 --> 00:45:08,600 He gets all the transformations, and I can reformat it, make it a string, 610 00:45:08,820 --> 00:45:12,680 and we find, you know, private keys embedded in binaries, and that's kind of cool. 611 00:45:14,220 --> 00:45:17,380 That's a Ken Shoto binary from last year that some of you may recognize. 612 00:45:19,280 --> 00:45:22,260 But again, so scripting actions push, all your actions push. 613 00:45:23,380 --> 00:45:27,820 This is by no mean, you know, this is early beta software. 614 00:45:28,020 --> 00:45:28,720 So, yeah, there are bugs. 615 00:45:29,360 --> 00:45:30,600 We're happy to hear about them. 616 00:45:31,140 --> 00:45:33,340 We will try to respond to them expeditiously. 617 00:45:34,820 --> 00:45:39,660 We're happy to hear about potential users, desired uses, and all that kind of stuff. 618 00:45:41,080 --> 00:45:45,100 So I'm going to, you know, make myself an open target to try to give the book away. 619 00:45:49,280 --> 00:45:53,060 Okay, and see if, are people pushing changes at all? 620 00:45:54,000 --> 00:45:58,640 Yeah, you're just getting busted Unicode comments or whatever that was? 621 00:45:59,760 --> 00:46:00,920 It's not showing up? 622 00:46:02,560 --> 00:46:04,200 You see mine, but I don't see yours? 623 00:46:04,320 --> 00:46:05,760 I have an Atlas filter on it. 624 00:46:06,160 --> 00:46:06,300 Yeah. 625 00:46:07,180 --> 00:46:07,900 User permission. 626 00:46:11,740 --> 00:46:13,280 Is anybody from the audience? 627 00:46:13,820 --> 00:46:14,420 What did you? 628 00:46:15,200 --> 00:46:17,500 Well, there were those ones that came in, but I don't know who they were. 629 00:46:17,560 --> 00:46:18,020 Yeah, I don't know. 630 00:46:18,020 --> 00:46:18,560 Oh, on the left. 631 00:46:18,560 --> 00:46:19,260 So who was pushing? 632 00:46:19,280 --> 00:46:19,380 Who was pushing on? 633 00:46:19,520 --> 00:46:19,920 I was here. 634 00:46:20,320 --> 00:46:20,680 My left? 635 00:46:21,900 --> 00:46:23,160 Front row left. 636 00:46:24,160 --> 00:46:24,880 My left? 637 00:46:24,940 --> 00:46:25,720 Yeah, that works. 638 00:46:26,120 --> 00:46:26,380 Okay. 639 00:46:26,880 --> 00:46:27,240 Okay. 640 00:46:27,940 --> 00:46:29,860 I thought it was your left. 641 00:46:30,800 --> 00:46:31,180 What's that? 642 00:46:32,240 --> 00:46:32,900 I don't know. 643 00:46:32,960 --> 00:46:33,380 Is he on? 644 00:46:34,460 --> 00:46:35,000 Who's on? 645 00:46:35,140 --> 00:46:35,620 You're on. 646 00:46:35,780 --> 00:46:36,100 This guy. 647 00:46:36,220 --> 00:46:36,540 Okay. 648 00:46:36,720 --> 00:46:38,280 I think front row left is a winner. 649 00:46:39,740 --> 00:46:40,100 Okay. 650 00:46:40,480 --> 00:46:41,360 So, nice job. 651 00:46:44,220 --> 00:46:46,700 We're going to wrap up the loose ends on the slides real quick. 652 00:46:48,240 --> 00:46:48,700 Oh, yeah. 653 00:46:50,840 --> 00:46:55,080 So, again, this just talks about scripts and plug-ins, boom, drive it with your scripts 654 00:46:55,080 --> 00:46:57,700 or your plug-ins, so you don't have to share that out. 655 00:46:57,800 --> 00:46:58,940 Here's my script running on your database. 656 00:46:59,080 --> 00:46:59,720 Now they look the same. 657 00:47:00,120 --> 00:47:00,520 Okay. 658 00:47:00,660 --> 00:47:01,240 Pretty easy. 659 00:47:01,740 --> 00:47:05,500 As I mentioned, I like it in a learning environment because you can ask everybody to join in like 660 00:47:05,500 --> 00:47:10,260 a read-only mode, and you can sit there kind of driving their displays to some extent 661 00:47:10,260 --> 00:47:14,500 from a podium or something like that, give a demonstration, and they can, you know, 662 00:47:14,500 --> 00:47:15,080 stay with you. 663 00:47:16,560 --> 00:47:19,260 And then here's some things that we're working on. 664 00:47:19,260 --> 00:47:20,940 We're on the drawing board for future work. 665 00:47:21,040 --> 00:47:24,800 We're hoping that the API expands to let us catch some of that pre-change notification. 666 00:47:27,080 --> 00:47:29,500 The better permission interface is actually kind of here. 667 00:47:29,840 --> 00:47:33,200 We're looking for the project migration, which is actually more or less here. 668 00:47:33,340 --> 00:47:34,800 It's just not incorporated yet. 669 00:47:35,480 --> 00:47:39,760 And, again, you know, if you're one of the people who studies these types of things, 670 00:47:39,840 --> 00:47:44,620 offline change merging and algorithms for doing that, we'll entertain it, but not sure 671 00:47:44,620 --> 00:47:45,440 how we're going to implement it. 672 00:47:46,620 --> 00:47:48,660 And I think that's pretty much it. 673 00:47:48,700 --> 00:47:49,240 There's our content. 674 00:47:49,260 --> 00:47:49,620 That's our tech information. 675 00:47:49,960 --> 00:47:54,820 Again, we're happy to hear from you, and we're taking questions from now until we're booted. 676 00:47:56,560 --> 00:47:56,980 So. 677 00:47:57,680 --> 00:47:58,160 Okay. 678 00:47:59,920 --> 00:48:00,400 Thanks. 679 00:48:02,180 --> 00:48:02,660 Yep. 680 00:48:07,960 --> 00:48:09,160 It's mentioned in the book. 681 00:48:09,560 --> 00:48:14,960 Its uses are described in the book, but it's, you know, like IDA's SDK, it's documented 682 00:48:14,960 --> 00:48:15,620 in the source code. 683 00:48:16,200 --> 00:48:19,020 The usage, your question was for usage, right? 684 00:48:19,260 --> 00:48:24,000 And the usage is actually documented by any other book that uses IDA. 685 00:48:24,100 --> 00:48:27,720 So this book documents the usage of the plug-in very well, because you don't have to learn 686 00:48:27,720 --> 00:48:29,620 special commands to do anything. 687 00:48:29,740 --> 00:48:33,980 As you work on IDA, if you've connected to the server, all of your work is going back 688 00:48:33,980 --> 00:48:34,260 and forth. 689 00:48:34,340 --> 00:48:37,940 Anything that your version of IDA supports publish capabilities for. 690 00:48:38,060 --> 00:48:40,240 So that chart that we had earlier. 691 00:48:40,500 --> 00:48:40,520 Yeah. 692 00:48:41,220 --> 00:48:42,140 All open source. 693 00:48:42,340 --> 00:48:43,440 We'll post it all. 694 00:48:43,560 --> 00:48:46,800 And, again, we're happy to hear of all the potential uses and so on. 695 00:48:47,000 --> 00:48:47,380 Doc? 696 00:48:50,120 --> 00:48:51,320 GPL version 2. 697 00:48:53,940 --> 00:48:55,140 Any other questions? 698 00:48:56,480 --> 00:48:57,040 Yep. 699 00:48:58,000 --> 00:48:58,560 Alice? 700 00:49:00,660 --> 00:49:01,220 Sure. 701 00:49:02,400 --> 00:49:02,960 Yeah. 702 00:49:03,600 --> 00:49:04,160 Okay. 703 00:49:04,500 --> 00:49:05,060 No. 704 00:49:07,300 --> 00:49:08,260 Next year. 705 00:49:10,460 --> 00:49:11,160 All right. 706 00:49:11,220 --> 00:49:11,800 I think that's it. 707 00:49:11,880 --> 00:49:12,740 Enjoy the rest of the con. 708 00:49:13,500 --> 00:49:14,480 All two minutes.