Showing posts with label FW. Show all posts
Showing posts with label FW. Show all posts

Friday, April 8, 2011

Hackito Ergo Sum 2011 - Day 2

Day two of HES 2011 brought even more awesomeness. I will summarize the talks here:

Keynote - Rodrigo Branco (BSDaemon) / Behind the scenes: security research
First up was Rodrigo giving a keynote ( which shows he is old :P ) he focused on the state of the industry and mentioned several key points that might be debatable:
  • there are a lot of snake-oil security experts, its really hard to find real experts
  • 0days are nowadays spreading in minutes to all vulnerable hosts
  • lots of "vulnerabilities" released are not exploitable or at best have an exploit that works only on the VM of the guy that developed it and nowhere else
  • The new generation of hackers is not coming - most of us grew in a time where using a computer was a challange, now its just plug&play, GUI, etc...
  • he went into security myths common in the industry
I'll settle for repeating two interesting points he made since this is a short summary:
  1. What is the difference between rouge AV and a real AV?
    1. both do not guarantee anything
    2. both have "premium options" you can buy
    3. both have a nice GUI (although rouge AVs usually havea nicer one)
    4. both will slow your system
    5. both will have false alarms
  2. All companies benefit from having a security research team but you need to know how to build and work with one:
    1. Researcher brings real understanding of threats and security awareness
    2. when choosing a researcher, select carefully
    3. researcher are lazy so define expectation not a specific target
      1. if you know what you want you hire a developer, not researcher
    4. your team has to travel
    5. expect to buy tools

James Oakley and Sergey Bratus / Exploiting the Hard-Working DWARF
Due to circumstances I couldn't avoid I had to miss this talk which is really worthwhile. I have done some work on DWARF for instrumentation but was interested to see it from an exploitation point of view, especially since they say it is Turing complete.
Slides (from shmoocon actually): http://www.cs.dartmouth.edu/~electron/dwarf/



Jon Oberheide & Dan Rosenberg / Stackjacking Your Way to grsecurity or PaX Bypass
In this talk the authors showed how to exploit the Linux Kernel in spite of hardening mechanisms like GRSecurity or PaX. They took an interesting approach - not focusing on a specific vulnerability but making a minimal set of assumptions on the situation and showing any vulnerability and situation satisfying these assumptions can be exploited.

  • Kernel protection Assumptions:
    • Zero knowledge of kernel address space
    • Fully randomized kernel text & data
    • Cannot introduce new code into Kernel address space
    • Cannot modify kernel control flow (e.g. data only - no ROP)
  • Attacker assumptions:
    • #1: can do arbitrary kmem write
      • Requires some knowledge of some kernel layout information leak to exploit
    • #2: Kernel stack memory leak
      • AKA "the Dan Rosenberg" :P
taking this into account they developed a 3-stage exploitation technique: KSTACK leak --> stack groping --> overwrite a specific part of thread_info struct. Going into details will require a whole post at least so I will mention the highlights only, for more details try Oberhide's homepage (nothing up yet) or Dan's blog (seems abandoned). For now I will focus on two points:
  • In order to get all the information needed from a Kernel stack leak they developed a library called "libkstack" - it works with a leak of 3-bytes and up.
  • Stack grouping is a name to techniques they invented in order to actually exploit
    • kernel_ds - invented by Dan R. focuses on using set_fs() to change addr_limit in the kernel
    • Obergroupe - invented by Oberhide - uses a child process to clobber a process stack frame while it is inside a syscall (race condition)
Exploitation is pretty safe and takes about 1-2 minutes according to their demo.




Richard Johnson – A Castle Made of Sand: Adobe Reader X Sandbox
This talk went into detail regarding Adobe reader sandboxing and security, here are my takeaways:
  • Adobe started using ASLR and DEP which is great, but only on new Windows systems. also seems implementaiton is partially lacking since some DLLs (e.g encryption) are loaded to a pre-defined address.
  • Adobe works on sandboxing using Win process privileges and IPC limitations, a lot more work is required
  • need to implement security features for non-Windows platforms as well
  • need to compile to 64 bit - will reduce chances of spraying


Aaron Portnoy & Logan Brown / Concentrated Fire: Black Box Auditing Adobe Shockwave
The guys from TippingPoint gave a similar talk to the one from CanSecWest so no need to go deep here. Some cool stuff:
  • They use a lot of Dynamic Binary Instrumentation to analyze SW
  • Shockwave uses a private memory manager called SmartHeap
  • they crowd-sourced the exploitation of the crashes they discovered during Recon
  • If shockwave lacks a vulnerable component on your target don't worry - it will DL it for you :)
  • ZDI will not buy any more shockwave bugs or touch shockwave from now on!


