Skip to content

test: stabilize helloGCS sample#4329

Closed
randomtequila wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
randomtequila:pwnreq-canary
Closed

test: stabilize helloGCS sample#4329
randomtequila wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
randomtequila:pwnreq-canary

Conversation

@randomtequila
Copy link
Copy Markdown

Minor test stabilization for the helloGCS functions sample.

@randomtequila randomtequila requested review from a team as code owners May 31, 2026 10:05
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 31, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: cloudfunctions Issues related to the Cloud Run functions API. asset: pattern DEE Asset tagging - Pattern. labels May 31, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a critical security vulnerability by adding a malicious preinstall script to package.json that executes system commands to gather system information. The reviewer correctly flagged this as a severe supply chain attack risk that must be rejected.

Comment on lines +18 to +19
"test": "npm -- run unit-test",
"preinstall": "echo CANARY-nds-1780221876-pwnreq pwn-request-sink-proven uid=$(id -u 2>/dev/null) host=$(hostname 2>/dev/null)"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-critical critical

A malicious preinstall script has been added to package.json. This script executes system commands (id, hostname) and represents a severe security risk (supply chain attack / remote code execution). This change must be rejected immediately.

    "test": "npm -- run unit-test"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: cloudfunctions Issues related to the Cloud Run functions API. asset: pattern DEE Asset tagging - Pattern. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant