I felt a Déjà vu moment today when one of our customers came to us asking if we can help them test Outlook Exchange traffic through their firewall with ALG and NAT turned on. They had tried to re-purpose bit-blasters, load generators, open-source and commercial packet replay tools only to find that nothing was working. Way back when I was building the IDP at OneSecure, my pre-screen interview question was this:
If you only had an [ any, any, tcp/21, allow ] rule in your packet filter, why wouldn’t FTP uploads/downloads work?
The answer of course, a decade after the question was posed, is now pretty simple. Most modern security gateways, UTM’s, firewalls, IPS’ and load balancers all inspect application payloads. They look for IP addresses and port numbers embedded in the application payload in order to open up temporary pin-holes. This helps in two ways:
- Allow traffic on ephemeral ports assuming that the control flow was allowed
- Perform Network Address Translation or NAT to rewrite IP and ports on the flly
This is all old hat. But some things never change while others do. The number of new network devices that all do some level of application identification and deep packet inspection has exploded. But it looks like the testing tools that were oh-so-good at pushing a bazillion packets/second never quite caught up with the changes. These tools were awesome at pushing large gobs of mindless packets through a router that just decremented the TTL. But the moment ALGs got in the way all hell broke loose.
More importantly these tools are limited in what kind of test traffic they can generate. They have to be programmed by the vendor or else you are SOL.
Let’s walk through a concrete example. The Outlook Exchange traffic below uses something called EPM or Endpoint Mapper. This is very similar to portmap in Sun RPC protocols where a service runs on a well-known port to which you can ask where a named service (using an UUID or a program number) is running. Once the EPM returns you the ephemeral port number, you can then connect to it. Here’s the relevant information from Wireshark:
Frame #8 is the Map Request and Frame #9 (shown in detail) is the Map Response that contains the DCERPC Protocol Towers. These towers tell the client the IP address and the port numbers where the requested service is running. Finally Frame #10 shows the second TCP connection opened by the client to port 31337 (the ephemeral port).
What do you think the firewall ALG is doing?
It’s inspecting the protocol towers and opening up a pin-hole for TCP/31337 from 192.168.1.1 to 192.168.1.2!
Now blind packet replay (especially with concurrency/load) is most likely going to change the IP addresses and the port numbers of the TCP/IP headers, but the firewall code is looking at the pin-hole information which means when the second TCP connection hits the firewall, it’s just going to reject the SYN.
So all those bazillian packets get routed to /dev/null. What a waste of time!
Testing with Mu Studio
With Mu Studio, we took a radically different approach to generating test cases from packet captures. Here’s what happens when you upload a pcap into Mu Studio:
- Using the same xtractr technology we launched a while back, we classify flows and allow the user to pick one or more flows to import
- We then normalize, parametrize and transform the pcap into something called MuSL (Mu Scenario Language)
- Using a number of rules and heuristics, we auto markup MuSL to identify ephemeral ports and ip addresses in the application payload. This is exactly what ALG does!
- This step also includes marking lengths and checksums and all the other gory things found in protocols
Now this is cool, ‘cos we can automatically replace IP addresses and ports inside the messages to reflect the testbed. Because all the lengths and checksums are marked-up, changing one part of the packet automatically propagates across the rest recomputing lengths, offsets and all other dependent fields. TCP messages are sent over real TCP sockets, not some hacked up TCP stack.
This is not that different from what Mercury did with the correlation in their LoadRunner product.
But what’s really going to bake your noodle later on is once the scenario is generated you can execute it against a real Exchange server where the ports are all ephemeral and everything just works! And don’t forget that you started all this from a simple little packet capture. And want to run the same test over IPv6? Simply change the transport mode and voila’. All embedded IPv4 addresses automatically switch to IPv6. That simple!
Because of the way MuSL works, here’s the automatic call graph generated by the product when we uploaded the pcap above:
The key aspect of Mu Studio is that your firewall with ALG, NAT and all other application identification turned on will never know that the traffic is generated by Mu Studio. It thinks it’s Outlook, which is exactly what a test tool needs to do.
Fuzzing with Mu Studio
As I mentioned in my CanSecWest presentation a couple of years ago, you don’t build a fuzzer. You build an engine that can serialize normal messages in an alternate, intelligent way. Since the transformation of a pcap into MuSL is fully field-type-aware, here’s the set of test cases that Mu automatically generated from the pcap above:
Each variant is a test-group which means by simply uploading a pcap into Mu Studio, we just generated 10,000+ fuzz-tests! Have a different scenario with a different pcap for those 400+ protocols on pcapr? No problem, we can handle it.
So next time you are testing any modern firewall with your favorite test tool, try it with ALG and NAT. If all packets end up in /dev/null, then you just wasted a lot of time and $$$. Try Mu Studio instead.




