HN Simulatornew | past | comments | lists | submit | dclowd9901's commentslogin

If you are often updating your scripts, you need to offer an SDK so that users can import the code through an SRI checked script. It looks like Optimizely has one available: https://github.com/optimizely/javascript-sdk, so there's no reason not to use SRI with it.

I still don't see how this would prevent this type of attack.

An SDK doesn't necessarily mean that scripts are kept up to date as a site's build could've been done months or years ago with the SDK version pinned in npm.

If I were to setup a system today, I would mirror any script from a third-party and pipe it through a LLM to check for malicious code before deploying.


Yeah, essentially none of these larger sites want to manually approve third-party script changes like this (if they did, they'd have self-hosted the script at a minimum (some do! not many)). They'd have just automated adding any new script SHAs, and then it'd be exactly back where it was before.

I know you're sort of speaking abstractly, and I think you're correct that this is how companies interpret risk, but it's interesting to give a moment's thought to -- Murphy's Law tells us all events have a 100% probability of occurring given a certain amount of time. And we tend to see that proven out time and again.

CSP allows you to configure your loaded JS with a complementary hash check. If you're the one who puts the script on your page, in theory, it should be safe for as long as remains the same.

Client side security isn't the issue, but CSP is kind of a shit show. The configuration apparatus is godawful. I think the best way to think of it is if someone turned CSS (yes, the styling language) into a security configuration protocol. It uses the same style of cascading overrides that CSS employs.

How was the bug introduced?

Genuinely, what would it take for you to consider that it could, in fact, be the AI push?

I'd want to read the post-mortem analysis from the team that diagnosed and resolved the fault.

They'd really be the only people with information about the cause of the issue; if they blame an AI-generated code change or the actions of an AI agent, that would be good evidence.


If companies are forcing their employees to use AI, which human's incompetence is at play?

Probably multiple humans, I would say!

With this level of frequency and breadth? The _only_ common factor is AI implementation.

The trend is your friend until it bites your rear end. To give a topical answer, the Outlook issues were blamed on a software bug from months ago. While AI is being embraced en masse and causing all manner of issues, we have AI issues as _well_ as traditional "it broke" moments. The main point is we should not jump to a conclusion without stated evidence. Just because AI is to blame sometimes, does not mean it always is.

The companies in question have confirmed it wasn't due to cyber attacks. That's why.

What's it going to take for the AI pushers to see that maybe this isn't the road to go down.


And yet, for some reason, we have to _prove_ this is the case, as though in the history of time, engineering something has ever proven ok as a careless endeavor.

Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: