Security audit & pin agent-browser version in postinstall#1452
Open
sjursky wants to merge 2 commits intoruvnet:mainfrom
Open
Security audit & pin agent-browser version in postinstall#1452sjursky wants to merge 2 commits intoruvnet:mainfrom
sjursky wants to merge 2 commits intoruvnet:mainfrom
Conversation
Full repository scan for leaked API keys, hardcoded credentials, and supply chain risks. All matches are placeholders, test fixtures, or documentation examples. Two minor hardening recommendations noted. https://claude.ai/code/session_01RiUrksVbu4ZcMi3exqU7cM
Replace @latest with @0.6.0 to prevent automatic installation of a potentially compromised version if the npm package is hijacked. https://claude.ai/code/session_01RiUrksVbu4ZcMi3exqU7cM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR documents a comprehensive security audit of the repository and implements a supply chain hardening recommendation by pinning the
agent-browserpackage version in the postinstall script.Changes
Added security audit report (
docs/security/API-KEY-AUDIT-2026-03-26.md): Documents a full repository scan for leaked API keys, hardcoded secrets, and supply chain risks. Results show no real credentials were leaked, with all matches being safe documentation placeholders or test fixtures.Pinned agent-browser version: Updated
v3/@claude-flow/browser/package.jsonpostinstall script to installagent-browser@0.6.0instead of@latest, reducing supply chain attack surface by ensuring deterministic dependency installation.Implementation Details
The postinstall script change replaces two instances of
agent-browser@latestwith the pinned versionagent-browser@0.6.0(matching the version constraint already specified in dependencies). This prevents unexpected major version updates during installation and aligns with the audit's supply chain hardening recommendations.The security audit confirms:
.envfiles in repository