{"id":2382,"date":"2014-05-24T12:31:17","date_gmt":"2014-05-24T12:31:17","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=2382"},"modified":"2014-05-24T15:38:46","modified_gmt":"2014-05-24T15:38:46","slug":"upatres-gadgetry","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2014\/05\/24\/upatres-gadgetry\/","title":{"rendered":"Upatre&#8217;s gadgetry"},"content":{"rendered":"<p>During last week I have seen News reports talking about spam campaign delivering the malware that is using a .gadget file extension. Since one of my spambait accounts got it as well I decided to run a quick test and write down what I found about it.<\/p>\n<p>And just in case you are wondering &#8211; despite the Gadgets being <a href=\"http:\/\/windows.microsoft.com\/en-us\/windows\/gadgets\">retired<\/a> they still work.<\/p>\n<p>The malicious attachment is called <strong>internal_use_only.gadget<\/strong>; Gadget files are zip files so one can enumerate their content e.g. with 7Zip:<\/p>\n<pre>Path = internal_use_only.gadget\r\nType = zip\r\nPhysical Size = 6878\r\n\r\n\u00a0\u00a0 Date\u00a0\u00a0\u00a0\u00a0\u00a0 Time\u00a0\u00a0\u00a0 Attr\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Size\u00a0\u00a0 Compressed\u00a0 Name\r\n------------------- ----- ------------ ------------\u00a0 ------------------------\r\n2014-05-16 12:45:26 ....A\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 335\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 220\u00a0 gadget.html\r\n2014-05-16 12:44:14 ....A\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10240\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6151\u00a0 main.exe\r\n2014-05-15 22:08:40 ....A\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 326\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 199\u00a0 gadget.xml\r\n------------------- ----- ------------ ------------\u00a0 ------------------------\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10901\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6570\u00a0 3 files, 0 folders<\/pre>\n<p>If dropped in a folder, we can see the icon of a Gadget<\/p>\n<p><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2384\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget.png\" alt=\"gadget\" width=\"179\" height=\"66\" \/><\/a>The content of the <strong>gadget.xml<\/strong>:<\/p>\n<p><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_xml2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2393\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_xml2.png\" alt=\"gadget_xml2\" width=\"499\" height=\"189\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_xml2.png 499w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_xml2-300x113.png 300w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/a><\/p>\n<p>The content of the <strong>gadget.html<\/strong>:<\/p>\n<p><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_html.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2386\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_html.png\" alt=\"gadget_html\" width=\"527\" height=\"295\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_html.png 527w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_html-300x167.png 300w\" sizes=\"(max-width: 527px) 100vw, 527px\" \/><\/a>and the third file is a small executable called <strong>main.exe<\/strong>.<\/p>\n<p>Quick analysis confirmed it&#8217;s Upatre, a well-known Zeus downloader.<\/p>\n<p>When <strong>main.exe<\/strong> is executed it drops its copy as <strong>%TEMP%\\ycare.exe<\/strong> and appends the original path to the <strong>main.exe<\/strong> so that <strong>ycare.exe<\/strong> can delete it once it&#8217;s executed. The executed ycare.exe attempts to connect to just* [ . ]com\/wp-content\/uploads\/2014\/02\/1605UKmw.enc or grab the very same file from dot*[ . ]com\/fonts\/1605UKmw.enc.<\/p>\n<p>If the user is silly enough to open this gadget on the computer the warning popup will show up:<\/p>\n<p><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2387\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget2.png\" alt=\"gadget2\" width=\"414\" height=\"266\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget2.png 414w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget2-300x192.png 300w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget2-80x50.png 80w\" sizes=\"(max-width: 414px) 100vw, 414px\" \/><\/a><\/p>\n<p>If the user is silly^2 enough, the &#8216;gadget&#8217; will be &#8216;added&#8217; to the Sidebar:<\/p>\n<p><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2388\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget3.png\" alt=\"gadget3\" width=\"61\" height=\"62\" \/><\/a><\/p>\n<p>&#8211; and the malware thingie will run.<\/p>\n<p>The Gadgets leave Gadgetish remnants on the system and they can be potentially used to determine the original attack vector:<\/p>\n<ul>\n<li>%USERPROFILE%\\AppData\\Local\\Microsoft\\Windows Sidebar\\Gadgets\\<br \/>\ninternal_use_only.gadget\\gadget.html<\/li>\n<li>%USERPROFILE%\\AppData\\Local\\Microsoft\\Windows Sidebar\\Gadgets\\<br \/>\ninternal_use_only.gadget\\gadget.xml<\/li>\n<\/ul>\n<p>and also<\/p>\n<ul>\n<li>%USERPROFILE%\\AppData\\Local\\Microsoft\\Windows Sidebar\\Settings.ini<\/li>\n<\/ul>\n<p>&#8211; the latter will contain the description of Gadget(s) added to the system<\/p>\n<p><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_settings.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-2389 size-large\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_settings-1024x158.png\" alt=\"gadget_settings\" width=\"670\" height=\"103\" srcset=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_settings-1024x158.png 1024w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_settings-300x46.png 300w, https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2014\/05\/gadget_settings.png 1084w\" sizes=\"(max-width: 670px) 100vw, 670px\" \/><\/a><br \/>\nOther artifacts are less reliable e.g.:<\/p>\n<ul>\n<li>HKCU\\Software\\Classes\\Local Settings\\MuiCache<\/li>\n<\/ul>\n<p>may contain references to Sidebar binaries and<\/p>\n<ul>\n<li>HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run<\/li>\n<\/ul>\n<p>may contain the entry starting Sidebar via<\/p>\n<ul>\n<li>C:\\Program Files\\Windows Sidebar\\sidebar.exe \/autoRun<\/li>\n<\/ul>\n<p>&#8211; it&#8217;s less reliable, because users may have other Gadgets installed and Sidebar installation is nothing unusual in their environment.<\/p>\n<p>Nothing extraordinary &#8211; just yet another creative way to deliver the badness.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During last week I have seen News reports talking about spam campaign delivering the malware that is using a .gadget file extension. Since one of my spambait accounts got it as well I decided to run a quick test and &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2014\/05\/24\/upatres-gadgetry\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[15,19,9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/2382"}],"collection":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/comments?post=2382"}],"version-history":[{"count":5,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/2382\/revisions"}],"predecessor-version":[{"id":2394,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/2382\/revisions\/2394"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=2382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=2382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=2382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}