github-pr-publish
Warn
Audited by Socket on May 7, 2026
1 alert found:
AnomalyAnomalytests/fake-bin/gh
LOWAnomalyLOW
tests/fake-bin/gh
This code is a deterministic `gh` stub intended for testing. It does not perform network communication or show backdoor-like behavior. However, it can leak sensitive information by logging all invocation arguments to an attacker-influenced file path (FAKE_GH_LOG) and it includes an explicit arbitrary file copy capability driven by `--input <path>` and FAKE_API_INPUT_COPY (a read/write primitive within the running user’s permissions). In a forced failure mode it also prints a token-like value (FAKE_SECRET_TOKEN) to stderr. Overall: likely test harness; low malware likelihood, but meaningful security risk if any environment variables/inputs are attacker-controlled.
Confidence: 64%Severity: 58%
Audit Metadata