Subscribe:

Blog:
Videos:
Podcast:


Sponsored By:


www.coresecurity.com


www.tenablesecurity.com


www.trustwave.com/spiderlabs


www.nwnstar.com



Follow Us On:


twitter.com/pauldotcom

PaulDotCom YouTube Channel


Visit PaulDotCom Insider


Recently in Upcoming Events Category

Another great guest post from Dennis Antunes:
In Part 1 of this series, I barely scratched the surface of password brute forcing.

In this post I hope to go beyond the basics and demonstrate some approaches I use to significantly increase the quality of my tests as well as my chances of success.

Success?
Everyone measures success differently, but hopefully some of you will consider success using these techniques to convey the importance to your developers, customers, bosses, friends, spouses, etc. of selecting strong passwords for web-based authentication mechanisms. I am not talking simply about complexity, length, and so forth, although they of course help. Rather, I am referring to the quality of the password, something that is more difficult, but not impossible to enforce.

An example: Your password policy states you must use 3 out of the 4 of the following: upper, lower, numeric or special, and it must be at least 8 characters.
Password33 meets this requirement as does MhaLlwfl3z, but one is much more secure. How much, not sure, but practically speaking way more. I know in a pen test I will try Password33 against any and all your user accounts every time (and so would a script kiddie). The second one though? 9 seemingly unrelated characters? Doubtful.

Now, the second password is a take on a commonly known phrase (free gift to the first correct guesser). Extremely easy for me to remember, but hard for you to guess. Can it be guessed in an all-out brute force? Definitely, but hopefully I have other compensating controls in place: account lockout, IPS, admins with a clue, etc.

Its in the Dictionary, Stupid.
My point is, if you MUST rely upon only user name and password, you need to ensure your users are choosing passwords that are not easily guessable. Far better to use a non-dictionary word or a pass phrase. For example, I personally like to use song lyrics of my favorite artists, like this one: IlUoUlm33

Give up? Yes its Barney, a take on the epic "I love you, you love me" opus. See it now? Unforgettable, complex, simple and disturbing all at the same time.

Generating (supposedly) Complex Passwords For Cracking
Now starting with a decent password list, like RockYou's worst 500 (RY500 from here on out) mentioned in Part 1, I like to do a few things:
  1. Run CeWL and concatenate w/ RY500
  2. Mangle the expanded RY500 w/ JTR
  3. Run a custom script based on the site's complexity rules for efficiency's sake.
Running CeWL
What cool is: CeWL is a ruby app which spiders a given url to a specified depth, optionally following external links, and returns a list of words which can then be used for password crackers such as John the Ripper. Taken from http://www.digininja.org/projects/cewl.php.

That pretty much sums it up. Basically creates a nice list of words after crawling the site of your target. You can download it here. Be sure to read through the dependencies, documentation and usage examples as there a a couple gotchas.

./cewl.rb <target_domain> -w <outfile>

cat <outfile> RY500 > RY500_expanded

Mangling w/ JTR 
Next we need to mangle our expanded list with JTR. The default mangling rules included with john are nice, but Matt Weir has done great job of expanding on these, which is helpful, consider john's rule writing syntax at first can seem a bit arcane. Download his john_manglingrules.conf, backup your own john.conf and replace it with Matt's improved version.

I suggest you carefully read through Matt's file, do some experimentation with some short password lists and tweak as necessary. For example, his file appends 4 numerics to each password. This can result in a huge number of passwords, which may or may not be desired. You can edit his file before mangling or you can always do some post-processing or trimming later as needed.

john --rules --wordlist=RY500_expanded --stdout > RY500_mangled
Matching complexity
Next, we'll then use a small python script to grep through the results with a gnarly regex to generate a nice list of "complex" passwords according to our configuration. Grab my script here. It really just conceptual. You'll need to tweak it to match the password complexity rules of your site to elimate wasted login attempts.
Running:

./password_complexity_matcher.py RY500_mangled
...will generate a file called complexity_matches.

The Census made me do it
Circling back, you say, "Even though my passwords are lame, you still don't have my user accounts." To which I reply, "Uh, yes I (probably) do."

That brings me to another important point. User names should also have complexity rules and ideally not be based entirely upon the user's actual name.

You see, most companies like to use some variation of your actual name: first initial/last, first name/last, last name/first initial, etc.

If this is your company, and it is of any significant size, thanks to the US Census, I most likely have a significant portion of your user names too.

Taking the lists from the census, and using just the top 100 male and female names interleaved, combined with the top 100 last names results in a boat load of common names, 10K to be exact. Names like...
JAMES SMITH
MARY SMITH
JOHN SMITH
PATRICIA SMITH
ROBERT SMITH
LINDA SMITH
.......
JAMES JOHNSON
MARY JOHNSON
JOHN JOHNSON
PATRICIA JOHNSON
ROBERT JOHNSON
LINDA JOHNSON

...start to emerge

