gh-fine-grained-pat
Audited by Socket on Sep 8, 2026
4 alerts found:
Anomalyx3SecurityThis module is primarily a credential/token/passkey automation CLI with strong local identity checks and restrictive file permissions (0600) for stored secrets. It does run local binaries and an internal webauth agent and contains an autonomous login feature (GH_PAT_AUTONOMOUS), which elevates the importance of verifying imported modules and local 'vault' tooling. Based on this snippet alone, there is no direct evidence of network exfiltration, hidden backdoors, eval-based payload execution, or other overt malicious behavior. Overall risk is driven by sensitive secret handling and the potential impact if dependencies/binaries are compromised rather than by explicit malicious code in this file.
No clear, direct malware indicators are present in the provided fragment. The code appears to be legitimate GitHub PAT automation using browser UI interactions. However, it likely handles highly sensitive credentials (PAT extraction and debug screenshots) and includes conditional dynamic import of './autosudo.mjs' plus a helper named evalClick whose behavior is unknown. If tracing/debug artifacts capture token values, the security risk increases substantially. Review the omitted functions/modules (extractToken, shot, autosudo.mjs, evalClick) for credential handling and any network exfiltration.
This fragment does not contain malware or obfuscation; it is a declarative authorization scope. However, it requests a highly privileged token (administration write and contents write) across all repositories, which substantially increases impact if provisioned token credentials are leaked or misused. Require least-privilege scoping, short lifetimes with clear units, and strong secret handling/auditing around the provisioning and usage workflows.
This code is a straightforward local IPC credential/blob cache agent, not overt malware. However, it exposes substantial security risk in multi-process environments: the Unix socket RPC is completely unauthenticated, allowing any local connector to read/overwrite stored 'blob' values and to trigger shutdown via an unauthenticated 'stop' operation (server.close + process.exit). Additionally, the server has unbounded request buffering (possible DoS). Risk is therefore dominated by local privilege/isolation requirements (socket permissions) rather than by remote exploitation or embedded payload behavior.