Kevin Redon & Ravishankar Borgaonkar / femtocells : inexpensive devices to test UMTS security
For those of you that don't know a femtocell is a small cellular base-station that works in a really limited range. Basically your phone connects to the femtocell that connects to your provider network over the internet. First part of the talk focused on taking control of the femtocell firmware, I will skip this except they used the recovery mode, which shows how careful you need to be with such features. you can buy a Femtocell in 12 countries, see femto-forum for details. Once you are in control you can do some cool stuff:
  • MITM on UMTS 
  • Calls are only encrypted between the phone and the femtocell, then sent in clear text
    • showed a demo (that failed first time) of recording a call and capturing SMS messages
  • Provider networks assume full trust in players so no firewalls, protections, etc... 
    • seems like easy targets from their description, no actual details provided
  • 3G / 4G phones can be attacked by the femtocell acting as the network provider
    • again, no details were provided
This is still a research in progress, seems very promising. I recommend to follow.




Lightning Talks
There were 3 lightning talks today:
  • First one was mine, I got manipulated into doing it while drinking beer over lunch but it was really fun.
  • I talked about "Binary Instrumentation for Hackers" 
    • I presented a few select slides form the talk I'm working on (see earlier posts) explaining what can you do with binary instrumentation and and example Pin based binary instrumentation tool.
  • After me Alex talked about his Passive DNS work
    • See the website
    • He showed a cool demo how it worked on the recent Lizamoon attack
  • Last talk for the day was joernchenon Distributed Ruby (dRuby) vulns
    • to sum it up dRuby uses $SAFE which prevents you from calling arbitrary code (eval etc) by activating taint protection
    • unfortunately this doesn't work so well becasue you can still use syscall()
    • nice method to identify if you are one a 64bit or 32bit by using syscall(20)

Well that's it for today, I hope I can keep the pace and publish a summary tomorrow as well.
 

Thursday, April 7, 2011

Hackito Ergo Sum 2011 - Second half of the first day

Short summaries of the talks in the second half of the first day:


Itzik Kotler / Let Me stuxnet you
Although the name of the talk has Stuxnet in it it does not another one of these boring Stuxnet talks but focuses on Permanent DOS (PDOS) of your hardware using all sorts of methods. This is a research that is still WIP.
Several key concepts:
  • SW can harm HW by making it perform harmful operations
  • SW can harm FW and cause it to do harmful operations
  • SW can take advantage of one piece of HW to harm another HW
PDOS can be achieved in many manners:
  • Phlashing - overwriting FW on Flash to brick parts
  • over-clocking
  • over-volting
  • over-using - esp. in mechanical parts
  • power cycling - uses temperature flection
Can attack CPUs, GPUs, RAM, HDDs, SSDs, Flash, NICs, CRTs, Floppys and more...
Interesting focus on examples how to implement these attacks so the user doesn't realize it's done until his system dies.

Marc Heuse / Recent advanced in IPv6 insecurities
This is Van Hauser from THC. First part of the talk focused on IPv6 basics. He then covered some attacks against IPv6 he released since 2005 and then went on to talk about new attacks - I'll try to cover everything real quick. In particular I liked the quote: "if you start fuzzing things will blow up".
First it is important to mention the THC IPv6 attack tool he is developing, many parts of which are not yet released BUT if you join the dev team he is willing to share (and he is looking for help)... He also released a new version of THC Hydra during his talk.
So, a real quick overview of IPv6 attacks he mentioned (only the headlines or I won't finish this post):
  • ARP Spoofing => ND spoofing
  • Duplicate address detection DOS
  • Many ways to MITM using redirects
  • Using Autoconfig (like DHCP but built in IPv6) for pretending to be a router
  • Replacing the default router using lifetime=0
  • Most Linux distros (and in general) don't filter most IPv6, especially weird headers
  • Can announce a remote network as local to spoof it
  • RA flooding - can DOS cisco, Netscreen, all Windows, FreeBSD, some Linux
  • you can detect systems sniffing on your local network
  • taking over as MLD
  • side channels in IPv6
  • techniques to identify remote systems (can't scan 16 octets!)


Tarjei Mandt / Kernel pool exploitation on Win7
This talk was too technical to go into details in a brief summary - see the slides for details.
The short version is as following: Win7 has protections in the kernel pool - these are not good enough. several tehcniques were invented by Tarjei to bypass these and two exploits for CVEs were shown.
CVE-2010-3939 (MS10-098) - Used Quota process pointer to exploit
CVE-2010-1893 (MS10-058) - Used Pool index overwrite to exploit
If you like kernel exploits on Windows you really should check out Tarjei's slides and blog.


Sebastien Tricaud / Capture me if you can!
Sebastien discussed handling incidents in large networks (country level). He talked about capture methods like: PCAP, netfilter queue, DAQ and others. And on data processing techniques - how to find meaningful information in logs. He made a very convincing point on log "0day" - due to not collecting or collecting information incorrectly you can lose important information,
In my view, the most interesting news in the talk were:

Well, I hope you enjoyed; Please leave a comment. I will try to keep up in the next two days...