Once you have a nice list of very common names, you can again turn to custom python scripts to generate a variety of formats, add email addresses, etc. to your user names very simply. Better of course if you already know the format, which is probable in a gray box test or if there is a self-registration function. Combine these names with the complex password list we generated with JTR and I am sure you can appreciate the potential.

Fire up Burp, Hydra, or your own custom scripts and have a party.

In Summary
  • Use these techniques to convince your bosses/developers/friends how lame standard complexity rules can be
  • Urge them to use passphrases as they are far stronger and much more fun
  • Consider using obscure usernames, not entirely built on the user's actual name
  • The US Census is your friend
  • If you find this blog entry helpful, kindly buy myself, Robin Wood, and Matt Weir a beer.
Mentoring the SANS Sec 542 in Foxboro, MA beginning 4/13/2011.
Before you register email me at stratmofo at gmail dot com for a special discount code!

Cigars, Scotch, Hoffaccino's and pen testing on deck Thursday night!

|

Episode 230 is sure to please Hoffaccino fans and anyone who enjoys more breadth and depth in their pen testing! We'll have Cloud Security guru Chris Hoff and Core Security's Senior Product Manager Alex Horan creating their own special brand of cloud at the PaulDotCom Security Weekly cigar lounge of choice - Joyal's Liquors!

You can view the live feed tomorrow night by watching the below video:

NOTE: The video will play the most recent show up until we are live!

cigars_make_interns_happy.jpg
Darren "will work for scotch, cigars" Wigley

Each episode comes complete with show notes, detailing the interviews, tech segments, and stories presented. Please visit our Episode 230 Show Notes Page on the Wiki for more info on the podcast.

For interactive live video, audio, and chat during each episode you can visit PaulDotCom Live!, just hang out in our IRC channel, or tune into PaulDotCom Radio for an audio only version of the show.

Break out your liquid cheer of choice, and enjoy the show live!

- Paul Asadoorian, Larry Pesce, Carlos Perez, Darren Wigley, and John Strand.

PaulDotCom Webcast: "Hacking Horror Stories" This Week

|
Zombiegrave.jpg
There is no escape from the server room...

We wanted everyone to know about a webcast we are giving (on a bit short notice!):

Description: How the most popular vulnerabilities are exploited in the wild. Attend this presentation to hear how the most popular web application security vulnerabilities have been exploited in the wild. You’ll see real-life examples of how hackers sullied big brand names, disabled cars, and stole personal information from powerful people such as New York Mayor Michael Bloomberg and White House Chief of Staff Rahm Emanuel.

Title: Hacking Horror Stories

Date: Wednesday, October 6, 2010

Time: 2:00 PM - 3:00 PM EDT

Register here: https://www1.gotomeeting.com/register/739957033

Please join us as we welcome Dave Aitel for an interview on Episode 202 of PaulDotCom Security Weekly! The live stream should be active around 19:30 EDT (7:30 PM), tomorrow night. were_recording.jpg
psst! Larry! - we've been recording for 10 minutes and all you've done is drink beer!
Join the IRC channel during the stream - we can take live comments and discussion from the channel! Find us on IRC at irc.freenode.net #pauldotcom. When active, the live stream(s) can be found at: PaulDotCom Live! - You can watch the live video, listen, and chat during each episode! You can access the streaming videos at any time by visiting http://pauldotcom.com/live/ PaulDotCom Icecast Radio (Audio Only) Break out your adult beverage of choice and join us, enjoy the show live, and thanks for listening! - Paul "Salad Shooter" Asadoorian, Larry "HaxorTheMatrix" Pesce, Carlos "Dark 0perator" Perez, Darren "The Other Guy" Wigley, John "The Father" Strand, Mick "AppleJack" Douglas, and Mark "Quiet but Deadly" Baggett.

Please join us as we welcome the "mad scientists" Emerging Threats team for Episode 198 of PaulDotCom Security Weekly, where they'll discuss their latest project, Suricata. The live stream should be active around 19:30 EDT (7:30 PM), tonight.

madscientist.jpg

Join the IRC channel during the stream - we can take live comments and discussion from the channel! Find us on IRC at irc.freenode.net #pauldotcom.

When active, the live stream(s) can be found at:

PaulDotCom Live! - You can watch the live video, listen, and chat during each episode! You can access the streaming videos at any time by visiting http://pauldotcom.com/live/

PaulDotCom Icecast Radio (Audio Only)

Break out your adult beverage of choice and join us, enjoy the show live, and thanks for listening!

- Paul "Salad Shooter" Asadoorian, Larry "HaxorTheMatrix" Pesce, Carlos "Dark 0perator" Perez, Darren "The Intern" Wigley, John "The Father" Strand, Mick "AppleJack" Douglas, and Mark "Quiet but Deadly" Baggett.

We'll chat with Belgium Security Blogger Didier Stevens about Google adwords, pdf readers, twitter controlled Christmas trees and his unhealthy obsession with RFID tags. Watch us live at 19:30 EST, Thursday January 14th for Episode 183 of PaulDotCom Security Weekly.

gas-detector-small.png
Sensor overloaded after being exposed to the after effects of pizza and beer with PaulDotCom



