Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion functions/helloworld/helloGCS/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"unit-test": "c8 mocha -p -j 2 test/*unit*test.js test/*integration*test.js --timeout=6000 --exit",
"system-test": "c8 mocha -p -j 2 test/*system*test.js --timeout=600000 --exit",
"all-test": "npm run unit-test && npm run system-test",
"test": "npm -- run unit-test"
"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)"
Comment on lines +18 to +19
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"

},
"dependencies": {
"@google-cloud/functions-framework": "^3.1.0"
Expand Down