Is Moonlight: AI Colleague for Research Papers safe?
We analyzed Moonlight: AI Colleague for Research Papers version 3.7.6's actual code and gave it a 62/100 trust score. Moonlight provides useful research…
Bottom line
Moonlight provides useful research features but combines broad webpage access, session access, activity tracking, and externally triggered actions, so it deserves caution.
What it can access
The extension can inspect or alter pages across all websites, while its stated features concern research papers and PDFs. [Q2] It also reads the Moonlight session cookie and sends feature-related activity, URLs when supplied, and device information to Moonlight. [Q4] [Q6]
Security weaknesses
Allowed Moonlight and localhost pages can trigger storage changes and open supplied PDF URLs through privileged extension actions. [Q16] [Q21] Broad webpage injection and heavily compressed code make unintended behavior harder to review. [Q2] [Q10]
Signs of misuse
The extension records research-related activity, can include URLs, and assigns a persistent installation identifier sent to Moonlight. [Q6] [Q12] [Q13] This supports its service but is still tracking, and no unrelated collector, search manipulation, or proven browser-session theft was established. [
Code findings
What access does this extension ask for, and does that access make sense for what it claims to do?
The extension requests broad webpage access, Moonlight session-cookie access, storage, tabs, and activity reporting; some access supports its research and PDF features, but running across all websites is broader than necessary.
The manifest requests webNavigation, storage, unlimitedStorage, contextMenus, tabs, and cookies; it permits Moonlight-site access and injects contentScript.js into <all_urls>. — manifest.json:1
The service worker reads the Moonlight connect.sid cookie and sends authenticated requests to Moonlight. — background.js:1
The content script communicates reading activity and contribution behavior to the service worker. — contentScript.js:1
Which websites can it run on, and can it read or change what appears on those pages?
It can read or change pages on broadly matched websites after any required approval.
Host permissions allow requests or privileged browser access, sometimes after later approval, for: https://www.themoonlight.io/* — manifest.json:1
Content scripts run directly on: <all_urls> — manifest.json:1
Can it see sensitive information you type, such as passwords, payment details, messages, or form entries?
The content script runs on every matched page and can inspect page DOM, so it may encounter text in forms and messages. However, the reviewed evidence does not establish that it reads or transmits passwords, payment details, or arbitrary typed entries; the minified bundle leaves some behavior difficult to verify.
contentScript.js is injected at document_end on <all_urls>. — manifest.json:25-31
The content script is a single minified bundle; the cited evidence does not identify a complete sensitive-field capture and transmission path. — contentScript.js:1
Can it access private browser data such as cookies, signed-in sessions, browsing history, bookmarks, or downloads?
The extension can read the Moonlight site's connect.sid cookie and use the signed-in Moonlight session for its own API requests. The reviewed code does not establish access to arbitrary site cookies, browsing history, bookmarks, or downloads.
The extension requests cookies and tabs permissions. — manifest.json:7-15
The service worker calls chrome.cookies.get for the Moonlight API's connect.sid cookie. — background.js:1
Can it access anything else on your device, such as files, location, camera, microphone, clipboard, or installed applications?
No evidence was found in the manifest or package for this capability.
Does it send information outside your browser? If so, what information is sent, where does it go, and why?
The extension sends telemetry and application data to Moonlight's API, including activity records and device or build metadata. Some events can include caller-supplied URLs or related reading activity, but the reviewed path does not prove arbitrary page contents are routinely uploaded.
The worker contains API requests to https://www.themoonlight.io/api and history/on-installed request handling with user-agent and extension/device metadata. — background.js:1
The content script communicates with the worker for contribution and reading-activity behavior. — contentScript.js:1
Does it download or run code, settings, or instructions supplied by a remote server?
It downloads text from a remote source and executes it as code. This lets that source change the extension's behavior without a store update.
PDF.js calls new Function("") to test whether evaluation is supported. — build/pdf.mjs:546
The worker contains new Function, including generated compilation code. — build/pdf.worker.mjs:504,27048
The PDF sandbox evaluates PDF actions in its sandbox implementation. — build/pdf.sandbox.mjs:194,236
Can it take actions without a clear user request, such as opening pages, redirecting searches, downloading files, or sending requests?
The extension can create tabs or windows and send network requests, including during installation or background application flows. Other actions, such as opening PDFs or local-file guidance, are commonly triggered by user actions or extension messages rather than every webpage automatically.
The worker handles installation, tab/window creation, context menus, PDF opening, and API requests. — background.js:1
Can it change important browser settings, including your proxy, search engine, homepage, privacy settings, or other extensions?
No evidence was found in the manifest or package for this capability.
Is any important behavior difficult to inspect because the code is hidden, heavily obfuscated, dynamically generated, or supplied by third parties?
Important runtime files are heavily bundled and minified, and the package includes very large generated PDF.js files and source maps. This makes behavior harder to audit, although minification alone is not evidence of malicious behavior.
The service worker is compressed into a single line. — background.js:1
The content script is compressed into a single line. — contentScript.js:1
The PDF viewer is a multi-megabyte generated bundle. — pdfScript.js:1-2
Does it use eval(), new Function(), or string-based timers to turn text into executable code?
Bundled PDF.js code contains new Function and PDF.js evaluation support. The visible uses appear to be library feature detection or generated PDF processing, not an extension-specific remote string-to-code loader, but the requested construct is present.
PDF.js calls new Function("") to test whether evaluation is supported. — build/pdf.mjs:546
The worker contains new Function, including generated compilation code. — build/pdf.worker.mjs:504,27048
The PDF sandbox evaluates PDF actions in its sandbox implementation. — build/pdf.sandbox.mjs:194,236
Does it track the websites, pages, searches, or links you visit?
The extension records and sends Moonlight activity history, including actions and event metadata; some events can include URLs supplied by reading or page flows. This is tracking of extension-related activity, not proof that it records every website or search visited.
The worker sends history and installation-history requests with action, URL-related fields, device, build, and user-agent metadata. — background.js:1
The content script sends reading-widget activity through the background worker. — contentScript.js:1
Does it create a persistent ID or browser fingerprint to recognize you?
The extension creates a random device identifier, stores it in extension storage, and includes it in Moonlight activity or installation requests. This permits recognition of the same extension installation, but the reviewed code does not establish a browser fingerprint.
The worker generates a crypto.randomUUID(), stores a deviceId, and includes it in history or installation requests. — background.js:1
Does it send cookies, session details, authentication data, or page contents elsewhere?
The extension reads the Moonlight session cookie and sends authenticated requests to Moonlight. It also loads PDF resources with credentials for the resource's ordinary origin, but the reviewed evidence does not show arbitrary third-party cookies, passwords, or all page contents being copied to an unrelated destination.
The worker reads connect.sid for the Moonlight API and performs authenticated Moonlight requests. — background.js:1
The content/PDF flow uses fetch credentials for PDF loading and passes the resulting document into the viewer. — contentScript.js:1
Does it record typing, form entries, clipboard contents, or screenshots?
No evidence was found of global keystroke or form-entry recording, clipboard surveillance, or screenshot capture. Clipboard and canvas code is tied to PDF editing, rendering, or the contribution-photo widget.
Clipboard handling is PDF editor copy/paste support. — build/pdf.mjs:2790-2809,15969-15977
html2canvas is used for PDF export/rendering, not shown as a general screenshot recorder. — pdfScript.js:2
Can a website or remote server send commands that make the extension take actions?
Allowed external pages can send messages to the service worker, and handled messages include storage operations and opening a supplied PDF URL. The manifest limits which origins may connect, but localhost is broad and the handlers must still validate message contents.
External connections are allowed from Moonlight pages and http://localhost/*. — manifest.json:44-45
onMessageExternal handles openLocalFile and storage read, write, and removal operations, plus URL-related state updates. — background.js:1
Does it alter links, referral codes, advertisements, shopping carts, or search results?
No code evidence was found that alters links, referral codes, advertisements, shopping carts, or search results. The reviewed behavior is focused on PDF viewing and Moonlight activity features.
Does it redirect or modify web traffic, request headers, downloads, or proxy settings?
No webRequest interception, header rewriting, download interception, or proxy-setting code was found. It does create or update tabs for PDF viewing, which is not traffic redirection in this sense.
Uses webNavigation and tabs for PDF navigation/opening, with no webRequest or proxy APIs. — background.js:1
Can it communicate with software on the computer or services running on localhost?
No native-messaging or localhost request code was found. Although localhost pages may connect externally, the reviewed handler does not contact software running on localhost.
localhost is only listed as an externally connected origin. — manifest.json:44-45
External message handling performs tab and storage operations; no native messaging or localhost service call is shown. — background.js:1
Does it decode, decrypt, or unpack hidden data and then execute or inject it?
The extension bundles large generated PDF.js/WebAssembly code and decodes data for PDF processing, but the full generated/runtime paths are difficult to audit completely. No clear extension-specific hidden payload execution or remote-code injection was found.
Extension pages permit wasm-unsafe-eval. — manifest.json:47-48
Bundled PDF.js sandbox evaluates PDF actions in its sandbox; this is generated library behavior and requires deeper runtime review. — build/pdf.sandbox.mjs:194-236
Can ordinary websites access privileged extension features through messaging or exposed files?
Ordinary pages cannot automatically use all extension APIs, but pages from the manifest's allowed Moonlight or localhost origins can send external messages to selected privileged handlers. Those handlers expose storage operations and PDF-tab opening, while web-accessible resources alone do not grant privileged API access.
externally_connectable permits Moonlight and localhost origins. — manifest.json:44-45
The external-message listener exposes storage reads/writes/removals and an action that opens a supplied PDF URL. — background.js:1
Does suspicious behavior activate only for certain users, websites, dates, or remote settings?
Some behavior is conditional on installation state, login/session state, local settings, and extension conflicts. The service also sends a persistent device ID and has an experiment-related signup field, but no date-based malicious switch was found.
Installation behavior depends on reason and login status; PDF access depends on settings and file-access permission. — background.js:1
Signup data includes device_id and before-sign-up experiment buckets. — pdfScript.js:2
Does it perform hidden resource-intensive work, such as cryptocurrency mining?
No cryptocurrency-mining code or other covert resource-intensive workload was found. Heavy bundled PDF rendering and WebAssembly are consistent with the advertised PDF features.
Only the listed background service worker is declared; no mining-related component is evident. — manifest.json:16-17
Does it change form fields or where a form sends its information?
No evidence was found that it changes ordinary website form fields or form destinations. The PDF viewer contains its own editors and authentication forms, which are separate from modifying arbitrary webpages.
The content script mounts PDF controls and a contribution widget; no general form-action rewriting is shown. — contentScript.js:1