octocode-scraping

Warn

Audited by Socket on Aug 26, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
scripts/lib/client.mjs

In the provided fragment, there is no explicit evidence of classic malware indicators such as credential theft, reverse shells, destructive filesystem actions, or direct remote exfiltration to a C2 domain. However, the module is security-sensitive: it dynamically generates and executes a runner via spawnSync and uses CDP to navigate to caller-supplied URLs and extract full rendered HTML. The optional stealth/evasion path (dynamic import of undercover.mjs with a verification gate) strongly suggests intended anti-detection behavior typical of scraping/crawling frameworks. If untrusted parties can influence url/targetUrl/config, the risk increases substantially (privacy/data exposure and potential policy abuse).

Confidence: 56%Severity: 62%
AnomalyLOW
scripts/corpus-run.mjs

This module does not show direct malware behaviors like network exfiltration or reverse shells. However, it is security-sensitive because it supports dynamic execution of an attacker-influenced local plugin via --script and provides that plugin a filesystem-capable context (read/write) without visible path sandbox enforcement in this file. Additionally, regex match outputs (snippets, capture groups, and absolute paths) are printed to stdout and could leak sensitive data from the scanned corpus. Primary risks: arbitrary local code execution (via plugin mechanism), potential directory escape/path traversal depending on how ctxBase.read/write inputs are controlled by the plugin, and regex-driven CPU exhaustion (ReDoS) from user-supplied patterns.

Confidence: 72%Severity: 67%
Audit Metadata
Analyzed At
Aug 26, 2026, 05:43 AM
Package URL
pkg:socket/skills-sh/bgauryy%2Foctocode%2Foctocode-scraping%2F@bc4c172a8b9c2c571136264cc10bd5889ec26c47e07187eabf970ebe220fb5d8
Security Audit — socket — octocode-scraping