An unofficial, read-only Hacker News reader.

Credit card skimming scripts using WebRTC found on popular shopping sites (opens external site)

619 points by scanr 2 days ago | www.infohawk.com | 378 comments on HN

View full thread · View on Hacker News

Comment thread (19)

  1. Ads are just one particular case of the problem.

    Sites everywhere are fat with JavaScript doing all sorts of unnecessary things. Why trust anyone's JavaScript at all?

    Everything should be API first and ship with a JavaScript less default. Your local AI agent who you engineer your trust model around builds any desired runtime scripting for you at runtime, dynamically the first time and iteratively tuned to you thereafter. For many sites you won't care and will accept defaults or a buddy's template.

    We need legislation to enforce API only access to any public website. Any public frontend must be rebuildable with data from a public API.

    The problem with AI is the incentives of people shoving JavaScript in your face (or useless exposition when trying to divine a Thanksgiving recipe vs the ease of AI mode, for instance) undermine the promise of the entire AI technology - every frontend for every person can be entirely unique and yet entirely coherent. No gatekeepers. Instead of ads send a microtransaction if need be to every API, or the government can subsidize.

    Focusing on ads is missing the point. The real issue is your client running scripts you did not explicitly ask or delegate it to. The entire Internet is adversarial in this way, not because of ads but because people expect access and no one wants to pay for anything. People who block ads simply contribute to this problem, they don't offer a solution.

    AI offers a way out. AI belongs to all of us given its broad corpus. Let it be the client and leave government or some regulated utility as little more than the clearing house.

    Replies (3)
    1. Not sure I understand the connection between Javascript, AI and APIs. I've found Javascript SPAs often have the best APIs.
    2. You find AI more trustworthy than JS? JS isn't perfect, but at least it's deterministic.
      Replies (2)
      1. I find JS my AI writes more trustworthy than JS someone else (likely also an AI at this point) writes.

        Why this would be controversial I don't know. It would iterate on results. AI is fairly reliable for simple tasks at this point. Most front ends fall well within this category. The problem with software is the misaligned incentives, not AI hallucinations. When it comes to prompt injection attacks, that will have to be engineered around, just as the browser already engineers around a whole suite of dangers before any JavaScript ever runs.

        But we have to get to the point first where the adversarial incentives are eliminated. The fundamental tension is not technical at all, but political - no one wants to pay for anything, rent seeking behaviors are encouraged. Everyone wants ease and expects someone else to pay the cost. Meanwhile a handful of people whose behavior resembles that of sociopaths horde wealth derived from the commons.

        Instead of a 2028 backlash that seeks to demonize AI the correct answer would be changing the economic model so that rather than becoming an even more insidious ad delivery mechanism it ends the prevailing model entirely, which is not desirable to begin with anyway.

        Replies (2)
        1. We should expect some AI companies to have misaligned incentives also. Your AI might not inject malware, but someone else's might.

          I can see what you're saying. I think you're saying that not only is it ridiculous that companies allow ad providers to modify their page in arbitrary ways, it's wrong that we ever got into this situation by making JS so powerful. Yeah, I'm with you there. I just don't think that asking everyone to figure out how to solve this on their own (using AI) is a viable solution.

          Replies (1)
          1. Yes. Fundamentally the wars of the future will be about AI alignment. Obviously, if you could have AI aligned to you it is desirable. As such, like any resource, control of it will be contested and will be an object and an agent of conflict.

            As they say, war is politics by other means.

            As to your last point, I disagree. I see more and more layman programming by another name with how they interact with AI. So much of the difficulty of software is artificial. So many apps are simply contrived and difficult for no good reason than obvious cost mitigation and other anti/dark patterns and bad incentives. I think if the average consumer could essentially craft their own internet merely by developing a felicity with their own personal AI agent they would be a lot happier. But corporations would be a lot poorer. Society would be on the whole more egalitarian. So yes, this is sort of predicated on the expectation these agents must eventually be ripped from private hands and owned by humanity writ large. That's where the politics (and the wars over who gets to decide who "humanity" is) comes back in.

            It's always been this way. The coming conflict is inevitable. Man is a political animal. Everything old is new again. To get to Nirvana you must first suffer the Earth.

            Thanks for the back and forth. Have a good day.

        2. That is because people using AI to write JS aren't the low hanging fruit. The bad actors haven't shifted to prompt injection yet.
      2. Banks removed AI too so there you go. I use Claude code a lot but I noticed the remote control kind of cross-device capability by default creeps me out. My Claude on browser can suddenly control Claude code on my Mac, and thereby all its files?
        Replies (2)
        1. Your browser Claude can only get access to all of your Mac files if you practice the shockingly bad pattern of giving an agent access to all of your files on your personal computer.

          Agents in the cloud only, coordinated from anywhere.

          It's not dangerous to have agents with full access to an ondemand VM. Well, it's much less dangerous...

          Replies (2)
          1. I do in fact practice that shockingly bad pattern. Haha. I’m lazy and I don’t use Docker on my Mac because I use Linux mostly.
          2. It's not simple to actually break this pattern, most oses don't really provide ways to handle this. Multiple user accounts can help on nix, but then you run into issues if you want to code in a gu. Even so, this "shockingly bad pattern" is probably used by 99.9% of people running agents
            Replies (1)
            1. Every major harness supports coordination over ssh. You can run an old computer and control it out of the box with any harness. I think you grossly overestimate how many people behave as poorly as you think.

              At this point, I would say only beginners/newbs are still doing no-permissions on their main machine. Certainly the majority I know are using the built in ssh feature, or cmux, or t3code or one of the many solutions.

              Continue this thread (1 replies) →

        2. I would hope that you're sandboxing the Claude Code running on your Mac.
    3. > We need legislation to enforce API only access to any public website.

      This is the most parochial and regulation-brained statement I've ever seen.

      Replies (1)
      1. Would you care to elaborate as to engender actual discussion or is a drive by rebuke the best you can manage?

        Not even a very convincing insult. "Most parochial" seems an odd word choice for such a sweeping proposal. Perhaps you mean to imply I really am so small minded. There is some great obvious consequence looming which I have not foreseen?

        Seems ungenerous of you to not elaborate. The contents of your mind are so vast, mine so small? Care to make a point then? Or is expressing comfort in your own voluminousness your only purpose here? Perhaps you will even find we have cause to agree, if you could but manage to lower yourself to what must be the great indignity of having to actually explain the great intricacies of your mind to such a counterpart as I. Give it a try though? Let's see if you can manage it.

        Replies (1)
        1. > Not even a very convincing insult. "Most parochial" seems an odd word choice for such a sweeping proposal. Perhaps you mean to imply I really am so small minded. There is some great obvious consequence looming which I have not foreseen?

          It's parochial because regulations are not global.

          Replies (1)
          1. I see. So I was wrong to perceive a rebuke. You must simply come across the "most parochial" proposals all the time, given there is no global government I am aware of.

            I would suggest to you your use of the word is incorrect. I will say overall, a rather disappointing reply. I had hoped to hear something more interesting on the merits. For what it's worth I come here not as a partisan but to solicit strong and creative counterpoints to strenghen my thinking. You have left me rather wanting in this regard.

            All the best though. Have a good day.

            Replies (1)
            1. Good grief.