infracensus-collector 1.6.39 → 1.6.41
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/a10-index.js +2 -2
- package/dist/{archive-WUAOYD6W.js → archive-L7IISLXQ.js} +3 -3
- package/dist/azure-index.js +6 -6
- package/dist/{chunk-PG7WMYOE.js → chunk-2KFYODJV.js} +4 -4
- package/dist/{chunk-JYKJ4BFU.js → chunk-46FBMNHM.js} +3 -3
- package/dist/{chunk-YP7CVQGQ.js → chunk-5JLHWQU2.js} +3 -3
- package/dist/{chunk-T6JB77HZ.js → chunk-6AL4KLWE.js} +4 -4
- package/dist/{chunk-AXF7EDX4.js → chunk-BIM3OHHA.js} +2 -2
- package/dist/{chunk-MHSB5RI7.js → chunk-ELDSQRJG.js} +2 -2
- package/dist/{chunk-CETM5RFS.js → chunk-F3UHVTUK.js} +2 -2
- package/dist/{chunk-MUPF5UXE.js → chunk-FKCHITNF.js} +2 -2
- package/dist/{chunk-7IUHDQF5.js → chunk-JNM65LHW.js} +2 -2
- package/dist/{chunk-GHHUL2EC.js → chunk-LFBHDGZX.js} +8 -8
- package/dist/{chunk-DIS3S4SY.js → chunk-LNT44VQ7.js} +6 -2
- package/dist/{chunk-DIS3S4SY.js.map → chunk-LNT44VQ7.js.map} +2 -2
- package/dist/{chunk-DEIMF5TU.js → chunk-NNZIVQER.js} +4 -4
- package/dist/{chunk-YV5VQ62P.js → chunk-O6ABMNR4.js} +2 -2
- package/dist/{chunk-YZWSFWYU.js → chunk-RGXTNBHM.js} +2 -2
- package/dist/{chunk-F6SRA5HA.js → chunk-RHD7NXOA.js} +3 -3
- package/dist/{chunk-5GOXZQUA.js → chunk-TVCWVGRL.js} +2 -2
- package/dist/{chunk-3G5Q7UTM.js → chunk-U36YI2IZ.js} +6692 -5481
- package/dist/chunk-U36YI2IZ.js.map +7 -0
- package/dist/{chunk-VLECDDYY.js → chunk-UA3CT7VP.js} +2 -2
- package/dist/{chunk-6E6DXOMO.js → chunk-Z4P7SX3X.js} +5 -5
- package/dist/{chunk-35HRCANZ.js → chunk-Z7EX42VD.js} +5 -5
- package/dist/{chunk-YLTIO26G.js → chunk-Z7KES52C.js} +3 -3
- package/dist/cli.js +8 -8
- package/dist/{config-O4MBFWYH.js → config-WJPBC3KH.js} +3 -3
- package/dist/configimport-index.js +4 -4
- package/dist/hyperv-index.js +6 -6
- package/dist/identity-index.js +6 -6
- package/dist/index.js +1206 -194
- package/dist/index.js.map +4 -4
- package/dist/{ocr-FX65NM7K.js → ocr-7YPUCWXW.js} +5 -5
- package/dist/sdd-classify-worker-index.js +3 -3
- package/dist/sensitive-data-index.js +13 -13
- package/dist/smb-shares-index.js +13 -13
- package/dist/sql-index.js +6 -6
- package/dist/{status-MGLUAY6O.js → status-RRAGPU47.js} +8 -8
- package/dist/vmware-index.js +6 -6
- package/dist/voice-index.js +6 -6
- package/package.json +1 -1
- package/dist/chunk-3G5Q7UTM.js.map +0 -7
- /package/dist/{archive-WUAOYD6W.js.map → archive-L7IISLXQ.js.map} +0 -0
- /package/dist/{chunk-PG7WMYOE.js.map → chunk-2KFYODJV.js.map} +0 -0
- /package/dist/{chunk-JYKJ4BFU.js.map → chunk-46FBMNHM.js.map} +0 -0
- /package/dist/{chunk-YP7CVQGQ.js.map → chunk-5JLHWQU2.js.map} +0 -0
- /package/dist/{chunk-T6JB77HZ.js.map → chunk-6AL4KLWE.js.map} +0 -0
- /package/dist/{chunk-AXF7EDX4.js.map → chunk-BIM3OHHA.js.map} +0 -0
- /package/dist/{chunk-MHSB5RI7.js.map → chunk-ELDSQRJG.js.map} +0 -0
- /package/dist/{chunk-CETM5RFS.js.map → chunk-F3UHVTUK.js.map} +0 -0
- /package/dist/{chunk-MUPF5UXE.js.map → chunk-FKCHITNF.js.map} +0 -0
- /package/dist/{chunk-7IUHDQF5.js.map → chunk-JNM65LHW.js.map} +0 -0
- /package/dist/{chunk-GHHUL2EC.js.map → chunk-LFBHDGZX.js.map} +0 -0
- /package/dist/{chunk-DEIMF5TU.js.map → chunk-NNZIVQER.js.map} +0 -0
- /package/dist/{chunk-YV5VQ62P.js.map → chunk-O6ABMNR4.js.map} +0 -0
- /package/dist/{chunk-YZWSFWYU.js.map → chunk-RGXTNBHM.js.map} +0 -0
- /package/dist/{chunk-F6SRA5HA.js.map → chunk-RHD7NXOA.js.map} +0 -0
- /package/dist/{chunk-5GOXZQUA.js.map → chunk-TVCWVGRL.js.map} +0 -0
- /package/dist/{chunk-VLECDDYY.js.map → chunk-UA3CT7VP.js.map} +0 -0
- /package/dist/{chunk-6E6DXOMO.js.map → chunk-Z4P7SX3X.js.map} +0 -0
- /package/dist/{chunk-35HRCANZ.js.map → chunk-Z7EX42VD.js.map} +0 -0
- /package/dist/{chunk-YLTIO26G.js.map → chunk-Z7KES52C.js.map} +0 -0
- /package/dist/{config-O4MBFWYH.js.map → config-WJPBC3KH.js.map} +0 -0
- /package/dist/{ocr-FX65NM7K.js.map → ocr-7YPUCWXW.js.map} +0 -0
- /package/dist/{status-MGLUAY6O.js.map → status-RRAGPU47.js.map} +0 -0
package/dist/a10-index.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-2CKQ2AXQ.js";
|
|
5
5
|
import {
|
|
6
6
|
requireEntitlementToScan
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O6ABMNR4.js";
|
|
8
8
|
import {
|
|
9
9
|
ROUTES
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U36YI2IZ.js";
|
|
11
11
|
import "./chunk-XSHYWQAH.js";
|
|
12
12
|
|
|
13
13
|
// src/a10-index.ts
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
extensionKind,
|
|
3
3
|
extractOpenXml,
|
|
4
4
|
extractPlainText
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NNZIVQER.js";
|
|
6
6
|
import {
|
|
7
7
|
checkEntryPath,
|
|
8
8
|
checkEntrySize
|
|
9
9
|
} from "./chunk-A5WDSTPU.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-U36YI2IZ.js";
|
|
11
11
|
|
|
12
12
|
// src/sensitiveData/archive.ts
|
|
13
13
|
import { unzipSync } from "fflate";
|
|
@@ -68,4 +68,4 @@ function extractArchive(bytes) {
|
|
|
68
68
|
export {
|
|
69
69
|
extractArchive
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=archive-
|
|
71
|
+
//# sourceMappingURL=archive-L7IISLXQ.js.map
|
package/dist/azure-index.js
CHANGED
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
ArmClient,
|
|
3
3
|
buildAzureInventory,
|
|
4
4
|
listAccessibleSubscriptions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FKCHITNF.js";
|
|
6
6
|
import "./chunk-X46NKIFT.js";
|
|
7
7
|
import {
|
|
8
8
|
pushAzureInventory
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6AL4KLWE.js";
|
|
10
|
+
import "./chunk-ELDSQRJG.js";
|
|
11
11
|
import {
|
|
12
12
|
loadAzureConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TVCWVGRL.js";
|
|
14
14
|
import {
|
|
15
15
|
requireEntitlementToScan
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-O6ABMNR4.js";
|
|
17
|
+
import "./chunk-U36YI2IZ.js";
|
|
18
18
|
import "./chunk-XSHYWQAH.js";
|
|
19
19
|
|
|
20
20
|
// src/azure-index.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VaultError,
|
|
3
3
|
openVault
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RHD7NXOA.js";
|
|
5
5
|
import {
|
|
6
6
|
configFilePath,
|
|
7
7
|
vaultSettings
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TVCWVGRL.js";
|
|
9
9
|
import {
|
|
10
10
|
VaultProtection
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-U36YI2IZ.js";
|
|
12
12
|
|
|
13
13
|
// src/vault/collectorKey.ts
|
|
14
14
|
import { readFileSync, writeFileSync, renameSync, existsSync } from "node:fs";
|
|
@@ -129,4 +129,4 @@ export {
|
|
|
129
129
|
migrateCollectorApiKey,
|
|
130
130
|
plaintextKeyWarning
|
|
131
131
|
};
|
|
132
|
-
//# sourceMappingURL=chunk-
|
|
132
|
+
//# sourceMappingURL=chunk-2KFYODJV.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
extractFile,
|
|
7
7
|
readFileBounded,
|
|
8
8
|
withDeadline
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NNZIVQER.js";
|
|
10
10
|
import {
|
|
11
11
|
checkEntryPath
|
|
12
12
|
} from "./chunk-A5WDSTPU.js";
|
|
13
13
|
import {
|
|
14
14
|
SddUnreadableReason
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U36YI2IZ.js";
|
|
16
16
|
import {
|
|
17
17
|
PKG_ROOT
|
|
18
18
|
} from "./chunk-XSHYWQAH.js";
|
|
@@ -2371,4 +2371,4 @@ export {
|
|
|
2371
2371
|
tabularCells,
|
|
2372
2372
|
columnConfidence
|
|
2373
2373
|
};
|
|
2374
|
-
//# sourceMappingURL=chunk-
|
|
2374
|
+
//# sourceMappingURL=chunk-46FBMNHM.js.map
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
8
8
|
function collectorVersion() {
|
|
9
|
-
if ("1.6.
|
|
10
|
-
return "1.6.
|
|
9
|
+
if ("1.6.41".length > 0) {
|
|
10
|
+
return "1.6.41";
|
|
11
11
|
}
|
|
12
12
|
return installedVersion();
|
|
13
13
|
}
|
|
@@ -31,4 +31,4 @@ export {
|
|
|
31
31
|
installedVersion,
|
|
32
32
|
restartNeededNotice
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-5JLHWQU2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isPlanRefusal,
|
|
3
3
|
planRefusalFrom
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ELDSQRJG.js";
|
|
5
5
|
import {
|
|
6
6
|
COLLECTOR_AUTH_HEADER,
|
|
7
7
|
IngestResult,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
SnapshotUploadCloseResult,
|
|
11
11
|
SnapshotUploadOpenResult,
|
|
12
12
|
collectorBearer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-O6ABMNR4.js";
|
|
14
14
|
import {
|
|
15
15
|
ApiError,
|
|
16
16
|
CertReportResult,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
SddRunBatchResult,
|
|
20
20
|
SddRunCloseResult,
|
|
21
21
|
SddRunOpenResult
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-U36YI2IZ.js";
|
|
23
23
|
|
|
24
24
|
// src/core/snapshotChunks.ts
|
|
25
25
|
var CHUNK_THRESHOLD_BYTES = 1048576;
|
|
@@ -551,4 +551,4 @@ export {
|
|
|
551
551
|
pushSddBatch,
|
|
552
552
|
pushSddRunClose
|
|
553
553
|
};
|
|
554
|
-
//# sourceMappingURL=chunk-
|
|
554
|
+
//# sourceMappingURL=chunk-6AL4KLWE.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
VoiceRegion,
|
|
14
14
|
VoiceSystem,
|
|
15
15
|
WebexCalling
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-U36YI2IZ.js";
|
|
17
17
|
|
|
18
18
|
// src/voice/axl.ts
|
|
19
19
|
import { XMLParser } from "fast-xml-parser";
|
|
@@ -2044,4 +2044,4 @@ export {
|
|
|
2044
2044
|
buildUnityInventory,
|
|
2045
2045
|
buildWebexInventory
|
|
2046
2046
|
};
|
|
2047
|
-
//# sourceMappingURL=chunk-
|
|
2047
|
+
//# sourceMappingURL=chunk-BIM3OHHA.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiError,
|
|
3
3
|
moduleForScanDomain
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U36YI2IZ.js";
|
|
5
5
|
|
|
6
6
|
// src/core/planRefusal.ts
|
|
7
7
|
var PLAN_REFUSAL_CODES = [
|
|
@@ -116,4 +116,4 @@ export {
|
|
|
116
116
|
asPlanRefusal,
|
|
117
117
|
createRefusalLatch
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=chunk-
|
|
119
|
+
//# sourceMappingURL=chunk-ELDSQRJG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SqlIngestBody
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U36YI2IZ.js";
|
|
4
4
|
|
|
5
5
|
// src/sql/scan.ts
|
|
6
6
|
import sql from "mssql";
|
|
@@ -510,4 +510,4 @@ export {
|
|
|
510
510
|
scanSqlServer,
|
|
511
511
|
buildSqlInventory
|
|
512
512
|
};
|
|
513
|
-
//# sourceMappingURL=chunk-
|
|
513
|
+
//# sourceMappingURL=chunk-F3UHVTUK.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
AzureRbacAssignment,
|
|
12
12
|
AzureResource,
|
|
13
13
|
AzureSubscription
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U36YI2IZ.js";
|
|
15
15
|
|
|
16
16
|
// src/azure/arm.ts
|
|
17
17
|
var noopLog = () => {
|
|
@@ -869,4 +869,4 @@ export {
|
|
|
869
869
|
listAccessibleSubscriptions,
|
|
870
870
|
buildAzureInventory
|
|
871
871
|
};
|
|
872
|
-
//# sourceMappingURL=chunk-
|
|
872
|
+
//# sourceMappingURL=chunk-FKCHITNF.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7ESBA5C5.js";
|
|
4
4
|
import {
|
|
5
5
|
VmwareIngestBody
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U36YI2IZ.js";
|
|
7
7
|
|
|
8
8
|
// src/vmware/soap.ts
|
|
9
9
|
import { XMLParser } from "fast-xml-parser";
|
|
@@ -1376,4 +1376,4 @@ export {
|
|
|
1376
1376
|
VsphereClient,
|
|
1377
1377
|
buildVmwareInventory
|
|
1378
1378
|
};
|
|
1379
|
-
//# sourceMappingURL=chunk-
|
|
1379
|
+
//# sourceMappingURL=chunk-JNM65LHW.js.map
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
createThrottle,
|
|
3
3
|
runClassification,
|
|
4
4
|
walkShare
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-46FBMNHM.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_EXTRACTION_POLICY,
|
|
8
8
|
extensionKind,
|
|
9
9
|
extractFile,
|
|
10
10
|
stallReason
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NNZIVQER.js";
|
|
12
12
|
import {
|
|
13
13
|
mapWithConcurrency
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Z4P7SX3X.js";
|
|
15
15
|
import {
|
|
16
16
|
VaultError,
|
|
17
17
|
openVault
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RHD7NXOA.js";
|
|
19
19
|
import {
|
|
20
20
|
PS_UTF8_STDOUT,
|
|
21
21
|
loginName
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
pushSddBatch,
|
|
25
25
|
pushSddRunClose,
|
|
26
26
|
pushSddRunOpen
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6AL4KLWE.js";
|
|
28
28
|
import {
|
|
29
29
|
vaultSettings
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TVCWVGRL.js";
|
|
31
31
|
import {
|
|
32
32
|
VaultProtection
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-U36YI2IZ.js";
|
|
34
34
|
|
|
35
35
|
// src/sensitiveData/hostPool.ts
|
|
36
36
|
var DEFAULT_ENUM_CONCURRENCY = 8;
|
|
@@ -832,4 +832,4 @@ export {
|
|
|
832
832
|
machineVerdict,
|
|
833
833
|
deliveryVerdict
|
|
834
834
|
};
|
|
835
|
-
//# sourceMappingURL=chunk-
|
|
835
|
+
//# sourceMappingURL=chunk-LFBHDGZX.js.map
|
|
@@ -63,7 +63,10 @@ function createSecretRegistry(initial = []) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
function redactLocal(text, secrets = []) {
|
|
66
|
-
|
|
66
|
+
return redactSecretValues(redactConfig(text).text, secrets);
|
|
67
|
+
}
|
|
68
|
+
function redactSecretValues(text, secrets = []) {
|
|
69
|
+
let result = text;
|
|
67
70
|
for (const secret of secrets) {
|
|
68
71
|
if (!result.includes(secret)) continue;
|
|
69
72
|
result = result.split(secret).join(CONFIGURED_SECRET_PLACEHOLDER);
|
|
@@ -87,6 +90,7 @@ export {
|
|
|
87
90
|
collectSecretValues,
|
|
88
91
|
createSecretRegistry,
|
|
89
92
|
redactLocal,
|
|
93
|
+
redactSecretValues,
|
|
90
94
|
redactMeta
|
|
91
95
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
96
|
+
//# sourceMappingURL=chunk-LNT44VQ7.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/core/localRedaction.ts"],
|
|
4
|
-
"sourcesContent": ["/**\r\n * Redaction for the collector's LOCAL surfaces \u2014 the operator console and the\r\n * use log.\r\n *\r\n * \u2500\u2500 WHY THIS FILE EXISTS \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n *\r\n * Everything else in this package worries about what leaves the building. This\r\n * one worries about what stays. The collector runs on the customer's hardware,\r\n * inside their network, holding their credentials, and the two easiest places in\r\n * the whole product to print one of those credentials are a console on a shared\r\n * terminal and a log file on a jump box. Neither of those machines is ours, and\r\n * neither is covered by the outbound redaction that `showOutputPush.ts` and\r\n * `configimport/run.ts` already apply \u2014 those redact on the way to the wire, and\r\n * a local console never touches the wire.\r\n *\r\n * \u2500\u2500 TWO PASSES, BECAUSE THERE ARE TWO KINDS OF SECRET \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n *\r\n * 1. **Structural.** Device output echoed into a message is configuration text,\r\n * and configuration text has a redactor already: `redactConfig` from\r\n * `@netdoc/config-ir`, the same one the outbound path uses. It is reused\r\n * verbatim rather than reimplemented, so a rule added for the wire protects\r\n * the console the same day. Its fail-closed stance comes along with it: a\r\n * line that merely *looks* like it carries a key is redacted, which\r\n * occasionally costs a little display fidelity on an ordinary message like\r\n * \"password rejected\". That is the correct side to err on here.\r\n *\r\n * 2. **Configured.** The credentials this collector was handed \u2014 the SNMP\r\n * communities, the SSH and Windows passwords, the vCenter/SQL/Graph/Azure\r\n * secrets, and its own control-plane API key. `redactConfig` cannot see\r\n * these: `S3cretC0mm` is an unremarkable word until you know it is the\r\n * community string. So the live values are collected from the resolved\r\n * config and struck out by value.\r\n *\r\n * \u2500\u2500 THE FIELD LIST IS DERIVED, NEVER HAND-KEPT \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n *\r\n * A hand-maintained roster of \"fields that hold secrets\" goes stale the first\r\n * time somebody adds a module, and it goes stale silently \u2014 the guard stays\r\n * green while its scope shrinks. So {@link isSecretField} classifies by name\r\n * over whatever keys the config schema actually declares, and\r\n * `localRedaction.test.ts` walks `FileConfig`'s shape and fails if any key is\r\n * neither classified secret nor listed as deliberately public. A new\r\n * `fooPassword` is covered without an edit here; a new field whose safety is\r\n * genuinely ambiguous fails the test until somebody decides.\r\n */\r\nimport { redactConfig } from \"@netdoc/config-ir\";\r\n\r\n/** What replaces a configured credential found in local output. */\r\nexport const CONFIGURED_SECRET_PLACEHOLDER = \"<REDACTED:configured-secret>\";\r\n\r\n/**\r\n * Name fragments that mark a config field as holding a credential.\r\n *\r\n * Matched case-insensitively against the field name, so `vcenterPass`,\r\n * `graphClientSecret`, `webexToken`, `snmpCommunities`, `sshCredentials` and\r\n * `apiKey` are all caught by shape rather than by enumeration.\r\n *\r\n * `user` is deliberately absent. A username is not a credential, and the\r\n * existing wire contract already reports one: `SshOutcome.username` names the\r\n * credential that authenticated precisely so an operator can tell which one\r\n * worked. Redacting usernames would blind the report without protecting\r\n * anything.\r\n *\r\n * The fragments are STEMS, not whole words. `communit` rather than `community`\r\n * because the field that actually holds the SNMP credentials is the plural\r\n * `snmpCommunities`, and an exact-word fragment sailed straight past it \u2014 the\r\n * coverage test in `localRedaction.test.ts` is what noticed, which is the\r\n * argument for deriving the list over the schema rather than writing it out.\r\n */\r\nconst SECRET_NAME_FRAGMENTS = [\r\n \"pass\", // vcenterPass, hypervPass, sqlPass, cucmPass, password, passwd\r\n \"secret\", // graphClientSecret, azureClientSecret, enable secret\r\n \"token\", // webexToken\r\n \"communit\", // snmpCommunity AND snmpCommunities\r\n \"credential\", // sshCredentials, windowsCredentials (arrays; walked into)\r\n \"apikey\", // apiKey \u2014 this collector's own identity on the control plane\r\n \"enable\", // the Cisco enable secret, named for what it unlocks\r\n] as const;\r\n\r\n/** Does this config field name denote a credential? */\r\nexport function isSecretField(name: string): boolean {\r\n const lowered = name.toLowerCase();\r\n return SECRET_NAME_FRAGMENTS.some((fragment) => lowered.includes(fragment));\r\n}\r\n\r\n/**\r\n * Single-character values are not collected.\r\n *\r\n * Striking every occurrence of one character out of a log would leave a file\r\n * that is useless as the evidence it exists to be, and it would do so on every\r\n * run \u2014 while a one-character credential is not a thing worth protecting at that\r\n * price. Everything from two characters up is struck. Note that the structural\r\n * pass still catches a short secret when it appears in configuration syntax,\r\n * which is the case that actually occurs.\r\n */\r\nconst MIN_SECRET_LENGTH = 2;\r\n\r\n/**\r\n * Pull every configured credential value out of a resolved config object.\r\n *\r\n * Walks recursively so credential ARRAYS are covered: `sshCredentials` is a\r\n * secret-named field but its value is a list of objects, and what matters is\r\n * the `password`/`enable` inside each one. Plain string arrays under a secret\r\n * name (`snmpCommunities`) contribute every element.\r\n *\r\n * Accepts `unknown` because the caller passes whichever of the seven config\r\n * shapes this run loaded, and they share no common type.\r\n */\r\nexport function collectSecretValues(config: unknown): string[] {\r\n const found = new Set<string>();\r\n\r\n const walk = (value: unknown, underSecretName: boolean): void => {\r\n if (typeof value === \"string\") {\r\n if (underSecretName && value.length >= MIN_SECRET_LENGTH) found.add(value);\r\n return;\r\n }\r\n if (Array.isArray(value)) {\r\n // The array itself inherits its key's classification; each element is\r\n // judged the same way, so a secret-named list of strings contributes all\r\n // of them and a list of credential objects is walked into.\r\n for (const item of value) walk(item, underSecretName);\r\n return;\r\n }\r\n if (value && typeof value === \"object\") {\r\n for (const [key, child] of Object.entries(value as Record<string, unknown>)) {\r\n walk(child, isSecretField(key));\r\n }\r\n }\r\n };\r\n\r\n walk(config, false);\r\n // Longest first: replacing \"hunter2\" before \"hunter\" stops a shorter secret\r\n // that happens to be a prefix of a longer one from carving it up and leaving\r\n // the tail in the clear.\r\n return [...found].sort((a, b) => b.length - a.length);\r\n}\r\n\r\n/**\r\n * A LIVE set of secret values, so redaction covers credentials the process did\r\n * not have when it started.\r\n *\r\n * `collectSecretValues` reads the config FILE, and the entry point calls it\r\n * once before the first job is claimed. That was the whole defence, and it\r\n * left a hole exactly the width of the daemon: every job carries its OWN\r\n * credentials \u2014 SSH passwords, enable secrets, SNMP communities, domain\r\n * passwords, all arriving from the control plane per job \u2014 and none of them\r\n * were in the frozen list. `core/daemon.ts` says \"Passwords never logged\" and\r\n * means it, but redaction by value is the net under that intention, and the\r\n * net had no job credentials in it. A vendor driver that echoes a failed\r\n * login line, or a device that prints its own community back, would have\r\n * reached the log on the customer's disk in the clear.\r\n *\r\n * Values only ever accumulate: a job's credentials stay redactable after the\r\n * job ends, because the lines it already wrote are still in the file and the\r\n * next reader of that file must not find a password in it.\r\n */\r\nexport interface SecretRegistry {\r\n /** Add values; anything null, short, or already known is ignored. */\r\n add(...values: readonly (string | null | undefined)[]): void;\r\n /** Longest-first, the order {@link redactLocal} needs. */\r\n values(): readonly string[];\r\n}\r\n\r\nexport function createSecretRegistry(initial: readonly string[] = []): SecretRegistry {\r\n const found = new Set<string>(initial.filter((s) => s.length >= MIN_SECRET_LENGTH));\r\n // Sorted on read rather than on write: adds happen per job, reads happen per\r\n // log line, and the set is tiny \u2014 but the ORDER is load-bearing (longest\r\n // first, so a short secret that prefixes a longer one cannot carve it up and\r\n // leave the tail in the clear), so it must not be skipped for speed.\r\n let cache: readonly string[] | null = null;\r\n return {\r\n add(...values) {\r\n for (const v of values) {\r\n if (typeof v !== \"string\" || v.length < MIN_SECRET_LENGTH || found.has(v)) continue;\r\n found.add(v);\r\n cache = null;\r\n }\r\n },\r\n values() {\r\n if (!cache) cache = [...found].sort((a, b) => b.length - a.length);\r\n return cache;\r\n },\r\n };\r\n}\r\n\r\n/**\r\n * Redact one piece of text destined for a local surface.\r\n *\r\n * Structural pass first \u2014 it understands configuration syntax and preserves the\r\n * shape that makes a line worth reading \u2014 then the value pass over whatever the\r\n * first one did not recognise.\r\n */\r\nexport function redactLocal(text: string, secrets: readonly string[] = []): string {\r\n let result = redactConfig(text).text;\r\n for (const secret of secrets) {\r\n if (!result.includes(secret)) continue;\r\n result = result.split(secret).join(CONFIGURED_SECRET_PLACEHOLDER);\r\n }\r\n return result;\r\n}\r\n\r\n/**\r\n * Redact a log call's `meta` argument.\r\n *\r\n * `Logger`'s third parameter is `unknown`, and callers in this package pass\r\n * anything from an error message to an object. It is printed, so it is a leak\r\n * surface exactly like the message is \u2014 but it cannot be run through a\r\n * line-oriented redactor while it is still an object. Non-strings are therefore\r\n * serialised, redacted, and handed back AS the redacted string: a slightly\r\n * different console rendering is a cheap price for the guarantee that nothing\r\n * reaches the terminal unexamined. A value that will not serialise (a cycle, a\r\n * BigInt) is dropped entirely rather than printed blind.\r\n */\r\nexport function redactMeta(meta: unknown, secrets: readonly string[] = []): unknown {\r\n if (meta === undefined) return undefined;\r\n if (typeof meta === \"string\") return redactLocal(meta, secrets);\r\n try {\r\n const serialized = JSON.stringify(meta);\r\n if (serialized === undefined) return \"[unserialisable meta omitted]\";\r\n return redactLocal(serialized, secrets);\r\n } catch {\r\n return \"[unserialisable meta omitted]\";\r\n }\r\n}\r\n"],
|
|
5
|
-
"mappings": ";;;;;AA+CO,IAAM,gCAAgC;AAqB7C,IAAM,wBAAwB;AAAA,EAC5B;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF;AAGO,SAAS,cAAc,MAAuB;AACnD,QAAM,UAAU,KAAK,YAAY;AACjC,SAAO,sBAAsB,KAAK,CAAC,aAAa,QAAQ,SAAS,QAAQ,CAAC;AAC5E;AAYA,IAAM,oBAAoB;AAanB,SAAS,oBAAoB,QAA2B;AAC7D,QAAM,QAAQ,oBAAI,IAAY;AAE9B,QAAM,OAAO,CAAC,OAAgB,oBAAmC;AAC/D,QAAI,OAAO,UAAU,UAAU;AAC7B,UAAI,mBAAmB,MAAM,UAAU,kBAAmB,OAAM,IAAI,KAAK;AACzE;AAAA,IACF;AACA,QAAI,MAAM,QAAQ,KAAK,GAAG;AAIxB,iBAAW,QAAQ,MAAO,MAAK,MAAM,eAAe;AACpD;AAAA,IACF;AACA,QAAI,SAAS,OAAO,UAAU,UAAU;AACtC,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAgC,GAAG;AAC3E,aAAK,OAAO,cAAc,GAAG,CAAC;AAAA,MAChC;AAAA,IACF;AAAA,EACF;AAEA,OAAK,QAAQ,KAAK;AAIlB,SAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM;AACtD;AA4BO,SAAS,qBAAqB,UAA6B,CAAC,GAAmB;AACpF,QAAM,QAAQ,IAAI,IAAY,QAAQ,OAAO,CAAC,MAAM,EAAE,UAAU,iBAAiB,CAAC;AAKlF,MAAI,QAAkC;AACtC,SAAO;AAAA,IACL,OAAO,QAAQ;AACb,iBAAW,KAAK,QAAQ;AACtB,YAAI,OAAO,MAAM,YAAY,EAAE,SAAS,qBAAqB,MAAM,IAAI,CAAC,EAAG;AAC3E,cAAM,IAAI,CAAC;AACX,gBAAQ;AAAA,MACV;AAAA,IACF;AAAA,IACA,SAAS;AACP,UAAI,CAAC,MAAO,SAAQ,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM;AACjE,aAAO;AAAA,IACT;AAAA,EACF;AACF;AASO,SAAS,YAAY,MAAc,UAA6B,CAAC,GAAW;AACjF,
|
|
4
|
+
"sourcesContent": ["/**\r\n * Redaction for the collector's LOCAL surfaces \u2014 the operator console and the\r\n * use log.\r\n *\r\n * \u2500\u2500 WHY THIS FILE EXISTS \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n *\r\n * Everything else in this package worries about what leaves the building. This\r\n * one worries about what stays. The collector runs on the customer's hardware,\r\n * inside their network, holding their credentials, and the two easiest places in\r\n * the whole product to print one of those credentials are a console on a shared\r\n * terminal and a log file on a jump box. Neither of those machines is ours, and\r\n * neither is covered by the outbound redaction that `showOutputPush.ts` and\r\n * `configimport/run.ts` already apply \u2014 those redact on the way to the wire, and\r\n * a local console never touches the wire.\r\n *\r\n * \u2500\u2500 TWO PASSES, BECAUSE THERE ARE TWO KINDS OF SECRET \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n *\r\n * 1. **Structural.** Device output echoed into a message is configuration text,\r\n * and configuration text has a redactor already: `redactConfig` from\r\n * `@netdoc/config-ir`, the same one the outbound path uses. It is reused\r\n * verbatim rather than reimplemented, so a rule added for the wire protects\r\n * the console the same day. Its fail-closed stance comes along with it: a\r\n * line that merely *looks* like it carries a key is redacted, which\r\n * occasionally costs a little display fidelity on an ordinary message like\r\n * \"password rejected\". That is the correct side to err on here.\r\n *\r\n * 2. **Configured.** The credentials this collector was handed \u2014 the SNMP\r\n * communities, the SSH and Windows passwords, the vCenter/SQL/Graph/Azure\r\n * secrets, and its own control-plane API key. `redactConfig` cannot see\r\n * these: `S3cretC0mm` is an unremarkable word until you know it is the\r\n * community string. So the live values are collected from the resolved\r\n * config and struck out by value.\r\n *\r\n * \u2500\u2500 THE FIELD LIST IS DERIVED, NEVER HAND-KEPT \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n *\r\n * A hand-maintained roster of \"fields that hold secrets\" goes stale the first\r\n * time somebody adds a module, and it goes stale silently \u2014 the guard stays\r\n * green while its scope shrinks. So {@link isSecretField} classifies by name\r\n * over whatever keys the config schema actually declares, and\r\n * `localRedaction.test.ts` walks `FileConfig`'s shape and fails if any key is\r\n * neither classified secret nor listed as deliberately public. A new\r\n * `fooPassword` is covered without an edit here; a new field whose safety is\r\n * genuinely ambiguous fails the test until somebody decides.\r\n */\r\nimport { redactConfig } from \"@netdoc/config-ir\";\r\n\r\n/** What replaces a configured credential found in local output. */\r\nexport const CONFIGURED_SECRET_PLACEHOLDER = \"<REDACTED:configured-secret>\";\r\n\r\n/**\r\n * Name fragments that mark a config field as holding a credential.\r\n *\r\n * Matched case-insensitively against the field name, so `vcenterPass`,\r\n * `graphClientSecret`, `webexToken`, `snmpCommunities`, `sshCredentials` and\r\n * `apiKey` are all caught by shape rather than by enumeration.\r\n *\r\n * `user` is deliberately absent. A username is not a credential, and the\r\n * existing wire contract already reports one: `SshOutcome.username` names the\r\n * credential that authenticated precisely so an operator can tell which one\r\n * worked. Redacting usernames would blind the report without protecting\r\n * anything.\r\n *\r\n * The fragments are STEMS, not whole words. `communit` rather than `community`\r\n * because the field that actually holds the SNMP credentials is the plural\r\n * `snmpCommunities`, and an exact-word fragment sailed straight past it \u2014 the\r\n * coverage test in `localRedaction.test.ts` is what noticed, which is the\r\n * argument for deriving the list over the schema rather than writing it out.\r\n */\r\nconst SECRET_NAME_FRAGMENTS = [\r\n \"pass\", // vcenterPass, hypervPass, sqlPass, cucmPass, password, passwd\r\n \"secret\", // graphClientSecret, azureClientSecret, enable secret\r\n \"token\", // webexToken\r\n \"communit\", // snmpCommunity AND snmpCommunities\r\n \"credential\", // sshCredentials, windowsCredentials (arrays; walked into)\r\n \"apikey\", // apiKey \u2014 this collector's own identity on the control plane\r\n \"enable\", // the Cisco enable secret, named for what it unlocks\r\n] as const;\r\n\r\n/** Does this config field name denote a credential? */\r\nexport function isSecretField(name: string): boolean {\r\n const lowered = name.toLowerCase();\r\n return SECRET_NAME_FRAGMENTS.some((fragment) => lowered.includes(fragment));\r\n}\r\n\r\n/**\r\n * Single-character values are not collected.\r\n *\r\n * Striking every occurrence of one character out of a log would leave a file\r\n * that is useless as the evidence it exists to be, and it would do so on every\r\n * run \u2014 while a one-character credential is not a thing worth protecting at that\r\n * price. Everything from two characters up is struck. Note that the structural\r\n * pass still catches a short secret when it appears in configuration syntax,\r\n * which is the case that actually occurs.\r\n */\r\nconst MIN_SECRET_LENGTH = 2;\r\n\r\n/**\r\n * Pull every configured credential value out of a resolved config object.\r\n *\r\n * Walks recursively so credential ARRAYS are covered: `sshCredentials` is a\r\n * secret-named field but its value is a list of objects, and what matters is\r\n * the `password`/`enable` inside each one. Plain string arrays under a secret\r\n * name (`snmpCommunities`) contribute every element.\r\n *\r\n * Accepts `unknown` because the caller passes whichever of the seven config\r\n * shapes this run loaded, and they share no common type.\r\n */\r\nexport function collectSecretValues(config: unknown): string[] {\r\n const found = new Set<string>();\r\n\r\n const walk = (value: unknown, underSecretName: boolean): void => {\r\n if (typeof value === \"string\") {\r\n if (underSecretName && value.length >= MIN_SECRET_LENGTH) found.add(value);\r\n return;\r\n }\r\n if (Array.isArray(value)) {\r\n // The array itself inherits its key's classification; each element is\r\n // judged the same way, so a secret-named list of strings contributes all\r\n // of them and a list of credential objects is walked into.\r\n for (const item of value) walk(item, underSecretName);\r\n return;\r\n }\r\n if (value && typeof value === \"object\") {\r\n for (const [key, child] of Object.entries(value as Record<string, unknown>)) {\r\n walk(child, isSecretField(key));\r\n }\r\n }\r\n };\r\n\r\n walk(config, false);\r\n // Longest first: replacing \"hunter2\" before \"hunter\" stops a shorter secret\r\n // that happens to be a prefix of a longer one from carving it up and leaving\r\n // the tail in the clear.\r\n return [...found].sort((a, b) => b.length - a.length);\r\n}\r\n\r\n/**\r\n * A LIVE set of secret values, so redaction covers credentials the process did\r\n * not have when it started.\r\n *\r\n * `collectSecretValues` reads the config FILE, and the entry point calls it\r\n * once before the first job is claimed. That was the whole defence, and it\r\n * left a hole exactly the width of the daemon: every job carries its OWN\r\n * credentials \u2014 SSH passwords, enable secrets, SNMP communities, domain\r\n * passwords, all arriving from the control plane per job \u2014 and none of them\r\n * were in the frozen list. `core/daemon.ts` says \"Passwords never logged\" and\r\n * means it, but redaction by value is the net under that intention, and the\r\n * net had no job credentials in it. A vendor driver that echoes a failed\r\n * login line, or a device that prints its own community back, would have\r\n * reached the log on the customer's disk in the clear.\r\n *\r\n * Values only ever accumulate: a job's credentials stay redactable after the\r\n * job ends, because the lines it already wrote are still in the file and the\r\n * next reader of that file must not find a password in it.\r\n */\r\nexport interface SecretRegistry {\r\n /** Add values; anything null, short, or already known is ignored. */\r\n add(...values: readonly (string | null | undefined)[]): void;\r\n /** Longest-first, the order {@link redactLocal} needs. */\r\n values(): readonly string[];\r\n}\r\n\r\nexport function createSecretRegistry(initial: readonly string[] = []): SecretRegistry {\r\n const found = new Set<string>(initial.filter((s) => s.length >= MIN_SECRET_LENGTH));\r\n // Sorted on read rather than on write: adds happen per job, reads happen per\r\n // log line, and the set is tiny \u2014 but the ORDER is load-bearing (longest\r\n // first, so a short secret that prefixes a longer one cannot carve it up and\r\n // leave the tail in the clear), so it must not be skipped for speed.\r\n let cache: readonly string[] | null = null;\r\n return {\r\n add(...values) {\r\n for (const v of values) {\r\n if (typeof v !== \"string\" || v.length < MIN_SECRET_LENGTH || found.has(v)) continue;\r\n found.add(v);\r\n cache = null;\r\n }\r\n },\r\n values() {\r\n if (!cache) cache = [...found].sort((a, b) => b.length - a.length);\r\n return cache;\r\n },\r\n };\r\n}\r\n\r\n/**\r\n * Redact one piece of text destined for a local surface.\r\n *\r\n * Structural pass first \u2014 it understands configuration syntax and preserves the\r\n * shape that makes a line worth reading \u2014 then the value pass over whatever the\r\n * first one did not recognise.\r\n */\r\nexport function redactLocal(text: string, secrets: readonly string[] = []): string {\r\n return redactSecretValues(redactConfig(text).text, secrets);\r\n}\r\n\r\n/**\r\n * The VALUE pass alone: strike every configured credential, and nothing else.\r\n *\r\n * For prose the collector wrote itself \u2014 a note such as \"ran without privileged\r\n * mode (\u2026 enable secret \u2026)\". That wording is not configuration, and the\r\n * structural pass reads \"enable secret <word>\" as a secret and eats the rest of\r\n * the sentence. A quoted fragment of DEVICE text inside such a note must go\r\n * through {@link redactLocal} before it is interpolated; the whole note then\r\n * gets this pass, so a credential the collector itself echoed is still struck.\r\n * `secrets` must be longest-first, as {@link redactLocal} requires.\r\n */\r\nexport function redactSecretValues(text: string, secrets: readonly string[] = []): string {\r\n let result = text;\r\n for (const secret of secrets) {\r\n if (!result.includes(secret)) continue;\r\n result = result.split(secret).join(CONFIGURED_SECRET_PLACEHOLDER);\r\n }\r\n return result;\r\n}\r\n\r\n/**\r\n * Redact a log call's `meta` argument.\r\n *\r\n * `Logger`'s third parameter is `unknown`, and callers in this package pass\r\n * anything from an error message to an object. It is printed, so it is a leak\r\n * surface exactly like the message is \u2014 but it cannot be run through a\r\n * line-oriented redactor while it is still an object. Non-strings are therefore\r\n * serialised, redacted, and handed back AS the redacted string: a slightly\r\n * different console rendering is a cheap price for the guarantee that nothing\r\n * reaches the terminal unexamined. A value that will not serialise (a cycle, a\r\n * BigInt) is dropped entirely rather than printed blind.\r\n */\r\nexport function redactMeta(meta: unknown, secrets: readonly string[] = []): unknown {\r\n if (meta === undefined) return undefined;\r\n if (typeof meta === \"string\") return redactLocal(meta, secrets);\r\n try {\r\n const serialized = JSON.stringify(meta);\r\n if (serialized === undefined) return \"[unserialisable meta omitted]\";\r\n return redactLocal(serialized, secrets);\r\n } catch {\r\n return \"[unserialisable meta omitted]\";\r\n }\r\n}\r\n"],
|
|
5
|
+
"mappings": ";;;;;AA+CO,IAAM,gCAAgC;AAqB7C,IAAM,wBAAwB;AAAA,EAC5B;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF;AAGO,SAAS,cAAc,MAAuB;AACnD,QAAM,UAAU,KAAK,YAAY;AACjC,SAAO,sBAAsB,KAAK,CAAC,aAAa,QAAQ,SAAS,QAAQ,CAAC;AAC5E;AAYA,IAAM,oBAAoB;AAanB,SAAS,oBAAoB,QAA2B;AAC7D,QAAM,QAAQ,oBAAI,IAAY;AAE9B,QAAM,OAAO,CAAC,OAAgB,oBAAmC;AAC/D,QAAI,OAAO,UAAU,UAAU;AAC7B,UAAI,mBAAmB,MAAM,UAAU,kBAAmB,OAAM,IAAI,KAAK;AACzE;AAAA,IACF;AACA,QAAI,MAAM,QAAQ,KAAK,GAAG;AAIxB,iBAAW,QAAQ,MAAO,MAAK,MAAM,eAAe;AACpD;AAAA,IACF;AACA,QAAI,SAAS,OAAO,UAAU,UAAU;AACtC,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAgC,GAAG;AAC3E,aAAK,OAAO,cAAc,GAAG,CAAC;AAAA,MAChC;AAAA,IACF;AAAA,EACF;AAEA,OAAK,QAAQ,KAAK;AAIlB,SAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM;AACtD;AA4BO,SAAS,qBAAqB,UAA6B,CAAC,GAAmB;AACpF,QAAM,QAAQ,IAAI,IAAY,QAAQ,OAAO,CAAC,MAAM,EAAE,UAAU,iBAAiB,CAAC;AAKlF,MAAI,QAAkC;AACtC,SAAO;AAAA,IACL,OAAO,QAAQ;AACb,iBAAW,KAAK,QAAQ;AACtB,YAAI,OAAO,MAAM,YAAY,EAAE,SAAS,qBAAqB,MAAM,IAAI,CAAC,EAAG;AAC3E,cAAM,IAAI,CAAC;AACX,gBAAQ;AAAA,MACV;AAAA,IACF;AAAA,IACA,SAAS;AACP,UAAI,CAAC,MAAO,SAAQ,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM;AACjE,aAAO;AAAA,IACT;AAAA,EACF;AACF;AASO,SAAS,YAAY,MAAc,UAA6B,CAAC,GAAW;AACjF,SAAO,mBAAmB,aAAa,IAAI,EAAE,MAAM,OAAO;AAC5D;AAaO,SAAS,mBAAmB,MAAc,UAA6B,CAAC,GAAW;AACxF,MAAI,SAAS;AACb,aAAW,UAAU,SAAS;AAC5B,QAAI,CAAC,OAAO,SAAS,MAAM,EAAG;AAC9B,aAAS,OAAO,MAAM,MAAM,EAAE,KAAK,6BAA6B;AAAA,EAClE;AACA,SAAO;AACT;AAcO,SAAS,WAAW,MAAe,UAA6B,CAAC,GAAY;AAClF,MAAI,SAAS,OAAW,QAAO;AAC/B,MAAI,OAAO,SAAS,SAAU,QAAO,YAAY,MAAM,OAAO;AAC9D,MAAI;AACF,UAAM,aAAa,KAAK,UAAU,IAAI;AACtC,QAAI,eAAe,OAAW,QAAO;AACrC,WAAO,YAAY,YAAY,OAAO;AAAA,EACxC,QAAQ;AACN,WAAO;AAAA,EACT;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
SDD_IMAGE_EXTENSIONS,
|
|
4
4
|
SDD_OPENXML_EXTENSIONS,
|
|
5
5
|
SDD_TEXT_EXTENSIONS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U36YI2IZ.js";
|
|
7
7
|
|
|
8
8
|
// src/sensitiveData/stall.ts
|
|
9
9
|
var StallError = class extends Error {
|
|
@@ -228,11 +228,11 @@ async function extractBytes(bytes, extension, policy = DEFAULT_EXTRACTION_POLICY
|
|
|
228
228
|
return extractPdf(bytes);
|
|
229
229
|
}
|
|
230
230
|
if (kind === "image") {
|
|
231
|
-
const { extractImage } = await import("./ocr-
|
|
231
|
+
const { extractImage } = await import("./ocr-7YPUCWXW.js");
|
|
232
232
|
return extractImage(bytes, extension);
|
|
233
233
|
}
|
|
234
234
|
if (kind === "archive") {
|
|
235
|
-
const { extractArchive } = await import("./archive-
|
|
235
|
+
const { extractArchive } = await import("./archive-L7IISLXQ.js");
|
|
236
236
|
const out = extractArchive(bytes);
|
|
237
237
|
return out.entries.length > 0 ? { kind: "archive", entries: out.entries, unread: out.unread, truncated: out.truncated } : {
|
|
238
238
|
kind: "unreadable",
|
|
@@ -442,4 +442,4 @@ export {
|
|
|
442
442
|
extractOpenXml,
|
|
443
443
|
csvCells
|
|
444
444
|
};
|
|
445
|
-
//# sourceMappingURL=chunk-
|
|
445
|
+
//# sourceMappingURL=chunk-NNZIVQER.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
NetworkInterface,
|
|
10
10
|
NetworkLink,
|
|
11
11
|
ROUTES
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U36YI2IZ.js";
|
|
13
13
|
import {
|
|
14
14
|
PKG_ROOT
|
|
15
15
|
} from "./chunk-XSHYWQAH.js";
|
|
@@ -771,4 +771,4 @@ export {
|
|
|
771
771
|
requireEntitlementToScan,
|
|
772
772
|
assertEntitlementConfirmed
|
|
773
773
|
};
|
|
774
|
-
//# sourceMappingURL=chunk-
|
|
774
|
+
//# sourceMappingURL=chunk-O6ABMNR4.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-4ARXQ6VD.js";
|
|
4
4
|
import {
|
|
5
5
|
HypervIngestBody
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U36YI2IZ.js";
|
|
7
7
|
|
|
8
8
|
// src/hyperv/scan.ts
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -576,4 +576,4 @@ export {
|
|
|
576
576
|
scanHypervTargets,
|
|
577
577
|
buildHypervInventory
|
|
578
578
|
};
|
|
579
|
-
//# sourceMappingURL=chunk-
|
|
579
|
+
//# sourceMappingURL=chunk-RGXTNBHM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectSecretValues
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LNT44VQ7.js";
|
|
4
4
|
import {
|
|
5
5
|
CredentialSetKind,
|
|
6
6
|
DomainCredentialSecret,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
VaultProtection,
|
|
9
9
|
WindowsCredential,
|
|
10
10
|
domainSecretSatisfiesKind
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-U36YI2IZ.js";
|
|
12
12
|
|
|
13
13
|
// ../../packages/collector-contract/src/localVault.ts
|
|
14
14
|
import { z } from "zod";
|
|
@@ -1202,4 +1202,4 @@ export {
|
|
|
1202
1202
|
processRunner,
|
|
1203
1203
|
openVault
|
|
1204
1204
|
};
|
|
1205
|
-
//# sourceMappingURL=chunk-
|
|
1205
|
+
//# sourceMappingURL=chunk-RHD7NXOA.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
DEFAULT_SDD_INCLUDE_PATHS,
|
|
5
5
|
SddScanSettings,
|
|
6
6
|
VaultProtection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U36YI2IZ.js";
|
|
8
8
|
import {
|
|
9
9
|
PKG_ROOT
|
|
10
10
|
} from "./chunk-XSHYWQAH.js";
|
|
@@ -848,4 +848,4 @@ export {
|
|
|
848
848
|
loadSensitiveDataConfig,
|
|
849
849
|
loadAzureConfig
|
|
850
850
|
};
|
|
851
|
-
//# sourceMappingURL=chunk-
|
|
851
|
+
//# sourceMappingURL=chunk-TVCWVGRL.js.map
|