Slashdot Mirror


Google Engineers Explore Ways To Stop In-Browser Cryptocurrency Miners in Chrome (bleepingcomputer.com)

An anonymous reader writes: Google Chrome engineers are considering adding a special browser permission that will thwart the rising trend of in-browser cryptocurrency miners. Discussions on the topic of in-browser miners have been going on the Chromium project's bug tracker since mid-September when Coinhive, the first such service, launched. "Here's my current thinking," Ojan Vafai, a Chrome engineering working on the Chromium project, wrote in one of the recent bug reports. "If a site is using more than XX% CPU for more than YY seconds, then we put the page into 'battery saver mode' where we aggressively throttle tasks and show a toast [notification popup] allowing the user to opt-out of battery saver mode. When a battery saver mode tab is backgrounded, we stop running tasks entirely. I think we'll want measurement to figure out what values to use for XX and YY, but we can start with really egregious things like 100% and 60 seconds. I'm effectively suggesting we add a permission here, but it would have unusual triggering conditions [...]. It only triggers when the page is doing a likely bad thing."

An earlier suggestion had Google create a blacklist and block the mining code at the browser level. That suggestion was shut down as being too impractical and something better left to extensions.

21 of 189 comments (clear)

  1. Why isn't this already standard? by Baron_Yam · · Score: 2

    Most web surfing involves text, images, and perhaps video in a well-defined box. Anything else is generally crap that doesn't benefit the surfer.

    I'd say rather than a percentage of total CPU utilization, they ought to be measuring against a percentage of the browser's CPU usage. Any non-whitelisted script that is taking more juice than it would take to render a straight text-and-image page can be throttled to zero, in my opinion.

  2. Ad company defends business model by Anonymous Coward · · Score: 2, Insightful

    Company threatened by emergence of a new model of online compensation uses control over existing infrastructure to severely limit its penetration into the market.

    Big surprise.

    1. Re:Ad company defends business model by Bruce+Perens · · Score: 4, Insightful

      Company threatened by emergence of a new model of online compensation uses control over existing infrastructure to severely limit its penetration into the market.

      Not really. Running a miner is not a way that legitimate content sites recover their cost of operation. It's a way to grab some of the viewer's cycles for mining without their knowing it. If you want viewers to pay for use of your site in CPU cycles, design a protocol for that which will tell the user what they're paying, and allow them to pay it fairly or inform their decision to stay off your site.

    2. Re:Ad company defends business model by spire3661 · · Score: 4, Insightful

      >Running a miner is not a way that legitimate content sites recover their cost of operation

      You could make the exact same argument for third-party ads.

      --
      Good-bye
    3. Re:Ad company defends business model by Dogtanian · · Score: 4, Insightful

      How honest would you expect them to be, given that mining via JavaScript is going to be horrendously inefficient and likely to use many, many times the value mined in increased electricity used by the client?

      They'd also have to be clear that using the website is likely to run down the user's battery significantly faster on a laptop.

      Then again- maybe that was your point. You can't do something like that honestly without highlighting what a bad idea it is, and that it'd be far better if someone finally got micropayments to work for random websites.

      --
      "Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).
  3. Re: Blocker detected by Anonymous Coward · · Score: 4, Insightful

    Good, I'd never go back to that site.

  4. Re:That should be normal. by SScorpio · · Score: 2

    Your solution of Firefox and NoScript is about to be broken pretty soon.

  5. Re:That's easy! by Anonymous Coward · · Score: 2, Informative

    Disable Javascript. There's no reason not to.

    Other than the fact that all but the most ancient website won't work without it anymore... unless its a flash website that is.

    Try browsing with scripting summarily disabled and let me know how it works for ya.

  6. Google should see this as a threat!!! by zippo01 · · Score: 4, Insightful

    This would be a brilliant business strategy! No ads, clean uninterrupted browsing, they just get some CPU cycles from you. Most people wouldn't even notice the difference or the cost. I would do it not to have to look at ads. This could destroy googles hold on ads and the new revenue stream for the internet. They should just let the user know whats going on and BAM!

  7. Re:High cpu usage blocked? by slazzy · · Score: 5, Insightful

    Even just showing something on the tab to indicate high cpu usage would be a good start, like the way chrome shows a speaker icon for the tab that is playing sounds.

    --
    Website Just Down For Me? Find out
  8. I like the idea, and not just for miners by pgn674 · · Score: 4, Insightful

    There's a documentation hub for a service out there that I noticed using 100% of one CPU core on my laptop, whenever I had a page open on it. Didn't matter whether the tab or Chrome window was foreground or not. I dug into it, and found a CSS spinner sitting underneath a Google translate button. I'm thinking the page designers wanted a spinner to show if that button took a while to load. But they designed it in CSS; it kept running forever, even after the button loaded; and it used 100% CPU. Having a built in defense against this kind of stupidity or malice would be awesome.

  9. Re:That's easy! by LordKronos · · Score: 4, Insightful

    LOL....yeah, there's not reason not to. Lets just abandon DHTML and go back to full page reloads on every action, not matter how small. It's been so long, I guess I must've forgotten how much I loved all those full page reloads.

  10. Re: Blocker detected by rkordmaa · · Score: 2

    The resulting hashes are pretty much always invalid. It doesn't take forever to calculate a single hash, you will calculate bazillion hashes but only one is correct.

  11. Once sites like that fill search results by tepples · · Score: 5, Informative

    I'd never go back to that site.

    So how will you deal with the frustration when you find that the majority of the top ten results from a particular web search query come from that site and others like it? It becomes tedious to add a dozen or more -site:domain.example terms to every single query. Google Search used to allow blacklisting a domain, but this feature has since been permanently discontinued. I found some promising browser extensions for users of Google Search on select desktop browsers:

    Google Chrome for desktop Personal Blocklist Firefox 56 or later Personal Blocklist (not by Google) Firefox 52 ESR or Firefox 56 Hide Unwanted Results of Google Search

    But what works for Chrome for Android, Edge, or Safari? Or for DuckDuckGo or Bing?

  12. Re:Google explores ways to break non-google web ap by hcs_$reboot · · Score: 2

    Chrome will be the new IE6

    Yes! my css code will work, at last!

    --
    Slashdot, fix the reply notifications... You won't get away with it...
  13. Proof of concept by tepples · · Score: 2

    As I understand it, EME provides a controlled interface to a Content Decryption Module (CDM). A CDM can obfuscate only audio and video decoding and output, not any process whose output the script can directly monitor. If you have a proof of concept of Monero mining in a well-known CDM, such as Widevine, Primetime, or PlayReady, I'd like to see it.

  14. Re:That's easy! by tepples · · Score: 2

    Forum sites such as SoylentNews and Slashdot work without script. The user navigates or submits a form, and the site returns a document. Those web applications for which navigation and form submission are insufficient can be rewritten as a native application.

  15. Re:That's easy! by Sigma+7 · · Score: 2

    Other than the fact that all but the most ancient website won't work without it anymore... unless its a flash website that is.

    If there's a website that has a legitimate use for Javascript, then the user can easily enable it for that site. The trivial use cases include Kongregate, Newgrounds, and flash-portal game sites.

    In all other cases, the website should maintain basic function in the event the browser doesn't activate Javascript. In fact, both examples I listed above still function without JS enabled, as you can head to the game's page before you need to turn on scripts.

    Try browsing with scripting summarily disabled and let me know how it works for ya.

    I've done it for quite a long time. Got tired of rogue advertisers redirecting the page to "update java", and I've only enabled sites that actually require Javascript. If it requires Javascript unnecessarily, then I don't need to visit that site as much.

  16. Re:That should be normal. by CrashNBrn · · Score: 2

    All of my required addons (or new replacement) are working in Firefox 57.

    TamperMonkey or ViolentMonkey.
    Tree Style Tab
    uMatrix
    uBlock Origin
    TabHunter
    Tab Session Manager ( replaces Session Manager)
    Stylus ( replaces Stylish)
    LastPass (beta)
    Enpass
    Enhanced Steam

    Only thing missing now is, Vertical Toolbar, and Piro's Multiple Tab Handler.

  17. This will end poorly by Vektuz · · Score: 4, Insightful

    While I actually like the idea of being allowed to choose whether to donate a few cycles or to watch ads - I would always choose to donate cycles (no privacy problem, no malware problem, no security problem, no tracking problem...).

    HOWEVER, this will end poorly
    This is because websites tend to be greedy. They won't go "either ads or cryptomining". They will go ads AND cryptomining. Just like cable TV.

  18. Re:That's easy! by mobby_6kl · · Score: 2

    >LOL....yeah, there's not reason not to. Lets just abandon DHTML and go back to full page reloads on every action, not matter how small. It's been so long, I guess I must've forgotten how much I loved all those full page reloads.

    Yes, let's do that. Seriously. In practice these horrible full page reloads are faster than loading megabytes of JS garbage to view a comment or something. Just compare using slashdot to Disgus(t) or whatever it's called.