The Most/Recent Articles

Showing posts with label pfic. Show all posts
Showing posts with label pfic. Show all posts

Forensic Lunch 10/3/14 - Discussion with Matt Bromiley and Matt Harrigan on NoSQL and More

Discussion with Matt Bromiley and Matt Harrigan on NoSQL and More

Hello Reader,

We had an amazing forensic lunch this week! I hope you spend the time listening to the entire show as I know I learned something from our guests this week.

This week we had:
Matt Bromiley, @505forensics, talking about NoSQL injection attacks and forensics to detect them. You can read more about it on his blog http://www.505forensics.com/

Matt Harrigan, @mattharrigan, of PacketSled, @packetsled, talking about his network visualization tool that is soon to have a free version released. You can sign up for the beta and get this into your hands at http://www.packetsled.com

Also we have a little contest going, with a second contest to follow.

Contest: Leave a comment below to win a free ticket to PFIC,https://www.pfic-conference.com/prime... , and attend my 90 minute USN analysis class. 

Watch the show below:



Daily Blog #291: PFIC 2014

PFIC 2014 by David Cowen - Hacking Exposed Computer Forensics Blog

Hello Reader,
         If you've ever wanted to do hands on Journal analysis with me you'll have your first chance this year at PFIC, the Paraben Forensics Innovation Conference. I'll be doing a 90 minute lab on USN Journal analysis that will use both my tools and others to:
  • Explain USN fundamentals
  • Walk through analysis scenarios
  • Spot false positives
  • Test and validate findings
The USN Journal is quickly becoming one of my smoking guns for all sorts of great proof that I otherwise would never have proven. If you want to spend a week at a Ski resort in Utah in November,(tough life I know right?) then come join me and others at PFIC!

PFIC is going to be different this year as they are experimenting again with the format. Last year they had different tracks you could pick but you couldn't see all the content in all the tracks. This year they have two tracks, basic and advanced You will be in a group of 40 that will move through all the content of that track together across three days. I will get three different groups of 40 across three days for 90 mins each day.

It's a neat concept and I am looking forward to seeing how it works out.

Also Read: Daily Blog #290

Daily Blog #149: PFIC Day 2 Notes

PFIC Day 2 Notes by David Cowen - Hacking Exposed Computer Forensics Blog

Hello Reader,
           Here are my notes from Day 2 of PFIC, this is the last of these posts as I didn't attend the day 3 session in depth as snow was falling and clients were calling. I'll be updating these posts with the slides from the relevant lectures so you can see those as well.

Day 2 - PFIC Notes

8:00am Session - Ira Winkler ' The Cyber Jungle'

Ira is very personable, I like his show as well as him
Two good stories so far, the first promoting infragard (Ira is the president of his local infragard) the other involving credit card fraud.

Why does the media ask dumb questions on tv? The guest gives them dumb questions to ask

Executives don't want to disclose and notify, this is something I also have found

Crypto Locker story time

pointing out fud about crypto locker thats out there, bad media report showing a technical person saying that firewalls, service packs and good passwords could have prevented crypto locker.

another good story, this one about a reporters experience with some attorneys

Reporters are under pressure to get multiple stories a day. This can hurt parties who can't handle the media well and be able to provide and answer questions quickly.

An interesting story about how ankle bracelets are being removed and being used to commit crimes in las vegas. Then placing their bracelet back on when they get back to their house. The bracelets are not being monitored actively and the process is broken.

Downtown streetlights in las vegas will be able to monitor audio in the future. In the near future the officers will be able to monitor this audio via iOS apps on their phones. Ira is wondering if anyone properly securing this channel, applying ISO 27k or another security standard, to prevent non LEO from listening.

Make sure to listen to cyberjungleradio.com for his weekly podcast. Link to site: http://thecyberjungle.com/index.php

10:00am session Python for web application security testing


This is a talk on writing python code for web app testing rather than popular tools.

Recommends head first programming to learn python

Showing how to build a buffer overflow script in python
All of these scripts and example app is on a dropbox shared folder for those that want to try this at home.

This isn't your normal DFIR presentation, very infosec focused. The audience seems interested though so that's good.



Showing how web apps store data and failed logins from buffer overflow attempts within a user authentication form. this is not a python tutorial but rather a show of whats capable and what it leaves behind.

Edited some code and talked about what things effect and change.

Moved on to XSS attacks.

Talking about the python function htmlspecialchars to prevent xss

Moving on to how to use python to do testing and getting over common hurdles. 

First hurdle is basic auth, don't store credentials within code, retrieve it via prompts to the user on execution.

