Back to skill

Security audit

NotebookLM MCP Login

Security checks for vulnerabilities and agentic risk

Overview

The skill’s stated login purpose is coherent, but it handles Google session cookies with an overly exposed browser-debugging setup and incomplete cleanup.

Review before installing. This skill is not shown to exfiltrate data or act deceptively, but it creates and stores reusable Google/NotebookLM session material and leaves too much browser-debugging and temporary-profile exposure. Use only in a trusted local environment, avoid running as root, pin and review dependencies, delete stale /tmp/nlm-chrome-profile data, stop any Chrome process using port 9222 after use, and understand that saved cookies can grant account access until revoked or expired.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
Findings (4)

T03 · Remote Payload Retrieval and Execution

Error
Location
SKILL.md:29
Finding

Unverified Remote Installer Is Piped Directly into a Shell

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/login.py:27
Finding

Chrome DevTools Is Configured to Accept Arbitrary Origins on a Predictable Port

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/login.py:22
Finding

Authentication-Bearing Chromium Profile and Process Are Not Cleaned Up

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:43
Finding

Unpinned Third-Party Package Is Resolved and Executed at Runtime

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (7)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The skill requires shell access and network-capable actions but does not declare any explicit tool scope or permission boundaries. That makes the skill harder to govern safely and increases the chance an agent executes sensitive commands or network operations without clear user-visible authorization, especially in a login workflow handling authentication material.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This skill extracts Google authentication cookies from a live browser session and saves them locally, but the description does not present that as an explicit upfront warning. Because browser cookies are bearer credentials, inadequate disclosure can mislead users into approving a workflow that grants persistent account access and creates a high-impact credential exposure risk if the files are copied or mishandled.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
91% confidence
Finding

The skill invokes an MCP/CLI package by name without pinning a specific version, which creates a supply-chain and reproducibility risk. A future or maliciously substituted package version could change login behavior, exfiltrate cookies, or execute unexpected code during authentication checks.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/login.py (reported line 30)May include surrounding context.

python
def launch_chrome():
    os.makedirs(TMP_PROFILE, exist_ok=True)
    proc = subprocess.Popen(
        [CHROME, f"--remote-debugging-port={PORT}",
         "--no-first-run", "--no-default-browser-check",
         "--disable-extensions", f"--user-data-dir={TMP_PROFILE}",

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The script extracts Google authentication cookies via Chrome DevTools Protocol and persists them to disk, effectively creating a reusable authenticated session token set. If those cookies or the saved profile are read by another local user, malware, or a later compromised process, an attacker could hijack the user's NotebookLM/Google session without needing credentials or MFA.

Content

No source excerpt is available for this finding.

External Script Fetching

Low
Category
Supply Chain
Confidence
93% confidence
Finding

The installation guidance pipes a remotely fetched script directly into sh, which allows arbitrary code execution from the network without verification. If the source is compromised, intercepted, or replaced, a user running the documented command could execute attacker-controlled code on the host.

Content

Scanner excerpt · SKILL.md (reported line 29)May include surrounding context.

which chromium-browser && which uv

text

If missing, install Chromium (`apt install chromium-browser`) and uv (`curl -LsSf https://astral.sh/uv/install.sh | sh`).

### 2. Run the login script

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

The printed login instruction is written only in Chinese, which imposes a specific language on users without opt-in. There is no indication that this script is intended exclusively for Chinese-speaking users or that alternative locales are supported.

Content

No source excerpt is available for this finding.