@pensar/apex 1.2.0-canary.45d5a431 → 1.2.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/build/{agent-6tr656h6.js → agent-hv2vnw37.js} +8 -8
- package/build/agent-jkr50v3q.js +18 -0
- package/build/{auth-jzmpqksm.js → auth-aj10f99d.js} +4 -4
- package/build/{authentication-79cr1733.js → authentication-90mvv4kd.js} +7 -7
- package/build/blackboxAgent-f2y66hex.js +18 -0
- package/build/{blackboxPentest-7xz1zg1f.js → blackboxPentest-prq8qrhc.js} +13 -13
- package/build/{cli-chtdyzgf.js → cli-1rz3jys3.js} +1 -1
- package/build/{cli-4drstr4p.js → cli-2mnefwqh.js} +1 -1
- package/build/{cli-v59chwpq.js → cli-33rkyxds.js} +1 -1
- package/build/{cli-tztmmk79.js → cli-3sg681re.js} +2 -2
- package/build/{cli-a0krppgv.js → cli-4m9f65ze.js} +1 -1
- package/build/{cli-ph5ntnp3.js → cli-720fdbrk.js} +1 -1
- package/build/{cli-b88bgfv5.js → cli-avnfgjhs.js} +2 -2
- package/build/{cli-fqbtn2jm.js → cli-dvsj2p1x.js} +24 -63
- package/build/{cli-jmfjf0xc.js → cli-erp6djfj.js} +7 -7
- package/build/{cli-d5zmetvp.js → cli-gqphezya.js} +2 -2
- package/build/{cli-en95jsmj.js → cli-q43w92k5.js} +1 -1
- package/build/{cli-fnbfcd05.js → cli-qaaesy26.js} +1 -1
- package/build/{cli-pwm6h6qr.js → cli-s43zrc3b.js} +2 -2
- package/build/{cli-cmr0vsq2.js → cli-t0am6nqt.js} +1 -1
- package/build/{cli-byq7tftq.js → cli-ypxq76sm.js} +2 -2
- package/build/cli.js +22 -22
- package/build/{fixes-jybzkf67.js → fixes-g7b34fs5.js} +4 -4
- package/build/{index-yehvwy6w.js → index-9j9dqpdd.js} +4 -4
- package/build/{index-xnerya9j.js → index-cpj7zx72.js} +10 -10
- package/build/{index-yvrq5hvh.js → index-fds2qfsc.js} +6 -6
- package/build/{index-8q3h58dx.js → index-ftdt7ktr.js} +2 -2
- package/build/{issues-1x3f1ayz.js → issues-tecf6w97.js} +4 -4
- package/build/{logs-dhvwj9cy.js → logs-5qwr98mr.js} +4 -4
- package/build/pentest-5p1ahtr6.js +28 -0
- package/build/{pentests-c8fgdcnv.js → pentests-bsh9ht7r.js} +4 -4
- package/build/{projects-nqv0yd0p.js → projects-zkw40bda.js} +4 -4
- package/build/{targetedPentest-0b2gvj21.js → targetedPentest-6qpsqdx5.js} +8 -8
- package/build/{threatModel-t8qvtm5z.js → threatModel-g0azznnt.js} +8 -8
- package/build/{uninstall-g133a6p8.js → uninstall-0yjhkdk3.js} +1 -1
- package/package.json +1 -1
- package/build/agent-8a7t15zp.js +0 -18
- package/build/blackboxAgent-r71vagzf.js +0 -18
- package/build/pentest-qqgw0g47.js +0 -28
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WhiteboxAttackSurfaceResultSchema
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-33rkyxds.js";
|
|
4
4
|
import {
|
|
5
5
|
OffensiveSecurityAgent
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-dvsj2p1x.js";
|
|
7
7
|
import"./cli-tp1tqn3k.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-q43w92k5.js";
|
|
9
9
|
import"./cli-3y0dgy56.js";
|
|
10
10
|
import {
|
|
11
11
|
hasToolCall,
|
|
12
12
|
tool
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-s43zrc3b.js";
|
|
14
14
|
import"./cli-03z6pswp.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
15
|
+
import"./cli-720fdbrk.js";
|
|
16
|
+
import"./cli-2mnefwqh.js";
|
|
17
|
+
import"./cli-1rz3jys3.js";
|
|
18
|
+
import"./cli-qaaesy26.js";
|
|
19
19
|
import"./cli-gpnb45ck.js";
|
|
20
20
|
import"./cli-8rxa073f.js";
|
|
21
21
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-3sg681re.js";
|
|
4
|
+
import"./cli-dvsj2p1x.js";
|
|
5
|
+
import"./cli-tp1tqn3k.js";
|
|
6
|
+
import"./cli-q43w92k5.js";
|
|
7
|
+
import"./cli-3y0dgy56.js";
|
|
8
|
+
import"./cli-s43zrc3b.js";
|
|
9
|
+
import"./cli-03z6pswp.js";
|
|
10
|
+
import"./cli-720fdbrk.js";
|
|
11
|
+
import"./cli-2mnefwqh.js";
|
|
12
|
+
import"./cli-1rz3jys3.js";
|
|
13
|
+
import"./cli-qaaesy26.js";
|
|
14
|
+
import"./cli-gpnb45ck.js";
|
|
15
|
+
import"./cli-8rxa073f.js";
|
|
16
|
+
export {
|
|
17
|
+
CodeAgent
|
|
18
|
+
};
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
pollWorkOSToken,
|
|
9
9
|
selectWorkspace,
|
|
10
10
|
startDeviceFlow
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-720fdbrk.js";
|
|
12
12
|
import {
|
|
13
13
|
config,
|
|
14
14
|
getPensarApiUrl,
|
|
15
15
|
getPensarConsoleUrl
|
|
16
|
-
} from "./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
16
|
+
} from "./cli-2mnefwqh.js";
|
|
17
|
+
import"./cli-1rz3jys3.js";
|
|
18
|
+
import"./cli-qaaesy26.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./cli-8rxa073f.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-dvsj2p1x.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-tp1tqn3k.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-q43w92k5.js";
|
|
8
8
|
import"./cli-3y0dgy56.js";
|
|
9
9
|
import {
|
|
10
10
|
hasToolCall
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-s43zrc3b.js";
|
|
12
12
|
import"./cli-03z6pswp.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
13
|
+
import"./cli-720fdbrk.js";
|
|
14
|
+
import"./cli-2mnefwqh.js";
|
|
15
|
+
import"./cli-1rz3jys3.js";
|
|
16
|
+
import"./cli-qaaesy26.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
18
|
import"./cli-8rxa073f.js";
|
|
19
19
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-gqphezya.js";
|
|
4
|
+
import"./cli-dvsj2p1x.js";
|
|
5
|
+
import"./cli-tp1tqn3k.js";
|
|
6
|
+
import"./cli-q43w92k5.js";
|
|
7
|
+
import"./cli-3y0dgy56.js";
|
|
8
|
+
import"./cli-s43zrc3b.js";
|
|
9
|
+
import"./cli-03z6pswp.js";
|
|
10
|
+
import"./cli-720fdbrk.js";
|
|
11
|
+
import"./cli-2mnefwqh.js";
|
|
12
|
+
import"./cli-1rz3jys3.js";
|
|
13
|
+
import"./cli-qaaesy26.js";
|
|
14
|
+
import"./cli-gpnb45ck.js";
|
|
15
|
+
import"./cli-8rxa073f.js";
|
|
16
|
+
export {
|
|
17
|
+
BlackboxAttackSurfaceAgent
|
|
18
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
3
|
+
} from "./cli-erp6djfj.js";
|
|
4
|
+
import"./cli-avnfgjhs.js";
|
|
5
|
+
import"./cli-ypxq76sm.js";
|
|
6
|
+
import"./cli-gqphezya.js";
|
|
7
7
|
import"./cli-fw5r7pfj.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
import"./cli-3sg681re.js";
|
|
9
|
+
import"./cli-33rkyxds.js";
|
|
10
|
+
import"./cli-dvsj2p1x.js";
|
|
11
11
|
import"./cli-tp1tqn3k.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-q43w92k5.js";
|
|
13
13
|
import"./cli-3y0dgy56.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-s43zrc3b.js";
|
|
15
15
|
import"./cli-03z6pswp.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
16
|
+
import"./cli-720fdbrk.js";
|
|
17
|
+
import"./cli-2mnefwqh.js";
|
|
18
|
+
import"./cli-1rz3jys3.js";
|
|
19
|
+
import"./cli-qaaesy26.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-dvsj2p1x.js";
|
|
4
4
|
import {
|
|
5
5
|
stepCountIs
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-s43zrc3b.js";
|
|
7
7
|
|
|
8
8
|
// src/core/agents/specialized/codeAgent/prompts.ts
|
|
9
9
|
var CODE_AGENT_SYSTEM_PROMPT = `You are an expert coding agent with direct filesystem access. You will be given a specific objective — focus exclusively on completing it.
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
CweEntrySchema,
|
|
3
3
|
ValidatedCweEntrySchema,
|
|
4
4
|
hasCanonicalName
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-dvsj2p1x.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_external,
|
|
8
8
|
init_zod
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-s43zrc3b.js";
|
|
10
10
|
|
|
11
11
|
// src/core/report/schemas.ts
|
|
12
12
|
init_zod();
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
update,
|
|
17
17
|
write,
|
|
18
18
|
writeRaw
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-q43w92k5.js";
|
|
20
20
|
import {
|
|
21
21
|
parseTargetUrl
|
|
22
22
|
} from "./cli-3y0dgy56.js";
|
|
@@ -52,18 +52,18 @@ import {
|
|
|
52
52
|
union,
|
|
53
53
|
unknown,
|
|
54
54
|
zod_default
|
|
55
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-s43zrc3b.js";
|
|
56
56
|
import {
|
|
57
57
|
signGatewayRequest
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-720fdbrk.js";
|
|
59
59
|
import {
|
|
60
60
|
config,
|
|
61
61
|
ensureValidToken,
|
|
62
62
|
getPensarApiUrl
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-2mnefwqh.js";
|
|
64
64
|
import {
|
|
65
65
|
getCurrentVersion
|
|
66
|
-
} from "./cli-
|
|
66
|
+
} from "./cli-qaaesy26.js";
|
|
67
67
|
import {
|
|
68
68
|
__commonJS,
|
|
69
69
|
__require,
|
|
@@ -99953,7 +99953,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
99953
99953
|
return threatModelLimiter(async () => {
|
|
99954
99954
|
if (ctx.abortSignal?.aborted)
|
|
99955
99955
|
return null;
|
|
99956
|
-
const { CodeAgent } = await import("./agent-
|
|
99956
|
+
const { CodeAgent } = await import("./agent-jkr50v3q.js");
|
|
99957
99957
|
const subagentId = `threat-model-${sanitize(input.appName)}-${sanitize(input.routePath)}`;
|
|
99958
99958
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
99959
99959
|
subagentId,
|
|
@@ -100642,7 +100642,7 @@ When to use delegate_to_auth_subagent vs authenticate_session:
|
|
|
100642
100642
|
if (credentials) {
|
|
100643
100643
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
100644
100644
|
}
|
|
100645
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
100645
|
+
const { runAuthenticationAgent } = await import("./authentication-90mvv4kd.js");
|
|
100646
100646
|
const localBus = new AgentEventBus;
|
|
100647
100647
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
100648
100648
|
const result = await runAuthenticationAgent({
|
|
@@ -101555,7 +101555,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
101555
101555
|
});
|
|
101556
101556
|
if (cwd) {
|
|
101557
101557
|
try {
|
|
101558
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./agent-
|
|
101558
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./agent-hv2vnw37.js");
|
|
101559
101559
|
const localBus = new AgentEventBus;
|
|
101560
101560
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
101561
101561
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -101604,7 +101604,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
101604
101604
|
}
|
|
101605
101605
|
}
|
|
101606
101606
|
try {
|
|
101607
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
101607
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-f2y66hex.js");
|
|
101608
101608
|
const localBus = new AgentEventBus;
|
|
101609
101609
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
101610
101610
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -101680,7 +101680,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
101680
101680
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
101681
101681
|
}),
|
|
101682
101682
|
execute: async ({ targets }) => {
|
|
101683
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-
|
|
101683
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-5p1ahtr6.js");
|
|
101684
101684
|
if (!ctx.model) {
|
|
101685
101685
|
return {
|
|
101686
101686
|
success: false,
|
|
@@ -101808,7 +101808,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
101808
101808
|
});
|
|
101809
101809
|
}
|
|
101810
101810
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
101811
|
-
const { CodeAgent } = await import("./agent-
|
|
101811
|
+
const { CodeAgent } = await import("./agent-jkr50v3q.js");
|
|
101812
101812
|
const subagentId = `coding-agent-${agentIndex}`;
|
|
101813
101813
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
101814
101814
|
subagentId,
|
|
@@ -101869,7 +101869,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
101869
101869
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
101870
101870
|
}),
|
|
101871
101871
|
execute: async ({ target, cwd }) => {
|
|
101872
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
101872
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-5p1ahtr6.js");
|
|
101873
101873
|
if (!ctx.model) {
|
|
101874
101874
|
return {
|
|
101875
101875
|
success: false,
|
|
@@ -106478,45 +106478,8 @@ function killDescendants(rootPid, signal) {
|
|
|
106478
106478
|
}
|
|
106479
106479
|
|
|
106480
106480
|
// src/core/agents/offSecAgent/prompt.ts
|
|
106481
|
-
import { existsSync as existsSync12, readdirSync as readdirSync3, statSync } from "fs";
|
|
106482
|
-
import { join as join18 } from "path";
|
|
106483
|
-
function buildProvidedFilesSection(sessionRootPath) {
|
|
106484
|
-
const providedDir = join18(sessionRootPath, "provided_files");
|
|
106485
|
-
if (!existsSync12(providedDir))
|
|
106486
|
-
return "";
|
|
106487
|
-
let entries;
|
|
106488
|
-
try {
|
|
106489
|
-
entries = readdirSync3(providedDir);
|
|
106490
|
-
} catch {
|
|
106491
|
-
return "";
|
|
106492
|
-
}
|
|
106493
|
-
const fileEntries = entries.filter((name) => name !== "README.md").map((name) => {
|
|
106494
|
-
try {
|
|
106495
|
-
const stat2 = statSync(join18(providedDir, name));
|
|
106496
|
-
if (!stat2.isFile())
|
|
106497
|
-
return null;
|
|
106498
|
-
return { name, size: stat2.size };
|
|
106499
|
-
} catch {
|
|
106500
|
-
return null;
|
|
106501
|
-
}
|
|
106502
|
-
}).filter((e) => e !== null);
|
|
106503
|
-
if (fileEntries.length === 0)
|
|
106504
|
-
return "";
|
|
106505
|
-
const lines = fileEntries.map((f) => `- \`provided_files/${f.name}\` (${f.size} bytes)`);
|
|
106506
|
-
return `
|
|
106507
|
-
|
|
106508
|
-
# Provided Files
|
|
106509
|
-
|
|
106510
|
-
The user has uploaded the following files for this session. They are available at \`${providedDir}\` (relative path: \`provided_files/\`) and may include sample payloads, reference documentation, test data, or other context the agent should consult when planning and executing its work.
|
|
106511
|
-
|
|
106512
|
-
${lines.join(`
|
|
106513
|
-
`)}
|
|
106514
|
-
|
|
106515
|
-
Read these with \`read_file\` and list directory contents with \`list_files provided_files/\` as needed. A \`README.md\` inside \`provided_files/\` may include per-file descriptions supplied by the user — check it first before diving into individual files.`;
|
|
106516
|
-
}
|
|
106517
106481
|
function buildSessionWorkspaceSection(session, agentCwd) {
|
|
106518
106482
|
const sandboxMode = agentCwd === session.rootPath;
|
|
106519
|
-
const providedFilesSection = buildProvidedFilesSection(session.rootPath);
|
|
106520
106483
|
if (sandboxMode) {
|
|
106521
106484
|
return `
|
|
106522
106485
|
|
|
@@ -106530,9 +106493,8 @@ The session directory (${session.rootPath}) contains these subdirectories:
|
|
|
106530
106493
|
- **scratchpad/** — your scratch space for working notes, intermediate data, wordlists, temporary scripts. **Do NOT write reports, executive summaries, or finding compilations here** — reports are generated automatically from findings/.
|
|
106531
106494
|
- **logs/** — execution logs
|
|
106532
106495
|
- **evidence/** — screenshots and evidence (written by browser tools)
|
|
106533
|
-
- **provided_files/** — user-uploaded files (sample payloads, docs, test data); populated when the project has workspace files configured.
|
|
106534
106496
|
|
|
106535
|
-
Tools like \`document_vulnerability\` and browser evidence capture write to the correct subdirectories automatically
|
|
106497
|
+
Tools like \`document_vulnerability\` and browser evidence capture write to the correct subdirectories automatically.`;
|
|
106536
106498
|
}
|
|
106537
106499
|
return `
|
|
106538
106500
|
|
|
@@ -106547,9 +106509,8 @@ Session artifacts are stored separately at ${session.rootPath}:
|
|
|
106547
106509
|
- **scratchpad/** — your scratch space
|
|
106548
106510
|
- **logs/** — execution logs
|
|
106549
106511
|
- **evidence/** — screenshots and evidence
|
|
106550
|
-
- **provided_files/** — user-uploaded files (sample payloads, docs, test data); populated when the project has workspace files configured.
|
|
106551
106512
|
|
|
106552
|
-
Tools like \`document_vulnerability\` and browser evidence capture write to the session directory automatically
|
|
106513
|
+
Tools like \`document_vulnerability\` and browser evidence capture write to the session directory automatically.`;
|
|
106553
106514
|
}
|
|
106554
106515
|
function buildBaseSystemPrompt(options) {
|
|
106555
106516
|
const sandboxMode = options?.sandboxMode ?? true;
|
|
@@ -106913,7 +106874,7 @@ class ApprovalTimeoutError extends ApprovalDeniedError {
|
|
|
106913
106874
|
init_zod();
|
|
106914
106875
|
import path from "path";
|
|
106915
106876
|
import os from "os";
|
|
106916
|
-
import { existsSync as
|
|
106877
|
+
import { existsSync as existsSync12, readFileSync as readFileSync4 } from "fs";
|
|
106917
106878
|
init_toolset();
|
|
106918
106879
|
var DEFAULT_OUTCOME_GUIDANCE = "Prove the exploit can be run but do not exfiltrate data or cause any harm to the system. " + "Create proof-of-concept exploits that demonstrate the vulnerability exists without causing damage.";
|
|
106919
106880
|
var EXFIL_OUTCOME_GUIDANCE = "Exfiltrate data to extract the flag value. " + "Create proof-of-concept exploits that successfully extract the flag from the target system.";
|
|
@@ -107223,7 +107184,7 @@ async function loadOperatorState(sessionId) {
|
|
|
107223
107184
|
try {
|
|
107224
107185
|
const session = await get(sessionId);
|
|
107225
107186
|
const statePath = path.join(session.rootPath, "messages.json");
|
|
107226
|
-
if (!
|
|
107187
|
+
if (!existsSync12(statePath))
|
|
107227
107188
|
return null;
|
|
107228
107189
|
const data = readFileSync4(statePath, "utf-8");
|
|
107229
107190
|
const parsed = JSON.parse(data);
|
|
@@ -107252,7 +107213,7 @@ async function loadOperatorState(sessionId) {
|
|
|
107252
107213
|
}
|
|
107253
107214
|
function hasOperatorState(session) {
|
|
107254
107215
|
const statePath = path.join(session.rootPath, "messages.json");
|
|
107255
|
-
return
|
|
107216
|
+
return existsSync12(statePath);
|
|
107256
107217
|
}
|
|
107257
107218
|
var MAX_RESUME_MESSAGES = 200;
|
|
107258
107219
|
function getResumeMessages(messages, limit = MAX_RESUME_MESSAGES) {
|
|
@@ -107375,8 +107336,8 @@ var sessions = {
|
|
|
107375
107336
|
};
|
|
107376
107337
|
|
|
107377
107338
|
// src/core/agents/offSecAgent/offensiveSecurityAgent.ts
|
|
107378
|
-
import { join as
|
|
107379
|
-
import { mkdirSync as mkdirSync12, existsSync as
|
|
107339
|
+
import { join as join18 } from "path";
|
|
107340
|
+
import { mkdirSync as mkdirSync12, existsSync as existsSync13 } from "fs";
|
|
107380
107341
|
import { writeFile as writeFile4 } from "fs/promises";
|
|
107381
107342
|
|
|
107382
107343
|
// src/core/agents/offSecAgent/trace.ts
|
|
@@ -107623,15 +107584,15 @@ class OffensiveSecurityAgent {
|
|
|
107623
107584
|
input.commandCancelHandle.cancel = () => shell.cancelCurrentCommand();
|
|
107624
107585
|
}
|
|
107625
107586
|
}
|
|
107626
|
-
const messagesDir = input.messagesDir ?? (input.subagentId ?
|
|
107627
|
-
const tracePath = input.subagentId ?
|
|
107587
|
+
const messagesDir = input.messagesDir ?? (input.subagentId ? join18(input.session.rootPath, "subagents", input.subagentId) : input.session.rootPath);
|
|
107588
|
+
const tracePath = input.subagentId ? join18(input.session.rootPath, "subagents", `${input.subagentId}.trace.jsonl`) : join18(messagesDir, "trace.jsonl");
|
|
107628
107589
|
const traceWriter = new StepTraceWriter({
|
|
107629
107590
|
tracePath,
|
|
107630
107591
|
agentId: input.subagentId ?? null,
|
|
107631
107592
|
eventBus: this.eventBus
|
|
107632
107593
|
});
|
|
107633
107594
|
const taskDriven = input.session.config?.taskDriven ?? false;
|
|
107634
|
-
const tasksDir = input.tasksDir ?? (taskDriven ? input.subagentId ?
|
|
107595
|
+
const tasksDir = input.tasksDir ?? (taskDriven ? input.subagentId ? join18(input.session.rootPath, "subagents", `${input.subagentId}-tasks`) : join18(input.session.rootPath, "tasks") : undefined);
|
|
107635
107596
|
const credentialManager = input.credentialManager ?? input.session.credentialManager;
|
|
107636
107597
|
const builtinTools = createAllTools({
|
|
107637
107598
|
session: input.session,
|
|
@@ -107694,10 +107655,10 @@ class OffensiveSecurityAgent {
|
|
|
107694
107655
|
const planSet = new Set(PLAN_MODE_TOOL_NAMES);
|
|
107695
107656
|
activeTools = activeTools.filter((t) => planSet.has(t));
|
|
107696
107657
|
}
|
|
107697
|
-
if (!
|
|
107658
|
+
if (!existsSync13(messagesDir)) {
|
|
107698
107659
|
mkdirSync12(messagesDir, { recursive: true });
|
|
107699
107660
|
}
|
|
107700
|
-
const messagesPath =
|
|
107661
|
+
const messagesPath = join18(messagesDir, "messages.json");
|
|
107701
107662
|
const initialMessagesRef = {
|
|
107702
107663
|
current: input.messages ? [...input.messages] : [
|
|
107703
107664
|
{
|
|
@@ -14,33 +14,33 @@ import {
|
|
|
14
14
|
updateManifestEntryStatus,
|
|
15
15
|
writeAgentManifest,
|
|
16
16
|
writeExecutionMetrics
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-avnfgjhs.js";
|
|
18
18
|
import {
|
|
19
19
|
TargetedPentestAgent,
|
|
20
20
|
buildPentestSystemPrompt
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-ypxq76sm.js";
|
|
22
22
|
import {
|
|
23
23
|
BlackboxAttackSurfaceAgent
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-gqphezya.js";
|
|
25
25
|
import {
|
|
26
26
|
createThreatModelPrompt
|
|
27
27
|
} from "./cli-fw5r7pfj.js";
|
|
28
28
|
import {
|
|
29
29
|
CodeAgent
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-3sg681re.js";
|
|
31
31
|
import {
|
|
32
32
|
EndpointSchema
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-33rkyxds.js";
|
|
34
34
|
import {
|
|
35
35
|
FindingsRegistry,
|
|
36
36
|
OffensiveSecurityAgent,
|
|
37
37
|
PLAN_MODE_TOOL_NAMES
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-dvsj2p1x.js";
|
|
39
39
|
import {
|
|
40
40
|
exports_external,
|
|
41
41
|
hasToolCall,
|
|
42
42
|
init_zod
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-s43zrc3b.js";
|
|
44
44
|
|
|
45
45
|
// src/core/workflows/pentest.ts
|
|
46
46
|
import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-dvsj2p1x.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-tp1tqn3k.js";
|
|
7
7
|
import {
|
|
8
8
|
hasToolCall,
|
|
9
9
|
stepCountIs
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-s43zrc3b.js";
|
|
11
11
|
|
|
12
12
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
13
13
|
import { join } from "path";
|
|
@@ -3,7 +3,7 @@ import { spawnSync } from "child_process";
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@pensar/apex",
|
|
6
|
-
version: "1.2.0
|
|
6
|
+
version: "1.2.0",
|
|
7
7
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
8
8
|
module: "src/tui/index.tsx",
|
|
9
9
|
main: "build/cli.js",
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./cli-03z6pswp.js";
|
|
5
5
|
import {
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-720fdbrk.js";
|
|
8
8
|
import {
|
|
9
9
|
config,
|
|
10
10
|
ensureValidToken,
|
|
11
11
|
getPensarGatewayUrl
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-2mnefwqh.js";
|
|
13
13
|
import {
|
|
14
14
|
require_auth_errors,
|
|
15
15
|
require_token_error,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent,
|
|
3
3
|
readPlan
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-dvsj2p1x.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_external,
|
|
7
7
|
init_zod
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-s43zrc3b.js";
|
|
9
9
|
|
|
10
10
|
// src/core/agents/specialized/pentest/agent.ts
|
|
11
11
|
import { existsSync, readdirSync, readFileSync } from "fs";
|
package/build/cli.js
CHANGED
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
import"./cli-3y0dgy56.js";
|
|
7
7
|
import {
|
|
8
8
|
init_toolset
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-s43zrc3b.js";
|
|
10
10
|
import {
|
|
11
11
|
init_models
|
|
12
12
|
} from "./cli-03z6pswp.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
13
|
+
import"./cli-720fdbrk.js";
|
|
14
|
+
import"./cli-2mnefwqh.js";
|
|
15
|
+
import"./cli-1rz3jys3.js";
|
|
16
16
|
import {
|
|
17
17
|
package_default
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-qaaesy26.js";
|
|
19
19
|
import"./cli-gpnb45ck.js";
|
|
20
20
|
import {
|
|
21
21
|
__require,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
// package.json
|
|
25
25
|
var package_default2 = {
|
|
26
26
|
name: "@pensar/apex",
|
|
27
|
-
version: "1.2.0
|
|
27
|
+
version: "1.2.0",
|
|
28
28
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
29
29
|
module: "src/tui/index.tsx",
|
|
30
30
|
main: "build/cli.js",
|
|
@@ -541,9 +541,9 @@ Global options:
|
|
|
541
541
|
async function runPentest() {
|
|
542
542
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
543
543
|
config2();
|
|
544
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
545
|
-
const { sessions } = await import("./index-
|
|
546
|
-
const { config: appConfig } = await import("./index-
|
|
544
|
+
const { runPentestAgent } = await import("./blackboxPentest-prq8qrhc.js");
|
|
545
|
+
const { sessions } = await import("./index-fds2qfsc.js");
|
|
546
|
+
const { config: appConfig } = await import("./index-ftdt7ktr.js");
|
|
547
547
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
548
548
|
const target = getArgRequired("--target");
|
|
549
549
|
const cwd = getArg("--cwd");
|
|
@@ -609,9 +609,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
609
609
|
async function runTargetedPentest() {
|
|
610
610
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
611
611
|
config2();
|
|
612
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
613
|
-
const { sessions } = await import("./index-
|
|
614
|
-
const { config: appConfig } = await import("./index-
|
|
612
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-6qpsqdx5.js");
|
|
613
|
+
const { sessions } = await import("./index-fds2qfsc.js");
|
|
614
|
+
const { config: appConfig } = await import("./index-ftdt7ktr.js");
|
|
615
615
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
616
616
|
const target = getArgRequired("--target");
|
|
617
617
|
const objectives = getAllArgs("--objective");
|
|
@@ -661,8 +661,8 @@ POCs: ${pocsPath}`);
|
|
|
661
661
|
async function runThreatModel() {
|
|
662
662
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
663
663
|
config2();
|
|
664
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
665
|
-
const { config: appConfig } = await import("./index-
|
|
664
|
+
const { runThreatModelWorkflow } = await import("./threatModel-g0azznnt.js");
|
|
665
|
+
const { config: appConfig } = await import("./index-ftdt7ktr.js");
|
|
666
666
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
667
667
|
const path = await import("path");
|
|
668
668
|
const pensarConfig = await appConfig.get();
|
|
@@ -718,25 +718,25 @@ if (command === "version" || command === "--version" || command === "-v") {
|
|
|
718
718
|
await runTargetedPentest();
|
|
719
719
|
} else if (command === "login" || command === "auth") {
|
|
720
720
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
721
|
-
await import("./auth-
|
|
721
|
+
await import("./auth-aj10f99d.js");
|
|
722
722
|
} else if (command === "uninstall") {
|
|
723
723
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
724
|
-
await import("./uninstall-
|
|
724
|
+
await import("./uninstall-0yjhkdk3.js");
|
|
725
725
|
} else if (command === "projects") {
|
|
726
726
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
727
|
-
await import("./projects-
|
|
727
|
+
await import("./projects-zkw40bda.js");
|
|
728
728
|
} else if (command === "pentests") {
|
|
729
729
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
730
|
-
await import("./pentests-
|
|
730
|
+
await import("./pentests-bsh9ht7r.js");
|
|
731
731
|
} else if (command === "issues") {
|
|
732
732
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
733
|
-
await import("./issues-
|
|
733
|
+
await import("./issues-tecf6w97.js");
|
|
734
734
|
} else if (command === "fixes") {
|
|
735
735
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
736
|
-
await import("./fixes-
|
|
736
|
+
await import("./fixes-g7b34fs5.js");
|
|
737
737
|
} else if (command === "logs") {
|
|
738
738
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
739
|
-
await import("./logs-
|
|
739
|
+
await import("./logs-5qwr98mr.js");
|
|
740
740
|
} else if (command === "threat-model") {
|
|
741
741
|
await runThreatModel();
|
|
742
742
|
} else if (command === "doctor") {
|
|
@@ -748,7 +748,7 @@ if (command === "version" || command === "--version" || command === "-v") {
|
|
|
748
748
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
749
749
|
process.exit(1);
|
|
750
750
|
}
|
|
751
|
-
await import("./index-
|
|
751
|
+
await import("./index-cpj7zx72.js");
|
|
752
752
|
} else {
|
|
753
753
|
console.error(`Error: Unknown command '${command}'`);
|
|
754
754
|
console.error();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getFix,
|
|
4
4
|
listFixes
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
5
|
+
} from "./cli-4m9f65ze.js";
|
|
6
|
+
import"./cli-2mnefwqh.js";
|
|
7
|
+
import"./cli-1rz3jys3.js";
|
|
8
|
+
import"./cli-qaaesy26.js";
|
|
9
9
|
import"./cli-8rxa073f.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/fixes.ts
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
signGatewayRequest,
|
|
10
10
|
startDeviceFlow,
|
|
11
11
|
validateGateway
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-720fdbrk.js";
|
|
13
13
|
import {
|
|
14
14
|
ensureValidToken,
|
|
15
15
|
fetchWorkOSClientId,
|
|
16
16
|
isTokenExpired,
|
|
17
17
|
refreshAccessToken
|
|
18
|
-
} from "./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
} from "./cli-2mnefwqh.js";
|
|
19
|
+
import"./cli-1rz3jys3.js";
|
|
20
|
+
import"./cli-qaaesy26.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
export {
|
|
23
23
|
validateGateway,
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
buildThreatModelPrompt,
|
|
8
8
|
createSkillsRegistry,
|
|
9
9
|
runOffensiveSecurityAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-t0am6nqt.js";
|
|
11
11
|
import {
|
|
12
12
|
REPORT_FILENAME_MD,
|
|
13
13
|
convertModelMessagesToUI,
|
|
14
14
|
loadSubagents,
|
|
15
15
|
readExecutionMetrics,
|
|
16
16
|
writeExecutionMetrics
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-avnfgjhs.js";
|
|
18
18
|
import {
|
|
19
19
|
createThreatModelPrompt
|
|
20
20
|
} from "./cli-fw5r7pfj.js";
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
planFilePath,
|
|
39
39
|
readPlan,
|
|
40
40
|
sessions
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-dvsj2p1x.js";
|
|
42
42
|
import {
|
|
43
43
|
detectOSAndEnhancePrompt
|
|
44
44
|
} from "./cli-tp1tqn3k.js";
|
|
45
45
|
import {
|
|
46
46
|
read,
|
|
47
47
|
write
|
|
48
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-q43w92k5.js";
|
|
49
49
|
import {
|
|
50
50
|
getAutoPopulatedHosts,
|
|
51
51
|
getAutoPopulatedPorts,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
init_toolset,
|
|
58
58
|
modelSupportsThinking,
|
|
59
59
|
stepCountIs
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-s43zrc3b.js";
|
|
61
61
|
import {
|
|
62
62
|
AVAILABLE_MODELS,
|
|
63
63
|
init_models
|
|
@@ -72,18 +72,18 @@ import {
|
|
|
72
72
|
selectWorkspace,
|
|
73
73
|
startDeviceFlow,
|
|
74
74
|
validateGateway
|
|
75
|
-
} from "./cli-
|
|
75
|
+
} from "./cli-720fdbrk.js";
|
|
76
76
|
import {
|
|
77
77
|
config,
|
|
78
78
|
getPensarApiUrl,
|
|
79
79
|
getPensarConsoleUrl
|
|
80
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-2mnefwqh.js";
|
|
81
81
|
import {
|
|
82
82
|
update
|
|
83
|
-
} from "./cli-
|
|
83
|
+
} from "./cli-1rz3jys3.js";
|
|
84
84
|
import {
|
|
85
85
|
checkForUpdate
|
|
86
|
-
} from "./cli-
|
|
86
|
+
} from "./cli-qaaesy26.js";
|
|
87
87
|
import"./cli-gpnb45ck.js";
|
|
88
88
|
import {
|
|
89
89
|
__commonJS,
|
|
@@ -68647,7 +68647,7 @@ function AppContent({
|
|
|
68647
68647
|
toast(`Update available: v${currentVersion} → v${latestVersion}. Run: pensar upgrade`, "warn", 8000);
|
|
68648
68648
|
});
|
|
68649
68649
|
const checkAuthToken = async () => {
|
|
68650
|
-
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-
|
|
68650
|
+
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-9j9dqpdd.js");
|
|
68651
68651
|
if (isConnected2(config2.data) && config2.data.accessToken && isTokenExpired(config2.data.accessToken, 60) && !config2.data.refreshToken && !config2.data.pensarAPIKey) {
|
|
68652
68652
|
toast("Your Pensar Console session has expired. Run /login to refresh.", "warn", 8000);
|
|
68653
68653
|
}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
update,
|
|
14
14
|
write,
|
|
15
15
|
writeRaw
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-q43w92k5.js";
|
|
17
17
|
import {
|
|
18
18
|
ToolsetStateSchema,
|
|
19
19
|
exports_toolset,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
init_zod,
|
|
22
22
|
toggleTool,
|
|
23
23
|
zod_default
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-s43zrc3b.js";
|
|
25
25
|
import"./cli-03z6pswp.js";
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
26
|
+
import"./cli-720fdbrk.js";
|
|
27
|
+
import"./cli-2mnefwqh.js";
|
|
28
|
+
import"./cli-1rz3jys3.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentVersion
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-qaaesy26.js";
|
|
32
32
|
import"./cli-gpnb45ck.js";
|
|
33
33
|
import {
|
|
34
34
|
__require,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
getIssue,
|
|
4
4
|
listIssues,
|
|
5
5
|
updateIssue
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
6
|
+
} from "./cli-4m9f65ze.js";
|
|
7
|
+
import"./cli-2mnefwqh.js";
|
|
8
|
+
import"./cli-1rz3jys3.js";
|
|
9
|
+
import"./cli-qaaesy26.js";
|
|
10
10
|
import"./cli-8rxa073f.js";
|
|
11
11
|
|
|
12
12
|
// src/cli/issues.ts
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
listAgentLogs,
|
|
4
4
|
searchAgentLogs
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
5
|
+
} from "./cli-4m9f65ze.js";
|
|
6
|
+
import"./cli-2mnefwqh.js";
|
|
7
|
+
import"./cli-1rz3jys3.js";
|
|
8
|
+
import"./cli-qaaesy26.js";
|
|
9
9
|
import"./cli-8rxa073f.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/logs.ts
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_CONCURRENCY,
|
|
3
|
+
runPentestSwarm,
|
|
4
|
+
runPentestWorkflow
|
|
5
|
+
} from "./cli-erp6djfj.js";
|
|
6
|
+
import"./cli-avnfgjhs.js";
|
|
7
|
+
import"./cli-ypxq76sm.js";
|
|
8
|
+
import"./cli-gqphezya.js";
|
|
9
|
+
import"./cli-fw5r7pfj.js";
|
|
10
|
+
import"./cli-3sg681re.js";
|
|
11
|
+
import"./cli-33rkyxds.js";
|
|
12
|
+
import"./cli-dvsj2p1x.js";
|
|
13
|
+
import"./cli-tp1tqn3k.js";
|
|
14
|
+
import"./cli-q43w92k5.js";
|
|
15
|
+
import"./cli-3y0dgy56.js";
|
|
16
|
+
import"./cli-s43zrc3b.js";
|
|
17
|
+
import"./cli-03z6pswp.js";
|
|
18
|
+
import"./cli-720fdbrk.js";
|
|
19
|
+
import"./cli-2mnefwqh.js";
|
|
20
|
+
import"./cli-1rz3jys3.js";
|
|
21
|
+
import"./cli-qaaesy26.js";
|
|
22
|
+
import"./cli-gpnb45ck.js";
|
|
23
|
+
import"./cli-8rxa073f.js";
|
|
24
|
+
export {
|
|
25
|
+
runPentestWorkflow,
|
|
26
|
+
runPentestSwarm,
|
|
27
|
+
DEFAULT_CONCURRENCY
|
|
28
|
+
};
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
dispatchPentest,
|
|
4
4
|
getScan,
|
|
5
5
|
listScans
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
6
|
+
} from "./cli-4m9f65ze.js";
|
|
7
|
+
import"./cli-2mnefwqh.js";
|
|
8
|
+
import"./cli-1rz3jys3.js";
|
|
9
|
+
import"./cli-qaaesy26.js";
|
|
10
10
|
import"./cli-8rxa073f.js";
|
|
11
11
|
|
|
12
12
|
// src/cli/pentests.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import {
|
|
3
3
|
listProjects
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
4
|
+
} from "./cli-4m9f65ze.js";
|
|
5
|
+
import"./cli-2mnefwqh.js";
|
|
6
|
+
import"./cli-1rz3jys3.js";
|
|
7
|
+
import"./cli-qaaesy26.js";
|
|
8
8
|
import"./cli-8rxa073f.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/projects.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-ypxq76sm.js";
|
|
4
|
+
import"./cli-dvsj2p1x.js";
|
|
5
5
|
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-
|
|
6
|
+
import"./cli-q43w92k5.js";
|
|
7
7
|
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-s43zrc3b.js";
|
|
9
9
|
import"./cli-03z6pswp.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
10
|
+
import"./cli-720fdbrk.js";
|
|
11
|
+
import"./cli-2mnefwqh.js";
|
|
12
|
+
import"./cli-1rz3jys3.js";
|
|
13
|
+
import"./cli-qaaesy26.js";
|
|
14
14
|
import"./cli-gpnb45ck.js";
|
|
15
15
|
import"./cli-8rxa073f.js";
|
|
16
16
|
|
|
@@ -2,25 +2,25 @@ import {
|
|
|
2
2
|
buildThreatModelPrompt,
|
|
3
3
|
createSkillsRegistry,
|
|
4
4
|
runOffensiveSecurityAgent
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-t0am6nqt.js";
|
|
6
6
|
import {
|
|
7
7
|
ALL_TOOL_NAMES,
|
|
8
8
|
ASK_USER_QUESTIONS_TOOL_NAME,
|
|
9
9
|
SKILL_TOOL_NAMES,
|
|
10
10
|
buildBaseSystemPrompt,
|
|
11
11
|
sessions
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-dvsj2p1x.js";
|
|
13
13
|
import"./cli-tp1tqn3k.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-q43w92k5.js";
|
|
15
15
|
import"./cli-3y0dgy56.js";
|
|
16
16
|
import {
|
|
17
17
|
stepCountIs
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-s43zrc3b.js";
|
|
19
19
|
import"./cli-03z6pswp.js";
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
20
|
+
import"./cli-720fdbrk.js";
|
|
21
|
+
import"./cli-2mnefwqh.js";
|
|
22
|
+
import"./cli-1rz3jys3.js";
|
|
23
|
+
import"./cli-qaaesy26.js";
|
|
24
24
|
import"./cli-gpnb45ck.js";
|
|
25
25
|
import"./cli-8rxa073f.js";
|
|
26
26
|
|
package/package.json
CHANGED
package/build/agent-8a7t15zp.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeAgent
|
|
3
|
-
} from "./cli-tztmmk79.js";
|
|
4
|
-
import"./cli-fqbtn2jm.js";
|
|
5
|
-
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-en95jsmj.js";
|
|
7
|
-
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-pwm6h6qr.js";
|
|
9
|
-
import"./cli-03z6pswp.js";
|
|
10
|
-
import"./cli-ph5ntnp3.js";
|
|
11
|
-
import"./cli-4drstr4p.js";
|
|
12
|
-
import"./cli-chtdyzgf.js";
|
|
13
|
-
import"./cli-fnbfcd05.js";
|
|
14
|
-
import"./cli-gpnb45ck.js";
|
|
15
|
-
import"./cli-8rxa073f.js";
|
|
16
|
-
export {
|
|
17
|
-
CodeAgent
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-d5zmetvp.js";
|
|
4
|
-
import"./cli-fqbtn2jm.js";
|
|
5
|
-
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-en95jsmj.js";
|
|
7
|
-
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-pwm6h6qr.js";
|
|
9
|
-
import"./cli-03z6pswp.js";
|
|
10
|
-
import"./cli-ph5ntnp3.js";
|
|
11
|
-
import"./cli-4drstr4p.js";
|
|
12
|
-
import"./cli-chtdyzgf.js";
|
|
13
|
-
import"./cli-fnbfcd05.js";
|
|
14
|
-
import"./cli-gpnb45ck.js";
|
|
15
|
-
import"./cli-8rxa073f.js";
|
|
16
|
-
export {
|
|
17
|
-
BlackboxAttackSurfaceAgent
|
|
18
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEFAULT_CONCURRENCY,
|
|
3
|
-
runPentestSwarm,
|
|
4
|
-
runPentestWorkflow
|
|
5
|
-
} from "./cli-jmfjf0xc.js";
|
|
6
|
-
import"./cli-b88bgfv5.js";
|
|
7
|
-
import"./cli-byq7tftq.js";
|
|
8
|
-
import"./cli-d5zmetvp.js";
|
|
9
|
-
import"./cli-fw5r7pfj.js";
|
|
10
|
-
import"./cli-tztmmk79.js";
|
|
11
|
-
import"./cli-v59chwpq.js";
|
|
12
|
-
import"./cli-fqbtn2jm.js";
|
|
13
|
-
import"./cli-tp1tqn3k.js";
|
|
14
|
-
import"./cli-en95jsmj.js";
|
|
15
|
-
import"./cli-3y0dgy56.js";
|
|
16
|
-
import"./cli-pwm6h6qr.js";
|
|
17
|
-
import"./cli-03z6pswp.js";
|
|
18
|
-
import"./cli-ph5ntnp3.js";
|
|
19
|
-
import"./cli-4drstr4p.js";
|
|
20
|
-
import"./cli-chtdyzgf.js";
|
|
21
|
-
import"./cli-fnbfcd05.js";
|
|
22
|
-
import"./cli-gpnb45ck.js";
|
|
23
|
-
import"./cli-8rxa073f.js";
|
|
24
|
-
export {
|
|
25
|
-
runPentestWorkflow,
|
|
26
|
-
runPentestSwarm,
|
|
27
|
-
DEFAULT_CONCURRENCY
|
|
28
|
-
};
|