Computer Forensics
How do you get the evidence off of a computer, ensuring that it's capable of withstanding a defense lawyer's scrutiny? Maybe you would just unplug the machine and put it in storage awaiting a detective's arrival, but is that what we should do? What if the evidence is on a production server that can't be simply unplugged and put into storage? What if that evidence is slowly being erased as files are created and deleted on that server? How do you help build the case against a computer criminal? Hopefully you'll never have to worry about computer crime in your home or workplace but if you do have to worry, Computer Forensics will be an asset to your part of the investigation.
Who is this book for? Computer crime isn't simple -- it can range from damage done by simple script kiddies to corporate espionage by disgruntled employees, as well as sophisticated, multi-homed attacks by skilled crackers. Computer Forensics tries hard to cover a lot of these areas. The book includes a chapter dealing with laptop hardware, as well as ones on data hiding and encryption, and further chapters on putting evidence together and dealing with law enforcement. While these topics may be of interest to the Slashdot crowd, Computer Forensics focuses more on broad topics of interest to computer detectives faced with getting up to speed quickly with computer crimes and computer evidence gathering.Several chapters are downright boring for anyone who has a modicum of computer experience. Finding out where e-mail is stored on Windows and Linux machines, or understanding what a root-kit is and what it does will be pedestrian for many readers. Nestled away between the necessary-but-pedestrian topics, though, are some very useful tools. The authors use netcat with tar to copy files between machines without disturbing the modification times (something I would never have thought to use). Novice users will find a wealth of tools and examples in these chapters. The tools used in the book tend toward open source and free tools, and rely heavily on Linux as the Swiss Army knife for handling file systems and files without disturbing them. Any reader should be able to put together a decent set of tools from this book.
Making it all workPutting together a good forensic kit is all fine and good, but making sure your evidence holds up to the scrutiny of some high-powered, high-priced defense lawyer is much more important. The last chapter of Computer Forensics gives a brief introduction to the criminal justice system. The authors touch on notifying law enforcement agencies, search warrants, probable cause, interviews, subpoenas, dollar loss guidelines, and testifying as an expert witness, among other legal topics. The appendices of the book have checklists, flowcharts, and an incident report form to aid investigation and evidence gathering. These are invaluable resources for the system administrator of any public machine who needs to deal with law enforcement.
Conclusion Thinking about dealing with courts and law enforcement may not be at the forefront of any administrator's job, but it is a reality any administrator needs to think of and be aware of. Computer Forensics will at least make administrators more aware of what their legal options are, and of the form in which gathered forensic data needs to be presented as evidence. Computer detectives will find a good, if not rudimentary example of what to look for when investigating a computer crime scene. This may not be the most comprehensive book on the subject of computer crime, but it will point you in the right direction to help investigate it should it ever happen to you.You can purchase Computer Forensics from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
The security focus mailing list dedicated to forensics is also good lurking, for those interested...
c s/
http://archives.neohapsis.com/archives/sf/forensi
Video Phone Blogs send video messages straight to the web.
We use Dynacomm i:scan in our enterprise and it basically does all the forensic work for us. Kinda spooky the things it can report and notify on.
In other countries, this book is titled, How to Avoid a Forensic Data Trail on Computers You Compromise.
taken! (by Davidleeroth) Thanks Bingo Foo!
OS level Forensics are much easier if all your computers are set to the same time.
There is no (good) exuse for not at least NTP'ing all your servers.
...yup...
when a crime has been committed on a computer?
Must be old mainframes then.
CC.
TaijiQuan (Huang, 5 loosenings)
Many financial firms including the one where I work, have instituted internal forensic security policies to help limit corporate liability. In our case, we have caught and successfully prosecuted employees for pornography on corporate assets (including child pornography in one case.)
There are designated employees on the forensic team in each department who are responisble for witnessing the process and documenting the chain of custody for data and items.
We've invested in specific equipment, including network sniffers (other then those used by the network group), hard drive replicators, log books, and materials for collection and storage of evidence.
Everything has a chain of custody and is then turned over to the proper authorities.
As far as the law is concerned since the employee does not have a right or expectation of privacy when working on a corporate asset, everything we take is completely legal. As long as we mantain an effective chain of custody it will likely hold up on court.
Just my two cents. Your mileage may vary.
What if the evidence is on a production server that can't be simply unplugged and put into storage?
In my company, once a machine is compromised, it's offline and ghost image taken, no questions asked, even it's a live ecommerce site. You would rather putting up a "Unscheduled Outage" notice than inflicting more damages to the server/data.
It's like a 777 pilot asking if he should make an emergency landing due to a fire alarm, because there are 350 passengers onboard and we don't want to spoil their holiday.
Actually I think pilots do that, that's why we get to read blackbox transcript like
GPWS: "Whoop, whoop. Pull up. Whoop whoop. Pull up."
CA: "Don't worry we can make it."
GPWS: "Whoop, whoop. Pull -."
Rock that crushes, Paper & Scissors that don't matter.
Recently, I was contacted by the local PD in regards to a huge number of stolen CCs being used from our IP-range (Internet Café).
After getting a list of specific timestamps (along with IP-addresses), I was able to figure out who the culprit was.
That said, the man-hours I put into the whole thing seem to have been for nothing.
The PD won't do jack shit - too little resources, they say - which is why I find it funny that they can't even send a unit to pick up the frauders when they're actually on-site (yet they can be seen parading the streets, looking for minors consuming alcohol).
Just because law enforcement want your help doesn't mean they'll do anything - even if you virtually hand them the crooks on a silver platter.
Then again, things might be different elsewhere.
The publication date on the book linked is 2001. That makes this book three to four years old. While some of the information may be the same, there are quite a number of new tools and techniques out there. So some of this may be pretty outdated. I have yet to find a great book on system forensics. The best so far is the book "Know Your Enemy" buy contributors to the HoneyNey Project.
I work at a large semiconductor company (not to name names, but a really big, US, SC-based one) that had a recently fired employee wreak havoc on one of the factories' databases as a result of his termination. Basically he used his not-yet-cancelled remote access, and deleted a critical DB. Now this isn't hacking in the sense of rooting a remote exploit, but it's malicious intent nonetheless on computer systems. It was obvious what happened (the factory stopped running), and very quickly we were able to track down the last few commands logged, where they came from, etc., etc. How it was handled was actually an FBI case. We turned it over to the security department at our company, and they worked with the FBI; we were asked questions by the men in black, and this person was eventually arrested and put away in a dark, dank hole.
Not sure if this is the norm, but I'd figure when corporations and expensive IP is involved, government-sanctioned agencies will be in the forefront of people investigating, IMHO.
The problem with computer crimes is that they are not easy to track. On a regular PC, a cracker could break in and remove any evidence (on that PC) that the computer was ever hacked. You might catch him if you happen to be looking while he is busy, but after he is finished, there is not much you can do.
There are, however, some hardware solutions, namely, to keep track of everything that happens (this is expensive!). Software could also do that, so long at it cannot be hacked. Overall, I think the best thing to do is to keep a backup inaccessible from the network, and hope no sensitive information gets stolen.
Don't waste your vote! Vote for whoever you want, unless you live in a swing state it won't matter anyways
Whenever you do work like this on computers, it's important to know that the computer is ultimately the victim here. Don't be too rough with it in trying to get information. It's important to get information back, but it's also very important to maintain the computer's well-being. Always ask before taking a look at the computer's hard drives. If the computer refuses, back off and try again another day. After being so traumatized, many computers will not feel comfortable letting you in right away. In some cases, gender may be an issue, so always use female-to-female or male-to-male data cables when attempting to access the computer's internal ports, as recently attacked computers may have more hostility toward opposite-gender pairings in interrogations.
Please, always make the computer your first priority, and be mindful that you do not damage it further in your rush to make an arrest.
You don't have a networked machine? Does that mean that you are posting to Slashdot from an internet cafe? Or are you posting from a spam server that you call "my computer"?
Just because you won't loose your job if you get hacked, doesn't mean you should ignore the possibility.
Don't waste your vote! Vote for whoever you want, unless you live in a swing state it won't matter anyways
Step 1: Turn off the machine.
Step 2: Make a bit for bit copy of the drive (there are special devices that will ensure that NONE of the bits are changed).
Step 3: You can now run whatever forensics tools you want *on the copy*. The original has to be kept unchanged for it to be worth anything in court.
Make sure to never boot up the drive in question, a good criminal will have the drive auto-erase if it doesn't get a password in a certain amount of time, etc.
Rsync will do this simply and efficiently, plus it can resume transfers and also tunnel through ssh.
Also you can pipe dd through gzip/bzip2 and netcat to give you a loopback mountable, unmodifiable image that you can look at in case you want to grab the whole drive before putting it in the evidence locker.
I am, and always will be, an idiot. Karma: Coma (mostly effected by
and if i you can find them. Call the A-team.
In the case of HL2 code theft, Valve got lucky; they just had to wait for the hacker's ego to blow out of proportion due to the massive coverage. He emailed them. Several times. He went to a meeting for an 'interview' for a 'job'. Thank god, most hackers(as in illicit network infiltration) / criminals eventually make mistakes. In this particular case, it was pure dumbness, however. Imagine the scene :
Heh.past
Eureka Science News - automatically updated
Wouldn't that depend on your role in the crime, and your lawyer's advice?
See what I've been reading.
I would do whatever the nice people with the guns told me to. Nothing more, and nothing less.
The guys with the guns are not my friends, but they're pretty nice to people who help them. The most helpful thing you can do for these people is to sit the fuck down, shut the fuck up, and to do what you're told.
Unless you're being paid to perform an investigation, getting good forensic data off that drive is not your responsibility. That's the responsibility of the friends of the guys with the guns. (Are you a friend? Easy to check! Is your paycheck signed by a big guy with a really big gun? If not, you are not one of their friends!)
Going further, getting data off the drive isn't your responsibility -- but not fucking up the chain of custody is your responsibility. If you fuck up the chain of custody, the guys with the guns will be very, very, very angry with you. (You do not want this to happen.)
So:
1) Do not make the people with guns angry.
2) Do not "help" the people with guns (even if you want to), because anything you do to "help" them runs the risk of making them angry.
3) STFD. STFU. DWYT.
Y'know how we geeks have hundreds of words to express the concept of "nontechnical person who is too clueless to be allowed anywhere near a computer"?
I'll bet cops have hundreds of words that translate to "civilian who is too clueless to be allowed anywhere near an ongoing investigation".
The Sluth Kit.
Never ascribe to malice what can be adequately attributed to ignorance. -Napoleon
why the review now?
http://www.ncjrs.org/pdffiles1/nij/199408.pdf
1) Put a password on your bios. Someone will have to do some fancy soldering to replace it if they want to boot your machine without your password.
.....
Unless you did some REALLY fancy soldering to set that password, simply removing the battery from the motherboard for about 10 minutes resets a bios password.
2) Store all sensitive data on an encrypted medium. Just hope no one puts a key logger on your keyboard.
That all depends on the strength of the encryption you use and the strength of the computers trying to break it. (to give you credit, this is probably the best idea you propose, if it is properly implemented.)
While being quite secure is as simple as installing *nix,
This is the one that really bothers me. You have to actually CONFIGURE your *nix to be secure! It doesn't just magically happen. And after you have it configured, you have to stay up to date with the programs you run in order to avoid the latest exploits.
It's important to understand that you can't just do some work on a computer and then sit back and say, "there, now it's secure forever". It's also important to understand that given the proper amount of time, nothing you do will secure your computer if someone has physical access to your machine.
----
Squirrel
If you have had a breach, and its going to involve *anything* legal:
.. not 3rd.. do it even before you even call the cops....( well after you plug the hole... )
TALK TO YOUR ATTORNEY.. first.. not 2nd
---- Booth was a patriot ----
A mercury switch and an emp device Or perhaps an encrypted file system. Just be sure to remember the 1024 bit number.
1. your whole philosophy of "just do what you are told" is the best philosophy for making sure the guys with the guns stay on top for as long as possible... in other words, you're attitude is part of the problem: "i'm just a slave, i don't think"
2. for a treatise which draws a line between yourself and the guys with the guns, you come across as pretty passive aggressive
intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
Before you start handing out information it is always best to wait for a subpoena. Make sure it's signed by a judge and not a clerk. There is a reason for due process and law enforcement understands this even though they don't always want to follow it!
Lock the hard drive. The ATA and SCSI spec both have provisions for locking the drive's electronics to dis-allow writes or reads for the disk's data. your copy utility or machine will not work without these keys.
HOW HDD LOCKING WORKS
The above is a quick little write-up I did to explain to all the Xbox people who want to use/access the drive that ships with the Xbox (after they've ruined their MB or sold it on e-bay) why they are really quite screwed. This is not definitive, but it is fairly accurate in what it says.
-nB
whois gawk date unzip strip find touch finger mount join nice man top fsck grep eject more yes exit umount sleep dump
"intel"
e l_gun_ man/
the ex-employee is David Dugan.
the case you're talking about is this one:
http://www.theregister.co.uk/2004/11/11/int
I really enjoyed the book myself when I read it this summer. As a compilation detailing computer law it was pretty good. Most of the tools I found to be aging or at a very low level. If you add in "Cybercrime" by Ralph D. Clifford an excellent book on computer law it opens a much broader picture. "Software Forensics" by Robert M. Slade is my current read and gets an interesting rating for now. "Computer Forensics" unfortunately is only part of the picture. With so much of the net existing in RAM and the traffic in between nodes "Network Forensics" should be the next big topic. There has to be a way of taking dynamic bits and making static evidence. There are a few other things that are going to hold back the field of forensics. The fact that the commercial forensic tool vendors have been refusing to teach the defense attorneys or experts is very scary. This is a rapidly expanding field very similar to how DNA expanding in the 70's and 80's.
--- Location Unknown
The security focus mailing list dedicated to forensics is also good lurking
I am the moderator of the SecurityFocus.com forensics list, and agree that it is a great resource. (Al Huger is listed in the info page as the moderator; he is actually the list owner.) The list is dedicated to discussion of technical forensics topics.
The SF forensics list archives are here. A general listing of SF mailing list archives is here. Those interested in subscribing to the forensics list (or other lists @SecurityFocus) can do so from the archive page.
Cheers!
Scott C. Zimmerman, CISSP
I want to drag this out as long as possible. Bring me my protractor.
The most helpful thing you can do for these people is to sit the fuck down, shut the fuck up, and to do what you're told.
This is true, but not useful. It is the most helpful thing you can do for "these people", however, the most helpful thing you can do for yourself is to wait for the advice of your lawyer and do nothing and say nothing until then.
If they are asking you for help, then you are a syadmin of some sort. As such (pay attention now) YOU ARE HIGH ON THE LIST OF POSSIBLE SUSPECTS. Don't make things worse for yourself by inadvertently saying or doing something to incriminate yourself
It's simple: I demand prosecution for torture.
I was aghast, needless to say.
$0.02,
ptd
I'm an animal lover -- they're delicious!