All right, so I'm Kevin Estes, this is Randy Robbins, and this is Hacking the Apple TV and Where Your Forensic Data Lives. Now just to set expectations so that everyone is here, you know, has the same understanding, we developed this slideshow based on today being newbie talks. So it's kind of high level and it focuses on the functionality of the Apple TV, how easy it is to actually hack it to do what you want it to do, and at the end of the talk we're going to talk a little bit about some of, a little bit about at a high level, where your data actually gets planted and spread across the Apple TV. The intent here is to kind of offer those that are looking into digital forensics or you know, you know, you know, you know, you know, you know, you know, you know, doing digital forensics investigations so that they have a better understanding of the capabilities of the Apple TV and where to start looking for data. That all being said, let's see if this works. All right, first and foremost, the DMCA disclaimer. If you see anything during this talk, either in the deck or that I say or do that you think violates the DMCA and you are the valid copyright holder, please come to me and tell me. Okay? And you have to do it according to all of the caveats there. And I don't know what the hell they are, but they're there. All right. So what is the Apple TV? This is an overview, so we're going to go over what is the Apple TV, what makes it so different, how it gets modified. We'll do a real quick discussion on the old way to do it as of about two years ago. And what has been going on the scene for the last about year or so. Maybe a little bit more than a year. And then we're going to walk through two different patch sticks used to modify the Apple TV. From there we're going to go into the forensics data portion. As you can tell we spend a little bit more time on the forensics portion, at least in the slideshow. You know I do have in case images if we run out of time and everyone wants to say, hey, we're going to have a bring that up and in case okay great we can all do that or we can all go find a beer I'll leave that to you all right so this is a really good image for from a couple different levels one it's very pretty and two it shows actually how hot the Apple TV tends to get we'll talk more about some of the basic hardware functionality an Apple TV in a minute but do notice that compared to the laptop that's sitting right next to it and the human hand the Apple TV is real easy to spot with thermal imaging okay and I like this just because I like it yeah I mean if you're you know that's what as soon as I saw that I was like I am getting an Apple TV all right so what is the Apple TV all right so first and foremost it is a digital media player it is based on OS X works with iTunes and iPhoto it has built-in 802 11 a G and in uses QuickTime media components to play different digital media and because it is the Apple TV operating system that is based on OS X it can be modified very very easily all right the basics of the Apple TV LS it is built on Darwin which is you know BSD unix which is the backend of course of Mac OS X it does use the front row application iTunes and iPhoto so just a quick note on that if it syncs with iTunes and iPhoto then you're not just looking for Apple TV if you're looking for something in someone's house right all right so it's built on Darwin which is a full kernel system for stability purposes and it does use kernel extensions just like Mac OS X so basically if there's a problem and Mac OS X there's going to be a problem in the Apple TV OS same thing for features and functionality and all that good stuff if you want to know more about the internals of OS X you can get with me afterwards I'll give you the name of a guy named Dino I never can remember Dino's last name and Dino's done a whole lot of work on that all right so the front row interface the one with the big red X that's the default menu for Apple TV OS 1.1 and the bad thing about it is is you can't really get these screenshots very easily without the Apple TV being already modified so you will not see the version for Apple TV OS 2.4 which is up on the screen there of course that one's had been modified you'll see that in a minute OS 2.01 same thing so basically the biggest thing about OS 2.01 is they introduce the genres category in the movies section which hey that's nice okay one of the other capabilities Apple TV is it integrates very very well with the iPhone as a remote control medium so you can see on here is two different components one is the iPhone remote application from Apple so it's four bucks or something like that five bucks from the application store from iTunes the second one is the remote application the nice thing about remote is once you install the helper application on Apple TV OS you can actually use your iPhone as a keyboard and a mouse as well so there's a lot of great functionality there and we'll get to you some of the places and things you can do with that in a minute and then we'll get to some of the places and things you can do with that in a minute the basics for the iTunes stores you know you can go out download movies high definition standard definition the nice thing I think from a usability perspective for people is it does allow you to actually look at other movies and who actually starred in them and all that good stuff it does sync with iTunes and iPhoto as the note says there you know if you have a hids or firewalls and you know other you know if you have a hids or firewalls and other security devices it's going to cause problems as a matter of fact on this is a Randy screenshot but I know on mine I always have to go in and disable my firewall instead of just adding the rules because I'm too damn lazy all right so how does it get modified two different ways to modify the Apple TVS the old way in the new way the old way required you to remove the drive which meant you voided the warranty you had to copy over scripts and binaries manually just you know plugging a drive into something you'll see that in a second generally it's more reliable things tend to work a little bit better patch sticks are good solutions but sometimes they don't work very well if you've ever jailbroken your iPhone and you've done it more than once you know you'll understand that yeah sometimes it works sometimes it doesn't work so well so the new way is kind of a take on the point-click hack type of thing from some automated penetration test tools you know point-click modified it's extremely simple sometimes doesn't stuff doesn't work or install very well but really the with the reliability you know you reboot keep the USB patch stick in there and try it one more time generally works very well on the old way and I'm not gonna spend a whole lot of time on these types of slides just to give you a real brief overview on the old way you had to actually take it out connect it generally you'd want to image the drive in case you host it this case I use DCF l DD just so that I could hash it and make sure that I didn't have any bit for bit errors or something then you had to actually copy over some of the binaries for SSH which was time-consuming a pain in the ass enabling VNC same thing it was not very easy as you can see there you had to basically download bind VNC install it on your machine let it run on your machine copy over the P list okay in enabling the kernel extensions all right kernel extensions for those of you don't know are those components that interface with the kernel and allow you to load basically drivers right so if you want to use a mouse you need a kernel extension if you want to use a USB drive you need a kernel extension on Apple TV OS 1.0 Apple said let's just use OS X for the Apple TV and they threw everything on there and they made some sim links and they made a couple different directories and partitions but that was basically it so you had everything you needed as of OS 1.1 they looked around and like oh shit people are actually using all of this stuff so they started removing it so as the game goes someone out there a couple people out there actually looked at it and said you know what no we're gonna make a way to add this back so patching the kernel manually bringing over the kernel extensions loading them up the process I think probably took about an hour once everything loaded of course and you enabled it you know run disk util with the list so you can actually see hey great it did find my USB drive and then of course you can actually make a sim link to where it uses only what's on your USB drive so all of a sudden you're no longer storing digital media on the Apple drive so you think well I'm gonna put this on another drive and I'm gonna put thermite on it and that way if they kick down my door everything's gonna be gone I won't have to worry about it all my files are on this thermite packed USB Drive we'll get to how that's wrong in a minute then you actually had to install awkward TV which gave you the capability to install all of the other great programs and we're gonna get to some of those in a second one of those is parian so if you use a Mac to play media other than what you can download somewhere else in the middle of you know TV land you're gonna need parian because you want to play other types of media because parent will actually let you do something do play things other than mp4s and h.264 encoded media so you install parian and then all of a sudden you can rip your movies download them copy them play them on the Apple TV you're done so your Apple TV has probably three and you haven't seen that movie that's a really good movie the hangover I felt like that this morning I didn't have a chicken I didn't have a chicken but I kind of felt like what's his name all right so the new way patch stick summary so all patch sticks basically do the same thing they start out the same way it does require USB Drive you do need boot EFI from an existing Apple TV Apple TV OS disk image right so the boot EFI is I don't know in the Windows world basically the what what NT loader okay so I was going I was going somewhere else so all right from a Windows world so it's basically like NT loader so it's the only way you're gonna be able to actually boot up the Apple TV is if you have this boot EFI so all patch sticks have that basically the only way they're all based on some version of bootable Linux every one of them and I have not found one yet that actually does not enable SSH and add your front row or finder appliances right wait what did I put on there oh okay it adds a finder app about appliances yeah they are all made for use with people with the basic understanding of computers all right so the new way patch sticks do a whole lot of knowledge right you're not probably not gonna have your grandmother do this but if your mom's been using computers for you know 10 years she'll be able to do this all right so we're gonna talk about one of the commercial ones right now generally I have not been very big on the commercial patch sticks because there are some really good free ones out there that that do a whole lot and enable all of the important things the one thing I did find that's nice about ATV flash is it actually does install a little bit more functionality including the ability to run Firefox without having a match a lot of manual hacks the code is is fairly clean that's commented I do not know how they are as far as their yearly updates I haven't done that for, you know, three years, but it does work fairly well. And it'll integrate with the Neato TV Smart Installer, which is important. You'll see that in a second. Just the basic process on it, you know, select the USB drive. It calls home, but it does, as far as I can tell, it only does so in order to check and see if there's an Internet connection. It does require an Internet connection so that it can download one of the Apple TV OS firmware updates, because it's going to be pulling files from them. After it downloads the update, it's got a nice little checklist menu, which, those of you on this side of the room, you may not be able to see it very well, but you can install a lot of different apps, like the ATV files, Air Control, XBMC, and Boxee. And you're allowed. You can disable the auto-update. That's an important feature. That's in all the major applications. If you don't do that, what happens is, is Apple pushes out an update to the OS, and it overwrites everything, and then you have to go back and re-break it, which is just generally painful, because, you know, if you're like me, you spend a whole lot of time actually setting everything up the way you wanted it. You tell it what to do. It doesn't delete. It doesn't delete the files, necessarily, so you still have the, some of the files that are still on there, at least as far as, actually, no, actually, I actually think it does delete most of the files, because it actually rewrites everything. Yeah. Yeah, your movies and stuff will go away. Yeah. That's one of the, see, the caveats to this is, is generally with an Apple TV, you're syncing your movies with iTunes somewhere. On the, the ones that you bought, the record of your, your purchases from iTunes will stay with your iTunes account. Roger? Correct? So, as soon as you reinstall, it'll ask you, when you go into iTunes, it'll say, hey, do you want to download all your movies you paid for? Yep, and it re-downloads them. So, you'll lose everything. It's been a while since that's happened to me, so I kind of have to think back. I disabled auto-updates the first time I hacked mine. Geez, three, three and a half years ago, and I haven't, I haven't had it overwrite any of my stuff since then. So, but we can do it here after we're done. So, just to make sure. This is just a real quick glimpse at the file structure. Basically, the only thing I really wanted you to see here is that there is a hidden subdirectory called root, root. root. That's actually what's copied over to your patch stick, to your thumb drive. All of the directory structure of the applications, including the plist for CouchSurfer and everything else, at the bottom of the window, which you actually can't see on the slide here, it has everything you need in it. Okay, so this is basically a mirror image of what gets copied over onto your thumb drive. That's just a snippet of the code. It's very pretty. Now, we'll just go through a quick overview of ATV USB Creator. What we're going to do, just so you know, is we're going to do ATV USB Creator, and then we're going to demo it on this box over here. Do you want to go ahead and walk them through Neato before we do that? Okay. Okay. Just do that. Let's go back through there. Okay. We're going to get a little bit out of order here. All right. So we're going to talk about some of the popular applications, but one of them is Neato TV, and we're actually going to set up to run Neato here in a second. So Neato TV is installed by just about all the patch sticks. It has just an enormous amount of functionality. It'll install all the kernel extensions that you need, allows you to view RSS feeds, and a lot of third-party applications. It does mount your USB drives for you, gives you access to streaming media as well. As you can see, the RSS menu is not very functional because it's all text-based, and I haven't found or tried. We've tried to put a different RSS reader in. It does have a large back-end functionality for settings. That's actually where the best thing is. Neato TV has what's called a Smart Installer, and the Smart Installer will actually go and download everything it needs to install the new applications, including Parian and all the kernel extensions, all of the updates. The Utilities menu is nice on it because it actually goes through and you have a lot of different utilities for, you know, rebooting the Apple TV or restarting Finder or whatever, and it gives you access to the console, and as you can see up on there, SSH and all that. Oh, you're walking through too, good. All right, so, do me a favor, go back on to the files of the top. All the way at the top. And then enter. Okay, so I just threw a couple movies on a thumb drive and stuck it on there a little bit ago, and you'll notice it automatically pulls those up, it mounts the thumb drive, you can see a little disk image of them, you see a little graphic of them, right? It'll go through and play. Now, right now, I have it playing through something called mPlayer. Neato TV. We'll install two different, we'll have two different players in there. One is mPlayer, which is an open source media player, runs on OSX, and the other one, of course, is QuickTime. So, I have these set to play through mPlayer. No. I'm sorry? No, those are our MP4s, actually. Xvid will play. And if you set up, you can, there's a little checkbox in Neato TV, and you can have it play in mixed mode, and it'll actually pick which player to use. Petroska? I'm not sure. MKV files. mPlayer, I think, does play MKV files. QuickTime, even with Parian, it has problems with it. Because I did that with some of the MKVs. And I actually had to force it into mPlayer. I had to take it off mixed mode. So, I stopped using them. Sorry, my goon radio. Okay. Yeah. Yeah, I don't think. Nah, you don't need to go through. Let's go back up real quick, run through the ATV USB creator. And what we're going to do is we're actually going to run ATV USB creator. If you notice, right now on the menu, yeah, go all the way up to the top. So, we'll walk through, we'll look at some of the apps later. This launcher menu is installed by ATV Flash. Or ATV USB creator. There's also going to be a software menu in a couple of minutes. So, we'll look at that in just a second. But let's just walk through some of the overview of USB creator. I'll let Randy do that. How y'all doing? So, that was my part of this presentation. I'm playing with ATV USB creator. It's basically an open source patch stick. It takes your USB stick, re-formats it, re-partitions it, makes two partitions on it, a hidden partition that uses the boot Linux and it puts a visible one in there that runs the scripts from. It's on Google code. It's managed by one guy. I wasn't able to find out any more information about him than what was on the page. It adds all the stuff that Kevin's described from the SSH utilities and file utils and the XMBC as well as BOXY to your capability to install. Basically, not all. Thumb drives are created equal. Some of them don't function well with the way the creator re-formats the drive. So, you might have to play around with that a little bit. Make sure you're doing it on the right disk. Make sure you check your disk finder or other drive disk manager. Click create using button down below and it will create it. You can select a different DMG if you want. So, if you're rolling your own Uber ATV recovery DMG, you're welcome to insert whatever functionality you want into it. In about two minutes, it will make an ATV USB patch stick. Here's a basic layout of the scripts. It's very similar to ATV flash. However, the ATV flash is a little bit different. So, use that. It's a very simple layout. So, if you wanted to add more stuff into it, it would be very easy. You'll see later on. I'll just give you a layout of the drives right there. After it's created, the disk 2 S1 is not visible when it's mounted. Okay. Perfect. And similar to atb-flash, it's got, it's pretty good code, it's commented, you can go through it and follow through it, basically it sets up links and then runs install.sh scripts from the other subdirectories. So you could add your own additional install shell scripts and add whatever you wanted to into the process. And once you're done, you have the modified Apple TV with your menu and the software menu that Kevin was talking about. You notice it's not on this one yet, but when we run the patch tick on it, it'll show up on it when we reboot it. So, ready to do a demo? . Yeah, that's the only user that's on the system by default, is front row. And it's... . . . . . All right, so let's let this boot up. You can see it's actually loading the, I can't see what it's loading from here, but it looks like it found the patch tick. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . yeah I mean it's it takes nothing hopefully this will finish booting in a second mine has a 40 gig hard drive they are selling with 160 gig now sir oh the patch stick yeah they recommend 256 or more but I have a 4 gig sand disk and ATV flash just would not work I threw it on the 256 it worked fine yeah yeah sir there's no way that it can do what my believe that I it'll do to 1080 I yeah it'll do 1080 I don't think it's P I think it'll do 1080 I no I don't I I don't know one no I don't know one yep okay so on the software menu which is new we can go in go to third-party plugins and yeah see if it'll go and it's thinking right so mine's on the L worked a little bit it should over Tammy I don't yeah at the honestly we've been pretty lucky with the whole demo thing the day so I'm I'm not too unhappy alright go ahead and back out people to back out and go to manager Windows built in and see all right so everything's shown so you can actually go in and decide on on which of the plugins you want to you want to show everything shown go back out and one more time for the plugins all right so it may take it a second let me go ahead and go down see what we have after this okay sir yes it does it did yeah you know what either do check actually don't do check for updates go back and check for updates go back and check for updates go back and check for updates go back out to the main movie menu and see if it'll if it'll pull up the iTunes top movies nope it's got access to the internet all right so the key point here is that with the software with ATV USB creator it's that easy to hack the Apple TV it takes just a matter of minutes and you've included all the functionality you have a question you know I I don't know I'm sorry if the the question is is is if I think Apple TV might disable booting from the USB device you know I guess my answer is twofold a I don't know if that's actually possible just because of the the way USB works and be I don't know that they would do it even if they could uh so far they've left the Apple TV community completely alone that that you know you don't have cease and desist orders and stuff like that um you know as the question of the the question of whether they would is a good one uh primarily because you know you've seen this with the iPhone that uh all of a sudden a an application gets uh denied because it duplicates duplicates some of the the the the the the the the the the the the some type of iPhone uh functionality um right so you know whether or not they would start doing that on Apple TV I don't know but I I'd like to see them start building in some of this functionality actually you know I wouldn't hack the dang thing if it would come out and and and be half as functional as it as it is unhacked you know why in the hell are you gonna do it you know I I want to uh use a firewall um I want to be able to surf the web on on my couch I'm freaking lazy you know so all right what we're gonna do we're gonna go ahead and what time are we at now because I want to we need to get into some of the forensics here soon too it's 3 35. okay so we have more than enough time great all right so we're gonna do right now um we had uh set up for the neato TV demo we already kind of walked through that I want to kind of look at boxy oh so it is and it was and it wasn't anybody no we should be uh connected on your uh hardwired speaker land unless I unplugged it all right so whoever raised his hand a minute ago about the inner check for updates on the software menu that was you yeah so apparently the top movies was cached we may need to reboot yeah why don't you go ahead and do the try the check for updates but yep they're showing now in all honesty I don't use the software menu that much anymore all right go back to the plug-ins and scroll down a little bit okay so here in the software menu you can actually go ahead and install neato TV um so basically once you install neato TV it's going to install all of its subs systems uh you can install uh couch surfer which is a version of Safari that was modified for use for the Apple TV um and of course Sapphire uh which is a basically another interface for media player um I don't I don't really use it very much um and then xmbc launcher which will allow you to um play or launch xmbc of course and boxy which we're going to go over here in a second back it now so anyway the point being is that it's real freaking easy to go ahead and do this um go ahead to launcher oh did you just install xmbcboxy or what yeah see if my launcher menu is still there since we ran both a TV Flash and an ATV USB creator on this. All right, try to launch Boxy. And let's see. Wow, we were so lucky for so long. Yeah, you know, reboot it. Yeah, reboot it. No, it just... All right. All right, the main... All right, the main... The main idea here is that for people who don't know what the Apple TV is, give you an idea of what the Apple TV is doing or can do. For people who are in law enforcement and may be doing investigations, it's a good idea to understand what the Apple TV is capable of so that you know where to start looking. So that's why we've kind of spent a little bit more time on the applications and the functionality just to kind of help people who need to find that that needle in the haystack. No, you don't want to do that because I'm not going to be able to log in here. I'm not going to put my credentials in. Reboot it. Reboot it, see if my menu comes back. If it doesn't, you guys can just visualize what Boxy is supposed to look like. How paranoid is that? I'm on the speaker land up here and I'm like, yeah, I don't know. I don't think so. You guys look dangerous to me. Sir? Sir? No, not. They added a larger hard drive. I think it was last year. Yeah, I mean, everyone's hoping for, you know, the new NVIDIA GPU and, you know, things of that nature. But no, nothing. It's almost like it's been lost and forgotten by them. You know, the community was kind of excited because of the integration with the remote and everything else and the updates on the 2.4 for integration with the iPhone. But so far, we haven't heard anything. It's that, you know, maybe, you know, after they're done with their netbook, we'll get one. I think there may have actually been, I have the older, the first version with the 40 gig hard drive. I think that they had a little bit faster CPU, but I don't think it was anything major. Quite honestly, I don't track it as, you know, very closely as far as that goes. It's probably easier to replace the hard drive as far as stability goes just because the kernel extensions, sometimes they load at startup. Sometimes they don't, so you'll have to reboot. You know, so for me, I have, you know, I have four kids at the house and generally, it's a pain for them. You know, so I've had to teach them how to reboot the Apple TV or turn the USB drive off and turn it back on. Well, they, it's actually, if you have some spray, adhesive that you can get from the art store, when they, you can just spray that back on. That's it. There's, there's some Torx head screws underneath. There's four Torx head screws. So, no, it's not like, if you've ever tried to open a Mac mini, you know, with the, the spatulas and everything. Yeah, no, it's not like that. And it's not like one of the MacBooks where it's like 18,000 screws either, right? No, it's four screws and then there's four screws that hold on the hard drive. Do we come back up? Great. I think we broke my Apple TV. There it goes. Now, see if I have the launcher menu that's back. I mean, did it, no, go, go down, see if it, put it down on the bottom. It's back up. And, um, it worked fairly well that time. Um, did not this time. Someone had a question? Yeah. Um, you know, you know, you know, you know, you know, you know, Yeah, you can actually install Apple file sharing, SSH, and FTP via Neato TV. Yeah, so right there on the services menu. So it's pretty simple. All right, so we can't do the Boxee walkthrough, but you'll see some of the remnants from Boxee here in just a second. All right, so the other portion of this is to give you some information on where your data is being stored on Apple TV, and also the investigator an idea where to look. The high-level issue here is that, the way Apple has made the Apple TV with separate partitions, is that it's kind of like a little data fairy came through and just sprinkled your shit everywhere all over the drive. It's all over this machine. So some of the big-ticket items. So we're going to talk about a hardware analysis from a forensic examiner perspective, so what an examiner needs to understand and be aware of when they start doing an investigation. We're going to talk about a software summary from the same perspective. If you don't know by now, this is kind of part of what Randy and I do in our day job, so we're trying to kind of spread the joy. Talk about some of the file structures, some of the basic forensic considerations, and then we're going to take a quick look at, some of the important directories on the Apple TV and some of the areas where data is stored. The biggest issue on the hardware, from the hardware side, it's a very small form factor and very low noise. There's no need for a fan or anything else on this box. The biggest issue as far as noise goes, if you want to count it as a noise, is it emits a lot of heat. It radiates heat. All right, so that's one key point. It has both 802.11n, which of course includes BNG, backwards compatibility, and it includes a 10100 Ethernet port. And actually I think the new version, I think actually has Gig on it. And the video output from the device is processed via HDMI component video, and audio is via optical or RCA composite connection. So it has a lot of different ways it can connect and store data or transmit data. On the software side, from the examiner perspective, the high level stuff to know, again, I can't put, you know, hit this too much or too heavy. It's built on a full version of OSX. So you can do just about anything with this machine. Sir? . . . . Oh, you mean it does not PowerPC? Right. Yeah, that's true, that's right. Yeah, so it is built on X86, so you don't have a lot of the strangeness that happens with the backwards compatibility for PowerPC. It is, of course, the mock kernel, so that's a little bit more difficult to get used to. Dino Dezova yesterday at the Black Hat talk was talking about some rootkits on OSX and one of the points that he made was the great thing about OSX is that it makes you feel like you're learning Linux all over again There's two primary variants of the Apple TV OS. There's the version 1.0 series and the 2.0 series Again the 2.0 or Take-Two the biggest issue with that is they removed a lot of quote unquote unnecessary applications From a software summary perspective again high level, it does have a GUID partition scheme It's formatted as HFS Plus and by default should have four separate disk partitions So the first one is the extensible firmware interface, right? So that's where all your data is stored so that your hardware knows what to do The second one, which is of note, is it has a recovery partition That recovery partition stores a unmodified copy of the original version of Apple TV OS that was installed by the factory So you can always go back and recover from the hard drive It has an OS boot partition for all your boot files Supposedly And a media partition for all your media files Supposedly Sir? Patchstick doesn't whack the recovery partition? No, sir Patchstick does not whack the recovery partition It is left completely alone Um One of the major things that you'll find in the Apple TV OS is it takes liberal advantage of symbolic links Um This is on the screen over here You can see pointers from the users to Slash Mount Scratch users Um And mock to mock dot. So you'll find that all over the Apple TV Um Basic forensic considerations on the discovery side Um One of the things that people tend to forget Is with a Device this small Um With all of the wireless ki- Connections it can make It doesn't have to connect to the network that's in the house you're in Right? It can connect to every device that you are using right now any freaking network right so when you're going in you're doing an investigation do a wireless assessment you know look and find out all of the the networks that are around in the area document them see if you can't get ssids and um uh you know mac addresses and ip addresses signal strengths all of that good stuff because you don't know whether or not the apple tv is actually connected to the one in the house yes there is the apple tv loves you and it loves keeping track of you uh sir oh i'm very sorry guys yeah thanks for stopping me so the question is is whether or not there is a log of the connections that the apple tv makes um and there certainly is that's one of the the uh directories actually the log files we're going to point out here in a couple of minutes um so all right the apple tv does use property list or plist files um they are configuration files just like an osx um you can the best way of course you know if you're a forensic investigator you're probably going to be using an apple to do your investigation of this device but if not then okay look a plist file is an xml file so you can just use any xml viewer or text pad if you want osx this version of osx the apple tv still does use netinfo databases so the there is a a linux application that you can still find out there um by and you can see it there by paddle software um that allow you to open up netinfo files um generally you don't have to on an apple tv um if you want to know what you know uh directories this thing is connected to and what networks and and things of that nature the normal stuff that's that's stored in netinfo files you can find it in the log files you don't have to look at the netinfo information that to those databases um i'm it's a lot of people in the in the community think that right now this version of the apple tv os including up to 2.4 which is the current version is built on 10 4 8 and 10 4 9. a lot of people think that it the next major version that they actually may go up to 10 5. so at that point you don't have to worry about that info anyway um as we talked earlier the apple tv kernel file must be patched in order to allow you to run kernel extensions so that file is the first indicator that something is awry okay you a quick md5 checksum of that file of the file that exists on the apple tv against your md5 checksum of an unmodified apple tv mark kernel tells you okay yep that one's this this machine's been hacked um generally most of the fans i know tell you the dot mds app so if you get into app vale they're all the way up to the do notall comunidad tab and all that stuff like that so so obviously resources are getting more and more so The patch sticks do you little favor by actually including the old original file on there. I'm not really too sure why they do that because you can't go back once you've already done it anyway. There's no runtimes or subroutines or anything like that in the patch sticks that allow you to go, oh, yeah, unpatch me. All new kernel extensions are loaded in the OS boot system library extensions. And two different places for SSH, for secure shell. If they did it manually, it's going to be in user bin, user S bin, I'm sorry. New patch sticks use a version of SSH called drop bear, which actually is pretty functional. And that's dropped in user bin. Okay. Most of your user data is in users front row. Okay. The default, the default user on an Apple TV is the front row user. So just about everything that gets stored for your use is going to be in users front row. Most of the main applications anyway. However, as it says on the slide, your data is everywhere. Now remember we said that it has an OS boot partition. That's supposed to be for booting. It's not. The Apple TV actually will store a lot of stuff in OS boot, but it's not going to be in OS boot partition under the file systems area. If, you know, fuse file system, you know, mount a SSH shares as a drive. That's going to be in there. It's going to put it in OS boot. Things like how you enable AFS or other types of file services. That's going to be an OS boot. A lot of the executable libraries that are loaded for use with the NITO TV, which is the NITO TV, with Parian XMBC, a lot of those things are going to actually be over in user lib exec. Right? So in general, if you're, if you're following along and you're used to working on a Mac, these directories at least should make sense and they should sound familiar. The difference here is, is that you're not on slash, you're on either slash OS boot or slash media. And if you're mounting it, it's going to look at, you're going to see it actually includes seed scratch or scratch, which will, I think we'll see in a second. All right. Just like on a Mac, your photos are going to be stored in a photos directory. And it's going to have the same P you know, XX for your information that is on media. It also keeps a, if you have anything mounted that's set to mount it, boot. So your auto mount that P list is going to be on media because it looks at it as a, as one of your library preferences. Amazingly enough, it's not in, you know, user library preferences. It's in the main library. Let's see that, that, that, and of course we were talking about a known network. So the question, if you look at item number three, media, scratch library preferences, system configuration. So that information about all of the airports that you've connected to, and all of the networks that you've connected to are actually sitting right there for you. As far as I know, and I've been able to tell that is not cleared out at reboot. It saves, I think the last 16 connections. So it's only cleared out whenever it gets a new network and it goes over that, that field. Of course you could go in and modify that P list to where it only keeps, you know, one, whatever. I don't know if you could drop it down to zero. I'm not sure. I haven't tried that. And of course resolve.conf that one generally it's, it's primarily used just like on a windows machine. So if you want to point the apple update web address to 127.0.0.1, so it doesn't update, then you can do that manually. All right. The two main areas where most data resides is going to be in your logs and it's going to be in the applications themselves. logs, uh, OS boot has a bar log partition and so does media. So generally, um, from what I can tell so far, all of your data is going to, going to write, to at least one of those places and if, and possibly both. Um, the worst part about it is the, um, applications like Nito TV, Nito drops in a massive amount of data, um, on as far as cash files onto the apple TV boxy. Doesn't seem like it does that much. It does keep some of your preferences of, you know, your applications where you've gone and things of that nature. Um, the data remnants just from doing a in case, you know, I did an image real quick and in case, well because I have in case and DD takes forever. Um, and a real quick dump of some of the images that are left there. All I did was click on gallery and in case and say, show me all of the pertinent jpegs, tiffs, whatever that are stored on this apple TV and um, I pulled out some, gosh, I think it was over 150, 160 images. Um, and just grabbed a couple that the apple TV happened to keep around. Right? So basically the, the, the main gist of the talk on this part of the talk is the apple TV stores just a massive amount of data. Um, most of that is in the logs or in the application areas. Uh, if you're in law enforcement and you want more data about that, come see me or Randy. Uh, we are developing a tool for law enforcement much like the Xbox 360 toolkit so that it can actually go in and help determine if an apple TV has been has been modified and start pulling off, sucking off some of the data. Some of the pertinent information. Uh, we're hoping that, uh, we'll be unveiling that tool later on this year at DOD cyber crime, but we haven't been confirmed yet. Um, all right. So that concludes the talk. Sorry about the, the boxy, um, issue. Uh, if you have any other questions, you know, let us know. Um, hopefully this has been of some benefit to everybody. Yeah. Okay. Thank you.