TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Guardscript – Detect any changes made to your JavaScript files

28 点作者 Dyaz17将近 6 年前

9 条评论

Dyaz17将近 6 年前
Hey HN!<p>I created GuardScript because in my previous company we started to include more and more third-party Javascript from SaaS services on our homepage, and this created security risks for us [1] [2].<p>In order to reassure us, a few of these companies created independently what is essentially GuardScript: a service that monitors every few minutes any changes made to your Javascript files and sends you a notification with the changes made. You can then detect any malicious modification by analyzing these results.I decided to build it for a broader audience.<p>I&#x27;d love feedback and suggestions on how to make it better.<p>Thanks!<p>[1] <a href="https:&#x2F;&#x2F;www.theregister.co.uk&#x2F;2018&#x2F;09&#x2F;12&#x2F;feedify_magecart_ja" rel="nofollow">https:&#x2F;&#x2F;www.theregister.co.uk&#x2F;2018&#x2F;09&#x2F;12&#x2F;feedify_magecart_ja</a> [2] <a href="https:&#x2F;&#x2F;www.zdnet.com&#x2F;article&#x2F;hackers-breach-statcounter-to-hijack-bitcoin-transactions-on-gate-io-exchange&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.zdnet.com&#x2F;article&#x2F;hackers-breach-statcounter-to-...</a>
评论 #20270189 未加载
评论 #20270036 未加载
评论 #20270041 未加载
评论 #20270351 未加载
评论 #20271337 未加载
评论 #20270004 未加载
leppr将近 6 年前
This is good, but this won&#x27;t stop the first few visitors from getting pwned. Client-side check (SRI) is still the best solution.
评论 #20271497 未加载
missblit将近 6 年前
&gt; How do you detect the modifications? We compute the hashes of the files regularly. If only one character in a file changes, his hash will change.<p>Does this include HTTP headers? For instance a yay.js framework that helps people print &#x27;yay&#x27; to the console could return:<p><pre><code> HTTP&#x2F;1.1 301 MOVED PERMANENTLY LOCATION: http:&#x2F;&#x2F;evil.evil&#x2F;evil.js console.log(&#x27;yay!&#x27;);</code></pre>
评论 #20271526 未加载
godzillabrennus将近 6 年前
Pricing seems high to me. A sub $10&#x2F;month plan that lets someone check 30 files once a day or even once a week would be useful.<p>Plenty of small companies have god awful Wordpress sites with a ton of insecure JavaScript files. They don’t need to be checked every 10 minutes but they do need something to check.
评论 #20271527 未加载
dmitrygr将近 6 年前
I get relying on 3rd party libraries, but not hosting them yourself and just hoping that the current host never gets sold&#x2F;owned&#x2F;etc? That sounds insane to me...<p>Sounds like <i>curl | insmod &#x2F;dev&#x2F;stdin</i> level insane
评论 #20271006 未加载
评论 #20270057 未加载
评论 #20271711 未加载
stephenr将近 6 年前
Apart from the &quot;SaaS services&quot; (I mean, are they really services for services?), this seems to boil down to:<p>&quot;We can&#x27;t trust SaaS.... so we built a SaaS to alert you when the JS delivered by your SaaS changes...&quot;. So now you have to trust this SaaS to tell you that the other SaaS is still trustworthy.
评论 #20271281 未加载
评论 #20271520 未加载
pietroglyph将近 6 年前
Looks very cool. You have a typo in the pricing area of the page: it says &quot;Sart Free Trial&quot; instead of &quot;Start Free Trial&quot;.
评论 #20271532 未加载
snek将近 6 年前
Imagine an internet where instead of making this tool, people stopped including billions of third party scripts.
评论 #20270606 未加载
graphememes将近 6 年前
You could do this with a free serverless function on aws, why would I pay for it
评论 #20271020 未加载