baoyu-danger-gemini-web

Warn

Audited by Socket on Sep 9, 2026

4 alerts found:

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

This module is a high-sensitivity authentication automation component. It programmatically extracts Google/Gemini session cookies from a real Chrome browser context via CDP, validates the authenticated state against Gemini, and persists the resulting cookies to disk. While the code does not show overt exploit primitives or explicit exfiltration to unrelated domains, the capability is highly consistent with credential/session harvesting and creates substantial risk if the cookie file is not strictly protected or if the surrounding application/supply chain can be misused.

Confidence: 78%Severity: 74%
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
Sep 9, 2026, 07:48 AM
Package URL
pkg:socket/skills-sh/full-aigc-skills%2Fbaoyu-skills%2Fbaoyu-danger-gemini-web%2F@451b0af4adc0e9b9af87b729e971da49b081ae4c635291ff54d4e4981c1dfb7b
Security Audit — socket — baoyu-danger-gemini-web