Pingback: Mu Dynamics Research Labs » Blog Archive » Functional and fuzz testing proxies and load-balancers
Pingback: Packet Size Control – draytek help
Pingback: Replayto american | Susandade
Pingback: Google Redirect Fix
Pingback: Error 1606
Pingback: Buy Facebook Fans
Pingback: guaranteed rankings
Pingback: Dallas Video Production
Pingback: Siesta Key Vacation Rentals
Pingback: Dallas Family Portrait Photographer
Pingback: Dallas Senior Portrait Photographer
Pingback: bodybuilding supplements
Pingback: Zero-Point Energy
Pingback: best bcaa
Pingback: Printable Hometown Buffet Coupons
Pingback: Loretta Derickson
Pingback: Porn forum
Pingback: how to start a cleaning business
Pingback: more Twitter followers
Pingback: word
Pingback: omega 3 fish oil
Pingback: Acne Treatment Reviews - What was the most successful acne treatment ?
Pingback: hand held gps units
Pingback: dating advice
Pingback: how to start website
Pingback: huge yield scam
Pingback: rc toys
Pingback: Shanta Stassi
Pingback: become man magnet
Pingback: Home Laser Hair Removal
Pingback: cholesterol
Pingback: dog snuggie
Pingback: earn money online
Pingback: loupe light
Pingback: Scott Tucker Payday Loans
Pingback: Scott Tucker Payday Loans
Pingback: best electric shaver
Pingback: how to play billiards
Pingback: Scott Tucker Racing
Pingback: Scott Tucker Racing
Pingback: local window cleaners
Pingback: how do I blog
Pingback: tree surgeons Cardiff
Pingback: Scott Tucker Payday Loans
Pingback: Scott Tucker Payday Loans
Pingback: Scott Tucker Payday Loans
Pingback: Brazzers Password
Pingback: super bowl live streaming
Pingback: condos for sale in clearwater beach
Pingback: khaki jeans
Pingback: finance insurance industry rss feeds
Pingback: fanny pack
Pingback: Scott Tucker Racing
Pingback: Scott Tucker CBS
Pingback: Scott Tucker Racing
Pingback: Scott Tucker CBS
Pingback: broker price opinions
Pingback: boot camp workout
Pingback: spinach health benefits
Pingback: http://www.athletesacceleration.com
Pingback: future technology predictions
Pingback: quickest way to get rid of a cold sore
Pingback: cambridge escorts
Pingback: coon rapids chiropractor
Pingback: TDS meter
Pingback: burberry watches for men
Pingback: gps fleet management
Pingback: Roku Review
Pingback: book templates
Pingback: wicker hampers
Pingback: twiends seeds
Pingback: Growing Credit Card Debt
Pingback: rewards online
Pingback: Euro
Pingback: Video
Pingback: Schlafsack Test
Pingback: lottery odds of winning
Pingback: tarot gratis
Pingback: North Myrtle Beach Vacations
Pingback: Proactol Plus
Pingback: recesnione prestiti unicredit
Pingback: maryland short sale expert
Pingback: Legal Highs
Pingback: frostwire
Pingback: natural cures for psoriasis
Pingback: Fresh news
Pingback: Air Conditioning Repairs
Pingback: los angeles backpage escort
Pingback: escorts in london
Pingback: Mass Income Multiplier
Pingback: Robert Shumake
Pingback: Reuben Schuur
Pingback: photographe mariage Montreal
Pingback: Go Tampa Pest Control
Pingback: windows and doors
Pingback: kids personalized luggage
Pingback: Discount Bathroom Centre
Pingback: Jamee Chiarito
Pingback: kindle ebooks
Pingback: Dentist Halesowen
Pingback: free cam porn
Pingback: los angeles asian escorts
Pingback: resume objective
Pingback: cavitacion
Pingback: tanie noclegi zakopane
Pingback: Michael Lacey
Pingback: goals goals goals
Pingback: learn more about seo
Pingback: coaching madrid
Pingback: activity centre in wales
Pingback: dissolve kidney stones
Pingback: compliments
Pingback: armin van buuren
Pingback: Scott tucker
Pingback: Scott tucker
Pingback: Commercial Diver Training
Pingback: Dentist Halesowen
Pingback: Scott Tucker Racing
Pingback: Scott Tucker Racing
Pingback: Scott Tucker CBS
Pingback: Scott Tucker CBS
Pingback: jss tripler team
Pingback: personal trainer certification
Pingback: marketing with anik review
Pingback: publishing house
Pingback: Corded curtain poles
Pingback: DUI lawyer Akron
Pingback: document solutions
Pingback: skin
Pingback: salt lake emergency dental
Pingback: raspberry keytone
Pingback: Bagsbuy.com deals
Pingback: Chattanooga parking
Pingback: Hiring In Atlanta
Pingback: Subliminal
Pingback: kaos bola
Pingback: Traditional Irish Music
Pingback: Free PSD file
Pingback: fluval aquarium filter
Pingback: bayraves
Pingback: Learn Italian
Pingback: workout diet plan for men
Pingback: we buy houses arizona
Pingback: become a certified personal trainer
Pingback: panama tourism
Pingback: california divorce lawyers
Pingback: Video Promotion
Pingback: Games for girls
Pingback: how to get rid of blackheads
Pingback: recipes
Pingback: Southern California Attractions
Pingback: how to make your hair grow faster
Pingback: weight loss help
Pingback: more
Pingback: new plr articles
Pingback: Furnace Repair St. Louis
Pingback: nya billiga mobiltelefoner
Pingback: free internet marketing rebrandable reports
Pingback: free plr article packs
Pingback: cloud storage
Pingback: glock laser sight
Pingback: Copywriter
Pingback: Camera Insurance
Pingback: Copywriting
Pingback: MLS Sales
Pingback: Anwar Sadhe
Pingback: fathers day 2012
Pingback: how copyright music
Pingback: video conferencing
Pingback: fried pork chops
Pingback: Finasteride
Pingback: Best Home Treadmill
Pingback: No Sponsoring Required to Earn!
Pingback: Bad Credit car finance
Pingback: link building service
Pingback: Cure Procrastination
Pingback: the law of attraction
Pingback: Hundred pushups
Pingback: how to build muscle quickly
Pingback: Matthew Roszak Information
Pingback: scott tucker payday loans
Pingback: chucvuive
Pingback: www.pmpcertificationprograms.com
Pingback: dating
Pingback: Dental Implants
Pingback: event staffing
Pingback: scottsdale garage doors
Pingback: san diego escort
Pingback: router
Pingback: Herbal Smoke Shop
Pingback: site
Pingback: online betting
Pingback: uk debt help
Pingback: lower back exercises
Pingback: Buy Ambien
Pingback: hydrogen generators
Pingback: full details
Pingback: Mot Centres in Aylesbury
Pingback: get donations
Pingback: imagens de amor
Pingback: UK whiplash claims
Pingback: pittsburgh escorts
Pingback: buy ambien online
Pingback: papa johns menu
Pingback: genital warts
Pingback: matrassen Airdream waterbed
Pingback: Plumbers Liverpool
Pingback: SEO blog
Pingback: what temperature kills bed bugs
Pingback: Marine performance parts
Pingback: Mathieu De Ruyck
Pingback: Mathieu De Ruyck
Pingback: 2013 nissan cars reviews
Pingback: Mathieu De Ruyck
Pingback: merchant cash advance info
Pingback: company directory
Pingback: How to make clean water
Pingback: Free Youtube traffic
Pingback: xenical
Pingback: get info
Pingback: cam chat
Pingback: cam chat
Pingback: bookmarks
Pingback: seo analyse
Pingback: Scott Tucker CBS
Pingback: Scott Tucker
Pingback: Milan
Pingback: Airsoft Guns Cheap
Pingback: Exclusive free spins
Pingback: Sell website
Pingback: traffic exchange
Pingback: Tanesha Heiler
Pingback: earth4energy
Pingback: what is compound microscope
Pingback: Exercises To Burn Belly Fat
Pingback: SMS Online Gratis
Pingback: Directory of Articles & Press Releases
Pingback: Relationships
Pingback: Haley Mcleod
Pingback: i will always love you
Pingback: Brook Holubar
Pingback: Magdalen Shelsy
Pingback: Neil Essick
Pingback: melamine
Pingback: hemorrhoid treatment nyc
Pingback: swinging doors
Pingback: valium online
Pingback: diet review
Pingback: Harry Potter Kostüm
Pingback: syracuse seo service
Pingback: busana pengantin
Pingback: Background check
Pingback: Renegade millionaire bonus
Pingback: Hyundai Side Window Deflectors
Pingback: rap beats
Pingback: girls vor der cam
Pingback: spass am telefon
Pingback: juniors party dresses
Pingback: reputation management
Pingback: iphone case
Pingback: Los Angeles Dental Arts
Pingback: Latosha Gaud
Pingback: how do i copyright music
Pingback: protein bar
Pingback: mike dantoni
Pingback: iPhone 4s Unlocking
Pingback: replica watches
Pingback: bowflex selecttech 552 dumbbells
Pingback: myoplex
Pingback: how to have a flat stomach
Pingback: nitric oxide
Pingback: veneers beverly hills
Pingback: Wholesale Yoga Clothes
Pingback: cheap car insurance
Pingback: wholesale electronics
Pingback: www.floridahomeinsurancequotes.com
Pingback: Shila Hasychak
Pingback: Jobs in Presidio, TX
Pingback: Scrapeboard
Pingback: wasserbetten preise
Pingback: avid products santa monica
Pingback: bracelet
Pingback: lida
Pingback: what is the best Ecig
Pingback: check English spelling
Pingback: SEO Company San Diego
Pingback: Texas car insurance
Pingback: nicki minaj website
Pingback: north port tattoos
Pingback: scorpion helmets exo 500
Pingback: north korea
Pingback: Scrapebox Server
Pingback: Suchmaschinenoptimierung
Pingback: www.searscard.com
Pingback: Online Login
Pingback: Piper Huger
Pingback: Diego Reddig
Pingback: nopalea consumer reviews
Pingback: Bondsman
Pingback: buy steroids
Pingback: VPS Server
Pingback: mujeres
Pingback: mujeres
Pingback: Scrapebox VPS Server
Pingback: white bunk beds
Pingback: Buy Triplicate Carbonless (Lge) Restaurant Docket Books
Pingback: http://www.onlineinvestmentfund.com/page_custom.php?page=career
Pingback: http://www.casquesansfil.org/
Pingback: game
Pingback: flyttefirma
Pingback: http://www.machineabiere.net/
Pingback: http://www.glaciereelectrique.fr/
Pingback: Pre 1964 Silver Coins
Pingback: mobile cell site
Pingback: plastic swimming pools
Pingback: mujeres
Pingback: Cash 4 Coins
Pingback: hpv
Pingback: hpv
Pingback: David
Pingback: white ceramic watches
Pingback: no no hair removal reviews
Pingback: no no hair removal reviews
Pingback: link
Pingback: chesca
Pingback: friteuse sans huile seb actifry
Pingback: http://www.rasoirelectrique.org/
Pingback: http://www.montregps.org/
Pingback: My Blog
Pingback: en lire plus
Pingback: http://www.disquedurinterne.net/
Pingback: seo orlando
Pingback: dental implants
Pingback: http://www.piscineautoportante.net/
Pingback: click here
Pingback: bad credit mobile phones
Pingback: car accidents injury lawyers pearblossom ca
Pingback: site
Pingback: http://google-redirect-virus-removal.org