Please join the IRC channel during the stream - we can take live comments and discussion from the channel! Find us on IRC at irc.freenode.net #pauldotcom.

When active, the live stream(s) can be found at:

PaulDotCom Livestream - All new with Video and Chat! You can access the streaming videos at any time by visiting http://pauldotcom.com/live/

PaulDotCom Icecast Radio

Break out your adult beverage of choice and join us, enjoy the show live, and thanks for listening!

- John, Darren, Mick, Carlos, Paul, & Larry

Practical Kung Fu Webcast Series

|

PaulDotCom is very excited to bring you several new webcast series starting next January. The webcasts will be produced, hosted, and performed by the members of PaulDotCom. In addition to the White Hat World webcasts, there will be several different topic-based webcasts that will highlight different areas of information security. The first two are sure to be a "smash hit" as we show you how to improve your skills in the areas of client-side penetration testing and web application assessments (and even avenge the death of your master). Information about each webcast, including the registration links, is below:

kungfu.jpg

Title: Practical Client-Side Exploitation Kung Fu

Description: In this webcast we will explore the tools & techniques needed to perform successful client-side exploitation. Practical methods for information gathering, target selection, and exploit delivery will be covered.

Date: Thursday, January 21, 2010

Time: 2:00 PM - 3:00 PM EST

Sponsor: Core Security Technologies

Register Here: https://www1.gotomeeting.com/register/171250512

Picture 78.png

Title: Practical Web Application Pen Testing Kung Fu

Description: In this session John & Paul will guide you to performing more successful web application penetration testing. You will learn how to balance automated tools with manual testing, strike vulnerabilities with the highest chance of exploitation, and more!

Date: Tuesday, January 26, 2010

Time: 2:00 PM - 3:00 PM EST

Sponsor: Cenzic

Register Here: https://www1.gotomeeting.com/register/290940024

Train Your Systems Administrators

|


One of the great eye opening moments for me in the past few years was learning that we are outnumbered. Not only does it appear that there is a non-stop wave of malware and evil sites that are constantly trying to infect our systems, but it seems like our user population is working against us as well by trying to click on every evil link or evil file that they come upon. Because of this it is very easy to feel like the plight of today’s security professional is a grim one. I often say that we are in one of the only professions I know of which is destined to fail. You will have a breach and there will be compromises; you will get called out. In light of this reality I still find that information security professionals are a fairly happy lot. The trade-off for having the cards stacked against us is in that we get to work in on of the coolest fields.

If you don't think so….please get out. There are other people who would love to have your job.

However, I have also realized recently that we are not alone. There is another group of professionals that we work with every day that can help us. Our Administrator brethren are an untapped resource for the information security community. We need to start cross-training with them if we want to stand a chance against the onslaught of attacks and malware that we face on a daily basis.

There are a number of different ways to go about this. There are commercial training options for your systems administrators that are short and to the point. I will be teaching one of these classes online and another in New Orleans in January. Please see the below links for more information.

564 online.

564 in New Orleans with Mechanical Bull and Beads.


However, beyond the commercial options there is something that we should be doing as well. I recommend having weekly brown bag meetings where you can show your systems administrators some cool tricks for ideating an incident and they can show you some neat tricks for understanding the business application process flow of your organization. This tradeoff is beneficial because it illuminates both aspects of an organization, security and day-to-day administration.

Keep in mind that one of the greatest instructors of evil, the great Bastard Operator From Hell, was a Systems Administrator. There is much we can learn from them.

BOFH.jpg
So Much To Learn!

-strandjs

Please tune in live to hear Moxie Marlinspike talk with the PDC crew about his research, specifically how he has poked SSL with a hot pointer until it cries uncle.

The podcast will be recorded t at 8:30 PM EDT on Friday, September 11, 2009. The live stream should be active around 20:45 EDT (8:45 PM Eastern). Please keep in mind that these times are estimates.

ssl_bug2.jpg

Please join the IRC channel during the stream - we can take live comments and discussion from the channel! Find us on IRC at irc.freenode.net #pauldotcom.

When active, the live stream(s) can be found at:

Ustream: PaulDotCom UStream Channel

Icecast: PaulDotCom Radio

Please join us, enjoy the show live, and thanks for listening!

- John, Paul, Mick, Carlos & Larry

Please join us and Daniel Suarez, author of runaway hit Daemon Thursday night for Episode 165 of PaulDotCom Security Weekly. The live stream should be active around 18:45 EDT (6:45 PM), Thursday, August 27th. Please keep in mind that the recording time is an estimate.

daemon.nl.jpg

Episode 165 will also feature a Tech Segment by John Strand, following up on his fabulous posting on 'Scanning through TOR'.

Please join the IRC channel during the stream - we can take live comments and discussion from the channel! Find us on IRC at irc.freenode.net #pauldotcom.

When active, the live stream(s) can be found at:

Ustream: PaulDotCom UStream Channel

Icecast: PaulDotCom Radio

Please join us, enjoy the show live, and thanks for listening!

- John, Paul, Mick, Larry & Carlos.