All functions covered so far as built in python libs.
He is now going into Scapy which is a 'full featured library for preforming network operations'. Packet capture/manipulation/creation/replay lib


Live demonstration of capture, reviewing and replaying traffic with scapy.
Showing the built in fuzzer within scapy.
Showing how to spoof the traffic in your fuzzing with scapy.

Ending now and discussing the benefits of python. Not saying not to use off the shelf tools but if you want to be able to be successful and understand more getting lower level with python directly will allow you to be more versatile.

10:30am Session - Me!

It was amazing!

It was wonderful!

Offers of free coffee were given!

I'm writing this before my session but this is how I want it to go.

In reality it went well but i had live demos fail as they are apt to do, event excel was crashing on me. Luckily I added in pre-generated results to move things forward.

11:30am Session - Jake Williams IaaS forensics


IaaS is the acronym that represents most of the cloud virtualized systems we talk about, infrastructure as a service.

Get a Incident Response plan and make sure it contains what to do for both your internal and externally hosted assets.

You are stuck trusting the hypervisor at some base level
In a commercially hosted cloud you don't have access to the hypervisor (amazon) if you are a privately hosted cloud (your own esx server) you do have access to the hypervisor.
You need to validate that the hypervisor has not been compromised.

If the hypervisor has been tampered with you need to collect additional evidence.

Jake has found an esx server where the hypervisor was compromised and thus can no longer say it doesn't happen. If the hypervisor is compromised then the attacker can control physical memory outside of the guest os and guest os artifacts.

There are hypervisor logs that you should be collecting.
This is not typical though, but you should grab the logs to be sure. 

The vm-support command will output a tgz file with the log and vm inventories that you need
USB over IP devices are seperately logged by the hypervisor versus USB devices physically plugged in.

Don't use shared admin accounts if you want easy attribution of admin actions.

Introspection isn't easily detected by the attacker and can be normally used to collect data outside of the attackers view.

Inband (non hypervisor based actions) are bad because bad guys can easily detect your response effort.

You can't do out of band actions on public clouds (amazon) as they don't give you hypervisor access ,so your stuck with traditional live response.

Making full disk images of cloud hosts is typically difficult as your bandwidth to the site is your bottleneck.

Amazon and hopefully soon rackspace will write your data to a physical disk and mail it to you.

You supply the drive and cables, they charge you $80 per disk, they will accept a shipping label so you can get it via fedex.

Accounting records will be provided but they don't do Chain of Custody.The amazon feature mention called 'bulk export' is not meant as a forensic/ir service.

A good alternative is to spin up a forensic/ir virtual instance so you can keep the data within the cloud and speed your investigation

Have a dongle restricted software you want to run in the cloud? 


Use USB over IP
The hardest part of dealing with hosted/cloud hosted systems is making sure the tech is going to follow your procedures and not shut down the system or kill the vm instance.

Snapshots are great, memory is better.

Public cloud (amazon, etc..) don't allow you to request physical memory out of band from the hypervisor
Public cloud snapshots are disk states but not memory states.

If you capture the memory to a network share, make sure you lock down who can access them or else you may have non authorized personnel accessing secrets.

You can still do CoC yourself, f-response is a great imaging solution for cloud hosts.

If you get compromised public providers like amazon limit their liability in case of a compromise from their end to a refund of that months fees.

If you don't want to use f-response FAU is another good tool to use for live cloud imaging, but make sure to put it over an encrypted tunnel Protect your memory dumps, possibly encrypt them Out of band imaging is still the best option.

HP has internal resources that can out of band image a HP hosted cloud server The issue is with imaging logical disks in non Vmware clouds is that tools often can't find the end of disk and keep writing forever test your tools in your cloud for your IR plan to find out which ones fail silently Hypervisor imaging is as simple as snapshotting.

1:30pm Session - Memory forensics with Chad Tilbury


I should have go into this session but I was too busy talking to people through lunch. I did see the end and recognized a subset of slides from For 508 but he ended it with a nice preview of Mac and Linux memory forensics.

2:30pm Session - Recovering your costs in ediscovery


Quote from a judge on the fair housing center of southwest michigan v Hunt where the judge chastised a party for turning the litigation into a e-discovery workshop.
Nice review of which ESI costs can be recoverable, this is good information for me to advise my clients when they are not aware this exists.

If you want to recover costs you have to show detail and provide affidavits that explain why it was necessary and how  the costs break down.

Don't be vague on invoices and document your work if you want your costs to be recoverable for your client in the event they prevail.

Moore v Weinstein - Prevailing party received $36,196, of which e-discovery service provider made up $22,000 of and asking for $40,000.

In house work done within parties firm need to have reasonable costs and the work done must justify the rate desired to applied.

