{"id":938,"date":"2017-04-26T20:10:02","date_gmt":"2017-04-27T00:10:02","guid":{"rendered":"http:\/\/www.rfdm.com\/blog\/?p=938"},"modified":"2017-04-27T18:29:26","modified_gmt":"2017-04-27T22:29:26","slug":"looking-at-synners-tcp-syn-data","status":"publish","type":"post","link":"https:\/\/www.rfdm.com\/blog\/?p=938","title":{"rendered":"Looking at &#8216;Synners&#8217; (TCP SYN data)"},"content":{"rendered":"<p>One of the many sets of data I collect with <tt>mcflow<\/tt> on my gateway is traffic counters for TCP SYN packets I receive but do not SYN ACK.  I keep the source IP address, the destination port, and of course timestamps and counters.  This type of data generally represents one of three things: probing for vulnerable services which I don&#8217;t run, probing for services I do run but block from offenders, or probing for botnet-controlled devices.<\/p>\n<p>The table below shows the top 10 ports for the current week.  In the case of ssh and http, I do run those services but <tt>mcblockd<\/tt> automatically blocks those who violate my configured policies.  I do not run a telnet server anywhere (my IoT devices are of my own design and use ECDH, 2048-bit RSA keys and AES128).  I also do not run MS SQL Server or rdp (Remote Desktop).  I have no Windows hosts, and if I did, I certainly wouldn&#8217;t expose MS SQL Server or Remote Desktop.<\/p>\n<p>Ports 7547 and 5358 are known to be used by Mirai and its descendants.  Port 7547 is also a common port used by broadband ISPs for TR-064 services (specifically, TR-069) to manage home routers.<\/p>\n<table width=\"100%\"; style=\"color: #87CEFA; background-color: #000; background: #000; font:1.1em Consolas, Monaco, monospace; border: none; border-collapse: collapse;\">\n<tr style=\"background-color: #404040; color: #FFF; border: none;\">\n<th align=left style=\"border: none;\">Port<\/th>\n<th align=right style=\"border: none;\">Packets<\/th>\n<th align=right style=\"border: none;\">Bytes<\/th>\n<\/tr>\n<tr>\n<td>22 (ssh)<\/td>\n<td align=right>22116<\/td>\n<td align=right>1168688<\/td>\n<\/tr>\n<tr>\n<td>23 (telnet)<\/td>\n<td align=right>3740<\/td>\n<td align=right>152784<\/td>\n<\/tr>\n<tr>\n<td>80 (http)<\/td>\n<td align=right>1601<\/td>\n<td align=right>99216<\/td>\n<\/tr>\n<tr>\n<td>1433 (ms-sql-s)<\/td>\n<td align=right>1279<\/td>\n<td align=right>52288<\/td>\n<\/tr>\n<tr>\n<td>81<\/td>\n<td align=right>917<\/td>\n<td align=right>38016<\/td>\n<\/tr>\n<tr>\n<td>7547<\/td>\n<td align=right>515<\/td>\n<td align=right>20620<\/td>\n<\/tr>\n<tr>\n<td>3389 (rdp)<\/td>\n<td align=right>199<\/td>\n<td align=right>8792<\/td>\n<\/tr>\n<tr>\n<td>5358<\/td>\n<td align=right>195<\/td>\n<td align=right>8148<\/td>\n<\/tr>\n<tr>\n<td>2323<\/td>\n<td align=right>181<\/td>\n<td align=right>7384<\/td>\n<\/tr>\n<tr>\n<td>8080<\/td>\n<td align=right>154<\/td>\n<td align=right>6700<\/td>\n<\/tr>\n<\/table>\n<p>Below is a table showing the SYNs I didn&#8217;t SYN ACK by country.  This is just the top 10.  Note that the top two have large swaths of their IP address space automatically blocked by <tt>mcblockd<\/tt> for violating my configured policies.  They&#8217;re also known state sponsors of cyberattacks, and the evidence is pretty clear here.  Much (but not all) of the US stuff is research scanning.<\/p>\n<table width=\"100%\"; style=\"color: #87CEFA; background-color: #000; background: #000; font:1.1em Consolas, Monaco, monospace; border: none; border-collapse: collapse;\">\n<tr style=\"background-color: #404040; color: #FFF; border: none;\">\n<th align=left style=\"border: none;\">Country<\/th>\n<th align=right style=\"border: none;\">Packets<\/th>\n<th align=right style=\"border: none;\">Bytes<\/th>\n<\/tr>\n<tr>\n<td>RU (Russian Federation)<\/td>\n<td align=right>17394<\/td>\n<td align=right>864024<\/td>\n<\/tr>\n<tr>\n<td>CN (China)<\/td>\n<td align=right>6038<\/td>\n<td align=right>319116<\/td>\n<\/tr>\n<tr>\n<td>US (United States)<\/td>\n<td align=right>3077<\/td>\n<td align=right>169932<\/td>\n<\/tr>\n<tr>\n<td>NL (Netherlands)<\/td>\n<td align=right>1160<\/td>\n<td align=right>47580<\/td>\n<\/tr>\n<tr>\n<td>TH (Thailand)<\/td>\n<td align=right>603<\/td>\n<td align=right>33480<\/td>\n<\/tr>\n<tr>\n<td>UA (Ukraine)<\/td>\n<td align=right>467<\/td>\n<td align=right>20612<\/td>\n<\/tr>\n<tr>\n<td>KR (Korea)<\/td>\n<td align=right>462<\/td>\n<td align=right>19380<\/td>\n<\/tr>\n<tr>\n<td>BR (Brazil)<\/td>\n<td align=right>426<\/td>\n<td align=right>18708<\/td>\n<\/tr>\n<tr>\n<td>FR (France)<\/td>\n<td align=right>341<\/td>\n<td align=right>17828<\/td>\n<\/tr>\n<tr>\n<td>TR (Turkey)<\/td>\n<td align=right>281<\/td>\n<td align=right>11756<\/td>\n<\/tr>\n<\/table>\n<p>What is perhaps interesting about this data: the lines drawn during WWII and the Cold War don&#8217;t appear to have changed.  I find this very sad.  I&#8217;m just a tiny single user running a very modest home network, yet I&#8217;m a target of Russia and China.  And my network is likely much more secure than the average home network.  I assume this means that all of us are being probed all of the time, and some of us are probably regularly compromised.  I think we (meaning the entire industry) need to consider completely banning telnet and doing something real about securing IoT devices.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the many sets of data I collect with mcflow on my gateway is traffic counters for TCP SYN packets I receive but do not SYN ACK. I keep the source IP address, the destination port, and of course timestamps and counters. This type of data generally represents one of three things: probing for &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.rfdm.com\/blog\/?p=938\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Looking at &#8216;Synners&#8217; (TCP SYN data)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82,85,12],"tags":[],"class_list":["post-938","post","type-post","status-publish","format-standard","hentry","category-freebsd-computing","category-network-security","category-software-development"],"_links":{"self":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=938"}],"version-history":[{"count":12,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/938\/revisions"}],"predecessor-version":[{"id":959,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/938\/revisions\/959"}],"wp:attachment":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}