@node9/proxy 2.9.0 → 2.9.1
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/dist/cli.js +3 -8
- package/dist/cli.mjs +4 -9
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17287,10 +17287,7 @@ function registerScanCommand(program2) {
|
|
|
17287
17287
|
const n = scan.canaryFindings.length;
|
|
17288
17288
|
console.log(
|
|
17289
17289
|
" " + import_chalk6.default.red.bold("\u{1FAA4} Decoy Tripped") + import_chalk6.default.dim(" \xB7 ") + import_chalk6.default.red(
|
|
17290
|
-
`${num(n)} decoy credential${n !== 1 ? "s" : ""} left the file node9
|
|
17291
|
-
"planted it in",
|
|
17292
|
-
"planted it in"
|
|
17293
|
-
)
|
|
17290
|
+
`${num(n)} decoy credential${n !== 1 ? "s" : ""} left the file node9 planted it in`
|
|
17294
17291
|
)
|
|
17295
17292
|
);
|
|
17296
17293
|
const shownCanaries = drillDown ? scan.canaryFindings : scan.canaryFindings.slice(0, topN);
|
|
@@ -59137,9 +59134,8 @@ var DB_USERS = ["app", "svc", "reporter"];
|
|
|
59137
59134
|
var DB_HOSTS = ["db-internal", "pg-primary.internal", "postgres.svc.cluster.local"];
|
|
59138
59135
|
var DB_NAMES = ["app", "prod", "main"];
|
|
59139
59136
|
var pick = (alphabet, n) => {
|
|
59140
|
-
const bytes = (0, import_crypto15.randomBytes)(n);
|
|
59141
59137
|
let out = "";
|
|
59142
|
-
for (let i = 0; i < n; i++) out += alphabet[
|
|
59138
|
+
for (let i = 0; i < n; i++) out += alphabet[(0, import_crypto15.randomInt)(alphabet.length)];
|
|
59143
59139
|
return out;
|
|
59144
59140
|
};
|
|
59145
59141
|
var choose = (xs) => xs[(0, import_crypto15.randomInt)(xs.length)];
|
|
@@ -59281,9 +59277,8 @@ function plantKind(kind, home = import_os55.default.homedir()) {
|
|
|
59281
59277
|
};
|
|
59282
59278
|
}
|
|
59283
59279
|
const dir = import_path61.default.dirname(target);
|
|
59284
|
-
const createdDir = !import_fs66.default.existsSync(dir);
|
|
59285
59280
|
const gen = site.generate();
|
|
59286
|
-
|
|
59281
|
+
const createdDir = import_fs66.default.mkdirSync(dir, { recursive: true, mode: site.dirMode }) !== void 0;
|
|
59287
59282
|
import_fs66.default.writeFileSync(target, gen.text, { mode: 384, flag: "wx" });
|
|
59288
59283
|
import_fs66.default.chmodSync(target, 384);
|
|
59289
59284
|
const fileHash = sha256Hex(gen.text);
|
package/dist/cli.mjs
CHANGED
|
@@ -17291,10 +17291,7 @@ function registerScanCommand(program2) {
|
|
|
17291
17291
|
const n = scan.canaryFindings.length;
|
|
17292
17292
|
console.log(
|
|
17293
17293
|
" " + chalk6.red.bold("\u{1FAA4} Decoy Tripped") + chalk6.dim(" \xB7 ") + chalk6.red(
|
|
17294
|
-
`${num(n)} decoy credential${n !== 1 ? "s" : ""} left the file node9
|
|
17295
|
-
"planted it in",
|
|
17296
|
-
"planted it in"
|
|
17297
|
-
)
|
|
17294
|
+
`${num(n)} decoy credential${n !== 1 ? "s" : ""} left the file node9 planted it in`
|
|
17298
17295
|
)
|
|
17299
17296
|
);
|
|
17300
17297
|
const shownCanaries = drillDown ? scan.canaryFindings : scan.canaryFindings.slice(0, topN);
|
|
@@ -59113,7 +59110,7 @@ import path64 from "path";
|
|
|
59113
59110
|
|
|
59114
59111
|
// src/canary/generate.ts
|
|
59115
59112
|
init_dlp();
|
|
59116
|
-
import {
|
|
59113
|
+
import { randomInt } from "crypto";
|
|
59117
59114
|
var ALPHA_B32 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
59118
59115
|
var ALPHA_ALNUM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
59119
59116
|
var ALPHA_B64 = ALPHA_ALNUM + "+/";
|
|
@@ -59129,9 +59126,8 @@ var DB_USERS = ["app", "svc", "reporter"];
|
|
|
59129
59126
|
var DB_HOSTS = ["db-internal", "pg-primary.internal", "postgres.svc.cluster.local"];
|
|
59130
59127
|
var DB_NAMES = ["app", "prod", "main"];
|
|
59131
59128
|
var pick = (alphabet, n) => {
|
|
59132
|
-
const bytes = randomBytes2(n);
|
|
59133
59129
|
let out = "";
|
|
59134
|
-
for (let i = 0; i < n; i++) out += alphabet[
|
|
59130
|
+
for (let i = 0; i < n; i++) out += alphabet[randomInt(alphabet.length)];
|
|
59135
59131
|
return out;
|
|
59136
59132
|
};
|
|
59137
59133
|
var choose = (xs) => xs[randomInt(xs.length)];
|
|
@@ -59273,9 +59269,8 @@ function plantKind(kind, home = os59.homedir()) {
|
|
|
59273
59269
|
};
|
|
59274
59270
|
}
|
|
59275
59271
|
const dir = path65.dirname(target);
|
|
59276
|
-
const createdDir = !fs70.existsSync(dir);
|
|
59277
59272
|
const gen = site.generate();
|
|
59278
|
-
|
|
59273
|
+
const createdDir = fs70.mkdirSync(dir, { recursive: true, mode: site.dirMode }) !== void 0;
|
|
59279
59274
|
fs70.writeFileSync(target, gen.text, { mode: 384, flag: "wx" });
|
|
59280
59275
|
fs70.chmodSync(target, 384);
|
|
59281
59276
|
const fileHash = sha256Hex(gen.text);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node9/proxy",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.1",
|
|
4
4
|
"description": "The Sudo Command for AI Agents. Execution Security for Claude Code, Codex, Gemini, Cursor, Opencode, Pi, and any MCP server.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|