Skip to content

fix(gitlawb): replace curl|sh installer with npm install -g @gitlawb/gl#396

Open
antfleet-ops wants to merge 1 commit into
BankrBot:mainfrom
antfleet-ops:fix/gitlawb-safe-install
Open

fix(gitlawb): replace curl|sh installer with npm install -g @gitlawb/gl#396
antfleet-ops wants to merge 1 commit into
BankrBot:mainfrom
antfleet-ops:fix/gitlawb-safe-install

Conversation

@antfleet-ops
Copy link
Copy Markdown

Security fix — supply-chain attack vector in setup.sh

Severity: HIGH

What's wrong

gitlawb/scripts/setup.sh installs the gl CLI by fetching and executing a remote shell script with no integrity check:

curl -sSf https://gitlawb.com/install.sh | sh

Anyone who can compromise gitlawb.com or intercept the connection (MITM, CDN compromise) achieves arbitrary code execution on every user or AI agent running the skill. Because setup.sh is called automatically as part of skill onboarding, the blast radius extends to all downstream consumers.

Fix

Replace the curl | sh pattern with the npm install path that is already documented in SKILL.md:

npm install -g @gitlawb/gl

npm verifies the package against the registry's cryptographic signatures — no remote shell execution over an unverified channel.

Diff

-  curl -sSf https://gitlawb.com/install.sh | sh
+  npm install -g @gitlawb/gl

Found by AntFleet automated security review. Bench PR: AntFleet/bankrskills-bench#3

The setup script fetched and executed an arbitrary remote shell script
with no checksum or version pin, giving anyone who compromises gitlawb.com
or intercepts the connection arbitrary code execution on the installing
agent. The SKILL.md already documents the safer npm path; use it instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant