Monday, July 5, 2010
Thanks for the iTunes Gift Card, but, no thanks
The other day I received a note with a file attached: Gift_Certificate_641.zip. My email server stripped the payload, and left me with an empty zip file. Before I examined the .zip, I uploaded it to VirusTotal, but because it was empty, nothing came back. I would have liked to have seen what it was, but I'm glad the AV is working on the mail server. I'm sure the headers on the email were spoofed, if the address was even valid in the first place. But, the mail came from: "iTunes Store" . If anyone can tell me what the actual virus/worm was, I'd be curious to know.
Thursday, July 1, 2010
What Works Conference and what to do
With a little more than a week to go, it looks like I won't be able to attend this year's What Works in Forensics and Incident Response conference coming up next week. I really wanted to attend, but it looks like the company is scaling back on conferences (no BlackHat this year, just DefCon.)
Which leads me to thoughts I've been having lately. I've been reading and working a lot on web application auditing and testing; and I'm finding I'm pretty good at it. Yet, I still love the Incident Response and Forensics. While I practice IR and forensics with my own company I can't quite get it into the other company.
Which leads me to thoughts I've been having lately. I've been reading and working a lot on web application auditing and testing; and I'm finding I'm pretty good at it. Yet, I still love the Incident Response and Forensics. While I practice IR and forensics with my own company I can't quite get it into the other company.
Tuesday, June 15, 2010
Time sensitivity of data
SANS Newsbytes had this post in today's email:
So, to see this in the forensics space is interesting. At what point does data become invalid. Certainly, an image of a system should be valid as a point-in-time snapshot for a long time; almost indefinitely.
Granted, given the circumstances around the original story, I think that there is more to it.
Thought-provoking none-the-less.
--Judge Disallows Evidence Gathered From Laptop Six Months After SeizureThis is an interesting concept that I had not considered in the forensics arena. In the government space, the ACA that we work for has said that data we acquire is only valid for six months; after that, we would need to re-test a system up for accreditation. And I agree with that concept fully. Many times we will test a system, come back with data, analyze it, and write it up. We'll get questions up to a year later on what we wrote. And how valid are those questions? Many times, the system has changed so much that the initial report is almost invalid (sometimes it is - hopefully the system owners have made changes.)
(June 10 & 14, 2010)
A US federal judge has ruled that evidence gathered in June 2009 from a
laptop computer seized at a US border crossing in late January 2009 may
be suppressed. Andrew Hanson was randomly selected for secondary
baggage search in January 2009. Hanson is a US citizen who was
returning from South Korea to the US through San Francisco. An image
of child pornography justified seizure of his laptop; a subsequent scan
of the hard drive several weeks later turned up more evidence. However,
the laptop's contents were not viewed again until June 2009. The judge
allowed evidence discovered on the laptop in early February 2009 because
the search was conducted within a reasonable time frame. The judge
determined that evidence obtained during the June search, which was
conducted without a warrant, was inadmissible; a search so long after
the fact requires a warrant.
http://www.theregister.co.uk/2010/06/10/dhs_laptop_search/
http://www.pcmag.com/article2/0,2817,2365030,00.asp
So, to see this in the forensics space is interesting. At what point does data become invalid. Certainly, an image of a system should be valid as a point-in-time snapshot for a long time; almost indefinitely.
Granted, given the circumstances around the original story, I think that there is more to it.
Thought-provoking none-the-less.
Monday, May 31, 2010
MS Access SQL Injection
I have a testing trip coming up that involves a web application built using MS Access on the backend. I've just gotten Jusin Clarke's great book SQL Injection Attacks and Defense. There doesn't seem to be a treatise on SQL injection for MS Access, but there are some good sources. I know that Access doesn't support the ', so I'm working on other methods. Already, I have information on the application, and based on what I've discussed with the developers, the app has to be "injectable," it's just a matter of where. Some of the MS Access SQL Injection resources I've been going through include:
Saturday, May 29, 2010
Online Penetration Testing class
I haven't decided yet how to spend my education budget. I really want to attend the SANS What Works in Forensics and Incident Response summit, but I think it's too much for the company to pay for. Then, the other day, I was reading Darknet, and I saw their posting on the eLearnSecurity Online Penetration class. The price is pretty good, and I would really like to learn the network pen testing segment. As I've been doing a lot of web application auditing lately, I wouldn't mind learning the tips and tricks to web applications as I think it will only help the auditing skills.
If you've taken any of the classes by eLearnSecurity, I'd like to hear your feedback.
If you've taken any of the classes by eLearnSecurity, I'd like to hear your feedback.
Wednesday, May 5, 2010
Hackin9 magazine now free
This post might be a bit late. I originally posted/mused about Hackin9 back in January of 2008. Now, I see it has become a free e-zine. Head to http://hakin9.org and sign up for the newsletter. At the time of this post, you are able to download the current issue in .pdf form.
Friday, April 23, 2010
Facebook changes to make
Facebook made changes, yet again, to the privacy and data restriction usage. You might want to check your settings to see what's new, and what's being shared.
Here's a good link to helping "reset" some of the changes Facebook made to your account.
I suspect my older post here, is now outdated. I think some of the main ideas may still be relevant, just implementing them will take more steps.
Here's a good link to helping "reset" some of the changes Facebook made to your account.
I suspect my older post here, is now outdated. I think some of the main ideas may still be relevant, just implementing them will take more steps.
Monday, April 12, 2010
Web form incident
I received a call today for an interesting incident. Bear in mind that the customer doesn't have an incident response policy, but I think that is going to change. It seems a staff member received an "anonymous" email that, while technically not threatening, was certainly personal, mean and inappropriate.
The staff member forwarded me the email, with all relevant headers. Even though there was a "from" address on the email, I realized that email addresses can be spoofed. However, digging through the headers, I found an "admin"@company.subdomain email address. Thinking the website might have been tampered with, I perused the web sites directory. The site only has 20 or so static pages with one contact form. Thinking contact form, I contacted the webmaster to see how the sub-domain actually worked. After some digging, I learned that there is one script on the sub-domain that processes the contact form. Bingo. Looking at the contact form, email address is not required. So, I tested sending the form without entering an email address; and I was able to replicate the incident.
I am now working with them to fix two issues: 1) There needs to be a documented incident response policy, such that the client is protected. 2) The website needs to address how to handle submissions without an email address.
The security ball is rolling, so hopefully good things can come of the incident.
And, while we may be able to get the IP of the person that submitted the form, I'm not sure what that will buy us.
The staff member forwarded me the email, with all relevant headers. Even though there was a "from" address on the email, I realized that email addresses can be spoofed. However, digging through the headers, I found an "admin"@company.subdomain email address. Thinking the website might have been tampered with, I perused the web sites directory. The site only has 20 or so static pages with one contact form. Thinking contact form, I contacted the webmaster to see how the sub-domain actually worked. After some digging, I learned that there is one script on the sub-domain that processes the contact form. Bingo. Looking at the contact form, email address is not required. So, I tested sending the form without entering an email address; and I was able to replicate the incident.
I am now working with them to fix two issues: 1) There needs to be a documented incident response policy, such that the client is protected. 2) The website needs to address how to handle submissions without an email address.
The security ball is rolling, so hopefully good things can come of the incident.
And, while we may be able to get the IP of the person that submitted the form, I'm not sure what that will buy us.
Friday, April 2, 2010
Book Review: Seven Deadliest Web Applications by Mke Shema
I have been doing more and more testing of applications, and most of those applications have been web applications. I think it is the nature of the beast. Sure, sites have servers to manage their client workspace, and they handle mail. But, if they have a web server and/or database server there's a good chance that they are hosting a web application. Whether the organization "knows" it or not.
Last year I worked on the big application project where we had to test north of 80 applications in a very short time period. My eyes were really opened during that project. Since then, more and more, the sites we are going to have web applications. I've taken it upon myself to improve my application (and by extension, web application) testing. While the DoD has the Application Security and Development Checklist to guide them, actually testing the controls is not the easiest. So, I've been trying to delve deeper into App testing.
I picked some books to start going through, and some of them are listed on my reading list. The first one I've gotten to is Seven Deadliest Web Application Attacks by Mike Shema. One of the reasons I picked this book is because the book just came out, literally, last week. So, the book is current. Mike is not a stranger to security or web applications and has a couple of books on web application security.
I have to say that I really liked the book. Mike's style is easy to read and he's able to convey the knowledge and the points in each chapter concisely and in a matter that facilitates remembering the facts and putting them to use. There are seven chapters that Mike focuses on: Cross-site Scripting (XSS), Cross-site Request Forgery, Structured Query Language (SQL) Injection, Server Misconfiguration and Predictable Pages, Breaking Authentication Schemes, Logic Attacks, and Web of Distrust.
Each chapter goes into detail about the specific attack. There are many good examples, code snippets, and current stories about relevant attacks in the real world. Many of the attacks have analogies to reinforce the concept using non-technical language to put the attack in a different frame of mind. The big three (XSS, CSRF, and SQLi) make up the first three chapters. I admit, I come from more of a DBA background (from before my security days) so I didn't focus on SQLi as much. However, I still picked up knowledge from the SQLi chapter. We test for XSS a lot, and I was familiar with the information; but of the big three, I learned the most from the CSRF chapter. Server Misconfiguration delves into attacks that are based on applications and servers that are not as hardened as they should be. Breaking authentication discusses different methods to subvert and get around authentication. I liked the chapter on logic attacks because it employed the use of thinking outside the box. These attacks were not the result of fundamental coding errors; they were errors in the way the application was designed. Finally, the last chapter (Web of Distrust) compiled a bunch of different attacks. Malware, scareware, referer attacks, html, and DNS all were given sections.
Each chapter starts out by defining the specific attack; what it is composed of, how it works, and how to employ it. The chapter also devotes a section to employing countermeasures and how to mitigate the specific attacks. Finally, a summary puts it all together. I really liked the small sections titled "Epic Fail" where a specific attack is given a real-world example. Also, there are many URLs given for tools that are discussed and for points for further information. There are a couple of tools that I'm actively researching and looking to use that I learned about from the book.
The book is not a cookbook or a how-to on performing the attacks. While lines of code are given as examples, there are not step-by-step instructions on how to successfully exploit the attack. And that was fine for me; that wasn't my goal. There are other books out there; in fact, there are whole books devoted to some of the chapters. So, if you are looking for step-by-step instructions, this book is not for you.
I rate the book very highly and would recommend it to anyone wanting a good overview and jumping off point for the seven major web application attacks. I've brought the book into my office and hope others will get as much out of it as I have. You will not go wrong in reading the book if you want to learn what the major attacks are, how they work, and some mitigations to lessening the threat of these attacks.
Last year I worked on the big application project where we had to test north of 80 applications in a very short time period. My eyes were really opened during that project. Since then, more and more, the sites we are going to have web applications. I've taken it upon myself to improve my application (and by extension, web application) testing. While the DoD has the Application Security and Development Checklist to guide them, actually testing the controls is not the easiest. So, I've been trying to delve deeper into App testing.
I picked some books to start going through, and some of them are listed on my reading list. The first one I've gotten to is Seven Deadliest Web Application Attacks by Mike Shema. One of the reasons I picked this book is because the book just came out, literally, last week. So, the book is current. Mike is not a stranger to security or web applications and has a couple of books on web application security.
I have to say that I really liked the book. Mike's style is easy to read and he's able to convey the knowledge and the points in each chapter concisely and in a matter that facilitates remembering the facts and putting them to use. There are seven chapters that Mike focuses on: Cross-site Scripting (XSS), Cross-site Request Forgery, Structured Query Language (SQL) Injection, Server Misconfiguration and Predictable Pages, Breaking Authentication Schemes, Logic Attacks, and Web of Distrust.
Each chapter goes into detail about the specific attack. There are many good examples, code snippets, and current stories about relevant attacks in the real world. Many of the attacks have analogies to reinforce the concept using non-technical language to put the attack in a different frame of mind. The big three (XSS, CSRF, and SQLi) make up the first three chapters. I admit, I come from more of a DBA background (from before my security days) so I didn't focus on SQLi as much. However, I still picked up knowledge from the SQLi chapter. We test for XSS a lot, and I was familiar with the information; but of the big three, I learned the most from the CSRF chapter. Server Misconfiguration delves into attacks that are based on applications and servers that are not as hardened as they should be. Breaking authentication discusses different methods to subvert and get around authentication. I liked the chapter on logic attacks because it employed the use of thinking outside the box. These attacks were not the result of fundamental coding errors; they were errors in the way the application was designed. Finally, the last chapter (Web of Distrust) compiled a bunch of different attacks. Malware, scareware, referer attacks, html, and DNS all were given sections.
Each chapter starts out by defining the specific attack; what it is composed of, how it works, and how to employ it. The chapter also devotes a section to employing countermeasures and how to mitigate the specific attacks. Finally, a summary puts it all together. I really liked the small sections titled "Epic Fail" where a specific attack is given a real-world example. Also, there are many URLs given for tools that are discussed and for points for further information. There are a couple of tools that I'm actively researching and looking to use that I learned about from the book.
The book is not a cookbook or a how-to on performing the attacks. While lines of code are given as examples, there are not step-by-step instructions on how to successfully exploit the attack. And that was fine for me; that wasn't my goal. There are other books out there; in fact, there are whole books devoted to some of the chapters. So, if you are looking for step-by-step instructions, this book is not for you.
I rate the book very highly and would recommend it to anyone wanting a good overview and jumping off point for the seven major web application attacks. I've brought the book into my office and hope others will get as much out of it as I have. You will not go wrong in reading the book if you want to learn what the major attacks are, how they work, and some mitigations to lessening the threat of these attacks.
Monday, March 29, 2010
New Leatherman tools
I've always like the Skeletool CX by Leatherman, though I've never actually gotten one. I keep a pair of wire snips, four different screwdrivers, pliers, and tweezers in my laptop bag. Having a good set of tools comes in handy all the time. However, a post on Wired's Gadget Lab shows what appears to be even smaller versions of of the Skeletool. On the left is the Style CS, and the right the Style. Heck, I just noticed that they have a Freestyle CX, which is between the Skeletool and the Style.
image from the Wired post.
Subscribe to:
Posts (Atom)