@coana-tech/cli 14.12.51 → 14.12.52
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/cli.mjs +25 -10
- package/package.json +1 -1
- package/reachability-analyzers-cli.mjs +1305 -934
- package/repos/coana-tech/alucard/alucard.jar +0 -0
- package/repos/coana-tech/class-graph-analysis/dist/bundle/class-graph-analysis-cli.mjs +16 -4
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
- package/repos/coana-tech/mambalade/dist/{mambalade-0.3.13-py3-none-any.whl → mambalade-0.3.14-py3-none-any.whl} +0 -0
|
Binary file
|
|
@@ -7385,11 +7385,14 @@ var ClassGraphRunner = class {
|
|
|
7385
7385
|
appSrcIndices.length ? resolutionManagers.src?.resolveEdges(this.graph, appIndices, appSrcIndices, visited, "DIRECT_DEPENDENCIES") : Promise.resolve(),
|
|
7386
7386
|
appBinIndices.length ? resolutionManagers.bin?.resolveEdges(this.graph, appIndices, appBinIndices, visited, "DIRECT_DEPENDENCIES") : Promise.resolve()
|
|
7387
7387
|
]);
|
|
7388
|
-
const
|
|
7389
|
-
for (const
|
|
7390
|
-
|
|
7388
|
+
const reachablePackageIds = /* @__PURE__ */ new Set();
|
|
7389
|
+
for (const idx of findReachableNodes(this.graph, appIndices)) {
|
|
7390
|
+
const node = allNodes[idx];
|
|
7391
|
+
if (node.nodeType === "reflective")
|
|
7392
|
+
continue;
|
|
7393
|
+
reachablePackageIds.add(allNodes[idx].packageId);
|
|
7391
7394
|
}
|
|
7392
|
-
return
|
|
7395
|
+
return Array.from(reachablePackageIds);
|
|
7393
7396
|
}
|
|
7394
7397
|
async runAnalysis(vulnerableClasses) {
|
|
7395
7398
|
try {
|
|
@@ -7402,6 +7405,7 @@ var ClassGraphRunner = class {
|
|
|
7402
7405
|
return {
|
|
7403
7406
|
success: false,
|
|
7404
7407
|
vulnerablePaths: {},
|
|
7408
|
+
reachablePackageIds: [],
|
|
7405
7409
|
analysisDiagnostics,
|
|
7406
7410
|
error: e2.message
|
|
7407
7411
|
};
|
|
@@ -7464,6 +7468,13 @@ var ClassGraphRunner = class {
|
|
|
7464
7468
|
vulnerableClassToIndices.get(node.fullyQualifiedName).push(idx);
|
|
7465
7469
|
});
|
|
7466
7470
|
const vulnerablePaths = this.computeVulnerablePaths(this.graph, appIndices, allNodes, vulnerableClassToIndices);
|
|
7471
|
+
const reachablePackageIds = /* @__PURE__ */ new Set();
|
|
7472
|
+
for (const idx of findReachableNodes(this.graph, appIndices)) {
|
|
7473
|
+
const node = allNodes[idx];
|
|
7474
|
+
if (node.nodeType === "reflective")
|
|
7475
|
+
continue;
|
|
7476
|
+
reachablePackageIds.add(allNodes[idx].packageId);
|
|
7477
|
+
}
|
|
7467
7478
|
const analysisDiagnostics = {
|
|
7468
7479
|
timeout: false,
|
|
7469
7480
|
aborted: false
|
|
@@ -7471,6 +7482,7 @@ var ClassGraphRunner = class {
|
|
|
7471
7482
|
const result = {
|
|
7472
7483
|
success: true,
|
|
7473
7484
|
vulnerablePaths,
|
|
7485
|
+
reachablePackageIds: Array.from(reachablePackageIds),
|
|
7474
7486
|
analysisDiagnostics,
|
|
7475
7487
|
error: null
|
|
7476
7488
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
index e09de8a..f75e17e 100644
|
|
|
Binary file
|