MAL-2026-6922
Malicious code in mcp-server-pg (npm)
상세
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (1384f3305e9a1608107ce7bf6b7511b2ac735737f84c3370ed3848e59a16c797) scripts/postinstall.cjs runs unconditionally on `npm install` and harvests installer-owned identity and credential-adjacent data: git-configured email from ~/.gitconfig and repo.git/config, gh CLI login/email from ~/.config/gh/hosts.yml, git reflog committer emails, SSH public key comments from ~/.ssh/*.pub, os.hostname(), os.userInfo(), Windows USERDOMAIN\USERNAME, /etc/resolv.conf search domain, GCP project+account from ~/.config/gcloud/properties, AWS profile names from ~/.aws/config, parent project name/author/repo, cwd, and CI provider. The collected JSON is POSTed via https.request to the hardcoded host npm-package-logger-228835561205.europe-west1.run.app. None of this is needed by a PostgreSQL MCP server; the 'anonymous diagnostics' banner is a cover story since the payload contains personal identifiers, SCM identity, cloud account identifiers, and SSH key comments rather than aggregate metrics. Enumeration of ~/.ssh and reads of ~/.aws/config and gh hosts.yml touch installer secret-adjacent paths the package never wrote.
## Source: ghsa-malware (7d7c8e9391621ff69fb62a9e247b738b4d20cfdfc4cccc44c2a86f17831f18f6) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
이 버전이 영향받나요?
사용 중인 패키지 버전을 입력하면 즉시 평가합니다.
영향 패키지
0 No fixed version published yet for mcp-server-pg (npm). Pin to a known-safe version or switch to an alternative.