Lurker News
Hi HN

I needed a way to monitor network calls made by chrome extensions so I made a small extension.
You can install it by dropping the zip or crx into the extensions page. It'll be on the chrome store whenever/if it gets through the review.
Hopefully it's useful to others.
https://github.com/dnakov/little-rat
https://twitter.com/dnak0v

Comments (101) 23 threads

Earlier comments
bluish293 replies#
sounds great, do you have plans to port it to Firefox?

Does anyone know an equivalent that do the same thing on Firefox?

npace123 replies#
Yeah, I'm going to try this shortly, will post an update.
distortedsignal#
Interesting.

I'll be watching this. Thanks for the project!

fjfuvucucuc1 reply#
Waiting :)
123pie1231 reply#
looking forward to this
username135#
Same
vdfs2 replies#
In most cases, just adding "var chrome = browser;" to the top of each js files would make it work for firefox, which is just a copy of Chrome Extension APIs with slight changes
lapcat1 reply#
Firefox add-ons actually recognize the "chrome" keyword.
weaksauce#
they actually have a js polyfill that lets you use promise based `browser` keyword in chrome too.
krono1 reply#
I believe that these connections should also appear in the browser console[1], otherwise you could always log the traffic[2] or inspect/debug any individual extension[3].

You will be amazed at the obvious extension policy violations Mozilla is letting many of their "recommended" extensions get away with.
[1]: https://firefox-source-docs.mozilla.org/devtools-user/browse...
[2]: https://firefox-source-docs.mozilla.org/networking/http/logg...
[3]: https://firefox-source-docs.mozilla.org/devtools-user/about_...

Modified30191 reply#
Any notable offenders? Seems like something worth reporting.
krono6 replies#
Listed some offences and offenders in another comment from last June: https://news.ycombinator.com/item?id=35792605

I've reported these and several other extensions again every time they were updated in great technical detail and through various official channels, but stopped bothering when about a year and several extension updates later nothing had changed.

Continue this thread — 6 replies

cantSpellSober2 replies#
Thanks for sharing! I'll wait till it's on chrome store cuz I'm lazy and don't use Twitter.
Daviey1 reply#

  1) Go to Releases, right click the crx file and save.
  2) In Chrome, go to Extensions then drag and drop the crx file
  3) Profit
leke1 reply#
Why not on the chrome store?
npace122 replies#
It's currently under review because it's using the chrome.declarativeNetRequest (same API uBlock is using)
cal852 replies#
Hang on do you mean to say the web store might accept an extension with `declarativeNetRequestFeedback` permission, it just might take longer and be less certain? I've got an extension that could potentially really benefit from using this permission (because I want to be able to dynamically decide whether to take an action in a content script based on the `Content-Type` header; currently I use imperfect content-sniffing heuristics instead). The last time I dug into it, it seemed that this permission just wasn't going to be available after the Manifest v3 moratorium that has already passed. So I'm interested to know if anything has changed (or if there's any special way that extensions can be approved with this permission, e.g. if they're popular enough and have a good privacy track record).
npace124 replies#
I'm not sure, but I was curious too, so I submitted it for review to find out.

Continue this thread — 4 replies

Continue this thread — 1 reply

p1mrx1 reply#
Isn't declarativeNetRequest the new, less powerful Manifest V3 API that uBlock Origin Lite is using?
npace12#
yeah, little rat is using manifest v3
npace121 reply#
that is a very good point but:

* the content security policy does not allow unsafe-inline
* extension ids are autogenerated by chrome

btown#
While unsafe-inline prevents execution of scripts, it doesn't prevent another extension from including HTML in one of the URLs it is requesting, and adding DOM elements that might entirely change the display of the extension. Likely not a huge problem here (there are much easier ways to bypass/cheat this extension e.g. by inserting tracking code into the DOM of a visited page so it's executed by that page) but it's definitely not good practice to interpolate HTML with untrusted strings.

Load more comments