@pensar/apex 2.2.0-canary.3132ca5d → 2.2.0-canary.85a9da57
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-5nwx2gw3.js +19 -0
- package/build/{agent-ak96d1tt.js → agent-9j0t23gh.js} +7 -7
- package/build/{agent-6e6f7tq6.js → agent-n467bw8f.js} +9 -9
- package/build/{apps-p5vpnxev.js → apps-fgh1j83g.js} +16 -16
- package/build/{auth-e0dr431g.js → auth-mrtqpn8r.js} +16 -16
- package/build/authentication-gj2vkdy8.js +19 -0
- package/build/blackboxAgent-09tvycba.js +19 -0
- package/build/{blackboxPentest-hncbr8vq.js → blackboxPentest-9d2hr7xv.js} +14 -14
- package/build/{cli-f2j0cebf.js → cli-69xfj2a5.js} +2 -2
- package/build/{cli-zjmcynfg.js → cli-6azgnarp.js} +2 -2
- package/build/{cli-axkgxq75.js → cli-9489ah09.js} +1 -1
- package/build/{cli-qb3x94xr.js → cli-ahz5mbyf.js} +1 -1
- package/build/{cli-twt02wfh.js → cli-anr9cqj2.js} +1 -1
- package/build/{cli-98tpyqwe.js → cli-dq4pfsaf.js} +12 -4
- package/build/{cli-8kt85hfb.js → cli-draweqwg.js} +1 -1
- package/build/{cli-wj0h0pg2.js → cli-fzhcb5ew.js} +2 -2
- package/build/{cli-bsw70a7r.js → cli-m7se6ehn.js} +8 -8
- package/build/{cli-0p4djty1.js → cli-n9yjp8w4.js} +74 -13
- package/build/{cli-bhen4w0z.js → cli-r7pfx8my.js} +3 -3
- package/build/{cli-vfms4rpb.js → cli-sp72n0rn.js} +1 -1
- package/build/{cli-y2h39q0y.js → cli-tqj2cwed.js} +1 -1
- package/build/{cli-6j8s1k1w.js → cli-whg4krbb.js} +4 -4
- package/build/{cli-aj9m3y50.js → cli-wvrke9n9.js} +1 -1
- package/build/{cli-1gb5032a.js → cli-yjbbecv8.js} +2 -2
- package/build/{cli-jf0bcxqk.js → cli-zbhf6wnd.js} +3 -3
- package/build/cli.js +33 -33
- package/build/{config-gjdw5nv2.js → config-9m5vb0vc.js} +3 -3
- package/build/{doctor-czg09mjd.js → doctor-pbvg07ep.js} +6 -6
- package/build/{fastStrike-26d8ge7y.js → fastStrike-e5hdhz84.js} +9 -9
- package/build/{fixes-466xvd3h.js → fixes-36phvkst.js} +16 -16
- package/build/{index-89r8rhk8.js → index-4e2zw6g5.js} +18 -18
- package/build/{index-tn322ccf.js → index-e797mn6q.js} +3 -3
- package/build/{index-fv2s9d50.js → index-gc8f2j76.js} +14 -6
- package/build/{index-kqy7hxpq.js → index-n1ytyz1y.js} +8 -8
- package/build/{index-trqz0gck.js → index-tznnrk1k.js} +2 -2
- package/build/{index-pwvse7c2.js → index-vp4ds92k.js} +9 -9
- package/build/{index-4nhbtn70.js → index-vwq3ghts.js} +4 -4
- package/build/{issues-ypb8bvh4.js → issues-c644kscp.js} +16 -16
- package/build/{logs-9rc4r2ka.js → logs-kbekta1x.js} +16 -16
- package/build/{offesecAgent-s07wmkcq.js → offesecAgent-ae72yxjj.js} +8 -8
- package/build/pentest-b483h0gs.js +29 -0
- package/build/{pentests-zztjret3.js → pentests-4fm9fb8y.js} +16 -16
- package/build/{targetedPentest-6nv6vykf.js → targetedPentest-69st5njn.js} +9 -9
- package/build/{targets-q9amg1dk.js → targets-4p21w40t.js} +16 -16
- package/build/threatModel-tx9z2gf7.js +27 -0
- package/build/{uninstall-ebxfa6bq.js → uninstall-3ef8qwdm.js} +1 -1
- package/build/{upload-jw169c1g.js → upload-y1fz1kjt.js} +6 -6
- package/build/{utils-z2hnz2j4.js → utils-vzdw0qt6.js} +5 -5
- package/package.json +1 -1
- package/build/agent-nphrmvjz.js +0 -19
- package/build/authentication-99vf8jny.js +0 -19
- package/build/blackboxAgent-wkfb465b.js +0 -19
- package/build/pentest-jjx324xt.js +0 -29
- package/build/threatModel-ksv2exs3.js +0 -27
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-yjbbecv8.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-9489ah09.js";
|
|
6
|
+
import"./cli-n9yjp8w4.js";
|
|
7
|
+
import"./cli-draweqwg.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-dq4pfsaf.js";
|
|
10
|
+
import"./cli-anr9cqj2.js";
|
|
11
|
+
import"./cli-3k1x5rn3.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-wvrke9n9.js";
|
|
14
|
+
import"./cli-sp72n0rn.js";
|
|
15
|
+
import"./cli-ahz5mbyf.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
CodeAgent
|
|
19
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-n9yjp8w4.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-draweqwg.js";
|
|
7
7
|
import"./cli-c8131c4q.js";
|
|
8
8
|
import {
|
|
9
9
|
init_dist,
|
|
10
10
|
stepCountIs
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
} from "./cli-dq4pfsaf.js";
|
|
12
|
+
import"./cli-anr9cqj2.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_external,
|
|
15
15
|
init_zod
|
|
16
16
|
} from "./cli-3k1x5rn3.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-wvrke9n9.js";
|
|
19
|
+
import"./cli-sp72n0rn.js";
|
|
20
|
+
import"./cli-ahz5mbyf.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
23
23
|
// src/core/agents/specialized/findingJudge/agent.ts
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
buildPentestActiveTools,
|
|
5
5
|
buildPentestPrompt,
|
|
6
6
|
buildPentestSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-6azgnarp.js";
|
|
8
8
|
import"./cli-9fsre5pt.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
9
|
+
import"./cli-9489ah09.js";
|
|
10
|
+
import"./cli-n9yjp8w4.js";
|
|
11
|
+
import"./cli-draweqwg.js";
|
|
12
12
|
import"./cli-c8131c4q.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
import"./cli-dq4pfsaf.js";
|
|
14
|
+
import"./cli-anr9cqj2.js";
|
|
15
15
|
import"./cli-3k1x5rn3.js";
|
|
16
16
|
import"./cli-gpnb45ck.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
17
|
+
import"./cli-wvrke9n9.js";
|
|
18
|
+
import"./cli-sp72n0rn.js";
|
|
19
|
+
import"./cli-ahz5mbyf.js";
|
|
20
20
|
import"./cli-8rxa073f.js";
|
|
21
21
|
export {
|
|
22
22
|
buildPentestSystemPrompt,
|
|
@@ -12,27 +12,27 @@ import {
|
|
|
12
12
|
searchEndpoints,
|
|
13
13
|
updateApp,
|
|
14
14
|
updateEndpoint
|
|
15
|
-
} from "./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
15
|
+
} from "./cli-whg4krbb.js";
|
|
16
|
+
import"./cli-m7se6ehn.js";
|
|
17
|
+
import"./cli-zbhf6wnd.js";
|
|
18
|
+
import"./cli-69xfj2a5.js";
|
|
19
|
+
import"./cli-6azgnarp.js";
|
|
20
|
+
import"./cli-r7pfx8my.js";
|
|
21
|
+
import"./cli-yjbbecv8.js";
|
|
22
|
+
import"./cli-fzhcb5ew.js";
|
|
23
23
|
import"./cli-9fsre5pt.js";
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
24
|
+
import"./cli-9489ah09.js";
|
|
25
|
+
import"./cli-n9yjp8w4.js";
|
|
26
|
+
import"./cli-draweqwg.js";
|
|
27
27
|
import"./cli-fw5r7pfj.js";
|
|
28
28
|
import"./cli-c8131c4q.js";
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
29
|
+
import"./cli-dq4pfsaf.js";
|
|
30
|
+
import"./cli-anr9cqj2.js";
|
|
31
31
|
import"./cli-3k1x5rn3.js";
|
|
32
32
|
import"./cli-gpnb45ck.js";
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
33
|
+
import"./cli-wvrke9n9.js";
|
|
34
|
+
import"./cli-sp72n0rn.js";
|
|
35
|
+
import"./cli-ahz5mbyf.js";
|
|
36
36
|
import"./cli-8rxa073f.js";
|
|
37
37
|
|
|
38
38
|
// src/cli/apps.ts
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
2
|
+
import"./cli-whg4krbb.js";
|
|
3
|
+
import"./cli-m7se6ehn.js";
|
|
4
|
+
import"./cli-zbhf6wnd.js";
|
|
5
|
+
import"./cli-69xfj2a5.js";
|
|
6
|
+
import"./cli-6azgnarp.js";
|
|
7
|
+
import"./cli-r7pfx8my.js";
|
|
8
|
+
import"./cli-yjbbecv8.js";
|
|
9
|
+
import"./cli-fzhcb5ew.js";
|
|
10
10
|
import"./cli-9fsre5pt.js";
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
11
|
+
import"./cli-9489ah09.js";
|
|
12
|
+
import"./cli-n9yjp8w4.js";
|
|
13
|
+
import"./cli-draweqwg.js";
|
|
14
14
|
import"./cli-fw5r7pfj.js";
|
|
15
15
|
import"./cli-c8131c4q.js";
|
|
16
|
-
import"./cli-
|
|
16
|
+
import"./cli-dq4pfsaf.js";
|
|
17
17
|
import {
|
|
18
18
|
disconnect,
|
|
19
19
|
fetchWorkspaces,
|
|
@@ -26,15 +26,15 @@ import {
|
|
|
26
26
|
pollWorkOSToken,
|
|
27
27
|
selectWorkspace,
|
|
28
28
|
startDeviceFlow
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-anr9cqj2.js";
|
|
30
30
|
import"./cli-3k1x5rn3.js";
|
|
31
31
|
import"./cli-gpnb45ck.js";
|
|
32
32
|
import {
|
|
33
33
|
config,
|
|
34
34
|
init_config
|
|
35
|
-
} from "./cli-
|
|
36
|
-
import"./cli-
|
|
37
|
-
import"./cli-
|
|
35
|
+
} from "./cli-wvrke9n9.js";
|
|
36
|
+
import"./cli-sp72n0rn.js";
|
|
37
|
+
import"./cli-ahz5mbyf.js";
|
|
38
38
|
import {
|
|
39
39
|
__require
|
|
40
40
|
} from "./cli-8rxa073f.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent
|
|
3
|
+
} from "./cli-r7pfx8my.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-9489ah09.js";
|
|
6
|
+
import"./cli-n9yjp8w4.js";
|
|
7
|
+
import"./cli-draweqwg.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-dq4pfsaf.js";
|
|
10
|
+
import"./cli-anr9cqj2.js";
|
|
11
|
+
import"./cli-3k1x5rn3.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-wvrke9n9.js";
|
|
14
|
+
import"./cli-sp72n0rn.js";
|
|
15
|
+
import"./cli-ahz5mbyf.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
runAuthenticationAgent
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-zbhf6wnd.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-9489ah09.js";
|
|
6
|
+
import"./cli-n9yjp8w4.js";
|
|
7
|
+
import"./cli-draweqwg.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-dq4pfsaf.js";
|
|
10
|
+
import"./cli-anr9cqj2.js";
|
|
11
|
+
import"./cli-3k1x5rn3.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-wvrke9n9.js";
|
|
14
|
+
import"./cli-sp72n0rn.js";
|
|
15
|
+
import"./cli-ahz5mbyf.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
BlackboxAttackSurfaceAgent
|
|
19
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
3
|
+
} from "./cli-m7se6ehn.js";
|
|
4
|
+
import"./cli-zbhf6wnd.js";
|
|
5
|
+
import"./cli-69xfj2a5.js";
|
|
6
|
+
import"./cli-6azgnarp.js";
|
|
7
|
+
import"./cli-yjbbecv8.js";
|
|
8
|
+
import"./cli-fzhcb5ew.js";
|
|
9
9
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
import"./cli-9489ah09.js";
|
|
11
|
+
import"./cli-n9yjp8w4.js";
|
|
12
|
+
import"./cli-draweqwg.js";
|
|
13
13
|
import"./cli-fw5r7pfj.js";
|
|
14
14
|
import"./cli-c8131c4q.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
15
|
+
import"./cli-dq4pfsaf.js";
|
|
16
|
+
import"./cli-anr9cqj2.js";
|
|
17
17
|
import"./cli-3k1x5rn3.js";
|
|
18
18
|
import"./cli-gpnb45ck.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
19
|
+
import"./cli-wvrke9n9.js";
|
|
20
|
+
import"./cli-sp72n0rn.js";
|
|
21
|
+
import"./cli-ahz5mbyf.js";
|
|
22
22
|
import"./cli-8rxa073f.js";
|
|
23
23
|
|
|
24
24
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EvidenceFileEntrySchema
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-9489ah09.js";
|
|
4
4
|
import {
|
|
5
5
|
CweEntrySchema,
|
|
6
6
|
ValidatedCweEntrySchema,
|
|
7
7
|
hasCanonicalName
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-n9yjp8w4.js";
|
|
9
9
|
import {
|
|
10
10
|
exports_external,
|
|
11
11
|
init_zod
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createReportErrorTool,
|
|
6
6
|
isMemoryEnabled,
|
|
7
7
|
readPlan
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-n9yjp8w4.js";
|
|
9
9
|
import {
|
|
10
10
|
createLogger,
|
|
11
11
|
hasToolCall,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
init_lazyLogger,
|
|
14
14
|
init_structured,
|
|
15
15
|
scopedLogger
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-dq4pfsaf.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_external,
|
|
19
19
|
init_zod
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_auth,
|
|
5
5
|
init_constants,
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-anr9cqj2.js";
|
|
8
8
|
import {
|
|
9
9
|
AISDKError,
|
|
10
10
|
APICallError,
|
|
@@ -87,11 +87,11 @@ import {
|
|
|
87
87
|
import {
|
|
88
88
|
config,
|
|
89
89
|
init_config
|
|
90
|
-
} from "./cli-
|
|
90
|
+
} from "./cli-wvrke9n9.js";
|
|
91
91
|
import {
|
|
92
92
|
getCurrentVersion,
|
|
93
93
|
init_installation
|
|
94
|
-
} from "./cli-
|
|
94
|
+
} from "./cli-ahz5mbyf.js";
|
|
95
95
|
import {
|
|
96
96
|
__callDispose,
|
|
97
97
|
__commonJS,
|
|
@@ -47127,7 +47127,7 @@ async function create2(input) {
|
|
|
47127
47127
|
if (normalizedConfig?.headers !== undefined) {
|
|
47128
47128
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
47129
47129
|
} else {
|
|
47130
|
-
const { config: appConfig } = await import("./index-
|
|
47130
|
+
const { config: appConfig } = await import("./index-e797mn6q.js");
|
|
47131
47131
|
const cfg = await appConfig.get();
|
|
47132
47132
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
47133
47133
|
}
|
|
@@ -47422,6 +47422,14 @@ var init_session = __esm(() => {
|
|
|
47422
47422
|
username: zod_default.string(),
|
|
47423
47423
|
password: zod_default.string(),
|
|
47424
47424
|
tls: zod_default.boolean()
|
|
47425
|
+
}),
|
|
47426
|
+
zod_default.object({
|
|
47427
|
+
provider: zod_default.literal("http"),
|
|
47428
|
+
id: zod_default.string(),
|
|
47429
|
+
name: zod_default.string(),
|
|
47430
|
+
emailAddress: zod_default.string(),
|
|
47431
|
+
endpoint: zod_default.string(),
|
|
47432
|
+
token: zod_default.string()
|
|
47425
47433
|
})
|
|
47426
47434
|
]);
|
|
47427
47435
|
EmailIntegrationConfigObject = zod_default.object({
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
EndpointTransportEnum,
|
|
3
3
|
GrpcEndpointMetadataSchema,
|
|
4
4
|
OffensiveSecurityAgent
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-n9yjp8w4.js";
|
|
6
6
|
import {
|
|
7
7
|
hasToolCall,
|
|
8
8
|
init_dist
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-dq4pfsaf.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_external,
|
|
12
12
|
init_zod,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-zbhf6wnd.js";
|
|
4
4
|
import {
|
|
5
5
|
REPORT_FILENAME_JSON,
|
|
6
6
|
REPORT_FILENAME_MD,
|
|
7
7
|
buildPentestReport,
|
|
8
8
|
renderJson,
|
|
9
9
|
renderMarkdown
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-69xfj2a5.js";
|
|
11
11
|
import {
|
|
12
12
|
TargetedPentestAgent,
|
|
13
13
|
buildPentestSystemPrompt
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-6azgnarp.js";
|
|
15
15
|
import {
|
|
16
16
|
CodeAgent
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-yjbbecv8.js";
|
|
18
18
|
import {
|
|
19
19
|
AppsDiscoveryResultSchema,
|
|
20
20
|
DiscoverySummarySchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT,
|
|
23
23
|
WHITEBOX_DISCOVERY_SYSTEM_PROMPT,
|
|
24
24
|
WHITEBOX_ENDPOINT_DOCUMENTATION_SYSTEM_PROMPT
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-fzhcb5ew.js";
|
|
26
26
|
import {
|
|
27
27
|
FindingsRegistry,
|
|
28
28
|
OffensiveSecurityAgent,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
pLimit,
|
|
32
32
|
runWithBoundedConcurrency,
|
|
33
33
|
toGrpcPentestContext
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-n9yjp8w4.js";
|
|
35
35
|
import {
|
|
36
36
|
createThreatModelPrompt
|
|
37
37
|
} from "./cli-fw5r7pfj.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
init_structured,
|
|
46
46
|
newSessionId,
|
|
47
47
|
scopedLogger
|
|
48
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-dq4pfsaf.js";
|
|
49
49
|
import {
|
|
50
50
|
__require
|
|
51
51
|
} from "./cli-8rxa073f.js";
|
|
@@ -7786,7 +7786,7 @@ async function runPentestSwarm(input) {
|
|
|
7786
7786
|
}
|
|
7787
7787
|
async function runPentestWorkflow(input) {
|
|
7788
7788
|
if (input.fastStrike) {
|
|
7789
|
-
const { runFastStrike } = await import("./fastStrike-
|
|
7789
|
+
const { runFastStrike } = await import("./fastStrike-e5hdhz84.js");
|
|
7790
7790
|
return runFastStrike(input);
|
|
7791
7791
|
}
|
|
7792
7792
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectOSAndEnhancePrompt
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-draweqwg.js";
|
|
4
4
|
import {
|
|
5
5
|
parseTargetUrl
|
|
6
6
|
} from "./cli-c8131c4q.js";
|
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
streamResponse,
|
|
33
33
|
withSubagentSessionBaggage,
|
|
34
34
|
write
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-dq4pfsaf.js";
|
|
36
36
|
import {
|
|
37
37
|
ensureValidToken,
|
|
38
38
|
getPensarApiUrl,
|
|
39
39
|
init_auth,
|
|
40
40
|
init_constants,
|
|
41
41
|
signGatewayRequest
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-anr9cqj2.js";
|
|
43
43
|
import {
|
|
44
44
|
_enum,
|
|
45
45
|
_null,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
import {
|
|
71
71
|
config,
|
|
72
72
|
init_config
|
|
73
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-wvrke9n9.js";
|
|
74
74
|
import {
|
|
75
75
|
__commonJS,
|
|
76
76
|
__require,
|
|
@@ -106613,7 +106613,7 @@ IMPORTANT: Pass protectedEndpoints in authHints when you've discovered 401/403 e
|
|
|
106613
106613
|
if (credentials) {
|
|
106614
106614
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
106615
106615
|
}
|
|
106616
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
106616
|
+
const { runAuthenticationAgent } = await import("./authentication-gj2vkdy8.js");
|
|
106617
106617
|
const localBus = new AgentEventBus;
|
|
106618
106618
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
106619
106619
|
const result = await runAuthenticationAgent({
|
|
@@ -107404,7 +107404,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
107404
107404
|
return threatModelLimiter(async () => {
|
|
107405
107405
|
if (ctx.abortSignal?.aborted)
|
|
107406
107406
|
return null;
|
|
107407
|
-
const { CodeAgent } = await import("./agent-
|
|
107407
|
+
const { CodeAgent } = await import("./agent-5nwx2gw3.js");
|
|
107408
107408
|
const subagentId = newSessionId();
|
|
107409
107409
|
const subagentName = `Threat Model: ${input.routePath}`;
|
|
107410
107410
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
@@ -109327,7 +109327,7 @@ init_lazyLogger();
|
|
|
109327
109327
|
var log6 = scopedLogger(() => createLogger("FindingJudge"));
|
|
109328
109328
|
async function judgeFinding(input, ctx) {
|
|
109329
109329
|
try {
|
|
109330
|
-
const { FindingJudgeAgent } = await import("./agent-
|
|
109330
|
+
const { FindingJudgeAgent } = await import("./agent-9j0t23gh.js");
|
|
109331
109331
|
const agent = new FindingJudgeAgent({
|
|
109332
109332
|
finding: input,
|
|
109333
109333
|
model: ctx.model,
|
|
@@ -112327,6 +112327,8 @@ function createEmailAdapter(inbox) {
|
|
|
112327
112327
|
return new OutlookAdapter(inbox.accessToken, inbox.refreshToken, inbox.clientId, inbox.clientSecret);
|
|
112328
112328
|
case "imap":
|
|
112329
112329
|
return new ImapAdapter(inbox);
|
|
112330
|
+
case "http":
|
|
112331
|
+
return new HttpAdapter(inbox);
|
|
112330
112332
|
default:
|
|
112331
112333
|
throw new Error(`Unsupported email provider: ${inbox.provider}`);
|
|
112332
112334
|
}
|
|
@@ -112942,6 +112944,65 @@ function truncate(s, max) {
|
|
|
112942
112944
|
(truncated)` : s;
|
|
112943
112945
|
}
|
|
112944
112946
|
|
|
112947
|
+
class HttpAdapter {
|
|
112948
|
+
endpoint;
|
|
112949
|
+
token;
|
|
112950
|
+
address;
|
|
112951
|
+
constructor(inbox) {
|
|
112952
|
+
this.endpoint = inbox.endpoint.replace(/\/+$/, "");
|
|
112953
|
+
this.token = inbox.token;
|
|
112954
|
+
this.address = inbox.emailAddress;
|
|
112955
|
+
}
|
|
112956
|
+
async get(path, params) {
|
|
112957
|
+
const url = new URL(`${this.endpoint}${path}`);
|
|
112958
|
+
if (params) {
|
|
112959
|
+
for (const [key, value] of Object.entries(params)) {
|
|
112960
|
+
url.searchParams.set(key, value);
|
|
112961
|
+
}
|
|
112962
|
+
}
|
|
112963
|
+
const res = await fetch(url, {
|
|
112964
|
+
headers: { Authorization: `Bearer ${this.token}` }
|
|
112965
|
+
});
|
|
112966
|
+
if (!res.ok) {
|
|
112967
|
+
throw new Error(`Mailbox HTTP error ${res.status} ${res.statusText} for ${path}`);
|
|
112968
|
+
}
|
|
112969
|
+
return await res.json();
|
|
112970
|
+
}
|
|
112971
|
+
async listMessages(opts) {
|
|
112972
|
+
const params = { address: this.address };
|
|
112973
|
+
if (opts.maxResults !== undefined)
|
|
112974
|
+
params.limit = String(opts.maxResults);
|
|
112975
|
+
if (opts.pageToken)
|
|
112976
|
+
params.cursor = opts.pageToken;
|
|
112977
|
+
const data = await this.get("/messages", params);
|
|
112978
|
+
return { messages: data.messages, nextPageToken: data.nextCursor };
|
|
112979
|
+
}
|
|
112980
|
+
async searchMessages(opts) {
|
|
112981
|
+
const params = {
|
|
112982
|
+
address: this.address,
|
|
112983
|
+
q: opts.query
|
|
112984
|
+
};
|
|
112985
|
+
if (opts.maxResults !== undefined)
|
|
112986
|
+
params.limit = String(opts.maxResults);
|
|
112987
|
+
if (opts.pageToken)
|
|
112988
|
+
params.cursor = opts.pageToken;
|
|
112989
|
+
const data = await this.get("/messages", params);
|
|
112990
|
+
return { messages: data.messages, nextPageToken: data.nextCursor };
|
|
112991
|
+
}
|
|
112992
|
+
async getMessage(messageId, _folder) {
|
|
112993
|
+
return this.get(`/messages/${encodeURIComponent(messageId)}`);
|
|
112994
|
+
}
|
|
112995
|
+
async getAttachments(_messageId, _folder) {
|
|
112996
|
+
return [];
|
|
112997
|
+
}
|
|
112998
|
+
async getAttachmentContent(_messageId, _attachmentId, _folder) {
|
|
112999
|
+
throw new Error("Attachments are not supported by the http mailbox provider");
|
|
113000
|
+
}
|
|
113001
|
+
markAsRead(_messageId, _folder) {
|
|
113002
|
+
return Promise.resolve();
|
|
113003
|
+
}
|
|
113004
|
+
}
|
|
113005
|
+
|
|
112945
113006
|
// src/core/agents/offSecAgent/tools/email/getMessage.ts
|
|
112946
113007
|
function emailGetMessage(ctx) {
|
|
112947
113008
|
return tool({
|
|
@@ -115892,7 +115953,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
115892
115953
|
});
|
|
115893
115954
|
if (cwd) {
|
|
115894
115955
|
try {
|
|
115895
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
115956
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-vp4ds92k.js");
|
|
115896
115957
|
const localBus = new AgentEventBus;
|
|
115897
115958
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
115898
115959
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -115947,7 +116008,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
115947
116008
|
}
|
|
115948
116009
|
}
|
|
115949
116010
|
try {
|
|
115950
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
116011
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-09tvycba.js");
|
|
115951
116012
|
const localBus = new AgentEventBus;
|
|
115952
116013
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
115953
116014
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -116025,7 +116086,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
116025
116086
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
116026
116087
|
}),
|
|
116027
116088
|
execute: async ({ target, cwd }) => {
|
|
116028
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
116089
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-b483h0gs.js");
|
|
116029
116090
|
if (!ctx.model) {
|
|
116030
116091
|
return {
|
|
116031
116092
|
success: false,
|
|
@@ -117603,7 +117664,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
117603
117664
|
});
|
|
117604
117665
|
}
|
|
117605
117666
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
117606
|
-
const { CodeAgent } = await import("./agent-
|
|
117667
|
+
const { CodeAgent } = await import("./agent-5nwx2gw3.js");
|
|
117607
117668
|
const childSessionId = newSessionId();
|
|
117608
117669
|
const subagentId = childSessionId;
|
|
117609
117670
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
@@ -118120,7 +118181,7 @@ Returns the worker's summary, objective results, and finding count — but NOT t
|
|
|
118120
118181
|
message: "spawn_pentest_agent requires a model in the tool context."
|
|
118121
118182
|
};
|
|
118122
118183
|
}
|
|
118123
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
118184
|
+
const { TargetedPentestAgent } = await import("./agent-n467bw8f.js");
|
|
118124
118185
|
const findingsRegistry = ctx.findingsRegistry ?? FindingsRegistry.fromDirectory(ctx.session.findingsPath, {
|
|
118125
118186
|
model: ctx.model,
|
|
118126
118187
|
authConfig: ctx.authConfig,
|
|
@@ -118254,7 +118315,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
118254
118315
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
118255
118316
|
}),
|
|
118256
118317
|
execute: async ({ targets }) => {
|
|
118257
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-
|
|
118318
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-b483h0gs.js");
|
|
118258
118319
|
if (!ctx.model) {
|
|
118259
118320
|
return {
|
|
118260
118321
|
success: false,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-n9yjp8w4.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-draweqwg.js";
|
|
7
7
|
import {
|
|
8
8
|
createLogger,
|
|
9
9
|
hasToolCall,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
init_lazyLogger,
|
|
12
12
|
init_structured,
|
|
13
13
|
scopedLogger
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-dq4pfsaf.js";
|
|
15
15
|
|
|
16
16
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
17
17
|
init_dist();
|