A fun sidebar about thor and shield and whether working with thor would show the government endorsing a religion.
Interesting, court rulings have come out stating that native productions of documents are not recoverable costs.

No cost for hosting, courts still compare data hosting to warehouses holding paper - non recoverable costs
Forensic costs within ediscovery is recoverable, forensic investigation fees of an expert witness are also recoverable separately. 

Second 'geek break' discussion on how wills would effect 12 regenerations of Dr. Who. 

Also Read: Daily Blog #148

PFIC 2013 Slides and labs

PFIC 2013 Slides and labs by David Cowen - HECF Blog

Hello Reader,
       If you attended my session at PFIC this is the slides that I used today:
https://drive.google.com/file/d/0B_mjsPB8uKOAYWtsVHdJTmFlQXc/edit?usp=sharing

This is the link to download the labs I ran through:
https://drive.google.com/file/d/0B_mjsPB8uKOANXBSMDVTZExULTg/edit?usp=sharing

This is a link to sign up for the NTFS Parser:
https://docs.google.com/forms/d/1GzOMe-QHtB12ZnI4ZTjLA06DJP6ZScXngO42ZDGIpR0/viewform

This is a link to sign up for the HFS+ Parser:
https://docs.google.com/forms/d/1_Zrf7LfmnklJfJ7CteecdAiAWGdRkNp2ltqqHuYFncQ/viewform

Thanks for coming to my session, I hope it was useful!

Also Read: 

Daily Bog #144 PFIC Day 1 Afternoon Sessions

PFIC Day 1 Afternoon Sessions by David Cowen - Hacking Exposed Computer Forensics Blog

Hello Reader,
          I took more notes yesterday and I'm taking more notes this morning. I'm posting these in the hopes that you'll use them with the slides that will be posted so you can get the information presented here that is outside of the slides.

1:30pm Session Social Media Insights

This session was being presented by a woman whose company provide PI services and specifically online research about people and companies.

Websites and techniques for social media investigations.

Finding links and images through duckduckgo.

Finding discussion posts on omgili.

Finding classified ads with searchtempest.

Using ixquick to search multiple engines and find hits in the 'private web' with a meta search.

I left for a conference call at this point, if you need to do online/social/web investigations of prior post this presentation does give some good links.

2:30pm Session Augmented Reality Forensics

This wasn't a forensic session per se, its more of a futurist looking at the state of upcoming and emerging technology and what that may mean for us in the DFIR field.. Still an interesting talk from a good presenter.

AR isn't perfect yet.

will make a new range of forensic tools and forensic possibilities.

The internet of things is coming and with it IoT forensics.

4:00pm Session Chip Off or Jtag it

This was an interesting session mainly because of Zeke's personality but the tech content was a bit light for a conference that also had a hands on chip off lab taking place a few doors down.
 
New Zeland accents make presentations more interesting.

Good jokes so far, hoping the content is as good.

Overview of crimes committed and the evidence that could be found on mobile devices.

Terrorists are now shooting their phones before being caught, apparently you should target the number 7 key to kill the sim and possibly the nvram chip.

Starting his review of forensics with Edmond Locard 'every contact leaves a trace'
now comparing computer v cell phone forensics, I'm going to be patient but I'm wondering if he is misjudging his audience.

A little vendor bashing on how they market their logical/physical analysis, always appreciated
'forensic explorer' is now called 'recover my files' which is around $1,000 USD and he has had good success in carving from android unallocated. Not sure how that compares to any other carving tool against the same data.

Flasher boxes are hacker boxes and break into devices? I don't think I agree with the analogy but I understand the meaning.

Discussion on if these procedures from a flasher box, jtag, chip off, and even vendor software tools are forensically sound since many are modifying the original evidence in order to extract the data.

The process is what makes something forensically sound not the tool, I agree.

He is now going over photographing a phone as a first step before cracking it open.
 
Now getting into something interesting, a survey of flasher boxes.

The comedy here is winning the audience, enjoying this.

Now discussing chip off, and discussing heat versus infrared for removing chips.

Why would we go to chip off, because the phone isn't supported by any automated forensic software tool.

Some phones, especially the off market clone phones (fake blackberry in this example) may appear normal but will actually be encrypted or having multiple sub systems making normal chip off unhelpful or pointless.

Next example is a phone that looks like a remote car key fob.

moving on to physically damaged phones.

The speaker seems to think that Jonathan Rajewski and I are part of a Utah based cell phone forensics lab.  We can't bear to tell him we are not so we are going along with it.

Regardless of content come see Zeke just for the jokes.

Sometimes repair is all you need to do instead of a chip off.

