Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Security
General Security Discussions
How to find cryptojacking malware
Message
<blockquote data-quote="Prorootect" data-source="post: 710669" data-attributes="member: 905"><p><span style="font-size: 22px"><strong>How to find cryptojacking malware</strong></span></p><p>badpackets.net: <a href="https://badpackets.net/how-to-find-cryptojacking-malware/" target="_blank">How to find cryptojacking malware</a></p><p></p><p>MOTTO:</p><p><strong><span style="font-size: 22px"><strong>Source Code Search Engine</strong></span><strong>: <a href="https://publicwww.com/" target="_blank">PublicWWW</a></strong>. This is a <u>search engine</u> that indexes the entire source code of websites.</strong></p><p></p><p></p><p> by <a href="https://badpackets.net/author/admin/" target="_blank">Troy</a></p><p></p><p><span style="font-size: 26px"><strong>How to find cryptojacking malware</strong></span></p><p></p><p></p><p>Cryptojacking malware continues to spread across the web, largely due to the popularity of Coinhive. Since Coinhive’s launch in September 2017, numerous cryptojacking clones have come about.</p><p></p><p>The tool I’ve chosen to locate them with is <strong><a href="https://publicwww.com/" target="_blank">PublicWWW</a></strong>. This is a search engine that indexes the entire source code of websites. I previously offered a comparison of their dataset versus other providers in my discussion of <a href="https://badpackets.net/cryptojacking-malware-coinhive-found-on-30000-websites/" target="_blank">Coinhive malware</a> specifically.</p><p></p><p>In this post, I detail how to find websites containing Coinhive, Crypto-Loot, CoinImp, and deepMiner in PublicWWW.</p><p></p><p>Let’s jump in and see how many sites with cryptojacking malware we can find!</p><p></p><p><span style="font-size: 15px"><strong>Coinhive</strong></span></p><p>Before we review some of the knock-offs, let’s look at the most synonymous name with cryptojacking, Coinhive. Finding this malware is relatively easy and various queries can be used to locate it. The original Coinhive JavaScript library used in cryptojacking is <a href="https://publicwww.com/websites/%22coinhive.min.js%22/" target="_blank">“coinhive.min.js”</a> and we can start by simply searching for that. It’s important to search for the entire name in quotes to ensure an exact match is returned by PublicWWW.</p><p></p><p><a href="https://i2.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search1.png?ssl=1" target="_blank"><img src="https://i2.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search1.png?resize=525%2C332&ssl=1" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></p><p></p><p>Using this query, we find 34,474 sites. While this may seem like an astounding number, it’s only a modest increase since I wrote about the 30,000 sites found back in November 2017.</p><p></p><p>While this list of sites is great for an overview of sites with Coinhive malware, we can dig even deeper into PublicWWW’s dataset to extract the Coinhive site key used on each site. This can be done using regex to extract the site key as a snippet: “coinhive.min.js” snipexp:|CoinHive.Anonymous\(‘?(\w{32})’|i</p><p></p><p><a href="https://i0.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search2.png?ssl=1" target="_blank"><img src="https://i0.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search2.png?resize=525%2C311&ssl=1" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></p><p></p><p>Once the Coinhive site key is extracted, we can export the results and correlate which sites are part of a cryptojacking campaign. This correlation of a small number of Coinhive site keys to hundreds and even thousands of websites was documented in my <a href="https://badpackets.net/cryptojacking-malware-coinhive-found-on-30000-websites/" target="_blank">previous post</a>.</p><p></p><p>Recently I found a large cryptojacking campaign targeting 5,451 WordPress sites. In each case, the JavaScript containing Coinhive was hidden via obfuscation. While PublicWWW can’t search within the deobfuscated JavaScript itself, we can find a way to work around it.</p><p></p><p><a href="https://i0.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search3.png?ssl=1" target="_blank"><img src="https://i0.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search3.png?resize=525%2C338&ssl=1" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></p><p></p><p>To search for the affected sites, the following query, graciously crafted for me by <a href="https://twitter.com/VriesHd" target="_blank">VriesHd</a>, was used:</p><p></p><p>“[\”(k” “\\x43\\x72\\x79\\x70\\x74\\x6f\\x6e\\x69\\x67\\x68\\x74\\x57\\x41\\x53\\x4d\\x57\\x72\\x61\\x70\\x70\\x65\\x72” snipexp:|(var _0x[0-z]{4}=)|</p><p></p><p><a href="https://publicwww.com/websites/%22%5B%5C%22%28k%22+%22%5C%5Cx43%5C%5Cx72%5C%5Cx79%5C%5Cx70%5C%5Cx74%5C%5Cx6f%5C%5Cx6e%5C%5Cx69%5C%5Cx67%5C%5Cx68%5C%5Cx74%5C%5Cx57%5C%5Cx41%5C%5Cx53%5C%5Cx4d%5C%5Cx57%5C%5Cx72%5C%5Cx61%5C%5Cx70%5C%5Cx70%5C%5Cx65%5C%5Cx72%22+snipexp%3A%7C%28var+_0x%5B0-z%5D%7B4%7D%3D%29%7C/" target="_blank">This query</a> searches for the JavaScript function name used for the obfuscated code and then regex to extract a snippet of that name. This is useful to correlate the function name, such as “var _0xb70e” to the Coinhive site key used. Six unique keys were found to be used in this cryptojacking campaign:</p><p></p><p><strong>Coinhive site key (function name)</strong></p><p>DhGEVUgOoquJP68XByYLFs0nRVV4gq4J (0xb70e)</p><p>bbgnHTSmMLKUMaQzNa3Yfoul34A3cACd (0xbcba,0xe2f6)</p><p>hg9mNsA2DPkqe1F9yCUyWXggnDyrPqVW (0x1b00)</p><p>T6Oy0x11TMdeZRjy684Xow4GNBpb07SK (0xf80b)</p><p>OQoqVYH65ER2Eg2xcmoVtv4qrcHP2Z7G (0xe4d0,0xb765,0xcc28)</p><p>VW8fWIsg9hjn47qBdmb0jImf7pDHmU28 (0x8f35)</p><p></p><p>In some cases the same Coinhive site key was associated to multiple functions, shown above.</p><p></p><p><span style="font-size: 15px"><strong>Crypto-Loot</strong></span></p><p>Crypto-Loot has steadily remained as one the most popular alternatives to Coinhive since its inception. Similar to Coinhive, Crypto-Loot doesn’t require any user interaction and can run steathlity in the background....</p><p>...read MORE at the website...</p><p></p><p>_____________________________________________</p><p></p><p>Mmm so it's not possible to stop cryptojacking malwares with coin miner blockers extensions<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite109" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>so at your searches with <strong><strong>Source Code Search Engine</strong>...</strong></p><p><strong><span style="font-size: 15px"><strong>Usage Examples: </strong><a href="https://publicwww.com/examples/ads.html" target="_blank">Advertising Examples - PublicWWW.com</a></span></strong></p><p><strong></strong></p></blockquote><p></p>
[QUOTE="Prorootect, post: 710669, member: 905"] [SIZE=6][B]How to find cryptojacking malware[/B][/SIZE] badpackets.net: [URL='https://badpackets.net/how-to-find-cryptojacking-malware/']How to find cryptojacking malware[/URL] MOTTO: [B][SIZE=6][B]Source Code Search Engine[/B][/SIZE][B]: [URL='https://publicwww.com/']PublicWWW[/URL][/B]. This is a [U]search engine[/U] that indexes the entire source code of websites.[/B] by [URL='https://badpackets.net/author/admin/']Troy[/URL] [SIZE=7][B]How to find cryptojacking malware[/B][/SIZE] Cryptojacking malware continues to spread across the web, largely due to the popularity of Coinhive. Since Coinhive’s launch in September 2017, numerous cryptojacking clones have come about. The tool I’ve chosen to locate them with is [B][URL='https://publicwww.com/']PublicWWW[/URL][/B]. This is a search engine that indexes the entire source code of websites. I previously offered a comparison of their dataset versus other providers in my discussion of [URL='https://badpackets.net/cryptojacking-malware-coinhive-found-on-30000-websites/']Coinhive malware[/URL] specifically. In this post, I detail how to find websites containing Coinhive, Crypto-Loot, CoinImp, and deepMiner in PublicWWW. Let’s jump in and see how many sites with cryptojacking malware we can find! [SIZE=4][B]Coinhive[/B][/SIZE] Before we review some of the knock-offs, let’s look at the most synonymous name with cryptojacking, Coinhive. Finding this malware is relatively easy and various queries can be used to locate it. The original Coinhive JavaScript library used in cryptojacking is [URL='https://publicwww.com/websites/%22coinhive.min.js%22/']“coinhive.min.js”[/URL] and we can start by simply searching for that. It’s important to search for the entire name in quotes to ensure an exact match is returned by PublicWWW. [URL='https://i2.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search1.png?ssl=1'][IMG]https://i2.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search1.png?resize=525%2C332&ssl=1[/IMG][/URL] Using this query, we find 34,474 sites. While this may seem like an astounding number, it’s only a modest increase since I wrote about the 30,000 sites found back in November 2017. While this list of sites is great for an overview of sites with Coinhive malware, we can dig even deeper into PublicWWW’s dataset to extract the Coinhive site key used on each site. This can be done using regex to extract the site key as a snippet: “coinhive.min.js” snipexp:|CoinHive.Anonymous\(‘?(\w{32})’|i [URL='https://i0.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search2.png?ssl=1'][IMG]https://i0.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search2.png?resize=525%2C311&ssl=1[/IMG][/URL] Once the Coinhive site key is extracted, we can export the results and correlate which sites are part of a cryptojacking campaign. This correlation of a small number of Coinhive site keys to hundreds and even thousands of websites was documented in my [URL='https://badpackets.net/cryptojacking-malware-coinhive-found-on-30000-websites/']previous post[/URL]. Recently I found a large cryptojacking campaign targeting 5,451 WordPress sites. In each case, the JavaScript containing Coinhive was hidden via obfuscation. While PublicWWW can’t search within the deobfuscated JavaScript itself, we can find a way to work around it. [URL='https://i0.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search3.png?ssl=1'][IMG]https://i0.wp.com/badpackets.net/wp-content/uploads/2018/02/coinhive_search3.png?resize=525%2C338&ssl=1[/IMG][/URL] To search for the affected sites, the following query, graciously crafted for me by [URL='https://twitter.com/VriesHd']VriesHd[/URL], was used: “[\”(k” “\\x43\\x72\\x79\\x70\\x74\\x6f\\x6e\\x69\\x67\\x68\\x74\\x57\\x41\\x53\\x4d\\x57\\x72\\x61\\x70\\x70\\x65\\x72” snipexp:|(var _0x[0-z]{4}=)| [URL='https://publicwww.com/websites/%22%5B%5C%22%28k%22+%22%5C%5Cx43%5C%5Cx72%5C%5Cx79%5C%5Cx70%5C%5Cx74%5C%5Cx6f%5C%5Cx6e%5C%5Cx69%5C%5Cx67%5C%5Cx68%5C%5Cx74%5C%5Cx57%5C%5Cx41%5C%5Cx53%5C%5Cx4d%5C%5Cx57%5C%5Cx72%5C%5Cx61%5C%5Cx70%5C%5Cx70%5C%5Cx65%5C%5Cx72%22+snipexp%3A%7C%28var+_0x%5B0-z%5D%7B4%7D%3D%29%7C/']This query[/URL] searches for the JavaScript function name used for the obfuscated code and then regex to extract a snippet of that name. This is useful to correlate the function name, such as “var _0xb70e” to the Coinhive site key used. Six unique keys were found to be used in this cryptojacking campaign: [B]Coinhive site key (function name)[/B] DhGEVUgOoquJP68XByYLFs0nRVV4gq4J (0xb70e) bbgnHTSmMLKUMaQzNa3Yfoul34A3cACd (0xbcba,0xe2f6) hg9mNsA2DPkqe1F9yCUyWXggnDyrPqVW (0x1b00) T6Oy0x11TMdeZRjy684Xow4GNBpb07SK (0xf80b) OQoqVYH65ER2Eg2xcmoVtv4qrcHP2Z7G (0xe4d0,0xb765,0xcc28) VW8fWIsg9hjn47qBdmb0jImf7pDHmU28 (0x8f35) In some cases the same Coinhive site key was associated to multiple functions, shown above. [SIZE=4][B]Crypto-Loot[/B][/SIZE] Crypto-Loot has steadily remained as one the most popular alternatives to Coinhive since its inception. Similar to Coinhive, Crypto-Loot doesn’t require any user interaction and can run steathlity in the background.... ...read MORE at the website... _____________________________________________ Mmm so it's not possible to stop cryptojacking malwares with coin miner blockers extensions:) so at your searches with [B][B]Source Code Search Engine[/B]... [SIZE=4][B]Usage Examples: [/B][URL="https://publicwww.com/examples/ads.html"]Advertising Examples - PublicWWW.com[/URL][B][/B][/SIZE] [/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Top