cantarella-framework 1.18.0 → 1.20.0
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/CHANGELOG.md +8 -0
- package/modules/code-audit-codeql-import/index.mjs +46 -0
- package/modules/code-audit-codeql-import/module.json +14 -0
- package/modules/forensics-autopsy-import/index.mjs +42 -0
- package/modules/forensics-autopsy-import/module.json +14 -0
- package/modules/incident-response-velociraptor-import/index.mjs +48 -0
- package/modules/incident-response-velociraptor-import/module.json +14 -0
- package/modules/internal-bloodhound-import/index.mjs +43 -0
- package/modules/internal-bloodhound-import/module.json +14 -0
- package/modules/mobile-mobsf-import/index.mjs +45 -0
- package/modules/mobile-mobsf-import/module.json +14 -0
- package/modules/reporting-docx-export/index.mjs +145 -0
- package/modules/reporting-docx-export/module.json +14 -0
- package/modules/reporting-pdf-export/index.mjs +88 -0
- package/modules/reporting-pdf-export/module.json +14 -0
- package/modules/vuln-management-qualys-import/index.mjs +46 -0
- package/modules/vuln-management-qualys-import/module.json +14 -0
- package/modules/wrapper-auditd/index.mjs +45 -0
- package/modules/wrapper-auditd/module.json +21 -0
- package/modules/wrapper-beef/index.mjs +35 -0
- package/modules/wrapper-beef/module.json +21 -0
- package/modules/wrapper-chainsaw/index.mjs +54 -0
- package/modules/wrapper-chainsaw/module.json +21 -0
- package/modules/wrapper-cloudsploit/index.mjs +61 -0
- package/modules/wrapper-cloudsploit/module.json +21 -0
- package/modules/wrapper-covenant/index.mjs +35 -0
- package/modules/wrapper-covenant/module.json +21 -0
- package/modules/wrapper-eslint/index.mjs +53 -0
- package/modules/wrapper-eslint/module.json +21 -0
- package/modules/wrapper-foremost/index.mjs +57 -0
- package/modules/wrapper-foremost/module.json +21 -0
- package/modules/wrapper-grype/index.mjs +48 -0
- package/modules/wrapper-grype/module.json +21 -0
- package/modules/wrapper-hayabusa/index.mjs +55 -0
- package/modules/wrapper-hayabusa/module.json +21 -0
- package/modules/wrapper-kube-hunter/index.mjs +44 -0
- package/modules/wrapper-kube-hunter/module.json +21 -0
- package/modules/wrapper-mythic/index.mjs +42 -0
- package/modules/wrapper-mythic/module.json +21 -0
- package/modules/wrapper-openscap/index.mjs +47 -0
- package/modules/wrapper-openscap/module.json +28 -0
- package/modules/wrapper-recon-ng/index.mjs +40 -0
- package/modules/wrapper-recon-ng/module.json +21 -0
- package/modules/wrapper-ripgrep/index.mjs +42 -0
- package/modules/wrapper-ripgrep/module.json +28 -0
- package/modules/wrapper-scoutsuite/index.mjs +61 -0
- package/modules/wrapper-scoutsuite/module.json +21 -0
- package/modules/wrapper-sigma/index.mjs +34 -0
- package/modules/wrapper-sigma/module.json +28 -0
- package/modules/wrapper-sliver/index.mjs +35 -0
- package/modules/wrapper-sliver/module.json +21 -0
- package/modules/wrapper-syft/index.mjs +43 -0
- package/modules/wrapper-syft/module.json +21 -0
- package/modules/wrapper-tfsec/index.mjs +43 -0
- package/modules/wrapper-tfsec/module.json +21 -0
- package/modules/wrapper-trufflehog/index.mjs +49 -0
- package/modules/wrapper-trufflehog/module.json +21 -0
- package/package.json +1 -1
- package/packages/cli/dist/cli.js +1 -1
- package/packages/gui/dist/server.js +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "devsecops",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Scans Terraform files with tfsec and reports the failed checks.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "tfsec",
|
|
9
|
+
"install_hint": "Install tfsec from your distribution packages or the tfsec releases.",
|
|
10
|
+
"name": "tfsec"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "devsecops/tfsec",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "tfsec",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
|
|
3
|
+
let input = "";
|
|
4
|
+
process.stdin.setEncoding("utf8");
|
|
5
|
+
process.stdin.on("data", (chunk) => (input += chunk));
|
|
6
|
+
process.stdin.on("end", () => {
|
|
7
|
+
const request = JSON.parse(input || "{}");
|
|
8
|
+
const emit = (event) => process.stdout.write(`${JSON.stringify(event)}\n`);
|
|
9
|
+
const target = String(request.target ?? "");
|
|
10
|
+
const child = spawn("trufflehog", ["filesystem", target, "--json"], { stdio: ["ignore", "pipe", "pipe"] });
|
|
11
|
+
let stdout = "";
|
|
12
|
+
let stderr = "";
|
|
13
|
+
child.stdout.on("data", (chunk) => (stdout += chunk));
|
|
14
|
+
child.stderr.on("data", (chunk) => (stderr += chunk));
|
|
15
|
+
child.on("error", (error) => {
|
|
16
|
+
emit({ type: "error", message: `TruffleHog failed: ${error.message}` });
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
});
|
|
19
|
+
child.on("close", (code) => {
|
|
20
|
+
const plain = stdout.replace(/\x1b\[[0-9;]*m/g, "");
|
|
21
|
+
const secrets = [];
|
|
22
|
+
for (const line of plain.split("\n")) {
|
|
23
|
+
const trimmed = line.trim();
|
|
24
|
+
if (!trimmed) continue;
|
|
25
|
+
try {
|
|
26
|
+
const parsed = JSON.parse(trimmed);
|
|
27
|
+
if (!parsed.DetectorName) continue;
|
|
28
|
+
secrets.push({
|
|
29
|
+
detector: parsed.DetectorName,
|
|
30
|
+
verified: Boolean(parsed.Verified),
|
|
31
|
+
file: parsed.SourceMetadata?.Data?.Filesystem?.file ?? "",
|
|
32
|
+
});
|
|
33
|
+
} catch {
|
|
34
|
+
// not a JSON line, skip
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (code !== 0 && !secrets.length && !plain.trim()) {
|
|
38
|
+
emit({ type: "error", message: `TruffleHog failed: ${stderr.trim() || `exited with ${code}`}` });
|
|
39
|
+
process.exitCode = 1;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
emit({
|
|
43
|
+
type: "result",
|
|
44
|
+
summary: secrets.length ? `TruffleHog found ${secrets.length} secrets in ${target}.` : `TruffleHog found no secrets in ${target}.`,
|
|
45
|
+
data: { target, secrets: secrets.slice(0, 100) },
|
|
46
|
+
});
|
|
47
|
+
emit({ type: "done", summary: secrets.length ? `TruffleHog finished: ${secrets.length} secrets.` : "TruffleHog finished: no secrets." });
|
|
48
|
+
});
|
|
49
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "devsecops",
|
|
3
|
+
"core_api": "^0.1.0",
|
|
4
|
+
"description": "Scans a directory for leaked secrets with TruffleHog and reports the detectors that fired.",
|
|
5
|
+
"entry": "index.mjs",
|
|
6
|
+
"external_tools": [
|
|
7
|
+
{
|
|
8
|
+
"command": "trufflehog",
|
|
9
|
+
"install_hint": "Install TruffleHog from your distribution packages or the TruffleHog releases.",
|
|
10
|
+
"name": "TruffleHog"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"id": "devsecops/trufflehog",
|
|
14
|
+
"kind": "wrapper",
|
|
15
|
+
"maintenance": "active",
|
|
16
|
+
"name": "TruffleHog",
|
|
17
|
+
"options": [],
|
|
18
|
+
"risk": "low",
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"version": "0.1.0"
|
|
21
|
+
}
|
package/package.json
CHANGED
package/packages/cli/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ process.stdout.on("error", (error) => {
|
|
|
11
11
|
process.exit(0);
|
|
12
12
|
throw error;
|
|
13
13
|
});
|
|
14
|
-
const VERSION = "1.
|
|
14
|
+
const VERSION = "1.20.0";
|
|
15
15
|
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../../..");
|
|
16
16
|
function banner() {
|
|
17
17
|
return (process.stdout.columns ?? 80) >= 72 ? BANNER : COMPACT_BANNER;
|
|
@@ -78,8 +78,8 @@ export function createGuiServer(root) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
sendJson(response, 200, {
|
|
81
|
-
version: "1.
|
|
82
|
-
update_message: (await checkForUpdate("1.
|
|
81
|
+
version: "1.20.0",
|
|
82
|
+
update_message: (await checkForUpdate("1.20.0")).message,
|
|
83
83
|
categories: CATEGORIES,
|
|
84
84
|
modules: modules.map(({ manifest }) => manifest),
|
|
85
85
|
external_tools: [...tools.values()],
|