Now showing generic best practice guidelines for the UK and USA.

Discussing how flasher boxes and other types of phone modifications tools don't have forensic hashes as they were not made for this work, suggested putting the evidence in a forensic image afterwords to allow for verification after the fact.

Discussion of dealing with binary dumps from flashers/jtag/chip off dumps. Common methods are just feeding it to cell phone tools that will carve for known cell patterns.

this presentation is now getting a bit trippy with perspective art/illusions.

Breaking down binary patterns as a method for determining data structures.

discussion on bypassing android lock phones.

if usb debugging is on turned on then your standard tools an get access to the file system.

if not moving on to chip off and the destructive process.

Moving on to JTAG and showing the 'riff' box which supports multiple pin outs.

Youtube is the database for learning how to take phones apart and find jtags.

Showing how the raw dump of the jtag output is a large hex dump, showing putting it into forensic explorer again.

discussing using rainbow tables of possible sha1 gesture keys to determine which pattern locked the phone.

Get the pattern lock and then pull the data off the phone using an automated solution to pull the intact file system for you is his recommendation.

That was day 1, that evening was casino night which is a lot of fun. One of the best parts of PFIC is that it isn't a huge conference and at things like casino night you have a couple hours of fun to mingle with your peers and make new friends.

Daily Blog #143: PFIC Day 1 Morning Sessions

PFIC Day 1 Morning Sessions by David Cowen - HECF Blog

Hello Reader,
          I'm attending PFIC and trying to be a good attendee and attend all the sessions when I'm not running our for call. I thought I would pass on my notes on these sessions and then post the slides they are associated with for those of you who couldn't make it.

8am Session - Amber talking about trends in mobile forensics

Shows real data from kids cell phones, its a form of punishment.

Windows phone acquisition is limited to local device data, cloud storage is currently out of reach.

To acquire a windows phone you need to install an app from the marketplace.

9am session - James Wiebe - remote forensic acquisition

a review of what we now know about nsa capabiltities via snowden.

Beyond the front end server most providers pass decrypted traffic between their nodes
apologizes that this is a talk focused on a product cru is selling but wants to try to educate beyond it
I think Eric Zimmerman needs to get a ditto and test it to see if their speed claims match up to what he's seen.

Ditto is an embedded linux system, but they don't use the ntfs-3g fuse driver and thus avoid the performance penalty we saw in our testing.

Optional battery allows it to run for 7 hours of imaging, thats cool.

They've implemented lightgrep into their embedded device and are using it for carving, I would assume they are using it for searching as well. Remote live triage is the goal.

Currently on sale for $1,649 from forensiccomputers.com, not a low cost option.

Just a note here, surface is my go to device to take with me for conference notes now.

10:30am session "eDiscovery Overview for Forensic Examiners"

Data mining and mapping against email to find patterns or criteria to find interesting/relevant data.

Case law shown about various expert rulings in how experts were used.

Review of challenges in defending ediscovery searches.

Review of challenges in attacking ediscovery searches.

I had to leave the session at this point to take a client call. 

11:30am session Google Glass Forensics

Start with glass v1.

Review of what google glass is/does.

Review of the hardware and specifications.

Showed glass v2.

walking through future glass apps and forensic data implications.

Introduction of 'shattered' an open source forensic project from champlain.

Current version scrapes user accessible data, next version will root the device for physical images and more data.

showing how images are saved and timestamped.

photos have exif.

two thumbnails are also generated, filename meaning is unknown.

adds an entry to usagestats.

shattered script file 'logcat.txt' also shows a picture was taken, the timestamp of the log should match the name of the image taken and the exif data.

Calls are also logged to these logs.

map requests and cached direction information are stored.

bluetooth logging includes mac addresses of devices connected to.

wifi logging of access points and mac addresses in range.

each glass activation and method of activation is logged.

example images will be posted soon to allow testing and research.

more to come as a I sit through the 2:30pm session!

Also Read: 

PFIC 2012 Slides & Bsides DFW

PFIC 2012 Slides & Bsides DFW

Hello Reader,
                      With another presentation done here are my slides from PFIC, where I again presented on Anti Anti Forensics. This is a similar presentation to the one I did at Bsides DFW but  with more details on the actual structure of $logfile records and more information.

Slides can be found here: Slides

We are getting close to the official release of ANJP (Advanced NTFS Journal Parser) as we write up our official blog post to put up on the SANS blog. Until then, if you would like a copy of the version 1 free tool please email me dcowen@g-cpartners.com so I can get you going. Our goal is to get the community access to our research as quickly as possible!

I'm looking for conferences to spread the good word on journaled file system forensics for next year, so if you are looking for advanced content please let me know!