<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp" />
  <link rel="self" type="application/atom+xml" href="http://blog.tmcnet.com/blog/tom-keating/atom.xml" />
  <id>tag:blog.tmcnet.com,2013:/blog/tom-keating//4/tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041-</id>
  <updated>2013-02-22T21:04:40Z</updated>
  <title>Comments for Analysis of a VoIP Attack</title>
  <subtitle>VoIP &amp; Gadgets blog - Latest news in VoIP &amp; gadgets, wireless, mobile phones, reviews, &amp; opinions</subtitle>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.38</generator>
  <entry>
    <id>tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041</id>
    <link rel="alternate" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp" />
    <link rel="service.edit" type="application/atom+xml" href="http://blog.tmcnet.com/mt/mt-atom.cgi/weblog/blog_id=4/entry_id=38041" title="Analysis of a VoIP Attack" />
    <published>2008-10-23T15:00:43Z</published>
    <updated>2008-10-23T14:55:53Z</updated>
    <title>Analysis of a VoIP Attack</title>
    <summary>VoIP security is often overlooked by IT administrators as well as VARs and resellers that deploy VoIP in the enterprise. They do so at their own peril, however. One of the main factors behind using VoIP is to save money....</summary>
    <author>
      <name>Tom Keating</name>
      <uri>http://blog.tmcnet.com/blog/tom-keating/</uri>
    </author>
    
    <category term="Asterisk" />
    
    <category term="SIP" />
    
    <category term="TMCnet" />
    
    <category term="VoIP" />
    
    <content type="html" xml:lang="en" xml:base="http://blog.tmcnet.com/blog/tom-keating/">
      <![CDATA[VoIP security is often overlooked by IT administrators as well as VARs and resellers that deploy VoIP in the enterprise. They do so at their own peril, however. One of the main factors behind using VoIP is to save money. Well imagine your IP-PBX has been hacked and you don't notice anything wrong until you receive the next phone bill with hundreds or thousands of dollars in phone charges. There goes all the savings you anticipated when you decided to install VoIP!<br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img height="222" width="519" alt="star-trek-deflector-shields-borg.jpg" src="http://blog.tmcnet.com/blog/tom-keating/images/star-trek-deflector-shields-borg.jpg" class="mt-image-none" style="" /></span><br /><br />This laissez faire towards defensive security reminds me of Star Trek, where for whatever reason the Enterprise flies through space with danger lurking around every corner but they keep their defensive deflector shields <b>off </b>and often turn them on when it's too late. The Enterprise has a fusion reactor with nearly limitless power, so why not keep the deflector shields on all the time? Maybe they're just being "green" and shooting for five nines (99.999%)&#160; of efficiency. <img alt="" src="http://blog.tmcnet.com/mt-static/plugins/FCKeditor/fckeditor/editor/images/smiley/msn/wink_smile.gif" /><br /><br />In any event, security in general is often overlooked, whether it's securing your web server or your email server, or confidential database servers. But in most cases when these particular systems are hacked it's usually just an inconvenience (defaced web pages, spamming through your email server) with minimal financial impact. Not so when it comes to VoIP. The financial impacts of a hacked SIP server or VoIP gateway could be tremendous. This is especially true for larger organizations which already have hundreds or thousands of calls per month, including international business calls. How does accounting find the fraudulent calls in the phone bills which are 4 inches thick? It's like finding the proverbial needle in a haystack.<br /><br />If the hackers are smart, they will limit the amount of traffic they route through a hacked gateway as not to set off any red flags. It could be months or possibly even years before anyone notices anything is amiss. I'm reminded of an old PBX technology called DISA (Dialed In Switch Access) which was one of hackers first tricks to get free calling. DISA was designed to allow employees to remotely call into the PBX and get second dial-tone. With this second dial-tone using touchtones they could logon to ACD queues, monitor agents calls, and of course initiate outbound calls.<br /><br />In fact, many years ago, TMC was hit with a DISA-like attack on our Comdial PBX resulting in quite a few international calls. If I recall, there was a vulnerability in the Keyvoice voicemail system which allowed someone to make outbound calls. Needless to say, I was able to shut it down pretty quickly.<br /><br />Part of the attack also involved using a scripted dialer which accessed the voicemail system by automatically sending the # key, then sending a chosen extension (say 100), and then iterating through all the various PINs (0000 - 9999). Since TMC has a toll-free 800 number, the attacker only has to make at most 10,000 calls to find a PIN to a particular extension. Obviously, chances are they'd find the script in much less than 10,000 calls and you get 3 tries before the voicemail hangs up. Once the PIN is found, not only does the attacker have access to the the user's voicemail, they also have access to any DISA capabilities of the voicemail system. <b>More reason why IP-PBXs today need to have a PIN expiration feature just like Active Directory supports password expiration. </b>No matter how many times IT staff reminds employees to change their passwords/PINs, they <i>just don't do</i> it unless the system <i>forces </i>them to. I don't believe any of the Asterisk systems I've tested have password expiration - so my open source Asterisk fans, if you're listening, add it to the code, will ya? <img src="http://blog.tmcnet.com/mt-static/plugins/FCKeditor/fckeditor/editor/images/smiley/msn/wink_smile.gif" alt="" /><br /><br />With all this in mind, I was fascinated to read an article by an Austrian company <a href="http://www.ipcom.at/">IPCom</a> titled "Analysis of a VoIP Attack". It's an excellent read. Let me give you the abstract:<blockquote><div>Recently, several IT news websites reported VoIP attacks against home users, containing lots of myths and incorrect statements. Unfortunately, they also give wrong security advices. This article analyzes the attacks and describes the motivations behind. Further, it shows simple workarounds how "insecure" software can be used in a secure way.</div></blockquote>Here's a teaser:<br /><br /><b>1 The Attack</b><br />1.1 Analysis<br />On 23.09.2008, heise.de reported an attack against VoIP devices of German VoIP users [heise]. This article references a thread in the IP-Phone-Forum [ipphone] in which people report that their VoIP phones started ringing in the middle of the night and displayed incoming calls from the phone number 5199362832664. One of the users presented a log file of a Patton SIP device which captured the suspect INVITE request:<br /><br /><span style="font-size: smaller;">02:12:42 SIP_TR&gt; [GW] &lt; Stack: from 213.130.74.70:3808<br />INVITE sip:810525551690000@1.2.3.4;transport=udp SIP/2.0<br />Via: SIP/2.0/UDP 213.130.74.70:3808;branch=100100101101011111101110<br />00100213.130.74.701.2.3.41863480914;rport<br />Max-Forwards: 100<br />From: &lt;sip:5199362832664@1.2.3.4&gt;;tag=21671132663-<br />4985269162167113266321671132663213.130.74.70<br />To: &lt;sip:810525551690000@1.2.3.4&gt;<br />Call-ID: 83764811100011101110010010110101101100111001001011<br />0101111110111000100213.130.74.701.2.3.41863480914f<br />df23881052555169000021671132663-<br />4509759162167113266321671132663213.130.74.70174046 6380<br />CSeq: 1 INVITE<br />Contact: &lt;sip:fdf238@213.130.74.70:3808;transport=udp&gt;<br />Content-Type: application/sdp<br />Allow: ACK, BYE, CANCEL, INFO, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER, SUBSCRIBE, UPDATE, PUBLISH<br />User-Agent: X-Lite release 1006e stamp 34025<br />Content-Length: 394</span><br /><br />Let's have a look at this SIP message. The funny thing is that absolutely nothing in this SIP message is trustworthy: Probably the SIP message has been received via UDP and the source IP address could be easily spoofed. Further, every data in the SIP message is user generated (in this case by the attacker) and does not necessarily reflect real data. Nevertheless, let us try to analyze the message:<ul><li>Source IP address 213.130.74.70 and source port 3808: Although the IP address could be easily spoofed, in this case it may be the real address of the attacker as the IP address is also present in the Via: header (used for sending back responses). Further, if the attacker wants to know the result of the attack, he has to receive the SIP responses meaning that he has to provide his real IP address.</li><li>The Call-ID looks like a random string and contains the source IP address. As the Call-ID is invalid (per RFC 3261 the Call-ID must not contain spaces), it can be assumed that the attacker did not use a fullfledged SIP stack, but some scripts to generate the request.</li><li>The User-Agent header displays "X-Lite" as client. However, if you compare the above request with an INVITE request sent by X-Lite you will find out that the random strings (call-id, tags, branch</li></ul>Ok, you've been thoroughly 'teased', now go <a href="http://www.ipcom.at/fileadmin/public/2008-10-22_Analysis_of_a_VoIP_Attack.pdf">read the full article (PDF)</a>. Good stuff! <img alt="" src="http://blog.tmcnet.com/mt-static/plugins/FCKeditor/fckeditor/editor/images/smiley/msn/thumbs_up.gif" /><br />]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041-comment:40105</id>
    <thr:in-reply-to ref="tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp"/>
    <link rel="alternate" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp#c40105" />
    <title>Comment from Ward Mundy on 2008-10-23</title>
    <author>
        <name>Ward Mundy</name>
        <uri>http://nerdvittles.com/</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://nerdvittles.com/">
        <![CDATA[<p>A very timely article! When we introduced PBX in a Flash, we were the first Asterisk aggregation to include a preconfigured IPtables firewall in the default installation. But the bad guys have gotten more sophisticated. Just recently, we've added the latest release of Fail2Ban to all PBX in a Flash systems using our software update service. Fail2Ban blocks SIP and IAX attacks which are becoming more and more prevalent by locking IP addresses out of your server for a specified period of time whenever a designated number of invalid passwords are submitted. This pretty well secures most telephony systems except those where the user never bothered to change extension passwords that were preconfigured to match extension numbers. </p>

<p>BOTTOM LINE: If your server provides SIP or IAX access from the Internet (as most VoIP servers do), you'd better make darn sure ALL of your extension passwords are secure. After all, it's your phone bill.<br />
</p>]]>
    </content>
    <published>2008-10-23T16:59:30Z</published>
  </entry>

  <entry>
    <id>tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041-comment:40106</id>
    <thr:in-reply-to ref="tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp"/>
    <link rel="alternate" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp#c40106" />
    <title>Comment from Tom Keating on 2008-10-23</title>
    <author>
        <name>Tom Keating</name>
        <uri>http://blog.tmcnet.com/blog/tom-keating/</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://blog.tmcnet.com/blog/tom-keating/">
        <![CDATA[<p>Interesting stuff Ward. Neat idea to use iptables to lock out certain IP addresses for a certain period of time. I know iptables isn't "too" resource intensive, but is it OK to run on the same hardware as the phone system? Let me know your experience.</p>

<p>Also, any plans to add voicemail password expiration to PBX in a Flash?</p>

<p>Though really you'd also have to have a password expiration for the phone itself. As you know, many IP phones use the MAC address or the extension for both the username and the password when registering with the SIP server. Forcing users to periodically change the phone's password could be a chore. Either they have to logon to the phone's advanced settings (often locked by administrators) or use the web interface, which is also often password protected by admins. Giving users full access to the web interface isn't a good idea.</p>

<p>I suppose an outside hacker trying to guess the MAC address is very difficult since there are millions of combinations. Then again, someone "inside" the network could sniff out the IP phone's MAC addresses and then easily hack in.</p>

<p>What are your thoughts?</p>]]>
    </content>
    <published>2008-10-23T17:40:59Z</published>
  </entry>

  <entry>
    <id>tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041-comment:40107</id>
    <thr:in-reply-to ref="tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp"/>
    <link rel="alternate" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp#c40107" />
    <title>Comment from Ward Mundy on 2008-10-23</title>
    <author>
        <name>Ward Mundy</name>
        <uri>http://nerdvittles.com/</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://nerdvittles.com/">
        <![CDATA[<p>At least in our Asterisk and FreePBX world, it would be fairly easy to regularly and automatically refresh extension passwords and then flash all of the phones with the new passwords. All it would take is a few days of programming time from a paying customer to cover the development work. It would be especially easy with Aastra phones which could be rebooted remotely as part of the password refresh.</p>]]>
    </content>
    <published>2008-10-23T18:12:15Z</published>
  </entry>

  <entry>
    <id>tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041-comment:40110</id>
    <thr:in-reply-to ref="tag:blog.tmcnet.com,2008:/blog/tom-keating//4.38041" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp"/>
    <link rel="alternate" type="text/html" href="http://blog.tmcnet.com/blog/tom-keating/voip/analysis-of-a-voip-attack.asp#c40110" />
    <title>Comment from cosmicwombat.myopenid.com on 2008-10-23</title>
    <author>
        <name>cosmicwombat.myopenid.com</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>It is OK to run IPTables on the same hardware as the phone system. I'd actually say it is the correct place to place your rules as attacks happen from the inside too.</p>

<p>I'd like to applaud the PBX in a Flash team for being as aggressive as they have been in addressing known security holes and for providing the right tools to at least try and be a diligent VoIPologist.</p>

<p>I wonder how it would be to have FreePBX handle the lockdown of trunks? Regardless, it is a good idea to only allow SIP/IAX traffic to providers via IPTables and/or VPNed SIP clients.</p>]]>
    </content>
    <published>2008-10-23T22:29:42Z</published>
  </entry>

</feed>
