<p>We have hundreds of websites which were developed in asp, .net and java and we are paying lot of money for an external agency to do a penetration testing for our sites to check for security loopholes. 
Are there any (good) software (paid or free) to do this? </p>

<p>or.. are there any technical articles which can help me develop this tool?</p>

[{'answer_id': 72311, 'author': 'willasaywhat', 'author_id': 12234, 'author_profile': 'https://Stackoverflow.com/users/12234', 'pm_score': 1, 'selected': False, 'text': "<p>I've heard good things about SpiDynamics WebInspect as far as paid solutions go, as well as Nikto (for a free solution) and other open source tools. Nessus is an excellent tool for infrastructure in case you need to check that layer as well. You can pick up a live cd with several tools on it called Nubuntu (Auditor, Helix, or any other security based distribution works too) and then Google up some tutorials for the specific tool. Always, always make sure to scan from the local network though. You run the risk of having yourself blocked by the data center if you scan a box from the WAN without authorization. Lesson learned the hard way. ;)</p>\n"}, {'answer_id': 72367, 'author': 'Steve g', 'author_id': 12092, 'author_profile': 'https://Stackoverflow.com/users/12092', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://www.nessus.org/nessus/" rel="nofollow noreferrer">http://www.nessus.org/nessus/</a> -- Nessus will help suggests ways to make your servers better.  It can\'t really test custom apps by itself, though I think the plugins are relatively easy to create on your own.</p>\n'}, {'answer_id': 72385, 'author': 'Andrew Harmel-Law', 'author_id': 2455, 'author_profile': 'https://Stackoverflow.com/users/2455', 'pm_score': 0, 'selected': False, 'text': '<p>Take a look at <a href="http://www-01.ibm.com/software/awdtools/appscan/" rel="nofollow noreferrer">Rational App Scan</a> (used to be called Watchfire).  Its not free, but has a nice UI, is dead powerful, generates reports (bespoke and against standard compliance frameworks such as Basel2) and I believe you can script it into your CI build.</p>\n'}, {'answer_id': 74513, 'author': 'tqbf', 'author_id': 5674, 'author_profile': 'https://Stackoverflow.com/users/5674', 'pm_score': 7, 'selected': True, 'text': '<p>There are a couple different directions you can go with automated testing tools for web applications.</p>\n\n<p>First, there are the <strong>commercial web scanners</strong>, of which HP WebInspect and Rational AppScan are the two most popular. These are "all-in-one", "fire-and-forget" tools that you download and install on an internal Windows desktop and then give a URL to spider your site, scan for well-known vulnerabilities (ie, the things that have hit Bugtraq), and probe for cross-site scripting and SQL injection vulnerabilities. </p>\n\n<p>Second, there are the <strong>source-code scanning tools</strong>, of which Coverity and Fortify are probably the two best known. These are tools you install on a developer\'s desktop to process your Java or C# source code and look for well-known patterns of insecure code, like poor input validation. </p>\n\n<p>Finally, there are the <strong>penetration test tools</strong>. By far the most popular web app penetration testing tool among security professionals is Burp Suite, which you can find at <a href="http://www.portswigger.net/proxy" rel="noreferrer">http://www.portswigger.net/proxy</a>. Others include Spike Proxy and OWASP WebScarab. Again, you\'ll install this on an internal Windows desktop. It will run as an HTTP proxy, and you\'ll point your browser at it. You\'ll use your applications as a normal user would, while it records your actions. You can then go back to each individual page or HTTP action and probe it for security problems.</p>\n\n<p>In a complex environment, and especially if you\'re considering anything DIY, <strong>I strongly recommend the penetration testing tools</strong>. Here\'s why:</p>\n\n<p>Commercial web scanners provide a lot of "breadth", along with excellent reporting. However:</p>\n\n<ul>\n<li><p>They tend to miss things, because every application is different.</p></li>\n<li><p>They\'re expensive (WebInspect starts in the 10\'s of thousands).</p></li>\n<li><p>You\'re paying for stuff you don\'t need (like databases of known bad CGIs from the \'90s).</p></li>\n<li><p>They\'re hard to customize.</p></li>\n<li><p>They can produce noisy results.</p></li>\n</ul>\n\n<p>Source code scanners are more thorough than web scanners. However:</p>\n\n<ul>\n<li><p>They\'re even more expensive than the web scanners.</p></li>\n<li><p>They require source code to operate.</p></li>\n<li><p>To be effective, they often require you to annotate your source code (for instance, to pick out input pathways).</p></li>\n<li><p>They have a tendency to produce false positives.</p></li>\n</ul>\n\n<p>Both commercial scanners and source code scanners have a bad habit of becoming shelfware. Worse, even if they work, their cost is comparable to getting 1 or 2 entire applications audited by a consultancy; if you trust your consultants, you\'re guaranteed to get better results from them than from the tools. </p>\n\n<p>Penetration testing tools have downsides too:</p>\n\n<ul>\n<li><p>They\'re much harder to use than fire-and-forget commercial scanners.</p></li>\n<li><p>They assume some expertise in web application vulnerabilities --- you have to know what you\'re looking for.</p></li>\n<li><p>They produce little or no formal reporting.</p></li>\n</ul>\n\n<p>On the other hand:</p>\n\n<ul>\n<li><p>They\'re much, much cheaper --- the best of the lot, Burp Suite, costs only 99EU, and has a free version.</p></li>\n<li><p>They\'re easy to customize and add to a testing workflow.</p></li>\n<li><p>They\'re much better at helping you "get to know" your applications from the inside.</p></li>\n</ul>\n\n<p>Here\'s something you\'d do with a pen-test tool for a basic web application:</p>\n\n<ol>\n<li><p>Log into the application through the proxy</p></li>\n<li><p>Create a "hit list" of the major functional areas of the application, and exercise each once.</p></li>\n<li><p>Use the "spider" tool in your pen-test application to find all the pages and actions and handlers in the application.</p></li>\n<li><p>For each dynamic page and each HTML form the spider uncovers, use the "fuzzer" tool (Burp calls it an "intruder") to exercise every parameter with invalid inputs. Most fuzzers come with basic test strings that include:</p>\n\n<ul>\n<li><p>SQL metacharacters</p></li>\n<li><p>HTML/Javascript escapes and metacharacters</p></li>\n<li><p>Internationalized variants of these to evade input filters</p></li>\n<li><p>Well-known default form field names and values</p></li>\n<li><p>Well-known directory names, file names, and handler verbs</p></li>\n</ul></li>\n<li><p>Spend several hours filtering the resulting errors (a typical fuzz run for one form might generate 1000 of them) looking for suspicious responses.</p></li>\n</ol>\n\n<p>This is a labor-intensive, "bare-metal" approach. But when your company owns the actual applications, the bare-metal approach pays off, because you can use it to build regression test suites that will run like clockwork at each dev cycle for each app. This is a win for a bunch of reasons:</p>\n\n<ul>\n<li><p>Your security testing will take a predictable amount of time and resources per application, which allows you to budget and triage.</p></li>\n<li><p>Your team will get maximally accurate and thorough results, since your testing is going to be tuned to your applications.</p></li>\n<li><p>It\'s going to cost less than commercial scanners and less than consultants.</p></li>\n</ul>\n\n<p>Of course, if you go this route, you\'re basically turning yourself into a security consultant for your company. I don\'t think that\'s a bad thing; if you don\'t want that expertise, WebInspect or Fortify isn\'t going to help you much anyways. </p>\n'}, {'answer_id': 74668, 'author': 'AviD', 'author_id': 10080, 'author_profile': 'https://Stackoverflow.com/users/10080', 'pm_score': 2, 'selected': False, 'text': '<p>I know you asked specifically about pentesting tools, but since those have been amply answered (I usually go with a mix of AppScan and trained pentester), I think it\'s important to point out that <em>pentesting is not the only way to "check for security loopholes", and is often <strong>not the most effective</strong>.</em> </p>\n\n<p>Source code review tools can provide you with much better visibility into your codebase, and find many flaws that pentesting won\'t. </p>\n\n<p>These include Fortify and OunceLabs (expensive and for many languages), VisualStudio.NET CodeAnalysis (for .NET and C++, free with VSTS, decent but not great), OWASP\'s LAPSE for Java (free, decent not great), CheckMarx (not cheap, fanTASTic tool for .NET and Java, but high overhead), and many more.</p>\n\n<p>An important point you must note - (most of) the automated tools do not find all the vulnerabilities, not even close. You can expect the automated tools to find approximately 35-40% of the secbugs that would be found by a professional pentester; the same goes for automated vs. manual source code review.</p>\n\n<p>And of course a proper SDLC (Security Development Lifecycle), including Threat Modeling, Design Review, etc, will help even more...</p>\n'}, {'answer_id': 75030, 'author': 'oglester', 'author_id': 2017, 'author_profile': 'https://Stackoverflow.com/users/2017', 'pm_score': -1, 'selected': False, 'text': '<p><a href="https://www.mcafeesecure.com/" rel="nofollow noreferrer">formerly hackersafe McAfee Secure.</a></p>\n'}, {'answer_id': 82238, 'author': 'woany', 'author_id': 15623, 'author_profile': 'https://Stackoverflow.com/users/15623', 'pm_score': 2, 'selected': False, 'text': '<p>McAfee Secure is not a solution. The service they provide is a joke.</p>\n\n<p>See below:</p>\n\n<p><a href="http://blogs.zdnet.com/security/?p=1092&amp;tag=rbxccnbzd1" rel="nofollow noreferrer">http://blogs.zdnet.com/security/?p=1092&amp;tag=rbxccnbzd1</a><br>\n<a href="http://blogs.zdnet.com/security/?p=1068&amp;tag=rbxccnbzd1" rel="nofollow noreferrer">http://blogs.zdnet.com/security/?p=1068&amp;tag=rbxccnbzd1</a><br>\n<a href="http://blogs.zdnet.com/security/?p=1114&amp;tag=rbxccnbzd1" rel="nofollow noreferrer">http://blogs.zdnet.com/security/?p=1114&amp;tag=rbxccnbzd1</a></p>\n'}, {'answer_id': 298309, 'author': 'mhd', 'author_id': 38515, 'author_profile': 'https://Stackoverflow.com/users/38515', 'pm_score': 0, 'selected': False, 'text': '<p>How about <a href="http://www.cirt.net/nikto2" rel="nofollow noreferrer">nikto</a> ?</p>\n'}, {'answer_id': 1584390, 'author': 'marco0009', 'author_id': 129751, 'author_profile': 'https://Stackoverflow.com/users/129751', 'pm_score': 0, 'selected': False, 'text': '<p>For this type of testing you really want to be looking at some type of fuzz tester. <a href="http://www.immunitysec.com/resources-freesoftware.shtml" rel="nofollow noreferrer">SPIKE Proxy</a> is one of a couple of fuzz testers for web apps. It is open source and written in Python. I believe there are a couple of videos from BlackHat or DefCON on using SPIKE out there somewhere, but I\'m having difficulty locating them.</p>\n\n<p>There are a couple of high end professional software packages that will do the web app testing and much more. One of the more popular tools would be <a href="http://www.coresecurity.com/content/security-testing-and-penetration-testing-products-and-services" rel="nofollow noreferrer">CoreImpact</a></p>\n\n<p>If you do plan on going through with the Pen Testing on your own I highly recommend you read through much of the <a href="http://www.owasp.org/index.php/Category:OWASP_Project" rel="nofollow noreferrer">OWASP Project\'s documentation</a>. Specifically the OWASP Application Security Verification and Testing/Development guides. The mindset you need to thoroughly test your application is a little different than your normal development mindset (not that it SHOULD be different, but it usually is).</p>\n'}, {'answer_id': 2145349, 'author': 'Justin Lawrence', 'author_id': 24176, 'author_profile': 'https://Stackoverflow.com/users/24176', 'pm_score': 0, 'selected': False, 'text': '<p>what about <a href="http://code.google.com/p/ratproxy/" rel="nofollow noreferrer" title="ratproxy">rat proxy</a>? </p>\n\n<blockquote>\n  <p>A semi-automated, largely passive web\n  application security audit tool,\n  optimized for an accurate and\n  sensitive detection, and automatic\n  annotation, of potential problems and\n  security-relevant design patterns\n  based on the observation of existing,\n  user-initiated traffic in complex web\n  2.0 environments.</p>\n  \n  <p>Detects and prioritizes broad classes\n  of security problems, such as dynamic\n  cross-site trust model considerations,\n  script inclusion issues, content\n  serving problems, insufficient XSRF\n  and XSS defenses, and much more</p>\n  \n  <p>Ratproxy is currently believed to support Linux, FreeBSD, MacOS X, and Windows (Cygwin) environments.</p>\n</blockquote>\n'}, {'answer_id': 3473995, 'author': 'user419175', 'author_id': 419175, 'author_profile': 'https://Stackoverflow.com/users/419175', 'pm_score': 0, 'selected': False, 'text': '<p>I know you asked specifically about pentesting tools, but since those have been amply answered (I usually go with a mix of AppScan and trained pentester), I think it\'s important to point out that pentesting is not the only way to "check for security loopholes", and is often not the most effective.</p>\n\n<p>Source code review tools can provide you with much better visibility into your codebase, and find many flaws that pentesting won\'t.</p>\n\n<p>These include Fortify and OunceLabs (expensive and for many languages), VisualStudio.NET CodeAnalysis (for .NET and C++, free with VSTS, decent but not great), OWASP\'s LAPSE for Java (free, decent not great), CheckMarx (not cheap, fanTASTic tool for .NET and Java, but high overhead), and many more.</p>\n\n<p>An important point you must note - (most of) the automated tools do not find all the vulnerabilities, not even close. You can expect the automated tools to find approximately 35-40% of the secbugs that would be found by a professional pentester; the same goes for automated vs. manual source code review.</p>\n\n<p>And of course a proper SDLC (Security Development Lifecycle), including Threat Modeling, Design Review, etc, will help even more...</p>\n'}, {'answer_id': 5880834, 'author': 'lisa1987', 'author_id': 867462, 'author_profile': 'https://Stackoverflow.com/users/867462', 'pm_score': 1, 'selected': False, 'text': '<p>Skipfish, w3af, arachni, ratproxy, ZAP, WebScarab : all free and very good IMO</p>\n'}]
['https://Stackoverflow.com/questions/72166', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/12178/']