<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" gd:etag="W/&quot;DkYCRH07cCp7ImA9WxBUEEg.&quot;"><id>tag:blogger.com,1999:blog-31571948</id><updated>2010-02-25T00:29:25.308+01:00</updated><title>RaDaJo (RAul, DAvid and JOrge) Security Blog</title><subtitle type="html">Turning Information Security Inside-Out</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.radajo.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.radajo.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>85</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Radajo_atom" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="radajo_atom" /><entry gd:etag="W/&quot;CUEARXs_fCp7ImA9WxBTF00.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-3274751430180571638</id><published>2009-12-13T08:12:00.005+01:00</published><updated>2009-12-13T12:27:24.544+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-13T12:27:24.544+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Samurai-WTF" /><category scheme="http://www.blogger.com/atom/ns#" term="Pentest" /><title>Assessing and Exploiting Web Applications with the open-source Samurai Web Testing Framework</title><content type="html">&lt;div&gt;This week, December 10, I participated in the first OWASP international conference cellebrated in Spain, and specifically, in Iberia. &lt;a href="http://www.ibwas.com/"&gt;IBWAS'09, the Iberic Web Application Security Conference&lt;/a&gt;, by the Spanish and Portuguese OWASP chapters, promoted the need of (web) application security controls and I predict it will be the conference of reference in upcoming years in the region. It was interesting to start by listening to Bruce Schneier talking about the present and future of the information security industry.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As an active member of the &lt;a href="http://samurai.inguardians.com"&gt;Samurai-WTF project&lt;/a&gt;, my presentation described Samurai-WTF main purpose plus its recent additions, available from the official SVN repository. I ended up with a hacking demo to demonstrate the power of integrating multiple attack tools in a single platform for web-app pen-testing exercises: &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;The Samurai Web Testing Framework (WTF) is an open-source LiveCD focused on web application security testing. It includes an extensive collection of pre-installed and pre-configured top penetration testing and security analysis tools, becoming the perfect environment for assessing and exploiting web applications. The tools categorization guides the analyst through the web-app penetration testing methodology, from reconnaissance, to mapping, discovery and exploitation. &lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;This talk describes the actively developed Samurai WTF distribution, its tool set, including the recently created Samurai WTF Firefox add-ons collection (to convert the browser in the ultimate pentesting tool), the advanced features provided by the integration of multiple attack tools, plus the new tool update capabilities.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you are interested on the project, start by checking the "&lt;a href="http://www.raulsiles.com/downloads/Samurai-WTF_RaulSiles_IBWAS09_Dec09.pdf"&gt;Assessing and Exploiting Web Applications with the open-source Samurai Web Testing Framework&lt;/a&gt;" presentation, and join &lt;a href="http://sourceforge.net/projects/samurai/"&gt;the project in sourceforge.net&lt;/a&gt; (and the &lt;a href="http://sourceforge.net/mail/?group_id=235785"&gt;mailing list&lt;/a&gt;).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Become a Samurai!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-3274751430180571638?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/3274751430180571638/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=3274751430180571638" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/3274751430180571638?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/3274751430180571638?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/12/assessing-and-exploiting-web.html" title="Assessing and Exploiting Web Applications with the open-source Samurai Web Testing Framework" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></entry><entry gd:etag="W/&quot;DU8GSHs-fip7ImA9WxBTFk0.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-4621734238821478633</id><published>2009-12-12T08:53:00.009+01:00</published><updated>2009-12-12T09:50:29.556+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-12T09:50:29.556+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Challenge" /><category scheme="http://www.blogger.com/atom/ns#" term="Pentest" /><title>Hacking Challenges: Have Fun Improving Your Skills!</title><content type="html">Last week, December 3, I was presenting an &lt;a href="http://www.sans.org/london09/night.php"&gt;@Night event&lt;/a&gt; during the SANS London 2009 conference, focused on hacking challenges and how they can be used to improve your skills and knowledge while having fun:&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-STYLE: italic"&gt;Hacking and security challenges are a great and effective training tool. They provide a platform to improve everyone's skills by forcing all candidates to devise an offensive or defensive tactic, apply different techniques, and squeeze the available tools to succeed. The acquired knowledge can be later on applied to real-world ventures.&lt;br /&gt;&lt;br /&gt;This interactive session will guide the audience through some scenarios associated to penetration testing and hacking challenges published over 2009. Apply your technical skills and knowledge to solve these challenges while having fun!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The interactive session was very fun and people actively participated, and performed really well, to solve a compact version of the &lt;a href="http://www.radajo.com/2009/07/ethical-hacker-challenge-prison-break.html"&gt;"Prison Break" challenge&lt;/a&gt; in one hour. This has been the first event where we have announced the birth of a new security company, called &lt;a href="http://www.taddong.com/"&gt;Taddong&lt;/a&gt;, focused on advanced security services. More details about it in the upcoming weeks...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_NSH9SH7V1yY/SyNWKroUM5I/AAAAAAAAAJ8/dzeh1CM3lhQ/s1600-h/taddong_small.PNG"&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 366px; DISPLAY: block; HEIGHT: 100px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5414265918539969426" border="0" alt="" src="http://4.bp.blogspot.com/_NSH9SH7V1yY/SyNWKroUM5I/AAAAAAAAAJ8/dzeh1CM3lhQ/s400/taddong_small.PNG" /&gt;&lt;/a&gt;&lt;br /&gt;The presentation is available here: "&lt;a href="http://www.raulsiles.com/downloads/Hacking-Challenges_RaulSiles_Dec09.pdf"&gt;Hacking Challenges: Have Fun Improving Your Skills!&lt;/a&gt;".&lt;br /&gt;&lt;br /&gt;During the session, on purpose, the last portion of the challenge remained unsolved, that is... what is the input required to generate the Scylla validation code (you already know it is a hash)?&lt;br /&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: center"&gt;&lt;span style="FONT-WEIGHT: bold;font-size:130%;" &gt;6189db841f01413a05a53b7135137a17&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;For those attending the session in London, I recommend you to open the presentation, review the challenge details, and try to figure out how to generate the code without using Google ;), and before reading &lt;a href="http://www.radajo.com/2009/10/prison-break-breaking-entering-decoding.html"&gt;the official solution&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Have fun! &lt;a href="http://www.taddong.com/"&gt;Taddong&lt;/a&gt; is coming...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-4621734238821478633?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/4621734238821478633/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=4621734238821478633" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/4621734238821478633?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/4621734238821478633?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/12/hacking-challenges-have-fun-improving.html" title="Hacking Challenges: Have Fun Improving Your Skills!" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_NSH9SH7V1yY/SyNWKroUM5I/AAAAAAAAAJ8/dzeh1CM3lhQ/s72-c/taddong_small.PNG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;DUEARHs9fCp7ImA9WxNUEUQ.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-7570917330311176395</id><published>2009-11-02T22:33:00.000+01:00</published><updated>2009-11-02T22:34:05.564+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-02T22:34:05.564+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Pentest" /><category scheme="http://www.blogger.com/atom/ns#" term="book" /><title>Security Book Review: Chained Exploits</title><content type="html">&lt;span style="font-weight: bold;"&gt;&lt;a href="http://www.amazon.com/gp/product/032149881X?ie=UTF8&amp;amp;tag=ra06-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=032149881X"&gt;Chained Exploits: Advanced Hacking Attacks from Start to Finish&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=ra06-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=032149881X" alt="" style="border: medium none  ! important; margin: 0px ! important;" border="0" height="1" width="1" /&gt;&lt;/span&gt;&lt;br /&gt;Author: A. Whitaker, K. Evans, J. B. Voth&lt;br /&gt;Editorial: Addison-Wesley Professional&lt;br /&gt;Publication date: March 9, 2009&lt;br /&gt;ISBN-10: 032149881X&lt;br /&gt;ISBN-13: 978-0321498816&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/032149881X?ie=UTF8&amp;amp;tag=ra06-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=032149881X"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 121px; height: 160px;" src="http://1.bp.blogspot.com/_NSH9SH7V1yY/StH6adm8StI/AAAAAAAAAIc/vG1mIfOCBvY/s320/418vqt1QCuL._SL160_.jpg" alt="" id="BLOGGER_PHOTO_ID_5391365561470700242" border="0" /&gt;&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=ra06-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=032149881X" alt="" style="border: medium none  ! important; margin: 0px ! important;" border="0" height="1" width="1" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Summary:&lt;/span&gt; A multi-scenario hacking adventure novel focused on combined real-world attacks.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Score:&lt;/span&gt; 5/5&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Review:&lt;/span&gt;&lt;span&gt;&lt;br /&gt;The penetration testing (and criminal) field has focused during the last years on increasing the foothold on compromised systems, proving advanced pivoting and post-exploitation techniques that might help to expand the compromise to other systems or critical resources. This book is a novel that describes these reality by telling hacking stories where multiple &lt;/span&gt;&lt;span&gt;techniques, tools and vulnerable input vectors are exploited in order to accomplish a variety of clearly defined attacks and goals.&lt;br /&gt;&lt;br /&gt;Each chapter is a well structured story describing multiple attack scenarios. From credit card theft, to insider threat, going through corporate espionage focused on stealing confidential intellectual property, the launch of a DoS attack in a key point in time, the risk and exploitation of inter-corporation network connections, physical access to healthcare records, up to social networking and wireless break-ins.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;br /&gt;The book is a modern fictional narrative with technical touches, covering attacks from start-to-finish in elaborated stories (my score evaluates the book from this perspective). However, by reading the book description, you might expect a deeply technical book that will teach you how to perform those attacks, and... it is not.&lt;br /&gt;&lt;br /&gt;Every attack story is introduced by setting the stage and the overall attacker approach. Besides that, it is surrounded by a few final defensive tidbits and conclusions, describing &lt;/span&gt;countermeasures to mitigate the various attacks covered. This book may act as an excellent eye opener for managers and top level positions (see recommended audience below) in order to understand how small security investments and tweaks can definitely help to increase the overall protection of a target environment substantially.&lt;br /&gt;&lt;span&gt;&lt;br /&gt;Unfortunately, from a technical perspective, some of the technical details have not been thoroughly reviewed, such as the output of nmap (order of ports), the unexplained switching of target systems from Vista to XP, the targeting of RDP while not on the port scan (chapter 4) , or the coverage of some tools. Some attacks are a bit outdated, such as the silent winpcap installation to capture traffic from a target box. However, I must admit this book inspired some of the components of a recent "Prison Break" hacking challenge I released this summer (2009).&lt;br /&gt;&lt;br /&gt;Specific portions of the book and, overall, the story plot, is well written from a novel perspective, and as &lt;/span&gt;&lt;span&gt;particular attacks are progressing, it made me &lt;/span&gt;&lt;span&gt;feel the common excitement &lt;/span&gt;we get when we are involved in a real penetration test and successfully progressing through the targets, getting the adrenalin going.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;This book is highly recommended for people entering in the security field, and for experienced technical security pros in two ways. On the one hand, it's an enjoyable and entertaining novel for a weekend or vacation period. On the other hand, it is a very good reference to give to managers and CxO positions so that they can get a feeling of how real-world attacks look like nowadays and the kind of targeted threats they may face.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;UPDATE: &lt;a href="http://www.amazon.com/Chained-Exploits-Advanced-Hacking-Attacks/product-reviews/032149881X/ref=dp_top_cm_cr_acr_txt?ie=UTF8&amp;amp;showViewpoints=1"&gt;Amazon review&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-7570917330311176395?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/7570917330311176395/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=7570917330311176395" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/7570917330311176395?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/7570917330311176395?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/11/security-book-review-chained-exploits.html" title="Security Book Review: Chained Exploits" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_NSH9SH7V1yY/StH6adm8StI/AAAAAAAAAIc/vG1mIfOCBvY/s72-c/418vqt1QCuL._SL160_.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;DUIDQXs5cCp7ImA9WxNUEUQ.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-168886849288785212</id><published>2009-11-02T22:31:00.000+01:00</published><updated>2009-11-02T22:32:50.528+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-02T22:32:50.528+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Virtualization" /><category scheme="http://www.blogger.com/atom/ns#" term="book" /><title>Security Book Review: VMware vSphere and Virtual Infrastructure Security - Securing the Virtual Environment</title><content type="html">&lt;span style="font-weight: bold;"&gt;&lt;a href="http://www.amazon.com/gp/product/0137158009?ie=UTF8&amp;amp;tag=ra06-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0137158009"&gt;"VMware vSphere and Virtual Infrastructure Security: Securing the Virtual Environment"&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=ra06-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0137158009" alt="" style="border: medium none  ! important; margin: 0px ! important;" border="0" height="1" width="1" /&gt;&lt;/span&gt;&lt;br /&gt;Author: Edward L. Haletky&lt;br /&gt;Editorial: Prentice Hall PTR&lt;br /&gt;Publication date: July 2, 2009&lt;br /&gt;ISBN-10: 0137158009&lt;br /&gt;ISBN-13: 978-0137158003&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/0137158009?ie=UTF8&amp;amp;tag=ra06-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0137158009"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 120px; height: 160px;" src="http://1.bp.blogspot.com/_NSH9SH7V1yY/StH5Ify4bHI/AAAAAAAAAIU/gvA-7QYYZxM/s320/51b4iv1AL8L._SL160_.jpg" alt="" id="BLOGGER_PHOTO_ID_5391364153308376178" border="0" /&gt;&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=ra06-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0137158009" alt="" style="border: medium none  ! important; margin: 0px ! important;" border="0" height="1" width="1" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Summary:&lt;/span&gt; The reference for securing virtual environments, in particular, VMware-based.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Score:&lt;/span&gt; 5/5&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Review:&lt;/span&gt;&lt;span&gt;&lt;br /&gt;I&lt;/span&gt;&lt;span&gt;n the first half of this year (2009), I &lt;/span&gt;&lt;span&gt; was involved on extending my previous research on virtualization security, and specifically, I focused on securing and hardening VMware ESX environments. This stirred up my interest on this book. &lt;/span&gt;&lt;span&gt;To sum up what this book is all about: "&lt;span style="font-style: italic;"&gt;I would have loved to have this book handy back by that time, as it would have saved me tons of time&lt;/span&gt;" Instead, I had to read and compare multiple VMware security guides from VMware, CIS, NIST, etc, and perform an extensive hands-on research on my own.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;The book offers a very solid and broad analysis of multiple security issues on virtual environments, covering not only the technical aspects associated to the virtualization hosts, virtual machines, and virtual data and storage networks, but also management and operational issues, availability concerns, and other common &lt;/span&gt;&lt;span&gt;related &lt;/span&gt;&lt;span&gt;tasks on newly deployed, or already established, virtualization setups.&lt;br /&gt;&lt;br /&gt;The first two chapters focus on security threats and attacks, a basic foundation required for the cross-references available throughout the book, that can be skipped by the on-the-field security readers.&lt;br /&gt;&lt;br /&gt;The next three chapters focus on offering best practices and security recommendations for different key components of any virtualization platform, such as the hypervisor, the storage network, and virtual clusters. The next couple of chapters cover most of the security aspects that must be considered on the design, deployment and operation of a virtual environment.&lt;br /&gt;&lt;br /&gt;Although all these chapters provide a very good quality security advice, it is not complemented with hands-on examples. I think this could be improved by adding more detailed sections describing step-by-step how to complete the security recommendations exposed, not just what need to be done. However, I understand it is required to cut the size of the book at some point. A good example of how to extend this idea can be observed on chapter 6, where the integration between VMWare ESX and a directory service is covered in depth.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;However, both the technical and operational aspects are integrated smoothly, offering a great in-depth overview. Apart from that, &lt;/span&gt;&lt;span&gt;the whole recommended list of things to consider in order to get a more secure virtualization infrastructure is summarized in a useful set of boxes called "Security Notes" and spread all throughout the book. These boxes can be easily used as a checklist when deploying or assessing the security of virtual solutions.&lt;br /&gt;&lt;br /&gt;My favourite chapters are chapter 8, and specially 9, where virtual machine and virtual networking security is analyzed, respectively. Chapter 9 offers a whole set of networking scenarios and discusses pros and cons to the number of (physical and virtual) network cards and its configuration. A &lt;/span&gt;&lt;span&gt;very practical and &lt;/span&gt;&lt;span&gt;thorough work!&lt;br /&gt;&lt;br /&gt;The book ends up with three special chapters. Chapter 10 covers the new VMware virtual desktop infrastructure (VDI) and the security issues around it. Due to all the client-based attacks nowadays, most probably it is going to be a de-facto standard pretty soon, so getting involved on the virtualization of client systems is a must. Chapter 11 provides a detailed guide to harden VMware ESX and ESXi hosts, a mandatory initial process for every new virtual deployment. Finally, chapter 12 provides a quick and interesting introduction to digital forensics (and data recovery) on virtual enviroments, mainly focused on how to deal with virtual file systems, such as VMFS, VMDKs, and raw disks. A quick recommended read for forensic analysts interested on expanding their skills to virtual victims.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;There are a few things I feel will improve the book contents. Unfortunately, due to the publication deadline, its coverage of the latest VMware vSphere virtual architecture is pretty limited, as the author clarifies. Besides that, considering the frequent security updates and patches released by virtualization vendors, I would have liked to find a better coverage of best practices to update the virtual infrastructure itself. Finally, as mentioned previously, about half of the book includes detailed how-to sections describing how to apply the recommended settings, but the other half misses that how-to portion. I understand this may be a limitation to make the book size manageable (it's over 500 pages now).&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;This book is highly recommended for IT and security architects, involved in the design of new virtual solutions, as well as virtualization administrators and anyone in charge of the maintenance of a virtual infrastructure. From a security perspective, people evaluating, assessing, and suggesting improvements for virtual solutions should read the book in order to have a full overview of all the security threats and possible countermeasures. &lt;/span&gt;&lt;span&gt;Overall, the book is a must read for anyone already involved, or planning to get involved, in virtualization. It really helps to acquire a very broad and extensive knowledge of the security considerations that apply to such a complex and modern IT architectures.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;UPDATE: Slashdot review, &lt;a href="http://www.amazon.com/VMware-vSphere-Virtual-Infrastructure-Security/product-reviews/0137158009/ref=dp_top_cm_cr_acr_txt?ie=UTF8&amp;amp;showViewpoints=1"&gt;Amazon review&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-168886849288785212?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/168886849288785212/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=168886849288785212" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/168886849288785212?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/168886849288785212?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/11/security-book-review-vmware-vsphere-and.html" title="Security Book Review: VMware vSphere and Virtual Infrastructure Security - Securing the Virtual Environment" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_NSH9SH7V1yY/StH5Ify4bHI/AAAAAAAAAIU/gvA-7QYYZxM/s72-c/51b4iv1AL8L._SL160_.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;DkEASXs6fyp7ImA9WxNWGU4.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-5201666387258383790</id><published>2009-10-19T08:37:00.003+02:00</published><updated>2009-10-19T08:44:08.517+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-19T08:44:08.517+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Pentest" /><title>Samurai Web Testing Framework (WTF) Firefox Add-ons Collection</title><content type="html">&lt;div&gt;On June 2009 &lt;a href="http://blog.mozilla.com/addons/2009/06/10/introducing-add-on-collections/"&gt;Mozilla released the add-ons collections feature&lt;/a&gt; on &lt;a href="https://addons.mozilla.org/"&gt;their add-ons web site&lt;/a&gt;. As a member and contributor to the &lt;a href="http://sourceforge.net/projects/samurai/"&gt;SamuraiWTF project&lt;/a&gt;, I would like to announce the release of the &lt;a style="font-weight: bold;" href="https://addons.mozilla.org/en-US/firefox/collection/samurai"&gt;SamuraiWTF Firefox add-ons collection&lt;/a&gt;!&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;The &lt;a href="http://sourceforge.net/projects/samurai/"&gt;Samurai Web Testing Framework (WTF)&lt;/a&gt; is a LiveCD focused on web application testing. It contains a pre-installed collection of the top web application penetration testing tools, becoming the perfect environment for testing applications.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://addons.mozilla.org/en-US/firefox/collection/samurai" target="_blank"&gt;&lt;/a&gt;&lt;/div&gt;  &lt;div&gt;The goal of this Firefox collection is to include the best add-ons for web application penetration testing and offensive security analysis, to convert your browser in the ultimate pen-testing tool. It is aligned with the Samurai Web Testing Framework (WTK) LiveCD distribution. I plan to keep the collection updated with new web-app pen-testing add-ons, but I would like to carefully evaluate new additions (or replacements) so that the list doesn't grow to limits where it becomes unmanageable. It includes 19 add-ons at this time.&lt;br /&gt;&lt;/div&gt;  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As of today, it seems &lt;a href="http://groups.google.com/group/mozilla.dev.amo/browse_thread/thread/d798c7e62a6f6343"&gt;it is not possible to install all add-ons from a collection with a single click&lt;/a&gt;. The current SamuraiWTF add-ons collection can be installed on the latest Firefox version, v3.5, with the exception of the "Add N Edit Cookies" add-on. Although this add-on works in Firefox 3.5.*, it cannot be directly installed. There is a quick hack you can apply to install it on Firefox 3.5 until the official version is updated by its developer:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Go to the &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/573"&gt;"Add N Edit Cookies" add-on webpage&lt;/a&gt; with a compatible old Firefox version, or with a different browser like Internet Explorer, and download the add-on (XPI file).&lt;/li&gt;&lt;li&gt;Change the XPI extension on the file to ZIP.&lt;/li&gt;&lt;li&gt;Extract the "install.rdf" file from the ZIP archive.&lt;/li&gt;&lt;li&gt;Edit the "install.rdf" file and replace the following line (maximum version):&lt;/li&gt;&lt;pre&gt;        &amp;lt;em:maxversion&amp;gt;3.0.*&amp;lt;/em:maxversion&amp;gt;&lt;/pre&gt;&lt;li&gt;by:&lt;/li&gt;&lt;pre&gt;        &amp;lt;em:maxversion&amp;gt;3.5.*&amp;lt;/em:maxversion&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;li&gt;Put (drag &amp;amp; drop) the new "install.rdf" file back into the ZIP archive, and it will automatically replace the old version of the file.&lt;/li&gt;&lt;li&gt;Change back the ZIP extension on the file to XPI.&lt;/li&gt;&lt;li&gt;At this point, you can &lt;a href="http://www.accessfirefox.org/Install_Addon_Manually.php"&gt;install the recently modified XPI add-on in Firefox 3.5&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Once you install all the add-ons within the SamuraiWTF collection, one by one, the look and feel of your Firefox browser will notably change. I recommend you to hide the add-ons toolbars visible by default. You can individually enable them at any time, such as when you are going to use each specific add-on:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Go to the "View" menu and select "Toolbars".&lt;/li&gt;&lt;li&gt;Deselect "Access Me Toolbar", "Web Developer Toolbar", and (specially) "HackBar".&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Finally, the "DOM Inspector" add-on has been added to the collection as it is a requirement to enable all the capabilities of the "Web Developer" add-on.&lt;br /&gt;&lt;br /&gt;Please, take a look at the collection, feel free to share your thoughts/comments (send me an e-mail), vote for this collection if you find it useful, and enjoy it!&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-5201666387258383790?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/5201666387258383790/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=5201666387258383790" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/5201666387258383790?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/5201666387258383790?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/10/samurai-web-testing-framework-wtf.html" title="Samurai Web Testing Framework (WTF) Firefox Add-ons Collection" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></entry><entry gd:etag="W/&quot;CUIFRHozcCp7ImA9WxNWE04.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-2683134171407706384</id><published>2009-10-12T09:37:00.003+02:00</published><updated>2009-10-12T09:45:15.488+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-12T09:45:15.488+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Challenge" /><category scheme="http://www.blogger.com/atom/ns#" term="Pentest" /><title>Prison Break - Breaking, Entering &amp; Decoding - Challenge Answers &amp; Winners</title><content type="html">The &lt;a href="http://www.ethicalhacker.net/content/view/278/2/"&gt;answers and winners&lt;/a&gt; for the &lt;a href="http://www.ethicalhacker.net/"&gt;EH-net&lt;/a&gt; "&lt;a href="http://radajo.blogspot.com/2009/07/ethical-hacker-challenge-prison-break.html"&gt;Prison Break (Breaking, Entering &amp;amp; Decoding)&lt;/a&gt;" challenge (August 2009) have been published today.&lt;br /&gt;&lt;br /&gt;The answers for this challenge were released in scoop to &lt;a href="http://ihackcharities.org/category/informer-blog/"&gt;The Informer&lt;/a&gt; subscribers a few days ago. In Johnny Long words, "&lt;span style="font-style: italic;"&gt;The Informer is a fund raising effort run by &lt;a href="http://www.hackersforcharity.org/"&gt;Hackers For Charity&lt;/a&gt;. It is designed to give subscribers a "backstage pass" to the world of Information Security. For $54 per year, subscribers get early, exclusive access to all sorts of goodies donated by the top names in the INFOSEC world. The industry's most recognized names will post blog entries here before they even post them to their own sites.&lt;/span&gt;" The EH-Net contribution will be the answers to the Skillz H@ck1ng Challenges a few days before they are revealed on EH-Net.&lt;br /&gt;&lt;br /&gt;It is an honor for me to drive this initiative, with the support of Don Donzal (EH-Net) and Ed Skoudis (Challenge Master), and start posting the official answers of this challenge on The Informer.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://www.ethicalhacker.net/content/view/278/2/"&gt;“Prison Break – Breaking, Entering &amp;amp; Decoding” challenge winners&lt;/a&gt; have been announced on EH-net, and the &lt;a href="http://www.raulsiles.com/downloads/PrisonBreak_Challenge_Answers_EH-RaulSiles_v1.0.pdf"&gt;answers are contained in a single PDF file (27 pages)&lt;/a&gt; plus &lt;a href="http://www.vimeo.com/siles/"&gt;three associated screencasts&lt;/a&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;"BTv4 802.1q (VLAN) setup"&lt;br /&gt;&lt;br /&gt;&lt;object height="300" width="400"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6828914&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1"&gt;&lt;embed src="http://vimeo.com/moogaloop.swf?clip_id=6828914&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="300" width="400"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;p&gt;&lt;a href="http://vimeo.com/6828914"&gt;BTv4 802.1q (VLAN) setup&lt;/a&gt; from &lt;a href="http://vimeo.com/siles"&gt;siles&lt;/a&gt; on &lt;a href="http://vimeo.com/"&gt;Vimeo&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;"Metasploit meterpreter Windump/Winpcap sniffer"&lt;br /&gt;&lt;br /&gt;&lt;object height="300" width="400"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6830384&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1"&gt;&lt;embed src="http://vimeo.com/moogaloop.swf?clip_id=6830384&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="300" width="400"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;p&gt;&lt;a href="http://vimeo.com/6830384"&gt;Metasploit meterpreter Windump/Winpcap sniffer&lt;/a&gt; from &lt;a href="http://vimeo.com/siles"&gt;siles&lt;/a&gt; on &lt;a href="http://vimeo.com/"&gt;Vimeo&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;"Metasploit meterpreter built-in sniffer module"&lt;br /&gt;&lt;br /&gt;&lt;object height="300" width="400"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6829490&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1"&gt;&lt;embed src="http://vimeo.com/moogaloop.swf?clip_id=6829490&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="300" width="400"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;p&gt;&lt;a href="http://vimeo.com/6829490"&gt;Metasploit meterpreter built-in sniffer module&lt;/a&gt; from &lt;a href="http://vimeo.com/siles"&gt;siles&lt;/a&gt; on &lt;a href="http://vimeo.com/"&gt;Vimeo&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; Thanks to everybody for participating on the challenge, and to Ed and Don for the opportunity. I hope you enjoyed working on it as much as I enjoyed designing and writing it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-2683134171407706384?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/2683134171407706384/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=2683134171407706384" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2683134171407706384?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2683134171407706384?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/10/prison-break-breaking-entering-decoding.html" title="Prison Break - Breaking, Entering &amp; Decoding - Challenge Answers &amp; Winners" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;D0MGRXw4fyp7ImA9WxNWEUw.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-4516579383799504051</id><published>2009-10-09T17:20:00.006+02:00</published><updated>2009-10-09T21:10:24.237+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-09T21:10:24.237+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Pentest" /><title>Sqlninja &amp; Metasploit Demo</title><content type="html">Last week I run the &lt;a href="https://www.sans.org/webcasts/sec542-web-application-penetration-testing-and-ethical-hacking-92868"&gt;"Web App Pen-Testing" SANS webcast&lt;/a&gt; to provide a sneak preview of the  &lt;a href="http://www.sans.org/london09/description.php?tid=3472"&gt;SEC542 "Web Penetration Testing and Ethical Hacking"&lt;/a&gt; course I will be teaching in London &lt;a href="http://www.sans.org/london09/description.php?tid=3472"&gt;later this year&lt;/a&gt;. At the end of the webcast I run a Sqlninja &amp;amp; Metasploit demo over the &lt;a href="http://www.foundstone.com/us/resources/proddesc/hacmebank.htm"&gt;Hacme Bank&lt;/a&gt; vulnerable site using the &lt;a href="http://radajo.blogspot.com/2009/09/sqlninja-metasploit.html"&gt;recently released sqlninja patch&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This post includes a &lt;a href="http://www.vimeo.com/6983189"&gt;screencast of that demo&lt;/a&gt; (15:40 minutes):&lt;br /&gt;&lt;br /&gt;&lt;object height="300" width="400"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6983189&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1"&gt;&lt;embed src="http://vimeo.com/moogaloop.swf?clip_id=6983189&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="300" width="400"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;You can access the archived version of the &lt;a href="https://www.sans.org/webcasts/sec542-web-application-penetration-testing-and-ethical-hacking-92868"&gt;full SEC542 webcast from the SANS portal&lt;/a&gt;. Hope to see some of you, RaDaJo readers, in London!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-4516579383799504051?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/4516579383799504051/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=4516579383799504051" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/4516579383799504051?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/4516579383799504051?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/10/sqlninja-metasploit-demo.html" title="Sqlninja &amp; Metasploit Demo" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total></entry><entry gd:etag="W/&quot;D0YGQXw9fip7ImA9WxNQGEQ.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-2214146361235250052</id><published>2009-09-25T14:59:00.019+02:00</published><updated>2009-09-25T18:12:00.266+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-25T18:12:00.266+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Pentest" /><title>Sqlninja &amp; Metasploit</title><content type="html">&lt;a href="http://sqlninja.sourceforge.net/"&gt;Sqlninja&lt;/a&gt; is one of the best open-source tools to automate SQL injection exploitation against MS SQL Server databases. If you combine it with the best open-source network penetration testing framework, &lt;a href="http://www.metasploit.org/"&gt;Metasploit&lt;/a&gt;, you get an extremely powerful web application pen-testing toolkit for total database p0wnage!&lt;div&gt;&lt;br /&gt;This week I have been preparing a sqlninja demo focused on its integration with Metasploit for next week &lt;a href="https://www.sans.org/webcasts/sec542-web-application-penetration-testing-and-ethical-hacking-92868"&gt;"Web App Pen-Testing" SANS webcast&lt;/a&gt;, scheduled for October 1. During the webcast I'll cover a sneak preview of the &lt;a href="http://www.sans.org/london09/description.php?tid=3472"&gt;SEC542 "Web Penetration Testing and Ethical Hacking"&lt;/a&gt; course I will be teaching in London &lt;a href="http://www.sans.org/london09/description.php?tid=3472"&gt;later this year&lt;/a&gt;, and run a demo using the latest publicly available sqlninja version, &lt;a href="http://sqlninja.sourceforge.net/download.html"&gt;0.2.3-r1&lt;/a&gt;, including the quick fix detailed below (0.2.3-r1p).&lt;div&gt;&lt;br /&gt;Sqlninja is a Perl-based tool that can make use of Metasploit capabilities to upload and run a Meterpreter or VNC server payload on the target MS SQL server through SQL injection flaws on the target web application. The integration of these tools accepts both direct and reverse TCP connections to/from the database server and the pen-tester system. It uses the "msfpayload" tool to generate the payload that will be executed on the database server (metxxxxx.exe), and the "msfcli" tool to establish (or wait for) a connection with that payload.&lt;div&gt;&lt;br /&gt;Due to the extensive number of modules available in Metasploit nowadays, the msfcli execution takes around 20 seconds in a BTv4 virtual machine to load the whole Metasploit module tree:&lt;div&gt;&lt;br /&gt;&lt;pre&gt;# ./msfconsole -v&lt;br /&gt;Framework Version: 3.3-dev&lt;br /&gt;# ./msfconsole&lt;br /&gt;=[ msf v3.3-dev [core:3.3 api:1.0]&lt;br /&gt;+ -- --=[ 404 exploits - 248 payloads&lt;br /&gt;+ -- --=[ 21 encoders - 8 nops&lt;br /&gt;=[ 188 aux&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;# time /pentest/exploits/framework3/msfcli&lt;br /&gt;[*] Please wait while we load the module tree...&lt;br /&gt;...&lt;br /&gt;real    0m18.568s&lt;br /&gt;user    0m13.402s&lt;br /&gt;sys     0m4.683s&lt;br /&gt;#&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;As a result, the current sqlninja Metasploit module may fail due to a race condition mainly on reverse mode, and specifically, due to timing issues of when the module initiating the connection(client role) executes versus the module listening for the connection (server role).&lt;div&gt;&lt;br /&gt;&lt;a href="http://www.raulsiles.com/downloads/sqlninja.patch"&gt;The patch released in this post&lt;/a&gt; fixes this race condition by adding specific (client &amp;amp; server) timeouts to the bind_tcp and reverse_tcp connections. The timers for the bind case try to ensure that the server (msfpayload) starts before the client (msfcli) tries to establish a connection. The timers for the reverse case try to ensure that the server (msfcli) starts before the client (msfpayload) initiates the reverse connection. The values for the timers are conservative and set a difference of 25 seconds between the server and the client initialization.&lt;div&gt;&lt;br /&gt;Due to the fact the reverse Metasploit payload does not retry the client connection, if the other end is not listening when the connection is initiated, the connection never succeeds and cannot be established. Additionally, I've seen the CPU of the  target DB system going up to near 100% (a non-desirable DoS condition during a professional pen-test).&lt;div&gt;&lt;br /&gt;The &lt;a href="http://www.raulsiles.com/downloads/sqlninja.patch"&gt;patch&lt;/a&gt; can be applied by renaming the original 0.2.3-r1 "sqlninja" Perl file to "sqlninja.original" and running:&lt;div&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;$ patch sqlninja.original -i sqlninja.patch -o sqlninja&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;The new timers ($client_delay (30 secs) and $server_delay (5 secs)), defined at the beginning of the sqlninja main file, can be changed to accommodate future Metasploit startup delays, or even be converted into sqlninja configuration options within the sqlninja.conf file. The patch changes the sqlninja version to 0.2.3-r1p, to indicate the patch has been applied.&lt;div&gt;&lt;br /&gt;Enjoy it, (sql) ninja pen-testers!&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-2214146361235250052?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/2214146361235250052/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=2214146361235250052" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2214146361235250052?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2214146361235250052?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/09/sqlninja-metasploit.html" title="Sqlninja &amp; Metasploit" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total></entry><entry gd:etag="W/&quot;D0MHQ3YzcSp7ImA9WxNTGEg.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-1241204811674471305</id><published>2009-08-21T18:12:00.000+02:00</published><updated>2009-08-21T13:50:32.889+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-21T13:50:32.889+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Scripting" /><category scheme="http://www.blogger.com/atom/ns#" term="Programming" /><category scheme="http://www.blogger.com/atom/ns#" term="Incident Handling" /><title>Looking for the right event</title><content type="html">Not so long ago, during an incident investigation, I needed to reconstruct a series of events from several Windows systems. I needed to do so from the system that I was using to conduct the whole investigation which had Linux installed in it. That didn't make things easier because, as you will already know, Windows event logs are binary.&lt;br /&gt;&lt;br /&gt;Two Google minutes later, I had downloaded a perl script written by Christophe Monniez that was able to do the work. The script turned out to be quite useful (Thanks Christophe!) but I need more. I had lots of events from several systems that were interrelated and needed to be interpreted to be able to understand the way the attack had been conducted, in order to add only the relevant stuff to the timeline. Going back and forward with such a big amount of events searching for the right one wasn't an option, so I decided to provide me with some search capabilities and add my own perl script to do so. The concept is trivial, I wanted to be able to search for some string with in the event, but I want the output to show the complete event instead of the line that matched the string only. You can do this easily with awk, but I rather use perl. Here is my little script in case it can also be helpful to you.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;#!/usr/bin/perl&lt;br /&gt;$/ = "\n\n\n";&lt;br /&gt;&lt;br /&gt;die "Error: search string missing." if (@ARGV &amp;lt; 1);&lt;br /&gt;&lt;br /&gt;while ($line = &amp;lt;stdin&amp;gt;) {&lt;br /&gt;&lt;br /&gt;   if ($ARGV[0] eq "-v") {&lt;br /&gt;       print $line if ($line !~ /$ARGV[1]/i);&lt;br /&gt;   } else {&lt;br /&gt;       print $line if ($line =~ /$ARGV[0]/i);&lt;br /&gt;   }&lt;br /&gt;}&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This incident investigation was fairly successful and we had access to one laptop involved in the attack. However the system had been reformated and reinstalled, but some information could be recovered using the usual forensic tools. The event file was partially corrupted and I needed to recover the events that were still available. I rewrote the Christophe's code, that was available under the GPL license, and ended up with the following script that does exactly that.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;#!/usr/bin/perl -w &lt;br /&gt;&lt;br /&gt;# Process Microsoft event file fragments.&lt;br /&gt;#&lt;br /&gt;# Copyright (c) Jorge D. Ortiz Fuentes, 2009&lt;br /&gt;# Based on Monniez Christophe's code.&lt;br /&gt;# - Added hability to process a fragmented event files.&lt;br /&gt;#&lt;br /&gt;# This program is free software; you can redistribute it and/or&lt;br /&gt;# modify it under the terms of the GNU General Public License&lt;br /&gt;# as published by the Free Software Foundation; either version 2&lt;br /&gt;# of the License, or (at your option) any later version.&lt;br /&gt;&lt;br /&gt;# This program is distributed in the hope that it will be useful,&lt;br /&gt;# but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;# GNU General Public License for more details.&lt;br /&gt;&lt;br /&gt;# You should have received a copy of the GNU General Public License&lt;br /&gt;# along with this program; if not, write to the Free Software&lt;br /&gt;# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;use strict;&lt;br /&gt;use Getopt::Std;&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Help information&lt;br /&gt;#&lt;br /&gt;sub usage {&lt;br /&gt;    print STDERR "\nUsage:\n\t$0 [-&lt;options&gt;] &lt;file&gt;\n";&lt;br /&gt;    print STDERR "Options:\n";&lt;br /&gt;    print STDERR "\t-d\tDebug information.\n";&lt;br /&gt;    print STDERR "\t-l\tUse localtime instead of GMT.\n";&lt;br /&gt;    print STDERR "\t-u\tPreserve unicode.\n";&lt;br /&gt;    print STDERR "\t-h\tPrint this help and exit.\n";&lt;br /&gt;    print STDERR "\nfile\tThe evt file to be analyzed.\n\n";&lt;br /&gt;    exit 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Search for the first record inside the file.&lt;br /&gt;# It doesn't require that the signature is DWORD aligned &lt;br /&gt;#&lt;br /&gt;sub next_signature {&lt;br /&gt;    (my $debug, my $file) = @_;&lt;br /&gt;&lt;br /&gt;    my $bytes_read;&lt;br /&gt;    my $signature;&lt;br /&gt;    my $sig_found = 0;&lt;br /&gt;&lt;br /&gt;    do {&lt;br /&gt; $bytes_read = read($file, $signature, 1);&lt;br /&gt; die("End of file reached.\n") if ($bytes_read &lt;= 0);&lt;br /&gt; if ($signature eq "L") {     &lt;br /&gt;     $bytes_read = read($file, $signature, 3);&lt;br /&gt;     die("End of file reached. Signature not found.\n")&lt;br /&gt;  if ($bytes_read &lt;= 0);&lt;br /&gt; }&lt;br /&gt; $sig_found = 1 if (($signature eq "fLe") &amp;amp;&amp;amp; (tell($file) &gt;=8));&lt;br /&gt;    } while ($sig_found == 0);&lt;br /&gt;    # Move the position in the file 8 bytes backwards, to 4 bytes before&lt;br /&gt;    # the signature that is where the length of the record is stored.&lt;br /&gt;    seek ($file, -8, 1);&lt;br /&gt;    if ($debug) {&lt;br /&gt; print "Record starts in position ", tell($file), "\n";&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Extract record information.&lt;br /&gt;#&lt;br /&gt;sub process_record {&lt;br /&gt;    (my $debug, my $file, my $length, my $localtime, my $unicode) = @_;&lt;br /&gt;&lt;br /&gt;    # Local variables&lt;br /&gt;    my $record;&lt;br /&gt;    my $t_gen;&lt;br /&gt;    my $t_writ;&lt;br /&gt;    my $rest;&lt;br /&gt;    my $rest_reencoded;&lt;br /&gt;&lt;br /&gt;    # Process the fixed part of the record (at least 56 bytes and&lt;br /&gt;    # it is in position 4):&lt;br /&gt;    read($file, $record, 52);&lt;br /&gt;    $length -= 56;&lt;br /&gt;&lt;br /&gt;    # Extract the data from the structure&lt;br /&gt;    (my $reserved, my $record_nb, my $time_gen, my $time_writ,&lt;br /&gt;     my $event_id, my $event_type, my $nb_strings, my $evt_category,&lt;br /&gt;     my $reserved_flag, my $cl_record, my $string_offset,&lt;br /&gt;     my $SID_leng, my $SID_offset, my $data_len, my $data_offset) =&lt;br /&gt;  unpack "LLLLLSSSSLLLLLL" , $record;&lt;br /&gt;    # The reserved field must be 1699505740 otherwise skip this record&lt;br /&gt;    if ($reserved == 1699505740) {&lt;br /&gt; # Convert dates into strings&lt;br /&gt; if ($localtime) {&lt;br /&gt;     $t_gen  = localtime($time_gen) . " localtime";&lt;br /&gt;     $t_writ = localtime($time_writ) . " localtime";&lt;br /&gt; } else {&lt;br /&gt;     $t_gen  = gmtime($time_gen) . " GMT";&lt;br /&gt;     $t_writ = gmtime($time_writ) . " GMT"; &lt;br /&gt; }&lt;br /&gt; # Print data &lt;br /&gt; print "Record number:  $record_nb\n";&lt;br /&gt; print "Time generated: $t_gen\n";&lt;br /&gt; print "Time written:   $t_writ\n";&lt;br /&gt; print "Evt ID: $event_id  Evt type: $event_type Evt category: $evt_category\n";&lt;br /&gt; if ($debug) {&lt;br /&gt;  print "* Reserved: $reserved\n"; &lt;br /&gt;  print "* $nb_strings strings\n";&lt;br /&gt;  print "* String offset: $string_offset\n";&lt;br /&gt;  print "* SID Len: $SID_leng SID offset: $SID_offset\n";&lt;br /&gt;  print "* Data len: $data_len Data offset: $data_offset\n";&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; # Process the rest of the record: Source program, computer name, SID&lt;br /&gt; # and other strings&lt;br /&gt; if (read($file, $rest, $length) &lt; $length) {&lt;br /&gt;  die ("End of file reached while reading strings\n");&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; $rest_reencoded = pack "C*" , unpack "U0C*" , $rest;&lt;br /&gt;&lt;br /&gt; # Split into several strings&lt;br /&gt; my @strings = split(/\0\0/, $rest_reencoded);&lt;br /&gt; my $str;&lt;br /&gt; $str = $strings[0];&lt;br /&gt; # hack to suppress unicode&lt;br /&gt; $str =~ s/\0//g unless ($unicode);&lt;br /&gt; print "Program: $str\n";&lt;br /&gt; $str = $strings[1];&lt;br /&gt; # hack to suppress unicode&lt;br /&gt; $str =~ s/\0//g unless ($unicode);&lt;br /&gt; print "Computer: $str\n";&lt;br /&gt; my $i=0;&lt;br /&gt; while ($i &lt; $nb_strings) {&lt;br /&gt;  $str = $strings[$i+2];&lt;br /&gt;  $str =~ s/\0//g unless ($unicode);&lt;br /&gt;  print "String $i: $str\n";&lt;br /&gt;  $i++;&lt;br /&gt; }&lt;br /&gt; print "\n\n";&lt;br /&gt;    } else {&lt;br /&gt; print "Reserved: $reserved\n" if ($debug);&lt;br /&gt; print STDERR "RECORD REJECTED: reserved value fails to match!\n\n\n";&lt;br /&gt; # Searching continues from where it is since this is a corrupted record&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Main program&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Variable declarations&lt;br /&gt;my $evt_file = "";&lt;br /&gt;my $record_sig;&lt;br /&gt;my $record;&lt;br /&gt;my $length;&lt;br /&gt;my $dword;&lt;br /&gt;# Option declarations&lt;br /&gt;our ($opt_d, $opt_h, $opt_l, $opt_u);&lt;br /&gt;&lt;br /&gt;# Process the command line parameters&lt;br /&gt;getopts('dhlu');&lt;br /&gt;&lt;br /&gt;# Debug option&lt;br /&gt;print "\$opt_d:$opt_d\n" if (defined($opt_d));&lt;br /&gt;# Help option&lt;br /&gt;print "\$opt_h:$opt_h\n" if (defined($opt_d) &amp;&amp; defined($opt_h));&lt;br /&gt;# Localtime option&lt;br /&gt;print "\$opt_l:$opt_l\n" if (defined($opt_d) &amp;&amp; defined($opt_l));&lt;br /&gt;# Unicode option&lt;br /&gt;print "\$opt_u:$opt_u\n" if (defined($opt_d) &amp;&amp; defined($opt_u));&lt;br /&gt;&lt;br /&gt;# Obtain the file name&lt;br /&gt;$evt_file = shift(@ARGV);&lt;br /&gt;print "Event file: $evt_file\n" if (defined($opt_d) &amp;&amp; defined($evt_file));&lt;br /&gt;&lt;br /&gt;if ($opt_h) {&lt;br /&gt;    &amp;usage();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;# Open the selected file in binary mode.&lt;br /&gt;open(FILE, $evt_file) or die "ERR: Couldn't open file $evt_file: $!";&lt;br /&gt;binmode(FILE);&lt;br /&gt;&lt;br /&gt;do {&lt;br /&gt;    &amp;next_signature($opt_d, *FILE);&lt;br /&gt;&lt;br /&gt;    # The following condition should never be met, because:&lt;br /&gt;    # - A record has been found and the file has been rewinded 8 bytes&lt;br /&gt;    # - Or EOF was reached and next signature ended the program&lt;br /&gt;    die("End of file reached: Incomplete record.\n")&lt;br /&gt; if (read(FILE, $dword, 4) &lt;= 0);&lt;br /&gt;    # Obtain the length of this record&lt;br /&gt;    $length = unpack "L", $dword;&lt;br /&gt;    # A record should be at least 56 bytes long&lt;br /&gt;    if ($length &gt; 51) {&lt;br /&gt; # Read the record and process it&lt;br /&gt; &amp;process_record($opt_d, *FILE, $length, $opt_l, $opt_u);&lt;br /&gt;    } else {&lt;br /&gt; # Probably corrupted record&lt;br /&gt; print SDTERR "Record too short found and discarded! (Corrupted?)\n";&lt;br /&gt; if ($opt_d) {&lt;br /&gt;     print "Record length was: $length\n";&lt;br /&gt; }&lt;br /&gt; # skip current signature to avoid infinite loop.&lt;br /&gt; seek(FILE, 4, 1);&lt;br /&gt;    }&lt;br /&gt;} while (!eof(FILE));&lt;br /&gt;close FILE;&lt;br /&gt;&lt;br /&gt;exit(0);&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-1241204811674471305?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/1241204811674471305/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=1241204811674471305" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/1241204811674471305?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/1241204811674471305?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/09/looking-for-right-event.html" title="Looking for the right event" /><author><name>Jorge Ortiz</name><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="13104319438197039794" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></entry><entry gd:etag="W/&quot;DU4FRngyeip7ImA9WxJbFkU.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-4072906165989096525</id><published>2009-07-27T09:59:00.003+02:00</published><updated>2009-07-27T11:45:17.692+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-27T11:45:17.692+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Challenge" /><category scheme="http://www.blogger.com/atom/ns#" term="Pentest" /><title>Ethical Hacker Challenge: Prison Break - Breaking, Entering &amp; Decoding</title><content type="html">&lt;center&gt;&lt;table  style="color: rgb(255, 200, 0);font-family:georgia;" border="0" width="500px"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;&lt;span style="font-size:130%;"&gt;DISCLAIMER&lt;/span&gt;&lt;/center&gt;Since our last post half a year ago, we have not forgotten, RaDaJo readers! No excuses :( It has been very hard for us to find time to publish new posts, as we have been involved in three very large projects, plus a few extra security services, during the first half of the year. We hope one of the projects becomes a relevant step towards the security of embedded devices and service provider infrastructures. It is just the beginning...  "&lt;span style="color: rgb(255, 255, 255);"&gt;That's one small step for a man, a giant leap for mankind.&lt;/span&gt;" The other two projects have been large, really enjoyable, and interesting penetration tests. Meanwhile, we had to deal with some presentations, training events, collaborations, new discovered vulns, ISC shifts, and small pen-tests. In the background, we have also found time to work out things like the one we present you in this new and long time awaited RaDaJo post...  &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;A few months back, by the time I sent my submission to the &lt;a href="http://radajo.blogspot.com/2009/01/penetration-testing-challenge-santa.html"&gt;"Santa Claus is Hacking to Town" challenge&lt;/a&gt;, &lt;a href="http://www.counterhack.net/"&gt;Ed Skoudis&lt;/a&gt; gave me the opportunity to write one of his &lt;a href="http://www.counterhack.net/Counter_Hack/Challenges.html"&gt;famous and always interesting security challenges&lt;/a&gt;. I couldn't say no ;)&lt;br /&gt;&lt;br /&gt;As a result, a new challenge has been published on &lt;a href="http://www.ethicalhacker.net/"&gt;The Ethical Hacker Network&lt;/a&gt;. The challenge is adapted from the &lt;a href="http://en.wikipedia.org/wiki/Prison_Break"&gt;Prison Break TV show&lt;/a&gt;, and it has two main goals. On the one hand, the offensive one, improve your penetration testing skills, tool set, and force you to solve various real-world scenarios I have found along my pen-testing activities. On the other hand, the defensive one, make you think like an attacker, analyze some of the tools and offensive capabilities available today, and figure out ways to put in place countermeasures to mitigate this type of attacks.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_NSH9SH7V1yY/SmA9lQE94ZI/AAAAAAAAAIM/DWcZsijyOuo/s1600-h/prison_break_ver4_poster.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 216px; height: 320px;" src="http://1.bp.blogspot.com/_NSH9SH7V1yY/SmA9lQE94ZI/AAAAAAAAAIM/DWcZsijyOuo/s320/prison_break_ver4_poster.jpg" alt="" id="BLOGGER_PHOTO_ID_5359351266751144338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I hope you enjoy thes new &lt;a href="http://www.ethicalhacker.net/content/view/268/2/"&gt;"Prison Break - Breaking, Entering &amp;amp; Decoding"&lt;/a&gt; security challenge during summer. It is ready right before BlackHat &amp;amp; Defcon, so you can try to solve it after the common depression following these two conferences. Go to the &lt;a href="http://www.ethicalhacker.net/content/view/268/2/"&gt;Ethical Hacker Network website, &lt;/a&gt;digest the challenge and... &lt;span style="font-weight: bold;"&gt;participate!&lt;/span&gt; (Submit your answer by August 31, 2009)&lt;br /&gt;--&lt;br /&gt;Raul Siles&lt;br /&gt;&lt;a href="http://www.blogger.com/www.raulsiles.com"&gt;www.raulsiles.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:58%;"&gt;Prison Break image obtained from “http://www.shockya.com/news/wp-content/uploads/prison_break_ver4_poster.jpg”.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-4072906165989096525?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/4072906165989096525/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=4072906165989096525" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/4072906165989096525?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/4072906165989096525?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/07/ethical-hacker-challenge-prison-break.html" title="Ethical Hacker Challenge: Prison Break - Breaking, Entering &amp; Decoding" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_NSH9SH7V1yY/SmA9lQE94ZI/AAAAAAAAAIM/DWcZsijyOuo/s72-c/prison_break_ver4_poster.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></entry><entry gd:etag="W/&quot;CEQMRnozfip7ImA9WxVRFUU.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-5237624659626171804</id><published>2009-01-22T00:52:00.002+01:00</published><updated>2009-01-22T00:59:47.486+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-01-22T00:59:47.486+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Challenge" /><category scheme="http://www.blogger.com/atom/ns#" term="Pentest" /><title>Penetration Testing Challenge: Santa Claus is Hacking to Town</title><content type="html">This past holidays Ed Skoudis published one of his always interesting, amusing, and educational thematic security challenges at the Ethical Hacker Network: &lt;a href="http://www.ethicalhacker.net/content/view/218/1/"&gt;"Santa Claus is Hacking to Town"&lt;/a&gt;. The &lt;a href="http://radajo.blogspot.com/2006/09/hacking-challenges-training-tool.html"&gt;last one I participated in&lt;/a&gt; was in mid-late 2006, although &lt;a href="http://www.counterhack.net/Counter_Hack/Challenges.html"&gt;I was a huge fan of them since 2003&lt;/a&gt;. This time the challenge was penetration testing focused, rather than incident handling based, so I decided to play and enjoy it. Honestly, from &lt;a href="http://www.raulsiles.com/"&gt;all the security services I offer&lt;/a&gt;, penetration testing has taken an increasingly significant percentage of my time during the last years. There is a clear need in the industry for more pen-testers.&lt;br /&gt;&lt;br /&gt;I suggest you to read the &lt;a href="http://www.ethicalhacker.net/content/view/218/1/"&gt;challenge wording&lt;/a&gt; and try to solve it before reading the &lt;a href="http://www.ethicalhacker.net/content/view/230/2/"&gt;official solution and answers&lt;/a&gt;. You can get some hints by reading the first paper referenced at the end of this post (Ed told me he published them there on purpose to help people out with the challenge), although it is funniest to solve it from scratch :)&lt;br /&gt;&lt;br /&gt;You can find my submission &lt;a href="http://www.raulsiles.com/downloads/SantaClaushackingtoTown_RaulSiles.pdf"&gt;&lt;span style="font-weight: bold;"&gt;here&lt;/span&gt;&lt;/a&gt;. I also generated (out of the contest) a &lt;a href="http://www.raulsiles.com/downloads/SantaClausHackingtoTown_RaulSiles_v2.1.pdf"&gt;&lt;span style="font-weight: bold;"&gt;second version&lt;/span&gt;&lt;/a&gt; of the paper that includes the challenge text, my official solution, and an appendix with a simpler and direct solution to the challenge, plus the reasons why it was not included as my final submission. Definitely, I could have been stealthier by providing the "-n" option to all the netcat relay instances in order to disable DNS resolution.&lt;br /&gt;&lt;br /&gt;Complementary, my Inguardian's friends recently released two penetration testing papers you might be interested in: "&lt;a href="http://www.inguardians.com/research/docs/Skoudis_pentestsecrets.pdf"&gt;Secrets of America's Top Pentesters&lt;/a&gt;" (Ed) and "&lt;a href="http://www.inguardians.com/pubs/Vista_Wireless_Power_Tools-Wright.pdf"&gt;Vista Wireless Power Tools for the Penetration Tester&lt;/a&gt;" (Joshua). I strongly recommend both!&lt;br /&gt;--&lt;br /&gt;Raul Siles&lt;br /&gt;&lt;a href="www.raulsiles.com"&gt;www.raulsiles.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-5237624659626171804?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/5237624659626171804/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=5237624659626171804" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/5237624659626171804?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/5237624659626171804?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/01/penetration-testing-challenge-santa.html" title="Penetration Testing Challenge: Santa Claus is Hacking to Town" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;C0AMSHY7eip7ImA9WxJUGE8.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-8008115077883515116</id><published>2009-01-21T14:54:00.003+01:00</published><updated>2009-07-17T11:09:49.802+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-17T11:09:49.802+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="nmap" /><category scheme="http://www.blogger.com/atom/ns#" term="Challenge" /><title>NMAP Trivia ANSWERS: Mastering Network Mapping and Scanning</title><content type="html">&lt;div class="diarybody"&gt; &lt;p&gt;Three weeks ago I published the &lt;a href="http://radajo.blogspot.com/2008/12/nmap-trivia-mastering-network-mapping.html"&gt;NMAP Trivia challenge&lt;/a&gt;. Thanks to all ISC readers that submitted their responses! A special mention goes to the winning entry from Jason DePriest, an extensive and elaborated submission, available &lt;a href="http://www.raulsiles.com/downloads/nmap_trivia_jason-depriest.txt"&gt;here&lt;/a&gt;. Congratulations! The prize (technical book) is on his way! ;)&lt;/p&gt; &lt;p&gt;Jon Kibler provided an &lt;a href="http://nmap.org/GoogleGrants.html"&gt;in-progress nmap idea&lt;/a&gt; for a new features, a scan proxy engine equivalent to the FTP bounce scan to scan through HTTP or SOCKS.&lt;/p&gt; &lt;p&gt;&lt;em&gt;Now... it is time for the answers:&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;1. What are the default target ports used by the current nmap version (4.76)? How can you change the target ports list? What (nmap) options can be used to speed up scans by reducing the number of target ports and still check (potentially) the most relevant ones? How can you force nmap to check all target ports?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Fyodor performed a thorough port scan research this last summer to identify the most common ports available on the Internet [1]. The current nmap version scans by default the 1000 most popular ports. The popularity of each port is coded inside the nmap-services configuration file (by default under /usr/local/share/nmap).&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt;...&lt;br /&gt;unknown 4/tcp   0.000477&lt;br /&gt;rje     5/udp   0.000593        # Remote Job Entry&lt;br /&gt;unknown 6/tcp   0.000502&lt;br /&gt;echo    7/tcp   0.004855&lt;br /&gt;echo    7/udp   0.024679&lt;br /&gt;unknown 8/tcp   0.000013&lt;br /&gt;...&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nmap provides an option for quick scans, "-F". It scans the 100 most popular ports, reducing the default load in one order of magnitude. Additionally, you can decide how many popular ports you want to scan through the "--top-ports N" option, where "N" is the top number of ports.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt;# ./nmap -F  scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 10:44 GMT&lt;br /&gt;Interesting ports on scanme.nmap.org (64.13.134.52):&lt;br /&gt;Not shown: 95 filtered ports&lt;br /&gt;PORT    STATE  SERVICE&lt;br /&gt;22/tcp  open   ssh&lt;br /&gt;25/tcp  closed smtp&lt;br /&gt;53/tcp  open   domain&lt;br /&gt;80/tcp  open   http&lt;br /&gt;113/tcp closed auth&lt;br /&gt;&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 4.04 seconds&lt;br /&gt;&lt;br /&gt;# ./nmap --top-ports 5  scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 10:44 GMT&lt;br /&gt;Interesting ports on scanme.nmap.org (64.13.134.52):&lt;br /&gt;PORT    STATE    SERVICE&lt;br /&gt;21/tcp  filtered ftp&lt;br /&gt;22/tcp  open     ssh&lt;br /&gt;23/tcp  filtered telnet&lt;br /&gt;80/tcp  open     http&lt;br /&gt;443/tcp filtered https&lt;br /&gt;&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 8.56 seconds&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;Finally, nmap allows you to define the specific set of ports to scan through the "-p" option, as in "-pT:22,80,443,U:53,69,514". All ports, including port 0, can be scanned by providing the "-p0-" option, meaning from 0 till the end of the range, that is, port 65535. You need to specify if they are TCP or UDP ports, or both ("-sSU").&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt; # nmap -p0- scanme.nmap.org&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;[1] http://insecure.org/presentations/BHDC08/&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;2. How can you force nmap to scan a specific list of 200 target ports, only relevant to you?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;If you don't want to scan the most popular ports, you can tell nmap what particular list of ports to scan by specifying them with the "-p" option, one by one or in ranges, like in "-p 20-23,25,80,443". Because this can be too tedious for long lists of ports, the recommended way is to copy and edit the "nmap-services" file and create a custom version containing your list of interesting ports. The new custom file can be referenced using the "--servicedb" (for individual files) or "--datadir" (for the configuration files directory) options, as in:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt; # nmap --datadir ./myconfig scanme.nmap.org&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If your custom file contains more than 200 target services, then you can use the "--top-ports 200" option again. The specific file and directory search order followed by nmap is detailed on page 370 of the  nmap book: http://nmap.org/book/data-files-replacing-data-files.html.&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;em&gt; 3. What is the default port used by nmap for UDP ping discovery (-PU)? Why? If you don't know it from the top of your head ;), how can you easily identify this port without using other tools (such as a sniffer) or inspecting nmap's source code?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;By default, nmap sends an empty UDP packet to port UDP/31338 for the UDP ping discovery method ("-PU"). The reason is that there is a high chance this random high port is closed. This is the preferred state expected by nmap trying to elicit an ICMP port unreachable packet in return and, as a result, identify the existence of a new host. The port number is defined in nmap.h, specifically in the DEFAULT_UDP_PROBE_PORT_SPEC constant. Did you notice it is 31337 plus 1, the elite port (31337 in haxor speech) plus one.&lt;br /&gt;&lt;br /&gt;Currently, nmap provides the "--packet-trace" option to gather detailed information about the network traffic and individual packets sent and received during its operations. Effectively, this option acts as a built in sniffer, very useful to get details about what nmap is doing on the backstage.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt;# nmap -PU --packet-trace scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 10:58 GMT&lt;br /&gt;SENT (0.6580s) UDP 192.168.166.166:59676 &gt; 64.13.134.52:31338 ttl=58 id=45958 iplen=28&lt;br /&gt;SENT (1.6560s) UDP 192.168.166.166:59677 &gt; 64.13.134.52:31338 ttl=59 id=46599 iplen=28&lt;br /&gt;Note: Host seems down. If it is really up, but blocking our ping probes, try -PN&lt;br /&gt;Nmap done: 1 IP address (0 hosts up) scanned in 2.68 seconds&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;em&gt;4. When nmap is run, sometimes it is difficult to know what is going on the backstage. What two (nmap) options allow you to gather detailed but not overwhelming information about nmap's port scanning operations? What other extra (nmap) options are available for ultra detailed information?&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;The first of the options has been mentioned and used on the previous question, "--packet-trace". It allows to get a tcpdump-like output about packets sent and received. Additionally, nmap provides the "--reason" option to display the reason why a port has been clasiffied on an specific state: open, closed, filtered, etc.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt; # nmap -F -sSU --reason scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 11:00 GMT&lt;br /&gt;Interesting ports on scanme.nmap.org (64.13.134.52):&lt;br /&gt;Not shown: 99 open|filtered ports, 96 filtered ports&lt;br /&gt;Reason: 194 no-responses and 1 admin-prohibited&lt;br /&gt;PORT    STATE  SERVICE REASON&lt;br /&gt;22/tcp  open   ssh     syn-ack&lt;br /&gt;25/tcp  closed smtp    reset&lt;br /&gt;53/tcp  open   domain  syn-ack&lt;br /&gt;80/tcp  open   http    syn-ack&lt;br /&gt;113/tcp closed auth    reset&lt;br /&gt;&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 7.95 seconds&lt;br /&gt;&lt;br /&gt;# nmap -F -sU --reason scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 11:02 GMT&lt;br /&gt;Interesting ports on scanme.nmap.org (64.13.134.52):&lt;br /&gt;Not shown: 99 open|filtered ports&lt;br /&gt;Reason: 99 no-responses&lt;br /&gt;PORT    STATE    SERVICE REASON&lt;br /&gt;520/udp filtered route   admin-prohibited from 192.168.15.1&lt;br /&gt;&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 15.90 seconds&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;For those interested on gathering as much information as possible about nmap's operations, the "-v" verbosity option, or the "-dN" debugging option are available. These options specify nmap to be verbose (multiple verbosity levels are allowed), or the nmap debug level for troubleshooting purposes, where N can have a value between 1 and 9. Be careful when you use it! Try it and be ready for a Matrix-like output 8-)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt; # nmap -p80 -sS -v scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 11:07 GMT&lt;br /&gt;Initiating Ping Scan at 11:07&lt;br /&gt;Scanning 64.13.134.52 [2 ports]&lt;br /&gt;Completed Ping Scan at 11:07, 0.24s elapsed (1 total hosts)&lt;br /&gt;Initiating Parallel DNS resolution of 1 host. at 11:07&lt;br /&gt;Completed Parallel DNS resolution of 1 host. at 11:07, 0.24s elapsed&lt;br /&gt;Initiating SYN Stealth Scan at 11:07&lt;br /&gt;Scanning scanme.nmap.org (64.13.134.52) [1 port]&lt;br /&gt;Discovered open port 80/tcp on 64.13.134.52&lt;br /&gt;Completed SYN Stealth Scan at 11:07, 0.26s elapsed (1 total ports)&lt;br /&gt;Host scanme.nmap.org (64.13.134.52) appears to be up ... good.&lt;br /&gt;Interesting ports on scanme.nmap.org (64.13.134.52):&lt;br /&gt;PORT   STATE SERVICE&lt;br /&gt;80/tcp open  http&lt;br /&gt;&lt;br /&gt;Read data files from: .&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 6.13 seconds&lt;br /&gt;        Raw packets sent: 3 (112B) | Rcvd: 2 (72B)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# nmap -p80 -sS -d1 scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 11:08 GMT&lt;br /&gt;--------------- Timing report ---------------&lt;br /&gt;...&lt;br /&gt;---------------------------------------------&lt;br /&gt;Initiating Ping Scan at 11:08&lt;br /&gt;Scanning 64.13.134.52 [2 ports]&lt;br /&gt;...&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 0.74 seconds&lt;br /&gt;        Raw packets sent: 3 (112B) | Rcvd: 2 (72B)&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Try it by your own! ;)&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;em&gt;5. What are the preferred (nmap) options to run a stealthy TCP port scan? Particularly, try to avoid detection from someone running a sniffer near the person running nmap and focus on the extra actions performed by the tool (assuming the packets required to complete the port scan are not detected)?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Most current network IDS can detect the default packets generated by nmap when port scanning a target. We are assuming here these cannot be detected, so a stealthier scan can be launched by using the "-n" option (not used in any of the Nmap Trivia examples), that is, disable all reverse DNS resolution at the nmap level. Most Unix-based security tools provide this same option for the same purpose.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt; # nmap -F -n scanme.nmap.org&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;However, this way you lose the sometimes valuable DNS information. You can use the "--dns-servers" option to indicate the DNS recursive servers to use as DNS proxies when analyzing the target IP address.&lt;br /&gt;More stealthier details on answer number 12.&lt;/p&gt; &lt;p&gt;&lt;em&gt;6. Why port number 49152 is relevant to nmap?&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Port 49152 is the first of the ephemeral ports for dynamic usage based on IANA. However, the port assignment depends on the implementation of your tools or operating system. See http://www.iana.org/assignments/port-numbers:&lt;br /&gt;- The Well Known Ports are those from 0 through 1023&lt;br /&gt;- The Registered Ports are those from 1024 through 49151&lt;br /&gt;- The Dynamic and/or Private Ports are those from 49152 through 65535&lt;/p&gt; &lt;p&gt;&lt;em&gt;7. What is the only nmap TCP scan type that classifies the target ports as "unfiltered"? Why? What additional nmap scan type can be used to discern if those ports (previously identified as "unfiltered") are in an open or closed state?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;The only nmap scan type that can show a port in the "unfiltered" state is the TCP ACK scan, "-sA" option. The reason is because this scan cannot differentiate between an open and closed port, as a target hosts (if unfiltered) will always reply with a RST packet. This is the standard behaviour for a closed port, and is also standar for an open port for which there is not a previously established connection to map the ACK packet to. Therefore, nmap's ACK scan cannot be considered a port scan, as it cannot differentiate between port states, but a host discovery scan.&lt;br /&gt;&lt;br /&gt;The TCP Window scan, "-sW" option, is similar to the TCP ACK scan, but it can differentiate between open and closed ports is some scenarios.&lt;/p&gt; &lt;p&gt;&lt;em&gt;8. When (and it what nmap version) the default state for a non-responsive UDP port was changed on nmap (from "open" to "open|filtered")? Why?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;The default state for a non-responsive UDP port was changed (from "open" to "open|filtered") on nmap version v3.70 in 2004. The reason was accurancy, as extensive use of filtering devices by that time made filtered UDP ports always appear as open in previous nmap versions.&lt;/p&gt; &lt;p&gt;&lt;em&gt;9. What is the default scan type used by nmap when none is specified, as in "nmap -T4 scanme.nmap.org"? Is this always the default scan method? If not, what other scan method does nmap default to, under what conditions, and why?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;The current nmap version performs a TCP SYN scan ("-sS" option) by default when no scan type is specified. However, this is only the default behavior when nmap is launched as a privileged user (eg. root in Linux). The TCP connect scan, "-sT" option (connect() syscall), is used by default with non-privileged users as these cannot send raw packets (used by the SYN scan) or if there are IPv6 targets.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt; # ./nmap -PN -p80,81 --packet-trace scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 11:22 GMT&lt;br /&gt;...&lt;br /&gt;SENT (0.3730s) TCP 192.168.166.166:56464 &gt; 64.13.134.52:80 S ttl=50 \&lt;br /&gt; id=8102 iplen=44  seq=1698869517 win=3072 &lt;mss&gt;&lt;br /&gt;SENT (0.3740s) TCP 192.168.166.166:56464 &gt; 64.13.134.52:81 S ttl=43 \&lt;br /&gt; id=48226 iplen=44  seq=1698869517 win=4096 &lt;mss&gt;&lt;br /&gt;RCVD (0.6120s) TCP 64.13.134.52:80 &gt; 192.168.166.166:56464 SA ttl=48 \&lt;br /&gt; id=0 iplen=44  seq=2849983456 win=5840 ack=1698869518 &lt;mss&gt;&lt;br /&gt;RCVD (1.9570s) TCP 64.13.134.52:80 &gt; 192.168.166.166:40972 SA ttl=48 \&lt;br /&gt; id=0 iplen=44  seq=2805666242 win=5840 ack=2103880733 &lt;mss&gt;&lt;br /&gt;SENT (2.5730s) TCP 192.168.166.166:56465 &gt; 64.13.134.52:81 S ttl=55 \&lt;br /&gt; id=14744 iplen=44  seq=1698935052 win=4096 &lt;mss&gt;&lt;br /&gt;Interesting ports on scanme.nmap.org (64.13.134.52):&lt;br /&gt;PORT   STATE    SERVICE&lt;br /&gt;80/tcp open     http&lt;br /&gt;81/tcp filtered hosts2-ns&lt;br /&gt;&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 3.79 seconds&lt;br /&gt;&lt;br /&gt;$ ./nmap -PN -p80,81 --packet-trace scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 11:25 GMT&lt;br /&gt;...&lt;br /&gt;CONN (0.1290s) TCP localhost &gt; 64.13.134.52:80 =&gt; Operation now in progress&lt;br /&gt;CONN (0.1290s) TCP localhost &gt; 64.13.134.52:81 =&gt; Operation now in progress&lt;br /&gt;CONN (2.3510s) TCP localhost &gt; 64.13.134.52:81 =&gt; Operation now in progress&lt;br /&gt;Interesting ports on scanme.nmap.org (64.13.134.52):&lt;br /&gt;PORT   STATE    SERVICE&lt;br /&gt;80/tcp open     http&lt;br /&gt;81/tcp filtered hosts2-ns&lt;br /&gt;&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 3.57 seconds&lt;/mss&gt;&lt;/mss&gt;&lt;/mss&gt;&lt;/mss&gt;&lt;/mss&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;10. What nmap features (can make or) make use of nmap's raw packet capabilities? What nmap features rely on the OS TCP/IP stack instead?&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Nmap makes use of the raw packet capabilities by default, "--send-eth" option, as demonstrated in the previous question for some features, such as TCP and UDP port scans launched by privileged users (except for the connect scan and the FTP bounce scan), or fragmentation probes. Other features like the Nmap Scripting Engine and version detection relay on the OS TCP/IP stack.&lt;/p&gt; &lt;p&gt;&lt;em&gt;11. Nmap's performance has been sometimes criticized versus other network scanners. What (nmap) options can you use to convert nmap into a faster, stateless scanner for high performance but less accurate results?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;If the congestion controls and packet loss detection algorithms are omitted, a scanner will run faster. Nmap can achieve a similar behaviour as stateless scanners, no code to track and retransmit probes, using the following options:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt; # ./nmap --min-rate 1000 --max-retries 0 ...&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These indicate nmap to send at least 1000 packets per second (if your system or wire can) and disable retransmission of timed-out probes. However, take into account the impact this might have in the accurancy of the results.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt; # ./nmap -PN -n --min-rate 1000 --max-retries 0 -F scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 12:08 GMT&lt;br /&gt;Warning: Giving up on port early because retransmission cap hit.&lt;br /&gt;Interesting ports on 64.13.134.52:&lt;br /&gt;Not shown: 95 filtered ports&lt;br /&gt;PORT    STATE  SERVICE&lt;br /&gt;22/tcp  open   ssh&lt;br /&gt;25/tcp  closed smtp&lt;br /&gt;53/tcp  open   domain&lt;br /&gt;80/tcp  open   http&lt;br /&gt;113/tcp closed auth&lt;br /&gt;&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 1.06 seconds&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;12. What relevant nmap feature does not allow an attacker to use the decoy functionality (-D) and might reveal his real IP address?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Apart from the previously mentioned "-n" option to run stealthier scans and avoid IDS detection, there are other related options, such as "--data-length", to change the default empty packet used for some probes, "--ttl" to modify the TTL on the sent packets, timing options ("-T"), "--randomize-hosts" to change the order the target hosts are scanned, or "-D" to launch a decoy scan (simulate the scan is coming from multiple hosts).&lt;br /&gt;&lt;br /&gt;Decoys are used in the ping discovery, port scanning, and remote OS detection phases. However, this feature does not apply when DNS queries or service version detection ("-sV" or "-A") are used, being the source IP address disclosed.&lt;/p&gt; &lt;p&gt;&lt;em&gt;13. What are the (nmap) options you can use to identify all the steps followed by nmap to fingerprint and identify the Web server version running on scanme.nmap.org?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt;# ./nmap -sSV -p80 --version-trace scanme.nmap.org&lt;br /&gt;&lt;br /&gt;Starting Nmap 4.76 ( http://nmap.org ) at 2009-01-21 12:17 GMT&lt;br /&gt;...&lt;br /&gt;SCRIPT ENGINE: Initiating script scanning.&lt;br /&gt;SCRIPT ENGINE: Script scanning scanme.nmap.org (64.13.134.52).&lt;br /&gt;SCRIPT ENGINE: Initialized 4 rules&lt;br /&gt;SCRIPT ENGINE: Matching rules.&lt;br /&gt;SCRIPT ENGINE: Running scripts.&lt;br /&gt;SCRIPT ENGINE: Script scanning completed.&lt;br /&gt;Scanned at 2009-01-21 12:17:57 GMT for 8s&lt;br /&gt;Interesting ports on scanme.nmap.org (64.13.134.52):&lt;br /&gt;PORT   STATE SERVICE VERSION&lt;br /&gt;80/tcp open  http    Apache httpd 2.2.2 ((Fedora))&lt;br /&gt;Final times for host: srtt: 238764 rttvar: 179294  to: 955940&lt;br /&gt;&lt;br /&gt;Read from .: nmap-rpc nmap-service-probes nmap-services.&lt;br /&gt;Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 8.17 seconds&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The "-sSV" option allows you to focus on a TCP scan type (SYN scan in this case, "-sS"), and fingerprint the service ("-sV"). In order to just target the web server (supposing HTTP (TCP/80) is the target port, and not HTTPS (TCP/443)), the "-p80" option must be used.&lt;br /&gt;&lt;br /&gt;The "--version-trace" option is similar to the "--packet-trace" option, but instead of dumping the network traffic, it dumps all the actions or steps performed by nmap during the execution of the service fingerprinting modules. Additionally, other debug options ("-dN") can be added to gather further details.&lt;/p&gt; &lt;p&gt;&lt;em&gt;14. As an attacker, what port number would you select to hide a listening service backdoor trying to avoid an accurate detection by nmap's default aggressive fingerprinting tests? Would it be TCP or UDP? Why? What additional (nmap) options do you need to specify as a defender to fingerprint the hidden service backdoor?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;If a port in the range of TCP/9100-9107 is selected for a backdoor, due to the fact these are common ports for printer services, nmap won`t fingerprint the service. These ports are excluded by default on the service fingerprinting tests ("-sV") or aggressive scan options ("-A") trying to save the planet, trees and forests specifically, by not making printers dump dozens of pages full of nmap probes and garbage as a result of the stimulous received from the scan.&lt;br /&gt;&lt;br /&gt;If you want to enable service fingerprinting on all ports, there are two options. The "--allports" option can be specified, as in "nmap -A --allports", or the nmap-service-probes file can be modified to enable these ports by removing the "Exclude" directive.&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;15. What is the language used to write NSE scripts, and what two other famous open-source security tools/projects currently use the same language?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Nmap uses the LUA (www.lua.org) programming language. LUA (pronounced LOO-ah) means "Moon" in Portuguese, or "Luna" in Spanish ;) Other famous open-source security tools, like Wireshark and Snort use LUA to extend their capabilities.&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;16. What Linux/Windows command can you use to identify the list of NSE scripts that belong to the "discovery" category and will execute when this set of scripts is selected with the "--script discovery" nmap option?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;By default, NSE scripts are available under the "scripts" directory (however, nmap searched in other locations too: --datadir, $NAMPDIR, etc), with the ".nse" file extension. All NSE scripts belong to one or more categories, define inside the script, and indexed by the scripts/script.db database (if updated through the "--script-updatedb" option).&lt;br /&gt;&lt;br /&gt;Therefore a couple of options to search for discovery scripts in Linux are:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:small;"&gt;&lt;code&gt; # grep discovery scripts/*.nse&lt;br /&gt;scripts/ASN.nse:categories = {"discovery", "external"}&lt;br /&gt;scripts/HTTP_open_proxy.nse:categories = {"default", "discovery", "external", "intrusive"}&lt;br /&gt;scripts/HTTPtrace.nse:categories = {"discovery"}&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;# grep discovery scripts/script.db&lt;br /&gt;Entry{ category = "discovery", filename = "HTTPtrace.nse" }&lt;br /&gt;Entry{ category = "discovery", filename = "rpcinfo.nse" }&lt;br /&gt;Entry{ category = "discovery", filename = "SMTPcommands.nse" }&lt;br /&gt;...&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;You can perform a similar search in Windows using the built-in search capabilities (searching by "A word or phrase in the file" to look inside the directory) or the find or findstr commands (to search within a file or set of files).&lt;/p&gt; &lt;p&gt;&lt;em&gt;17. How can you know the specific arguments accepted by a specific NSE script, such as those accepted by the whois.nse script?&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;In order to identify the arguments that can be passed through the "--script-args" option to a NSE script, eg. whois.nse, check the documentation or code within the script file. If it is properly documented, search by "-- @args" to go to the arguments documentation section.&lt;/p&gt; &lt;p&gt;Finally, &lt;strong&gt;a couple of extra questions for the real nmap-lovers&lt;/strong&gt;:&lt;/p&gt; &lt;ol&gt;&lt;li&gt;How can you get in real-time the open ports discoverd by nmap before the final report is displayed?&lt;/li&gt;&lt;li&gt;What happens when you run nmap in verbose mode on September 1?&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;That's all folks! Happy nmap discovery and scanning!&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;NOTE:&lt;/span&gt; This challenge has been &lt;/span&gt;&lt;span style="font-size:85%;"&gt;published &lt;/span&gt;&lt;span style="font-size:85%;"&gt;on the &lt;a href="http://isc.sans.org/diary.html?storyid=5719"&gt;Internet Storm Center (ISC) diary&lt;/a&gt; too.&lt;/span&gt;&lt;br /&gt;&lt;p&gt;--&lt;br /&gt;Raul Siles&lt;br /&gt;&lt;a href="http://www.raulsiles.com/"&gt;www.raulsiles.com&lt;/a&gt;&lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-8008115077883515116?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/8008115077883515116/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=8008115077883515116" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/8008115077883515116?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/8008115077883515116?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2009/01/nmap-trivia-answers-mastering-network.html" title="NMAP Trivia ANSWERS: Mastering Network Mapping and Scanning" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;CUYGRnY9fSp7ImA9WxNUE08.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-2698025954992177030</id><published>2008-12-29T12:58:00.007+01:00</published><updated>2009-11-04T09:25:27.865+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-04T09:25:27.865+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="nmap" /><category scheme="http://www.blogger.com/atom/ns#" term="book" /><title>Security Book Review: "Nmap Network Scanning"</title><content type="html">&lt;span style="font-weight: bold;"&gt;"Nmap Network Scanning"&lt;/span&gt;&lt;br /&gt;Author: Gordon "Fyodor" Lion&lt;br /&gt;Editorial: Nmap Project&lt;br /&gt;Publication date: January 1, 2009&lt;br /&gt;ISBN-10: 0979958717&lt;br /&gt;ISBN-13: 978-0979958717&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/0979958717?ie=UTF8&amp;amp;tag=ra06-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0979958717"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 123px; height: 160px;" src="http://1.bp.blogspot.com/_NSH9SH7V1yY/SvE5xqfnIaI/AAAAAAAAAIk/vfFuqHig6Bg/s320/51wq3ZTpLXL._SL160_.jpg" alt="" id="BLOGGER_PHOTO_ID_5400160953577185698" border="0" /&gt;&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=ra06-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0979958717" alt="" style="border: medium none  ! important; margin: 0px ! important;" border="0" height="1" width="1" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Summary:&lt;/span&gt; The Art of Network Mapping and Scanning Masterpiece.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Score:&lt;/span&gt; 5&lt;span style="font-weight: bold;"&gt;+&lt;/span&gt;/5&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Review:&lt;/span&gt;&lt;span&gt;&lt;br /&gt;I could summarize this book review by saying this is THE nmap reference book, what in itself would be an obvious conclusion I already expected before reading a single page, just by looking at the author name. Fyodor is the creator of nmap, a tool he has carefully fed and taken care of during all these years, and slightly knowing him from the Honeynet project, I couldn't expect less.&lt;br /&gt;&lt;br /&gt;"Nmap Network Scanning" is a masterpiece that teaches the reader the Art of Network Mapping and Scanning, and &lt;/span&gt;&lt;span&gt;definitely, &lt;/span&gt;&lt;span&gt;one of the best books I've read in years. Honestly, there are only a few minor things regarding network scanning you cannot accomplish with a single tool, the current nmap version. The book takes advantage of it.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;The official nmap reference guide is simply included on chapter 15, while the rest of the book steers the reader through the nifty art of network mapping and scanning. It disects the network scanning phases and techniques, describing the different options and tool arguments available throughout practical examples and real-world usage tips, here and there, that will improve all your scanning techniques. This is a never-ending book that took Fyodor 5 years to write, and it clearly spreads his experience testing and analyzing networks. This is specially true in the "Solution" section at the end of some chapters, where real-world scenarios are efficiently solved.&lt;br /&gt;&lt;br /&gt;Additionally, the book clearly pinpoints the limitations for the multiple platforms (eg. Windows vs Linux) and scenarios (eg. privileged vs non-privileged user) nmap can run on. Besides that, it summarizes most nmap internals without requiring you to dive deep into the source code, what is a challenge in itself. All this information is complemented with some real challenges you find as a penetration tester &lt;/span&gt;&lt;span&gt;today&lt;/span&gt;&lt;span&gt;, such as the limitations to spoof Internet traffic from legal ISP, a topic I've been researching about recently.&lt;br /&gt;&lt;br /&gt;The most advanced and technical chapters are chapter 7 and 8, detailing the inner workings of the nmap service, application, and OS fingerprinting modules, and chapter 9, providing the NSE knowledge required to read and develop your own nmap scripts.&lt;br /&gt;&lt;br /&gt;This is the type of book I recommend you to read in front of your computer, practicing simultaneously. Open a terminal, enable your network connection, and run the latest nmap version as you read throughout the book while testing the different options and examples. You can use multiple target virtual machines to experiment with, or if not available, the scanme.nmap.org site (use with caution). One thing is sure: you will have a lot of fun!&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;I have been using nmap since 1999, and found the book fits a broader audience, from the novice reader (please, do not get overwhelmed initially by all the available nmap options and scan types), that can learn the principles of the scanning techniques used (the packet flow diagrams on the port scanning chapter are specially helpful), up to the advanced professional, &lt;/span&gt;&lt;span&gt;explaining what's behind &lt;/span&gt;the scenes of every technique and nmap argument, at the OS and network traffic level. The book applies to most security professionals, from security administrators that need to manage and secure their environments, to penetration testers interested on driving their skills to a new level.&lt;br /&gt;&lt;span&gt;&lt;br /&gt;This is the kind of book that feeds your creativity and research motivation. Fyodor, once again, promotes along the book the open-source philosophy, the need to share and contribute to the community, in this case in the form of OS and service fingerprints, NSE scripts, or just reporting nmap bugs.&lt;br /&gt;&lt;br /&gt;Some minor things I would have liked to see mentioned for an extra finishing touch, &lt;/span&gt;&lt;span&gt;offering my tiny contribution for a future version&lt;/span&gt;&lt;span&gt;, are:&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;A statistical analysis of the most common ICMP types currenty allowed on the field, similar to the study for TCP and UDP ports Fyodor did. On my experience, for example, I find ICMP timestamps allowed much frequently than ICMP netmask requests today. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;Extend the analysis of port knocking with the &lt;a href="http://www.raulsiles.com/en/Research.html#hakin9"&gt;Single Packet Authorization (SPA)&lt;/a&gt; concept.&lt;/li&gt;&lt;li&gt;Finally, I would have loved to see specific sections for the &lt;a href="http://insecure.org/presentations/iSec08/isec08-slides-fyodor.pdf"&gt;new&lt;/a&gt; nmap-related tools, such as &lt;a href="http://seclists.org/nmap-dev/2008/q4/0194.html"&gt;ndiff&lt;/a&gt; (the command line version), or &lt;a href="http://nmap.org/ncat/"&gt;ncat&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span&gt;Respectfully, once I finished reading the book I feel like Raul "Fyodor" Siles..., you will do too! &lt;/span&gt;&lt;span&gt;:)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;br /&gt;Fyodor was generous enough to release an extensive portion of the book for free on &lt;a href="http://nmap.org/book/"&gt;the official nmap book website&lt;/a&gt;. Take a look at it and you won't doubt about getting your own full copy.&lt;br /&gt;&lt;br /&gt;UPDATE: &lt;a href="http://www.amazon.com/review/product/0979958717/ref=dp_top_cm_cr_acr_txt?_encoding=UTF8&amp;amp;showViewpoints=1"&gt;Amazon review&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-2698025954992177030?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/2698025954992177030/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=2698025954992177030" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2698025954992177030?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2698025954992177030?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/12/security-book-review-nmap-network.html" title="Security Book Review: &quot;Nmap Network Scanning&quot;" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_NSH9SH7V1yY/SvE5xqfnIaI/AAAAAAAAAIk/vfFuqHig6Bg/s72-c/51wq3ZTpLXL._SL160_.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;C0ACRno9cCp7ImA9WxJUGE8.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-1880372952896196606</id><published>2008-12-28T10:35:00.005+01:00</published><updated>2009-07-17T11:09:27.468+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-17T11:09:27.468+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="nmap" /><category scheme="http://www.blogger.com/atom/ns#" term="Challenge" /><title>NMAP Trivia: Mastering Network Mapping and Scanning</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_NSH9SH7V1yY/SVdLo79elbI/AAAAAAAAAHQ/sD3lUHPM7xw/s1600-h/cortafuegos.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 157px; height: 160px;" src="http://3.bp.blogspot.com/_NSH9SH7V1yY/SVdLo79elbI/AAAAAAAAAHQ/sD3lUHPM7xw/s320/cortafuegos.png" alt="" id="BLOGGER_PHOTO_ID_5284775854404965810" border="0" /&gt;&lt;/a&gt;Recently the official (and highly recommended) NMAP book, &lt;a href="http://nmap.org/book/"&gt; "NMAP Network Scanning"&lt;/a&gt; by Fyodor, was published. I will post its review here  in the next few days. Meanwhile, I thought it would be very productive to challenge you with a &lt;strong&gt;NMAP Trivia&lt;/strong&gt;. The main goal is providing some entertainment during the holiday season and the early days of 2009, and at the same time, force you to practice and play with the latest &lt;em&gt;stable&lt;/em&gt; nmap version, v4.76, trying to increase your technical knowledge, skills, and mastering of the traditional and current features of such an important security tool. &lt;ol&gt;&lt;li&gt; What are the default target ports used by the current nmap version (4.76)? How can you change the target ports list? What (nmap) options can be used to speed up scans by reducing the number of target ports and still check (potentially) the most relevant ones? How can you force nmap to check all target ports?&lt;/li&gt;&lt;li&gt;How can you force nmap to scan a specific list of 200 target ports, only relevant to you?&lt;/li&gt;&lt;li&gt;What is the default port used by nmap for UDP ping discovery (-PU)? Why? If you don't know it from the top of your head ;), how can you easily identify this port without using other tools (such as a sniffer) or inspecting nmap's source code?&lt;/li&gt;&lt;li&gt;When nmap is run, sometimes it is difficult to know what is going on the backstage. What two (nmap) options allow you to gather detailed but not overwhelming information about nmap's port scanning operations? What other extra (nmap) options are available for ultra detailed information?&lt;/li&gt;&lt;li&gt;What are the preferred (nmap) options to run a stealthy TCP port scan? Particularly, try to avoid detection from someone running a sniffer near the person running nmap and focus on the extra actions performed by the tool (assuming the packets required to complete the port scan are not detected)?&lt;/li&gt;&lt;li&gt;Why port number 49152 is relevant to nmap?&lt;/li&gt;&lt;li&gt;What is the only nmap TCP scan type that classifies the target ports as "unfiltered"? Why? What additional nmap scan type can be used to discern if those ports (previously identified as "unfiltered") are in an open or closed state?&lt;/li&gt;&lt;li&gt;When (and it what nmap version) the default state for a non-responsive UDP port was changed on nmap (from "open" to "open|filtered")? Why?&lt;/li&gt;&lt;li&gt;What is the default scan type used by nmap when none is specified, as in "nmap -T4 scanme.nmap.org"? Is this always the default scan method? If not, what other scan method does nmap default to, under what conditions, and why?&lt;/li&gt;&lt;li&gt;What nmap features (can make or) make use of nmap's raw packet capabilities? What nmap features rely on the OS TCP/IP stack instead?&lt;/li&gt;&lt;li&gt;Nmap's performance has been sometimes criticized versus other network scanners. What (nmap) options can you use to convert nmap into a faster, stateless scanner for high performance but less accurate results?&lt;/li&gt;&lt;li&gt;What relevant nmap feature does not allow an attacker to use the decoy functionality (-D) and might reveal his real IP address?&lt;/li&gt;&lt;li&gt;What are the (nmap) options you can use to identify all the steps followed by nmap to fingerprint and identify the Web server version running on scanme.nmap.org?&lt;/li&gt;&lt;li&gt;As an attacker, what port number would you select to hide a listening service backdoor trying to avoid an accurate detection by nmap's default aggressive fingerprinting tests? Would it be TCP or UDP? Why? What additional (nmap) options do you need to specify as a defender to fingerprint the hidden service backdoor?&lt;/li&gt;&lt;li&gt;What is the language used to write NSE scripts, and what two other famous open-source security tools/projects currently use the same language?&lt;/li&gt;&lt;li&gt;What Linux/Windows command can you use to identify the list of NSE scripts that belong to the "discovery" category and will execute when this set of scripts is selected with the "--script discovery" nmap option?&lt;/li&gt;&lt;li&gt;How can you know the specific arguments accepted by a specific NSE script, such as those accepted by the whois.nse script?&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Send your answers to radajo@gmail.com using "NMAP Trivia" as the subject by January, 15. The winner will get a copy of one of the latest technical security books I get access to.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;NOTE: This challenge has been &lt;/span&gt;&lt;span style="font-size:85%;"&gt;published &lt;/span&gt;&lt;span style="font-size:85%;"&gt;on the &lt;a href="http://isc.sans.org/diary.html?storyid=5566"&gt;Internet Storm Center (ISC)&lt;/a&gt; diary too.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;NOTE: The image above belongs to the 2008 &lt;a href="http://radajo.blogspot.com/2007/08/you-are-best-firewall.html"&gt;campaign against fire in Madrid&lt;/a&gt;, Spain.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-1880372952896196606?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/1880372952896196606/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=1880372952896196606" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/1880372952896196606?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/1880372952896196606?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/12/nmap-trivia-mastering-network-mapping.html" title="NMAP Trivia: Mastering Network Mapping and Scanning" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_NSH9SH7V1yY/SVdLo79elbI/AAAAAAAAAHQ/sD3lUHPM7xw/s72-c/cortafuegos.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;CUMHRnc7fSp7ImA9WxNUE08.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-338409640780974893</id><published>2008-12-14T13:46:00.009+01:00</published><updated>2009-11-04T09:30:37.905+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-04T09:30:37.905+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="VoIP" /><category scheme="http://www.blogger.com/atom/ns#" term="book" /><title>Security Book Review: "Voice over IP Security"</title><content type="html">&lt;span style="font-weight: bold;"&gt;"Voice over IP Security"&lt;/span&gt;&lt;br /&gt;Author: Patrick Park&lt;br /&gt;Editorial: Cisco Press&lt;br /&gt;Publication date: September, 2008&lt;br /&gt;ISBN-10: 1587054698&lt;br /&gt;ISBN-13: 978-1587054693&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/1587054698?ie=UTF8&amp;amp;tag=ra06-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1587054698"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 131px; height: 160px;" src="http://2.bp.blogspot.com/_NSH9SH7V1yY/SvE7a11zb6I/AAAAAAAAAIs/G-7JjuTAtoE/s320/41uapZFlmnL._SL160_.jpg" alt="" id="BLOGGER_PHOTO_ID_5400162760509321122" border="0" /&gt;&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=ra06-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1587054698" alt="" style="border: medium none  ! important; margin: 0px ! important;" border="0" height="1" width="1" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Summary:&lt;/span&gt; General VoIP security overview. Best chapters: SBC's and LI.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Score:&lt;/span&gt; 4/5&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Review:&lt;/span&gt;&lt;br /&gt;The book provides a good general overview of VoIP security, covering multiple topics involved on securing a VoIP infrastructure, from network devices to VoIP servers, plus secure VoIP protocols. In my opinion, the best chapters are chapter 8 and 10 &amp;amp; 11, Session Border Controllers (SBC's) and Lawful Interception (LI), respectively; it is difficult to find books covering these topics still today, although these are two of the major areas regarding VoIP security nowadays.&lt;br /&gt;&lt;br /&gt;SBC's are the VoIP security element by design and therefore a key device in any VoIP infrastructure. The book covers SBC's types, access and peering, expected SBC functionality and capabilities (such as DoS protection, translation and NAT features, LI, high availability and load balancing, etc) and offers a brief introduction to its architecture design concepts.&lt;br /&gt;&lt;br /&gt;Lawful Interception (LI) by law enforcement (LE), or LI by LE :), is one of the main VoIP research topics today, especially when strong security features are added, such as signaling and media encryption, that difficult the interception tasks. The last two chapters cover the fundamentals of LI on VoIP networks (following the Cisco model, as  there are three other standards), describing the different  elements, fucntions, and interfaces involved. It is a theoretical chapter followed by some practical advice to implement LI, very detailed and Cisco-based.&lt;br /&gt;&lt;br /&gt;The book starts with an introductory overview of VoIP, its benefits and drawbacks, and some security concerns. Then it provides another VoIP threat taxonomy, a good generic overview that lacks some VoIP threats and complements (or simply provides another perspective to) the &lt;a href="http://tools.ietf.org/html/draft-niccolini-speermint-voipthreats-02"&gt;IETF draft&lt;/a&gt; and &lt;a href="http://www.voipsa.org/Activities/taxonomy.php"&gt;VOIPSA&lt;/a&gt; VoIP threat taxonomies. Unfortunately, I have not found yet a classification that consolidates all the different VoIP threats from (IMHO) the right perspective.&lt;br /&gt;&lt;br /&gt;Chapter 3 offers an interesting summarized analysis of the main VoIP protocols, how they work, and their main security requirements and features. It covers H.323, SIP, and MGCP; I specially liked the SIP section, with descriptive message captures and flow diagrams. Chapter 5 complements the VoIP protocols with the main network devices in a VoIP environment, their role, and key security requirements. Although chapter 7 extends the security analysis of VoIP protocols,  covering authentication and signaling and media encryption, it does not cover the latest key exchange solutions, such as DTLS, ZRTP or MickeyV2, as it is focused mainly on S/MIME.&lt;br /&gt;&lt;br /&gt;All these chapters provide a lightweight analysis of VoIP security, not going very much in-depth into any of the topics covered. The book is a good overview reference for the VoIP security novice reader, I guess intended for network and system administrators, law enforcement, or security pros new to VoIP.&lt;br /&gt;&lt;br /&gt;VoIP threats, including some attack types and tools, are analyzed on chapter 6.   This chapter covers in detail a few VoIP attacks, providing simulation, examples and command line options for widely available attack tools. It allows the reader to see some real attacks in action, although it only shows the tip of the iceberg regarding all the tools and attacks that are possible; please, do not get the feeling that this is all you can do.&lt;br /&gt;&lt;br /&gt;Chapter 4 covers cryptography, and in my opinion, it doesn't fit on the book; although crypto is a key aspect to protect VoIP infrastructures, the novice reader can get this info from other sources.&lt;br /&gt;&lt;br /&gt;As the book is from Cisco Press, chapter 9 focuses on specific Cisco features and syntax, specially for practical sections that provide configuration details for firewalls, access devices, and the Unified Communication Manager (&amp;amp; Express), formerly CallManager. The info is useful to get an overview of the implementation steps, but do not apply to you if you are using equipment from other vendors.&lt;br /&gt;&lt;br /&gt;Overall, it is a generic reference book to start getting involved into the VoIP security world, acquire a general understanding of the main VoIP security threats, target network elements, VoIP protocols, and security solutions. Once again, the SBC and LI sections are my favorites.&lt;br /&gt;&lt;br /&gt;UPDATE: &lt;a href="http://www.amazon.com/review/product/1587054698/ref=dp_top_cm_cr_acr_txt?%5Fencoding=UTF8&amp;amp;showViewpoints=1"&gt;Amazon review&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;NOTE: I will not publish my reviews on Bookpool anymore due to their hard-to-use interface and &lt;a href="http://www.bookpool.com/rr"&gt;review rules&lt;/a&gt;.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-338409640780974893?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/338409640780974893/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=338409640780974893" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/338409640780974893?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/338409640780974893?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/12/security-book-review-voice-over-ip.html" title="Security Book Review: &quot;Voice over IP Security&quot;" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_NSH9SH7V1yY/SvE7a11zb6I/AAAAAAAAAIs/G-7JjuTAtoE/s72-c/41uapZFlmnL._SL160_.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></entry><entry gd:etag="W/&quot;DE4NRHg7fip7ImA9WxRaEUo.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-681337661562151633</id><published>2008-12-13T14:23:00.004+01:00</published><updated>2008-12-13T15:03:15.606+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-13T15:03:15.606+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Wireless" /><title>To Blue, ot not to Blue: That is the Question</title><content type="html">I spent part of last and this year researching about Bluetooth security, and recently I have been promoting the need to focus on securing Bluetooth technologies at a personal and enterprise level. I've presented about it in several private and public events all over the world, such as &lt;a href="http://www.meitsec.ae/meitsec-08/index.html"&gt;Meitsec 2008&lt;/a&gt;, &lt;a href="https://www.ccn-cert.cni.es/index.php?option=com_content&amp;amp;view=article&amp;amp;catid=62&amp;amp;id=2042:la-seguridad-de-la-informacion-en-las-administraciones-en-la-ii-jornada-stic-organizada-por-el-ccn-cert-&amp;amp;Itemid=86"&gt;II Jornadas CCN-CERT&lt;/a&gt;, or &lt;a href="http://www.sans.org/london08/"&gt;SANS London 2008&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;An event-independent English version of the presentation (requested by multiple attendees) is available &lt;a href="http://www.raulsiles.com/downloads/BluetoothSecurity_ToBlueOrNotToBlue_RaulSiles_v1.0.pdf"&gt;&lt;span style="font-weight: bold;"&gt;here&lt;/span&gt;&lt;/a&gt;!&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_NSH9SH7V1yY/SUO-aMMIGWI/AAAAAAAAAHI/JpvCTtnPF4U/s1600-h/banner_index_smurfs.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 89px;" src="http://2.bp.blogspot.com/_NSH9SH7V1yY/SUO-aMMIGWI/AAAAAAAAAHI/JpvCTtnPF4U/s320/banner_index_smurfs.jpg" alt="" id="BLOGGER_PHOTO_ID_5279272545366317410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The most critical aspect is that Bluetooth devices are being extensively used to exchange private and sensitive information in the form of data and voice, and the control is mainly on the hands of end users. If you do not enable an enterprise (or even personal) security program for these devices and communication channels at the same level you do with the rest of your infrastructure, you will be dealing against Bluetooth-related security incidents soon, especially on targeted attacks. Start by adding Bluetooth detection capabilities, and integrate this technology in your penetration tests and incident handling procedures.&lt;br /&gt;&lt;br /&gt;Although it has been tough traveling around with two laptops, plus the USRP, multiple omni and directional antennas, cables, several Bluetooth dongles, plus the victim cellphones and headsets... just to run the demo, it has been a well worth experience! The demonstration focuses on showing the audience the Bluetooth activity around, discovering the undiscoverable (Bluetooth hidden devices), and injecting and eavesdropping audio from a headset The initial threat was published by &lt;a href="http://www.usenix.org/event/woot07/tech/full_papers/spill/spill.pdf"&gt;Spill and Bittau&lt;/a&gt;, then popularized by &lt;a href="http://www.willhackforsushi.com/Home/Entries/2007/10/8_Headset_Attack_Demo_At_SANS_NS2007_Las_Vegas.html"&gt;Josh Wright&lt;/a&gt;, and in my opinion it is not getting enough attention. &lt;span style="font-weight: bold;"&gt;A demo is well worth a thousand words! ;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Something that took my attention in one of the events was the little impact the presentation and demo had on part of the audience, as it seems it didn't increase the awareness and paranoid level about the current threats. It is in our hands (as end users and organizations) to improve the security capabilities we demand from the Bluetooth vendors. Most of the time, I see the audience changing the Bluetooth settings on their phones and PDA's as I move through the material ;)&lt;br /&gt;&lt;br /&gt;This time, the security recommendations are not based on expensive or complex solutions, such as the latest and greatest Bluetooth IDS/IPS that costs more than 100K €. You simply need to follow common sense practices and precautions to get a reasonable level of protection (check the last part of the presentation), and understand the major threats and weaknesses, especially on Bluetooth devices with limited capabilities, such as car kits, headsets, keyboard and mouse, etc.&lt;br /&gt;&lt;br /&gt;Enjoy it and... Happy &lt;span style="font-weight: bold; color: rgb(51, 204, 255);"&gt;Blue&lt;/span&gt; Christmas!&lt;br /&gt;--&lt;br /&gt;Raul Siles&lt;br /&gt;&lt;a href="http://www.raulsiles.com/"&gt;www.raulsiles.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-681337661562151633?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/681337661562151633/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=681337661562151633" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/681337661562151633?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/681337661562151633?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/12/to-blue-ot-not-to-blue-that-is-question.html" title="To Blue, ot not to Blue: That is the Question" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_NSH9SH7V1yY/SUO-aMMIGWI/AAAAAAAAAHI/JpvCTtnPF4U/s72-c/banner_index_smurfs.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total></entry><entry gd:etag="W/&quot;DU4MR388cCp7ImA9WxRVEUU.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-6839936137943700003</id><published>2008-11-08T01:21:00.011+01:00</published><updated>2008-11-09T00:46:26.178+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-09T00:46:26.178+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Wireless" /><title>WPA/TKIP ChopChop Attack</title><content type="html">Probably at this point you have heard that "&lt;span style="font-weight: bold;"&gt;WPA has been cracked&lt;/span&gt;" all over the Internet and the Blogosphere. As the specific details will be fully disclosed on &lt;a href="http://pacsec.jp/"&gt;PacSec 2008&lt;/a&gt; next week, and in an upcoming &lt;a href="http://dl.aircrack-ng.org/breakingwepandwpa.pdf"&gt;whitepaper&lt;/a&gt; on the &lt;a href="http://www.aircrack-ng.org/"&gt;aircrack-ng&lt;/a&gt; website (&lt;a href="http://www.aircrack-ng.org/doku.php?id=links"&gt;check it&lt;/a&gt; during the weekend or early next week), I considered relevant to provide technical details (summarizing facts) about what's going on and clarify some of the FUD out there.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;UPDATE&lt;/span&gt;: The "&lt;a href="http://dl.aircrack-ng.org/breakingwepandwpa.pdf"&gt;Practical attacks against WEP and WPA&lt;/a&gt;" whitepaper has been released (08/11/2008 - 21:00 CET). The paper mentions the attack could be run on non-QoS wireless networks, although no extra details are provided.&lt;br /&gt;&lt;br /&gt;First of all, you have a technical overview on &lt;a href="http://arstechnica.com/articles/paedia/wpa-cracked.ars"&gt;this post&lt;/a&gt; (thanks Erik for the reference), and thanks to Della Lowe and Rick Farina (from &lt;a href="http://www.blogger.com/www.airtightnetworks.com"&gt;AirTight Networks&lt;/a&gt;) for the early warning notification, spreading the word to create awareness on the community, and the detailed technical conversation we had about the topic, respectively.&lt;br /&gt;&lt;br /&gt;Why is this relevant? Because it is the first cryptographic attack against WPA(2), and TKIP specifically. Previously we only knew about &lt;a href="http://www.willhackforsushi.com/Cowpatty.html"&gt;dictionary attacks on WPA or WPA2&lt;/a&gt; pre-shared keys (Personal mode), or &lt;a href="http://www.willhackforsushi.com/FreeRADIUS-WPE.html"&gt;RADIUS impersonation attacks&lt;/a&gt; in Enterprise mode.&lt;br /&gt;&lt;br /&gt;The attack:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;This security research has been discovered by Erik Tews (the T on the &lt;a href="http://radajo.blogspot.com/2007/04/what-else-do-you-need-not-to-use-wep.html"&gt;PTW WEP attack&lt;/a&gt;) and Martin Beck, members of the aircrack-ng team.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The new attack only affects the TKIP encryption algorithm used by WPA (and WPA2, optionally).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The attack allows an attacker to decrypt individual 802.11 wireless frames, similarly to the old &lt;a href="http://www.netstumbler.org/f50/chopchop-experimental-wep-attacks-12489/"&gt;WEP chopchop&lt;/a&gt; attack, as it discloses the keystream (or PRGA), that is, the cryptographic material used to encrypt a single wireless frame.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The attack also allows to inject new frames using the info of the disclosed keystream and other tricks (see below).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The keystream is disclosed by attacking the integrity algorithm (MIC) used in TKIP, called Michael.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;TKIP implements specific built-in countermeasures around Michael to avoid frame manipulation, and blocks replay attacks using sequence number enforcement.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The attack takes advantage of the message notification about MIC failures in order to identify valid injected frames, in the same way the WEP chopchop attack used the ACK frames to confirm valid frames.&lt;/li&gt;&lt;li&gt;Frames can only be injected when the wireless multimedia extensions (802.11e or WMM) are used, as these allow to break the sequence enforcement mechanism. The injected (and forged) frame is sent over a different QoS queue. This effectively limits the amount of injected frames that can be sent (around 7).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Some access points, or standards like 802.11n, require WMM. It cannot be disabled. The 802.11n standard does not accept TKIP, but some 11n vendors allow you to enable it.&lt;/li&gt;&lt;li&gt;The attack combines the new chopchop techniques, plus the QoS queue change, to decrypt and inject new frames. This is were the meat of the research and whitepaper is!&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The attack only allows to decrypt and inject frames that go from the AP to the client, as the client generates the MIC failures (required to confirm the validity of an injected frame).&lt;/li&gt;&lt;li&gt;The current research allows to decrypt the frame at a rate of about one bit per minute on average, that is the reason why the current attack is effective against small packets, such as ARP, DNS, or TCP SYN packets. However, spending a bigger amount of time it would be possible to decrypt larger packets.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Every time a new valid frame is injected (confirmed by the generation of a MIC failure message), a new bit value is discovered (like in chopchop), but with TKIP, the attack must stand-by for 60 seconds in order not to trigger the Michael countermeasures, what will renew the keys (and invalidate the attack).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The reason why it is being said that it takes 12-15 minutes (or 900 seconds) is because the goal of the sample test is to decrypt two bytes (16 bits) of an IP address (considering the other two bytes are known, subnet portion on a class B) inside an ARP packet.&lt;/li&gt;&lt;li&gt;By looking at the source code of the PoC tool, it checks the IP private address ranges: 192.168, 10.x (10.0), 172.16-31 (172.16).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;For those interested on the in-depth technical details (see the source code), there is a new tool that implements the attack, called &lt;a href="http://www.aircrack-ng.org/doku.php?id=tkiptun-ng"&gt;tkiptun-ng&lt;/a&gt;, and it is available on the &lt;a href="http://dl.aircrack-ng.org/aircrack-ng-svn-trunk-current.tar.gz"&gt;aircrack-ng SVN repository&lt;/a&gt; (current copy, rev.1208).&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;This new research opens the door to new WPA(2)/TKIP attacks and future enhancements, so it is time to start applying and planning the appropriate security countermeasures to remove or mitigate this and similar future threats.&lt;br /&gt;&lt;br /&gt;The countermeasures (for wireless vendors, businesses, and end users):&lt;br /&gt;&lt;ul&gt;&lt;li&gt;[users and businesses] Switch to AES and WPA2, as more TKIP attacks are going to come! AES is the best solution (if your equipment supports it, mandatory since 2006 from a WiFi Alliance perspective) as it is more efficient and secure than TKIP.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;[vendors] There are a few ideas around to fix the vulnerability from a TKIP perspective:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Rotate keys every two minutes, but this will have a  significant performance impact, specially on the devices that do not support AES (with limited hardware capabilities).  [1]&lt;br /&gt;&lt;/li&gt;&lt;li&gt; Don't send the early warning message notifying about the first MIC failure, what will break the current 802.11i standard.&lt;/li&gt;&lt;li&gt;Activate the MIC countermeasures with a single MIC failure, what will break the standard again, and activate the built-in DoS capabilities within TKIP in non-evil scenarios where a single packet has an invalid MIC. Very risky!&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;[businesses] If your hardware do not support AES and cannot be easily replaced, complement the security mechanism provided by TKIP encryption with other capabilities, such as detection. This attack generates a significant amount of MIC failure messages that must be detected by your wireless IDS (WIDS).&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;[1] This reminds me about the old (and almost useless) Dynamic WEP  (DWEP) implementations.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Remember, TKIP was a temporary solution to mitigate WEP security issues. It is time to switch to AES, so start planning the migration now!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;NOTE: If there is an incorrect statement above, as all the details are not known yet, please let me know in order to clarify or fix it&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-6839936137943700003?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/6839936137943700003/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=6839936137943700003" title="10 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/6839936137943700003?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/6839936137943700003?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/11/wpatkip-chopchop-attack.html" title="WPA/TKIP ChopChop Attack" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">10</thr:total></entry><entry gd:etag="W/&quot;CUINSXg7fSp7ImA9WxNUE08.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-783211958617953143</id><published>2008-11-01T11:45:00.008+01:00</published><updated>2009-11-04T09:33:18.605+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-04T09:33:18.605+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="book" /><title>Security Book Review: "Google Hacking for Penetration Testers - VOLUME 2"</title><content type="html">&lt;span style="font-weight: bold;"&gt;"Google Hacking for Penetration Testers - VOLUME 2"&lt;/span&gt;&lt;br /&gt;Authors: Johnny Long et. al.&lt;br /&gt;Editorial: Syngress&lt;br /&gt;Publication date: November, 2007&lt;br /&gt;ISBN-10: 1597491764&lt;br /&gt;ISBN-13: 978-1597491761&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/1597491764?ie=UTF8&amp;amp;tag=ra06-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1597491764"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 130px; height: 160px;" src="http://2.bp.blogspot.com/_NSH9SH7V1yY/SvE8BbE14YI/AAAAAAAAAI0/X_5E8ywoGQ0/s320/51kDU8hEJwL._SL160_.jpg" alt="" id="BLOGGER_PHOTO_ID_5400163423339536770" border="0" /&gt;&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=ra06-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1597491764" alt="" style="border: medium none  ! important; margin: 0px ! important;" border="0" height="1" width="1" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Summary&lt;/span&gt;: New updates and material for the second edition of the Google Hacking masterpiece. Volume 2 is today's reference.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Score&lt;/span&gt;: 4/5&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Review&lt;/span&gt;:&lt;br /&gt;This review mainly focuses on evaluating how valuable is to get a copy of "Google Hacking for Penetration Testers - VOLUME 2" if you already own a copy of the first edition, and the scores rates exactly that. If you don't have neither of them, I strongly encourage you to acquire Volume 2 (see details below), no matter what area of the information security field you work in (and specially if you are a penetration tester), as the contents affect to you in multiple ways. On my day-to-day security consulting practice, I'm still very surprised about how many IT people don't know about these techniques. The book is a masterpiece for information disclosure and mining from public sources, such as (but not only) Google. If I had to evaluate the book on itself, not comparing between editions, it would definitely get a score of 5/5.&lt;br /&gt;&lt;br /&gt;The first edition was released in 2005 and opened the world of the Google Hacking techniques to the general public, together with the &lt;a href="http://johnny.ihackstuff.com/ghdb.php"&gt;GHDB&lt;/a&gt;. The second edition title is (at least) confusing, as Volume 2 seems to denote it is a complementary book to the first edition. It is not, so I do not recommend you to get the first edition today. Volume 2, or the second edition as it should have been called, has been thoroughly updated (including most of the screenshots) to cover the latest changes and Google applications. I did a major update to the SANS "Power Search with Google" course on the first half of 2006, when some of the new Google functionality (not in the first edition) was already available. The second edition reflects those updates I identified and put back together then, even the tiny ones, such as the maximum search terms, that changed from 10 to 32. Additionally, all the statistical references, covering number of results returned by Google, and main contents have been reviewed and updated to reflect the current state of the art.&lt;br /&gt;&lt;br /&gt;Some chapters have been kept from the previous edition (chapters 1 to 3, and chapters 6 to 9, and chapter 12), although they have suffered updates. Others have been moved (such as the old chapter 10, now chapter 4) or redesigned (like the new chapter 5). Besides, there are brand new chapters, like 10 and 11.&lt;br /&gt;&lt;br /&gt;I specially like the updates on chapter 5, with the new tools and scripts to query Google and, specially, to parse and process the results, including several Perl and User-Agent tricks. The book, obviously, covers the Google API changes and provides solutions to overcome them, such as Aura. Chapters 6 and 8 include relevant updates to the Google code search engine and new capabilities to locate malware and binaries, plus new techniques to track down login portals and network embedded devices and reports, respectively.&lt;br /&gt;&lt;br /&gt;The new chapter 10 is a great reference covering the new Google services from a hacking and "malicious" perspective. It is a required update given the pace Google releases new functionality and information sources, such as the AJAX capabilities and API, the source code search engine, calendar, blogger, and alert services.&lt;br /&gt;&lt;br /&gt;The new chapter 11, "Google Hacking Showcase", includes the real-world Google Hacking samples and cases Johnny Long has been presenting in several hacking conferences during the last years. A found having a printed copy of it within the book very valuable, as it is an eye-opener, and it is a fun read. Definitely, if you have not seen Johnny's presentations and talks, I encourage you to access the archives from BlackHat and DefCon and enjoy them.&lt;br /&gt;&lt;br /&gt;Finally, chapter 12 (the old chapter 11), covers new techniques and tools from a defensive perspective. The new additions increase the defender arsenal in order to mitigate the old and new threats covered throughout the book.&lt;br /&gt;&lt;br /&gt;The influence of multiple authors in this edition is evident, something good for the new contents and material, but not so good for the chapter layout, as some do not follow the original format with a final summary, solutions, links and FAQ. Chapter 10 is a good example of both.&lt;br /&gt;&lt;br /&gt;The complementary appendixes from the first edition, not directly relevant to the book topic from my perspective, have been removed. Overall, I feel some of the waffle has been left out, a smart decision (but not always easy) in order to keep the book size reasonable, and make room for the new contents.&lt;br /&gt;&lt;br /&gt;I would like to see some of the pages that simply provide long listings from the GHDB moved to an appendix and simply referenced from the associated chapter. It might be useful to have these lists full of query samples on the book, but not just in the middle of a chapter. Another improvement would be to have a book webpage consolidating all the code samples, such as the Blogger submission script, as I'm not sure they are all available on a single website.&lt;br /&gt;&lt;br /&gt;To sum up, if you don't have a copy of this book, go and buy Volume 2! (not to mention &lt;a href="http://johnny.ihackstuff.com/faqs/frequently-asked-questions/how-does-the-ihackstuff-charity-program-work.html"&gt;Johnny's involvement with charities&lt;/a&gt;). If you are a professional penetration tester, the new material in this second edition is highly recommended, so update your shelves and start applying the new contents on your daily practice. If you are an infosec pro, not directly involved in Google Hacking tasks, and you already own a copy of the first edition, I think you do not need Volume 2, as you already understand the threat, risks, and what is all this about.&lt;br /&gt;&lt;br /&gt;At some point I was almost involved in co-authoring this 2nd edition, but finally it didn't happened. A pity, as definitely, this is one of today's reference books that should be on any infosec shelves.&lt;br /&gt;&lt;br /&gt;UPDATE: &lt;a href="http://www.amazon.com/review/product/1597491764/ref=dp_top_cm_cr_acr_txt?%5Fencoding=UTF8&amp;amp;showViewpoints=1"&gt;Amazon review&lt;/a&gt; and &lt;a href="http://www.bookpool.com/sm/1597491764#reviews"&gt;Bookpool review (1st)&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-783211958617953143?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/783211958617953143/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=783211958617953143" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/783211958617953143?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/783211958617953143?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/11/security-book-review-google-hacking-for.html" title="Security Book Review: &quot;Google Hacking for Penetration Testers - VOLUME 2&quot;" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_NSH9SH7V1yY/SvE8BbE14YI/AAAAAAAAAI0/X_5E8ywoGQ0/s72-c/51kDU8hEJwL._SL160_.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></entry><entry gd:etag="W/&quot;CU8BQn0zfyp7ImA9WxRRFk4.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-2806266245200351634</id><published>2008-09-28T20:24:00.005+02:00</published><updated>2008-09-28T22:30:53.387+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-28T22:30:53.387+02:00</app:edited><title>nc2 : Netcat without a couple of annoyances</title><content type="html">Netcat is without doubt one of the most useful tools I know. For years I've used it almost every day, and I still do, in different platforms. Its simplicity is its beauty.&lt;br /&gt;&lt;br /&gt;All this time, however, two small details have kept the experience from being absolutely perfect for me. I know there are many rewrites of nc out there nowadays and some versions may not show the behavior I'm about to describe. I'm talking here about code based on that original from Hobbit, both for Linux (v1.10) and for Windows (v1.11).&lt;br /&gt;&lt;br /&gt;The first annoyance is (was) in the Linux version. While in the Windows version there is a "-L" option ("listen harder") to make netcat continue listening for new connection attempts after a connection is terminated, there is no such option in the Linux version. You can get around it by launching netcat inside a "while" shell loop, but personally I've always found that to be a pain in the neck, especially when you compare it to simply invoke netcat with a capital "L" instead of lowercase "l", as you do in the Windows version.&lt;br /&gt;&lt;br /&gt;The second annoyance is (was) in the Windows version. If you send a file through the client netcat's standard input (e.g. "cat(or type) file.txt ¦ nc target_ip target_port"), in Linux netcat terminates the connection as soon as it is finished sending the file, but in Windows the connection stays active until you tear it down manually, pressing CTRL-C, &lt;em&gt;when you think the transfer is finished&lt;/em&gt;. That simply sucks.&lt;br /&gt;&lt;br /&gt;Well, I decided to put an end to it. I downloaded the source code, which fortunately is distributed under the GPLv2 license, made a couple of tiny modifications (yes, you may call them quick and dirty hacks, I won't be offended) et voil&amp;agrave, "nc2" was born. Thus, let me make it clear that "nc2" is nothing more than "nc" with two little hacks that eliminate the small annoyances I just described.&lt;br /&gt;&lt;br /&gt;I made it for myself, but I decided to publish it in case someone else finds it useful. The zip file (&lt;a href="http://www.raulsiles.com/radajo/nc2-all-080925.zip"&gt;nc2-all-080925.zip&lt;/a&gt;, MD5 b26fd6bab7b4a4d89a76fa52dca0f64b, SHA1 b8639b450974a182b67fa637aa9484d111bff534) contains binaries for both platforms ("nc2" and "nc2.exe", respectively), their source code, and a copy of the original source code I derived nc2 from. I downloaded the Windows version from &lt;a href="http://joncraton.org/files/nc111nt.zip"&gt;http://joncraton.org/files/nc111nt.zip&lt;/a&gt; and for Linux I used the source code of the netcat package that comes with openSUSE 10.3 (yes, you got me, I used &lt;a href="http://radajo.blogspot.com/2008/07/netinvm-whole-network-in-single-virtual.html"&gt;NETinVM&lt;/a&gt; for this too :-) ).&lt;br /&gt;&lt;br /&gt;Finally, and before you ask... I renamed it to "nc2" because this way it is easier for my feeble mind to distinguish when I'm running my own version or some other. For those of you with stronger minds that may feel outraged by this fact, I only have two words: "mv" and "move" ;-).&lt;br /&gt;&lt;br /&gt;David Perez.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-2806266245200351634?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/2806266245200351634/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=2806266245200351634" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2806266245200351634?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2806266245200351634?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/09/nc2-netcat-without-couple-of-annoyances.html" title="nc2 : Netcat without a couple of annoyances" /><author><name>David Perez</name><uri>http://www.blogger.com/profile/17217131289266744808</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="16697011480779516347" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">8</thr:total></entry><entry gd:etag="W/&quot;CUAGQHk5cCp7ImA9WxNUE08.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-914614542728805412</id><published>2008-09-08T16:24:00.020+02:00</published><updated>2009-11-04T09:35:21.728+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-04T09:35:21.728+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="book" /><title>Security Book Review: "Applied Security Visualization"</title><content type="html">&lt;span style="font-weight: bold;"&gt;"Applied Security Visualization"&lt;/span&gt;&lt;br /&gt;Authors: Raffael Marty&lt;br /&gt;Editorial: Addison-Wesley Professional&lt;br /&gt;Publication date: August, 2008&lt;br /&gt;ISBN-10: 0321510100&lt;br /&gt;ISBN-13: 978-0321510105&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;http://safari.awprofessional.com/9780321510105&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/0321510100?ie=UTF8&amp;amp;tag=ra06-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0321510100"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 121px; height: 160px;" src="http://2.bp.blogspot.com/_NSH9SH7V1yY/SvE8l4ijVAI/AAAAAAAAAI8/idH7AqndsH8/s320/51gaQZRaGTL._SL160_.jpg" alt="" id="BLOGGER_PHOTO_ID_5400164049724068866" border="0" /&gt;&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=ra06-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=0321510100" alt="" style="border: medium none  ! important; margin: 0px ! important;" border="0" height="1" width="1" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Summary&lt;/span&gt;: Definitely Security Visualization is one of the most relevant present and future topics in the security field, and this book is simply THE reference.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Score&lt;/span&gt;: 5/5&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Review&lt;/span&gt;:&lt;br /&gt;When security professionals are dealing with huge amounts of information, and who is not nowadays, correlation and filtering is not the easiest path (and sometimes enough) to discern what is going on. The in-depth analysis of security data and logs is a time consuming exercise, and security visualization (SecViz) extensively helps to focus on the relevant data and reduces the amount of work required to reach to the same conclusions. It is mandatory to add the tools and techniques associated to SecViz to your arsenal, as they are basically taking advantage of the capabilities we have as humans to visualize (and at the same time analyze) data. A clear example is the insider threat and related incidents, where tons of data sources are available.&lt;br /&gt;&lt;br /&gt;The best sentence (unfortunately it is not an image ;) that describes SecViz comes from the author:&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;A picture is worth a thousand log entries.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This is a great book that joins two separate worlds, visualization and  information security (infosec).  The first chapter is  an excellent introduction to the human perception system, its basic principles, and how we analyze, discern, and assimilate information. It is an eye opener for those new to the field. Chapter two is similar from an infosec perspective, and summarizes the main challenges and data sources, such as packet captures, traffic flows, and firewall, IDS/IPS, system, and application logs. The third chapter details different graph properties and chart types, including some open-source and online tools for chart and color selection. Although we (infosec pros) are familiarized with link graphs to represent relationships between botnet members or hosts, the book provides a whole set of charts for different purposes; one of the most useful types, and we are not very used too it in the security field, is treemaps. The chapter includes a really useful table to select the right graph based on the purpose of the analysis and the data available.&lt;br /&gt;&lt;br /&gt;Then, the previous chapters are smoothly mixed together through a reference methodology that defines what is the problem to solve, and the process to manipulate the available data and generate a (or set of) graph(s) that allow gathering relevant conclusions and answers. The methodology is complemented with an introduction to the standard Unix-based text processing tools (grep, awk, Perl, etc). This methodology is later on applied, with a strong hands-on and how-to spirit, to an extensive set of common security use-cases, such as the perimeter threat, compliance, and the insider threat.&lt;br /&gt;&lt;br /&gt;The perimeter chapter offers a deep insight into common attack scenarios, such as worms, DoS or anomaly detection, and operational tasks, like firewall log and ruleset analysis, IDS tuning, or vulnerability assessments. I could never forget how useful were SecViz techniques for anomaly detection on a huge DNS-related incident I was involved about 5 years ago. Thanks to the performance and statistical graphs we had available at that time, we were able to easily identify and solve a very complex and critical security incident.&lt;br /&gt;&lt;br /&gt;When I saw this chapter included a wireless section I got really excited due to personal interest. However, I was disappointed as it was just a couple of pages. I think it could be extended to gather a whole set of useful information about complex wireless attacks and client and access points relationships, just by inspecting the different 802.11 management, control, and data frames, and even radio-frequency signals (from a spectrum analyzer). SecViz opens the door to a whole new wireless research area!&lt;br /&gt;&lt;br /&gt;The compliance chapter offers a whole methodology to check and manage regulations, control frameworks, auditing, and risk monitoring and management from a visual perspective.&lt;br /&gt;&lt;br /&gt;The same applies to the insider threat chapter, as it provides an impressive framework, not only visualization-based, to deal with malicious insiders. It is based on setting up scores for certain behaviors and activities (precursors), generating lists of suspicious candidates, and apply thresholds to accommodate exceptions. It also contains an extensive and directly applicable precursor list at the end to detect suspicious insider activities.&lt;br /&gt;&lt;br /&gt;Finally, the book contains a whole chapter, full of references and comparison tables,  of open-source and commercial visualization tools and libraries that allow the reader to select the appropriate tool for specific tasks and scenarios.&lt;br /&gt;&lt;br /&gt;Although the book hands-on component is very significant, with lots of detailed examples of commands, scripts, and tool options to generate the different graphs, I would have liked to see a thorough usage of the how-to portions, as for some sections there are no specific details about how the graphs have been generated. The book layout makes it the perfect candidate to become a fully interactive technical book. I would suggest to add (for a 2nd edition ;)) practical sections to each chapter where the reader could reproduce all the steps discussed. The book CD is the perfect tool to provide the reader with all the (sanitized) data sets and logs used to generate the graphs, and even allow to include some challenges where the reader needs to analyze the data and answer some questions after generating the appropriate graphs.&lt;br /&gt;&lt;br /&gt;To sum up, this book is a mandatory reference for anyone involved in the operational side of infosec, doing intrusion detection, incident handling, forensic analysis, etc, and it can be applied to both, historical analysis and real-time monitoring. Additionally, I found it useful too for auditing and pen-testing professionals, as it provides great tips to generate relevant and efficient graphs for the associated reports.&lt;br /&gt;&lt;br /&gt;The accompanying &lt;a href="http://davix.secviz.org/"&gt;DAVIX&lt;/a&gt; Live CD is an excellent resource to start applying the techniques covered throughout the book through open-source tools, &lt;a href="http://www.secviz.org/"&gt;SecViz&lt;/a&gt; is the Web portal to expand your knowledge on this topic, and &lt;a href="http://afterglow.sourceforge.net/"&gt;AfterGlow&lt;/a&gt; is (one of) the most relevant SecViz open-source tools.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;UPDATE&lt;/span&gt;: &lt;a href="http://www.amazon.com/review/product/0321510100/ref=dp_top_cm_cr_acr_txt?%5Fencoding=UTF8&amp;amp;showViewpoints=1"&gt;Amazon review&lt;/a&gt; and &lt;a href="http://www.bookpool.com/sm/0321510100#reviews"&gt;Bookpool review (1st)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-914614542728805412?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/914614542728805412/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=914614542728805412" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/914614542728805412?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/914614542728805412?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/09/security-book-review-applied-security.html" title="Security Book Review: &quot;Applied Security Visualization&quot;" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_NSH9SH7V1yY/SvE8l4ijVAI/AAAAAAAAAI8/idH7AqndsH8/s72-c/51gaQZRaGTL._SL160_.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;CEQESXY_fCp7ImA9WxRTGEU.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-4315672653898801769</id><published>2008-09-08T15:57:00.003+02:00</published><updated>2008-09-08T15:58:28.844+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-08T15:58:28.844+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Wireless" /><title>The Evidence was in your Monthly Cell Phone Bill!... Bluetooth?</title><content type="html">About 11 months ago I posted a kind of &lt;a href="http://radajo.blogspot.com/2007/10/evidence-is-in-your-monthly-cell-phone.html"&gt;security challenge about my cell phone&lt;/a&gt;. Sorry about the delay, we have had some readers (Thanks Robin! et al) reminding me and asking "what happened". You deserve the information ;), so finally, here it is!&lt;br /&gt;&lt;br /&gt;Answers to the questions raised in the &lt;a href="http://radajo.blogspot.com/2007/10/evidence-is-in-your-monthly-cell-phone.html"&gt;previous blog post&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;1) What are the incident response steps you would follow to discern what happened?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On purpose, I'm not going to be too formal following the recommended 6-step Incident Handling process we use and teach in the SANS Security 504 course. The first think to consider is this post itself... eh? You need to go through a final "Lessons Learned" phase, summarize, agree on, and report what happened and how to avoid similar incidents in the future. No matter how busy you are after the incident, and  it  is better late than  never (this post  is the  best example),  you need to do it.&lt;br /&gt;&lt;br /&gt;First of all, you need a good detection mechanism, anomaly-based in this case, to detect deviations from the norm. After being aware of the extra charges, I started analyzing in-depth the logs, that is, the cell phone bill details. I focused on the specific date and time the messages were sent. Let's say September 9, between 21:50 and 22:05 (16 minutes). I focused on remembering where I was on that date, what I was doing at that time, and where my cell phone was on that specific moment :)  I checked  with the people around me at that date and time to double check my memories (team work).&lt;br /&gt;&lt;br /&gt;I also tried to identify a pattern in the timing for the message generation during the 16 minutes period without success. There were minutes without messages, minutes with a single message, and minutes with up to five messages.  The number of messages per minute in the 16 minutes period were: 1 3 1 3 2 0 1 0 1 5 1 0 1 0 3 2.&lt;br /&gt;&lt;br /&gt;Additionally, I inspected the list of sent messages on the cell phone, trying to gather more evidence about the incident. Unfortunately, the list was empty. I checked the phone settings and discovered that the "Save all sent messages" option was off :( Time to change it for future incidents and reflect it into the "Lessons Learned" report.  Check your phone at this point, exercising the "Preparation" phase, and be sure you enable as much logging as possible (if the phone memory can support it), so that you can have all the evidence available in future incidents.&lt;br /&gt;&lt;br /&gt;I made a call to the telecommunication provider just to notify them about the incident and get them involved in reviewing the case. The person taking care of my call checked the description and classified it as "consecutive SMS messages sent" event. It seems it is something they already have categorized ;) The reason they initially argued was that my cell phone brand (of course, they know my cell phone brand) sometimes present this misbehavior. Amazing! ;) It is the first time I see this and I was tempted to ask: Does it apply to all models from the same manufacturer? (BTW, the brand was one of the major cell players world-wide)&lt;br /&gt;&lt;br /&gt;Finally, I was following the incident with the provider, and three months later (one of the reasons that delayed this post), they agreed that it was a misbehavior on their billing system and decided to return my money back. From a technical perspective, unfortunately, it was not due to a new cutting-edge hacking technique ;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;2) What do you think is the most probable security threat/vulnerability/exploit that could explain this type of incident?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Being wireless one of my preferred security topics, the first thing that came to my mind was... &lt;span style="font-weight: bold;"&gt;Bluetooth!!&lt;/span&gt; Perhaps I left the Bluetooth radio enabled by mistake and someone was able to take advantage of it through a bluebugging attack (sometimes referred as bluesnarfing). Sometimes people mix these two types of Bluetooth attacks as they are very similar.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_NSH9SH7V1yY/SMUubdy-hcI/AAAAAAAAAFo/-3OCPpvkfaM/s1600-h/bluetooth.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_NSH9SH7V1yY/SMUubdy-hcI/AAAAAAAAAFo/-3OCPpvkfaM/s320/bluetooth.JPG" alt="" id="BLOGGER_PHOTO_ID_5243648390532597186" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Both anonymous attacks allow an intruder to exploit a vulnerability in the phone firmware and get unauthorized access to the cell phone capabilities and run commands through Bluetooth without notifying or alerting the user, that is, evading any authentication and authorization mechanism:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Bluebugging uses the RFCOMM and Serial Port profile to get control of the phone telecom capabilities through AT commands, that is, the attacker can send make and forward calls, establish data connections, send and receive text messages (SMS) - this is what I thought - and even turn the device into a listening bug. &lt;a href="http://www.youtube.com/watch?v=A-q-OnUqty0"&gt;View an example from The Real Hustle&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Bluesnarfing uses the OBEX Object Push profile to get access to the storage capabilities of the device, including the list of contacts, calendar, SMS boxes, files (images, audio, video, etc), IMEI, etc. &lt;/li&gt;&lt;/ul&gt;Although these are old Bluetooth attacks, I'm sure we still are going to see similar vulnerabilities in new phone models, as it is an implementation bug. If you want to test your device, I suggest you to port and service scan  it from a Bluetooth point of view using the psm_scan (1-65535) and rfcomm_scan (1-30) tools.&lt;br /&gt;&lt;br /&gt;Another option, as Robin pointed out, could have been someone around me, like the kids (&lt;span style="font-style: italic;"&gt;it is always good to have kids around to blame them for it ;)&lt;/span&gt;), playing with my phone and impulsively voting through SMS in any of the popular TV programs. It was not the case :)&lt;br /&gt;&lt;a href="http://www.youtube.com/watch?v=dltjEnrePxc&amp;amp;feature=related"&gt;&lt;br /&gt;&lt;/a&gt;Finally, do not forget to add all your mobile, &lt;span style="font-weight: bold;"&gt;and especially Bluetooth devices&lt;/span&gt;, to your common detection, incident handling, and computer forensics best practices, as well as to your auditing and pen-testing capabilities. It is time to do so, as these devices are used for really sensitive information and tasks! For this same reason, new cutting-edge Bluetooth sections and labs have been recently added to the SANS "&lt;a href="http://www.sans.org/training/description.php?mid=3"&gt;Wireless Ethical Hacking, Penetration Testing, and Defenses&lt;/a&gt;" course.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-4315672653898801769?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/4315672653898801769/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=4315672653898801769" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/4315672653898801769?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/4315672653898801769?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/09/evidence-was-in-your-monthly-cell-phone.html" title="The Evidence was in your Monthly Cell Phone Bill!... Bluetooth?" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_NSH9SH7V1yY/SMUubdy-hcI/AAAAAAAAAFo/-3OCPpvkfaM/s72-c/bluetooth.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;Ak4BQnY8eSp7ImA9WxdUGE4.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-2713991015461319913</id><published>2008-08-03T20:50:00.009+02:00</published><updated>2008-08-04T10:35:53.871+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-04T10:35:53.871+02:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Wireless" /><title>Autoimmunity disorder in Wireless LANs</title><content type="html">It is August 2008, that is, famous US hacking conference time once again! This time BlackHat and Defcon are surrounded by the recent &lt;a href="http://www.doxpara.com/?p=1162"&gt;Dan Kaminsky's DNS vulnerability&lt;/a&gt;. You can get most of the details from the July's posts on &lt;a href="http://www.doxpara.com/"&gt;his blog&lt;/a&gt;, and on the &lt;a href="http://blog.metasploit.com/"&gt;Metasploit blog&lt;/a&gt;. &lt;span style="font-weight: bold;"&gt;&lt;a href="http://www.doxpara.com/"&gt;Test your DNS&lt;/a&gt;, &lt;a href="https://www.dns-oarc.net/oarc/services/dnsentropy"&gt;retest&lt;/a&gt;, and patch!&lt;/span&gt; &lt;span style="color: rgb(255, 204, 0);"&gt;I couldn't miss not to blog about it! ;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But not only of DNS we live, so Airtight Networks, &lt;a href="http://www.defcon.org/html/defcon-16/dc-16-schedule.html"&gt;as they did last year too with WEP cloaking&lt;/a&gt;, is presenting on &lt;a href="http://www.defcon.org/html/defcon-16/dc-16-schedule.html"&gt;Defcon 16&lt;/a&gt; about something they called "&lt;a href="http://www.defcon.org/html/defcon-16/dc-16-speakers.html#Ahmad"&gt;Autoimmunity disorder in Wireless LANs&lt;/a&gt;". The name comes from biology: autoimmune disorder is a malfunction of the body's immune system that causes the body to attack its own tissues. The vulnerability found in WiFi access points allows an attacker to inject specially crafted packets that influence the AP behavior, creating a kind of self-DoS scenario.&lt;br /&gt;&lt;br /&gt;It basically exploits one of the major threats against wireless technologies, Denial of Service (DoS), and becomes a new way of launching a DoS attack. It's not a new cutting-edge flaw, and although it is not a 802.11 design vulnerability, it's an AP implementation vulnerability we need to pay attention. The main reason behind it is the complexity of the 802.11 specification. The original 802.11-1999 is a 528 pages document, the &lt;a href="http://standards.ieee.org/getieee802/download/802.11i-2004.pdf"&gt;802.11i-2004&lt;/a&gt; spec adds 190 pages, the new &lt;a href="http://standards.ieee.org/getieee802/download/802.11-2007.pdf"&gt;802.11-2007&lt;/a&gt; spec is 1232 pages in length, and now you need to add 802.11n (MIMO), 802.11e (WMM), 802.11w, 802.11f, 802.11k, 802.11r, as well as all the other upcoming IEEE extensions. Do you see how complex the development of an 802.11 AP or client driver can be?&lt;br /&gt;&lt;br /&gt;The vulnerability has been found in all kinds of 802.11 APs, SOHO/home, open source and commercial. Each of them is vulnerable to different stimulus, based on their own 802.11 implementation, but with a similar end result. You need to wait till Defcon to get the details, where different malformed crafted frame samples will be demonstrated. Basically, referring back to biology, they have found different antigens (the crafted packets) for different AP implementations, that is, different substances that can stimulate an immune response.&lt;br /&gt;&lt;br /&gt;The following scenario demonstrates the issue: Every time a WiFi client connects to an AP, it follows the authentication and association process, it gets an Association ID (AID), and a new entry is created for that client in the AP's association table. When an AP gets a new 802.11 wireless frame, before forwarding it, it checks that the source address is on the association table and therefore belongs to an existent client. If it is not, the AP takes actions using management frames to notify the client about it, and potentially ensures the client is not allowed any access. What if the source address of the  802.11 frame is the broadcast address (ff:ff:...:ff)? The source address can never be the broadcast address, but if the AP has not been implemented with the proper sanity checks, it may try to ensure that "this client" is not allowed to connect to the network. As a result, it disassociates "this client", that is, all clients (broadcast address). A single frame can trigger autoimmunity disorder and cause the AP to turn hostile against its own clients.&lt;br /&gt;&lt;br /&gt;Since these are new malicious frames, not available in the current WIDS signature databases (time to update them!),  plus it is the AP the final device originating the DoS over the legitimate clients, and because the attacker needs a lower injection rate to keep the DoS going on (vs. the standard  deauthentication or disassociation DoS floods), it might be slightly more difficult to detect these attacks.&lt;br /&gt;&lt;br /&gt;The second part of the presentation demonstrates a similar scenario against 802.11w-aware AP's. &lt;a href="http://grouper.ieee.org/groups/802/11/Reports/tgw_update.htm"&gt;802.11w&lt;/a&gt; (or MFP, Management Frame Protection) is an upcoming specification that promises to protect (through authentication, encryption and integrity) non-data 802.11 frames. Unfortunately, some time ago &lt;a href="https://edge.arubanetworks.com/blog/2007/05/what-mfp-will-do-your-wlan-short-story-not-much"&gt;we discovered that only a few management frames will be protected&lt;/a&gt; by it, leaving other management frames and control frames unprotected, still exposing WiFi networks to DoS attacks. Additionally, autoimmunity disorder opens a new door through which DoS attacks can still be launched due to 802.11w-aware AP's with implementation flaws.&lt;br /&gt;&lt;br /&gt;A very brief preview of the presentation can be found &lt;a href="http://www.raulsiles.com/downloads/Preview-SelfDoS-DefCon16-v1.0.pdf"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Although some people still think deploying a wireless network using WPA or WPA2 is enough to protect the network, you can easily learn this is not the case. Check the latest papers on &lt;a href="http://www.raulsiles.com/resources/wifi.html"&gt;my wireless security Web page&lt;/a&gt;, or the recently updated SANS "&lt;a href="http://www.sans.org/training/description.php?mid=3"&gt;Wireless Ethical Hacking, Penetration Testing, and Defenses&lt;/a&gt;" course I teach in Europe (a whole new set of contents has been added, including lots of new labs, the new FreeRadius-WPE attacks, wireless fuzzing, attacks against other wireless technologies, new sections covering Bluetooth, and a full update to the complementary SWAT kit). We need to deal with lots of recent wireless threats, complex and advanced rogue devices, 802.11n intrusion detection constraints and new attacks, extended wireless client attacks, new EAP implementation flaws, as well as multiple DoS scenarios, and protect other common wireless technologies, like Bluetooth. In the case of autoimmunity disorder, we definitely need a better secure software development cycle for all 802.11 products, including AP's and client software, such as wireless card drivers.&lt;br /&gt;&lt;br /&gt;As complementary information (for those reading till the end of my long posts ;), there is a new free online wireless tool to simulate 802.11n coverage, called &lt;a href="http://www.airtightnetworks.com/home/solutions/80211n/80211n-wlan-coverage-estimator.html"&gt;802.11n WLAN Coverage Estimator&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;P.S: Thanks to Della Lowe and Pravin Bhagwat, CTO, for bringing up this issue to my attention and for the first hand Defcon preview.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-2713991015461319913?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/2713991015461319913/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=2713991015461319913" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2713991015461319913?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/2713991015461319913?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/08/autoimmunity-disorder-in-wireless-lans.html" title="Autoimmunity disorder in Wireless LANs" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;DUcNQn49fip7ImA9WxRbGEU.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-5435043243309957244</id><published>2008-08-03T12:39:00.012+02:00</published><updated>2008-12-10T06:31:33.066+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-10T06:31:33.066+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Windows" /><title>WebDAV with SSL on VISTA</title><content type="html">A while ago I posted an article about WebDAV and SSL on Windows and in the comments some debate was raised about whether Vista supported SSL for WebDAV or not. I hope this article clarifies the question.&lt;br /&gt;&lt;br /&gt;In short, Windows Vista DOES support SSL for WebDAV, at least with SP1 and fully patched through Windows Update as of July 26, 2008.&lt;br /&gt;&lt;br /&gt;This is the setup I have tested.&lt;br /&gt;&lt;br /&gt;Server:&lt;br /&gt;IIS 6.0 running on Windows Server 2003 R2 Ent. Edition. Service Pack 1. English version. Serving www.example.org on port 80 (HTTP) and on port 443 (HTTPS). Server certificate signed by a Windows enterprise root CA ("Example Root CA"). Sharing through WebDAV the following folder: http(s)://www.example.org/shared-webdav. Anonymous access allowed.&lt;br /&gt;&lt;br /&gt;Client:&lt;br /&gt;Windows Vista Ultimate Service Pack 1. English version. Certificate of the root CA ("Example Root CA") imported on the local computer Trusted Root Certification Authorities certificate store (this is important, see note below about a "Select Certificate" dialog box).&lt;br /&gt;&lt;br /&gt;Command used to map the webdav folder:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;net use * https://www.example.org/shared-webdav&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Output from that command: (blank lines removed)&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;---&lt;br /&gt;C:\Users\admin&gt;net use * https://www.example.org/shared-webdav&lt;br /&gt;Drive Z: is now connected to https://www.example.org/shared-webdav.&lt;br /&gt;The command completed successfully.&lt;br /&gt;C:\Users\admin&gt;net use&lt;br /&gt;New connections will be remembered.&lt;br /&gt;Status Local Remote Network&lt;br /&gt;------------------------------------------------------------------&lt;br /&gt;Z: file://www.example.org@ssl/shared-webdav Web Client Network&lt;br /&gt;The command completed successfully.&lt;br /&gt;C:\Users\admin&gt;type z:\hello1.txt&lt;br /&gt;This is file hello1.txt&lt;br /&gt;C:\Users\admin&gt;&lt;br /&gt;---&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The network traces showed all traffic going through SSL, as expected.&lt;br /&gt;&lt;br /&gt;If, however, the certificate presented by the web server is not signed by a CA trusted by the client, you are presented with a "Select Certificate" dialog box with an empty list of certificates, with only the option "Cancel" available:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_2Y3z-Jzx2qM/SJWL7-WDzCI/AAAAAAAAAAU/Ug9ZB13iyag/s1600-h/select_certificate.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5230240404724763682" style="margin: 0px auto 10px; display: block; text-align: center;" alt="" src="http://2.bp.blogspot.com/_2Y3z-Jzx2qM/SJWL7-WDzCI/AAAAAAAAAAU/Ug9ZB13iyag/s320/select_certificate.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As soon as you click Cancel the command fails with the following error message, which, granted, doesn't give much of a clue as to what the real problem is:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;---&lt;br /&gt;C:\Users\admin&gt;net use * https://www.example.org/shared-webdav&lt;br /&gt;System error 1223 has occurred.&lt;br /&gt;The operation was canceled by the user.&lt;br /&gt;C:\Users\admin&gt;&lt;br /&gt;---&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I hope this helps.&lt;br /&gt;&lt;br /&gt;David.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-5435043243309957244?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/5435043243309957244/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=5435043243309957244" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/5435043243309957244?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/5435043243309957244?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/08/webdav-with-ssl-on-vista.html" title="WebDAV with SSL on VISTA" /><author><name>David Perez</name><uri>http://www.blogger.com/profile/17217131289266744808</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="16697011480779516347" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_2Y3z-Jzx2qM/SJWL7-WDzCI/AAAAAAAAAAU/Ug9ZB13iyag/s72-c/select_certificate.bmp" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></entry><entry gd:etag="W/&quot;DUcNQn05fip7ImA9WxRbGEU.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-7645624359616392286</id><published>2008-07-23T09:49:00.009+02:00</published><updated>2008-12-10T06:31:33.326+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-10T06:31:33.326+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="NETinVM" /><title>NETinVM: A whole network in a single virtual machine</title><content type="html">Have you ever wished you had a full network lab available to you, full with different networks and systems, where you could try out different tools and techniques whenever you wanted? Maybe to learn about some tool, or to teach or demonstrate some tool to others, or to develop and test a new tool?&lt;br /&gt;&lt;br /&gt;Well, we have, and that's why we developed &lt;a href="http://www.netinvm.org"&gt;NETinVM&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;Consider the following network diagram:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_2Y3z-Jzx2qM/SIbomeJUJ8I/AAAAAAAAAAM/1bqCZqsGNZE/s1600-h/netinvm_general.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_2Y3z-Jzx2qM/SIbomeJUJ8I/AAAAAAAAAAM/1bqCZqsGNZE/s320/netinvm_general.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5226120165234845634" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The system labeled "VMWARE" (base.example.net) is a VMware virtual system running in the system labeled "REAL COMPUTER". All other computers depicted in the diagram are User Mode Linux virtual systems running inside the VMWARE system (base.example.net). &lt;br /&gt;&lt;br /&gt;Here is the beauty of it: all you need to set up and run this whole network environment is just one real computer running VMware Player (or Workstation or Server) and a copy of the image of the VMWARE system (base.example.net). That image is what we call NETinVM and we have made it publicly available. You can download a copy of NETinVM from &lt;a href="http://www.netinvm.org"&gt;http://www.netinvm.org&lt;/a&gt;, where you will also find documentation and more details about the tool.&lt;br /&gt;&lt;br /&gt;In future posts I'll describe some of the features of NETinVM but if you can't wait you are most welcome to go ahead, download and start using it, and, if you are kind enough, let us know what you think of it via e-mail or blog commment.&lt;br /&gt;&lt;br /&gt;We hope you find it useful.&lt;br /&gt;&lt;br /&gt;David Perez&lt;br /&gt;Carlos Perez&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-7645624359616392286?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/7645624359616392286/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=7645624359616392286" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/7645624359616392286?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/7645624359616392286?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/07/netinvm-whole-network-in-single-virtual.html" title="NETinVM: A whole network in a single virtual machine" /><author><name>David Perez</name><uri>http://www.blogger.com/profile/17217131289266744808</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="16697011480779516347" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_2Y3z-Jzx2qM/SIbomeJUJ8I/AAAAAAAAAAM/1bqCZqsGNZE/s72-c/netinvm_general.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total></entry><entry gd:etag="W/&quot;CU8BSHwyeCp7ImA9WxNUE08.&quot;"><id>tag:blogger.com,1999:blog-31571948.post-885091894509609362</id><published>2008-07-18T17:14:00.006+02:00</published><updated>2009-11-04T09:37:39.290+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-04T09:37:39.290+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="book" /><title>Security Book Review: "Penetration Tester's - Open Source Toolkit Volume 2"</title><content type="html">&lt;span style="font-weight: bold;"&gt;"Penetration Tester's - Open Source Toolkit Volume 2"&lt;/span&gt;&lt;br /&gt;Authors: Aaron Bayles, et. al.&lt;br /&gt;Editorial: Syngress&lt;br /&gt;Publication date: October 12, 2007&lt;br /&gt;ISBN-10: 1597492132&lt;br /&gt;ISBN-13: 978-1597492133&lt;br /&gt;&lt;a href="http://www.elsevierdirect.com/product.jsp?isbn=9781597492133"&gt;&lt;span&gt;http://www.elsevierdirect.com/product.jsp?isbn=9781597492133&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/1597492132?ie=UTF8&amp;amp;tag=ra06-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1597492132"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 130px; height: 160px;" src="http://1.bp.blogspot.com/_NSH9SH7V1yY/SvE9Fub_AhI/AAAAAAAAAJE/sip65RyNIaQ/s320/51YRsX92NlL._SL160_.jpg" alt="" id="BLOGGER_PHOTO_ID_5400164596767982098" border="0" /&gt;&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=ra06-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1597492132" alt="" style="border: medium none  ! important; margin: 0px ! important;" border="0" height="1" width="1" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-style: italic;"&gt;NOTE&lt;/span&gt;: My copy of the book is not authored by &lt;/span&gt;Chris Hurley, as other book references on the Internet show, although they have the same ISBN, ¿?.&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Summary&lt;/span&gt;: A good generic penetration testing reference guide. It includes a wide range of topics, and it is just based on open-source tools.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Score&lt;/span&gt;: 4/5&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Review&lt;/span&gt;:&lt;br /&gt;Penetration testing is definitely a recommended security discipline that helps you find real vulnerabilities and security wholes before the adversary does. This book is a reference guide of the different penetration testing stages and considerations, covering a wide range of technologies and tools. It is just focused on open-source and freely available tools, and do not include any commercial counterparts, like Core Impact or the specialized Web application testing suites. Perhaps this is a good addition for a future edition without the "open-source" term on its title.&lt;br /&gt;&lt;br /&gt;The wide scope of the book is one of the reasons why it is not extremely cutting-edge and does not go into the deep details required to master each topic covered. I completely understand it is not possible to create such a book (at least with less than 9999 pages), covering a wide range of topics and including in-depth details. Overall, this book is a good reference guide (in fact one of the few generic references) that will open the door for more advanced knowledge from other books focused on specific areas, such as wireless, Web applications, databases, etc.&lt;br /&gt;&lt;br /&gt;Something that can be quickly appreciated is the involvement of multiple authors, as the quality and look and feel of chapters varies. I specially liked the first two chapters, focused on Recon, Enumeration and Scanning. Even if you're an experience pen-tester, I've been doing penetration tests since 2000, you can easily identify the positive SensePost influence on these chapters, and the section contains valuable tips and tricks. At some extent, the "you always have something new to learn" principle applies here.&lt;br /&gt;&lt;br /&gt;The book is really good emphasizing best practices and suggestions from a professional pen-testing perspective. When running tests over production environments, there are lots of considerations to need to have in mind, beyond the pure attack techniques. The book does an excellent work on this area, and this is also ratified by the final chapter detailing how to build your own pen-testing lab, including common political and technical issues (I can confirm I've seen lots of them in real world situations). Once you run pen-tests frequently, you need to customize and build your own scripts and tool set. The book also emphasizes this by explaining how to customize the Backtrack CD with your own additions. Definitely, it is a good approach as Backtrack is the reference pen-testing Linux Live CD distribution nowadays.&lt;br /&gt;&lt;br /&gt;At first sight, the book structure is a bit strange and it seems there is a lot of repetition on each and every chapter, but once you get used to it, I think is a great approach. Each chapter introduces the goals and scope, then covers the technologies (or pen-testing phases) analyzed, plus the hacking techniques and vulnerabilities involved, and after that it focuses on the tools required to implement the attacks and how to use them, with practical and detailed examples.&lt;br /&gt;It is crucial to differentiate between the techniques and foundations, and the tools, as multiple tools can be used for the same attack, sometimes you do not even need any hacking tool, and new tools will come in the future. I recommend you to master the techniques, the attack principles, and understand the vulnerabilities, and from there, select the best tool on each case. All this structure is complemented with a final case studies subsection on each chapter that exemplifies real-world situations where the techniques and tools can be applied, and how.&lt;br /&gt;&lt;br /&gt;The databases, wireless and network devices hacking chapters are good. They provide some insight in the methodology, hacking tools and techniques available for these type of targets. The database hacking focuses on MS SQL Server and Oracle, for sure the most common DB's available out there. The wireless section mainly focuses on WiFi, and Bluetooth is barely mentioned; not enough. And finally, the network devices chapter is a must, as these systems are typically forgotten, although they manage all the network traffic and are a critical IT component of any organization.&lt;br /&gt;&lt;br /&gt;In particular, I didn't like too much the Web application chapter. Although it contains lots of tools references, the structure and methodology presented is not very clear, and there is a kind of mix of tools to perform different tasks. Because Web application pen-testing is one of the cutting-edge areas we are dealing with today, I'd have liked to see more quality and in-depth material on it.&lt;br /&gt;&lt;br /&gt;From my point of view, the forensic chapter is not related at all with the book and I would completely remove it. There are other very good forensic books available, so I guess it has been included because the tools and infrastructure for basic forensic analysis is available on Backtrack.&lt;br /&gt;Instead, I would have liked to see more details, practical examples, and resources about vulnerable testing environments, such as the DVL (Damn Vulnerable Linux) distro, WebGoat, the Foundstone hackme suites; just to name a few, as well as Capture-the-Flag scenarios and conference references. It would be great to provide an overview on how to build and break into these testing environments using the tools and techniques covered throughout the book.&lt;br /&gt;&lt;br /&gt;I strongly recommend this book to people thinking about, or starting on, the penetration testing field. It provides a good and wide overview of topics you need to master, tools available to launch the appropriate attacks, and other pen-testing best practices. As the book is directly aligned with the Backtrack CD, unfortunately version 2 and not the latest version 3 (time for a new edition, including more Bluetooth stuff and adding VoIP hacking ;)), it has a direct and very strong hands-on component, that allows the reader to test the different tools and examples, and makes it very valuable.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;UPDATE&lt;/span&gt;: &lt;a href="http://www.amazon.com/review/product/1597492132/ref=dp_top_cm_cr_acr_txt?%5Fencoding=UTF8&amp;amp;showViewpoints=1"&gt;Amazon review (1st)&lt;/a&gt; and &lt;a href="http://www.bookpool.com/sm/1597492132#reviews"&gt;Bookpool review (1st)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31571948-885091894509609362?l=www.radajo.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.radajo.com/feeds/885091894509609362/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=31571948&amp;postID=885091894509609362" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/885091894509609362?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31571948/posts/default/885091894509609362?v=2" /><link rel="alternate" type="text/html" href="http://www.radajo.com/2008/07/security-book-review-penetration.html" title="Security Book Review: &quot;Penetration Tester's - Open Source Toolkit Volume 2&quot;" /><author><name>Raul Siles</name><uri>http://www.blogger.com/profile/15605985650569727525</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06086107966723329506" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_NSH9SH7V1yY/SvE9Fub_AhI/AAAAAAAAAJE/sip65RyNIaQ/s72-c/51YRsX92NlL._SL160_.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry></feed>
