baoyu-danger-gemini-web

Warn

Audited by Socket on Aug 14, 2026

4 alerts found:

SecurityAnomalyx3
SecurityMEDIUM
scripts/gemini-webapi/utils/load-browser-cookies.ts

This module performs high-sensitivity authentication cookie harvesting and persistence: it launches Chrome with remote debugging, attaches via CDP, enumerates cookies for accounts.google.com/gemini.google.com/google.com, validates session readiness by making an authenticated request using those cookies, and then writes the cookies to disk for later reuse. Even without evidence of overt data exfiltration to arbitrary domains in this fragment, the capability is strongly aligned with session/credential theft patterns and should be treated as security-critical; evaluate calling code, cookie file permissions/locations, and threat model for storage exposure.

Confidence: 74%Severity: 92%
AnomalyLOW
scripts/gemini-webapi/utils/get-access-token.ts

This code is highly security-sensitive because it automates handling of authentication cookies: it collects them from disk and optionally from a local browser automation context, sends them over the network in a Cookie header to obtain a session token (SNlM0e), and writes refreshed cookies back to disk. However, within the provided fragment there is no clear evidence of intentional malware (e.g., backdoors, reverse shells, or arbitrary exfiltration); behavior aligns with an auth bootstrap/automation utility. The main anomaly is that the proxy parameter is accepted but unused, which could be a design bug or a mismatch with expected network controls. Overall: not clearly malicious, but poses medium-to-high risk in supply-chain contexts due to credential/cookie extraction and persistence.

Confidence: 60%Severity: 58%
AnomalyLOW
scripts/gemini-webapi/types/image.ts

No direct indicators of intentional malware (no backdoor logic, credential theft routines, process spawning, dynamic code execution, or persistence mechanisms) are present in this fragment. However, the module performs security-sensitive actions: it can fetch arbitrary URLs and follow redirects without host/protocol restrictions (notably raising SSRF risk), it attaches caller-provided cookies to destinations (which may leak to redirected hosts if attacker-influenced), and it writes remote response bytes to disk while only loosely validating filenames and content-type (enabling arbitrary file write within/possibly outside the intended directory if filename contains path traversal/special characters). These behaviors warrant strict input validation, URL allowlisting, redirect destination controls, and robust filename/path sanitization when used in any untrusted or supply-chain-adjacent context.

Confidence: 74%Severity: 66%
AnomalyLOW
scripts/gemini-webapi/utils/upload-file.ts

This module is a straightforward file-upload helper that can read arbitrary local files (based on the caller-supplied `file` path) and transmit their full contents to a configured remote endpoint. There is no direct evidence of covert malware in the snippet, but it can operate as a data exfiltration capability if upstream input or configuration is attacker-influenced. The `_proxy` argument is unused and the actual destination/auth details are externalized in constants, limiting certainty about intent.

Confidence: 62%Severity: 55%
Audit Metadata
Analyzed At
Aug 14, 2026, 04:00 PM
Package URL
pkg:socket/skills-sh/atxinsky%2Fskills%2Fbaoyu-danger-gemini-web%2F@db9c2c6a32a0a3909321a317dd4aecbc044d4a4e33fe757a6656d324d6f0b687
Security Audit — socket — baoyu-danger-gemini-web