@pensar/apex 2.1.3-canary.0e6728fd → 2.1.3-canary.3779ef4b
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-8xtrxjyz.js → agent-4kv26n9t.js} +9 -9
- package/build/agent-6k30js8g.js +19 -0
- package/build/{agent-jysnj2vg.js → agent-9xr1jbvh.js} +7 -7
- package/build/{apps-bak1k8v0.js → apps-tqmya359.js} +15 -15
- package/build/{auth-y8k6bahv.js → auth-dp6kjq88.js} +15 -15
- package/build/authentication-rz2a414m.js +19 -0
- package/build/blackboxAgent-f5b6gaab.js +19 -0
- package/build/{blackboxPentest-xkt0tw6t.js → blackboxPentest-kpm5sh4q.js} +13 -13
- package/build/{cli-j89sg0bf.js → cli-0fvw086q.js} +3 -3
- package/build/{cli-tbtta1qx.js → cli-2kpw8jj1.js} +7 -7
- package/build/{cli-08gv62zx.js → cli-3m4awymw.js} +1 -1
- package/build/{cli-4kk337yc.js → cli-5sfep5pp.js} +2 -2
- package/build/{cli-tasyg3ks.js → cli-5x795dxt.js} +1 -1
- package/build/{cli-j8gbfzaw.js → cli-7mnp7fd6.js} +1 -1
- package/build/{cli-7r4v9hdr.js → cli-9m4gwavm.js} +1 -1
- package/build/{cli-2r1wgr70.js → cli-exz3a4ns.js} +3 -3
- package/build/{cli-zf4s30wk.js → cli-f6njpb4j.js} +1 -1
- package/build/{cli-s5d8z6v2.js → cli-fd8tng9v.js} +2 -2
- package/build/{cli-s31p2dd0.js → cli-j37jjm60.js} +4 -4
- package/build/{cli-c25w7dwp.js → cli-mc47464w.js} +1 -1
- package/build/{cli-xbn0wpey.js → cli-pbx6qtf1.js} +1 -1
- package/build/{cli-twfafzdw.js → cli-qt03y53f.js} +4 -4
- package/build/{cli-gpbm6crd.js → cli-tvepp3a1.js} +12 -4
- package/build/{cli-dqvnva4d.js → cli-z6advcmx.js} +13 -13
- package/build/cli.js +33 -33
- package/build/{config-11y9yj23.js → config-9ycm5e2a.js} +3 -3
- package/build/{doctor-fj9ekd87.js → doctor-3hwcrevk.js} +6 -6
- package/build/{fixes-1gaxek7g.js → fixes-r6x96a7q.js} +15 -15
- package/build/{index-64xtwggx.js → index-3r8abyxc.js} +3 -3
- package/build/{index-mx23ftn2.js → index-5rhax8mh.js} +4 -4
- package/build/{index-jv8bb79d.js → index-6asag6rd.js} +17 -17
- package/build/{index-bkvtrkvs.js → index-bbdsk28e.js} +6 -6
- package/build/{index-v14w25cq.js → index-jfpsp5y8.js} +8 -8
- package/build/{index-aexn8f1n.js → index-n4dfaykv.js} +2 -2
- package/build/{index-sdn8h33y.js → index-skxbg5t4.js} +9 -9
- package/build/{issues-4d6mh489.js → issues-hht0mc5f.js} +15 -15
- package/build/{logs-x5wm4a2n.js → logs-1gb6v4jx.js} +15 -15
- package/build/{offesecAgent-jv32qfp0.js → offesecAgent-rjmg9zje.js} +8 -8
- package/build/pentest-pzs2e1xw.js +28 -0
- package/build/{pentests-reen609m.js → pentests-4ky49c8m.js} +15 -15
- package/build/{targetedPentest-2e9mdv9z.js → targetedPentest-gf8vang2.js} +9 -9
- package/build/{targets-7y3e540x.js → targets-34s7z2h5.js} +15 -15
- package/build/threatModel-t58edped.js +26 -0
- package/build/{uninstall-npc3w8z7.js → uninstall-4a18rxe1.js} +1 -1
- package/build/{upload-yp2jqr7h.js → upload-w4wzhr3x.js} +6 -6
- package/build/{utils-pecyn9h9.js → utils-33gc2bbv.js} +5 -5
- package/package.json +1 -1
- package/build/agent-c9x70atb.js +0 -19
- package/build/authentication-yvcjxxer.js +0 -19
- package/build/blackboxAgent-fggn000t.js +0 -19
- package/build/pentest-9z7v3w8w.js +0 -28
- package/build/threatModel-6tvhhzz7.js +0 -26
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
buildPentestActiveTools,
|
|
5
5
|
buildPentestPrompt,
|
|
6
6
|
buildPentestSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-tvepp3a1.js";
|
|
8
8
|
import"./cli-9fsre5pt.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
9
|
+
import"./cli-9m4gwavm.js";
|
|
10
|
+
import"./cli-z6advcmx.js";
|
|
11
|
+
import"./cli-7mnp7fd6.js";
|
|
12
12
|
import"./cli-c8131c4q.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
import"./cli-qt03y53f.js";
|
|
14
|
+
import"./cli-mc47464w.js";
|
|
15
15
|
import"./cli-29yqhrjq.js";
|
|
16
16
|
import"./cli-gpnb45ck.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
17
|
+
import"./cli-pbx6qtf1.js";
|
|
18
|
+
import"./cli-f6njpb4j.js";
|
|
19
|
+
import"./cli-3m4awymw.js";
|
|
20
20
|
import"./cli-8rxa073f.js";
|
|
21
21
|
export {
|
|
22
22
|
buildPentestSystemPrompt,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-fd8tng9v.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-9m4gwavm.js";
|
|
6
|
+
import"./cli-z6advcmx.js";
|
|
7
|
+
import"./cli-7mnp7fd6.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-qt03y53f.js";
|
|
10
|
+
import"./cli-mc47464w.js";
|
|
11
|
+
import"./cli-29yqhrjq.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-pbx6qtf1.js";
|
|
14
|
+
import"./cli-f6njpb4j.js";
|
|
15
|
+
import"./cli-3m4awymw.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-z6advcmx.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-7mnp7fd6.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-qt03y53f.js";
|
|
12
|
+
import"./cli-mc47464w.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_external,
|
|
15
15
|
init_zod
|
|
16
16
|
} from "./cli-29yqhrjq.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-pbx6qtf1.js";
|
|
19
|
+
import"./cli-f6njpb4j.js";
|
|
20
|
+
import"./cli-3m4awymw.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
23
23
|
// src/core/agents/specialized/findingJudge/agent.ts
|
|
@@ -12,26 +12,26 @@ 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-
|
|
15
|
+
} from "./cli-j37jjm60.js";
|
|
16
|
+
import"./cli-2kpw8jj1.js";
|
|
17
|
+
import"./cli-exz3a4ns.js";
|
|
18
|
+
import"./cli-tvepp3a1.js";
|
|
19
|
+
import"./cli-0fvw086q.js";
|
|
20
|
+
import"./cli-fd8tng9v.js";
|
|
21
|
+
import"./cli-5sfep5pp.js";
|
|
22
22
|
import"./cli-9fsre5pt.js";
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
23
|
+
import"./cli-9m4gwavm.js";
|
|
24
|
+
import"./cli-z6advcmx.js";
|
|
25
|
+
import"./cli-7mnp7fd6.js";
|
|
26
26
|
import"./cli-fw5r7pfj.js";
|
|
27
27
|
import"./cli-c8131c4q.js";
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
28
|
+
import"./cli-qt03y53f.js";
|
|
29
|
+
import"./cli-mc47464w.js";
|
|
30
30
|
import"./cli-29yqhrjq.js";
|
|
31
31
|
import"./cli-gpnb45ck.js";
|
|
32
|
-
import"./cli-
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
32
|
+
import"./cli-pbx6qtf1.js";
|
|
33
|
+
import"./cli-f6njpb4j.js";
|
|
34
|
+
import"./cli-3m4awymw.js";
|
|
35
35
|
import"./cli-8rxa073f.js";
|
|
36
36
|
|
|
37
37
|
// src/cli/apps.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
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-
|
|
2
|
+
import"./cli-j37jjm60.js";
|
|
3
|
+
import"./cli-2kpw8jj1.js";
|
|
4
|
+
import"./cli-exz3a4ns.js";
|
|
5
|
+
import"./cli-tvepp3a1.js";
|
|
6
|
+
import"./cli-0fvw086q.js";
|
|
7
|
+
import"./cli-fd8tng9v.js";
|
|
8
|
+
import"./cli-5sfep5pp.js";
|
|
9
9
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
import"./cli-9m4gwavm.js";
|
|
11
|
+
import"./cli-z6advcmx.js";
|
|
12
|
+
import"./cli-7mnp7fd6.js";
|
|
13
13
|
import"./cli-fw5r7pfj.js";
|
|
14
14
|
import"./cli-c8131c4q.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-qt03y53f.js";
|
|
16
16
|
import {
|
|
17
17
|
disconnect,
|
|
18
18
|
fetchWorkspaces,
|
|
@@ -25,15 +25,15 @@ import {
|
|
|
25
25
|
pollWorkOSToken,
|
|
26
26
|
selectWorkspace,
|
|
27
27
|
startDeviceFlow
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-mc47464w.js";
|
|
29
29
|
import"./cli-29yqhrjq.js";
|
|
30
30
|
import"./cli-gpnb45ck.js";
|
|
31
31
|
import {
|
|
32
32
|
config,
|
|
33
33
|
init_config
|
|
34
|
-
} from "./cli-
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
34
|
+
} from "./cli-pbx6qtf1.js";
|
|
35
|
+
import"./cli-f6njpb4j.js";
|
|
36
|
+
import"./cli-3m4awymw.js";
|
|
37
37
|
import {
|
|
38
38
|
__require
|
|
39
39
|
} from "./cli-8rxa073f.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent
|
|
3
|
+
} from "./cli-0fvw086q.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-9m4gwavm.js";
|
|
6
|
+
import"./cli-z6advcmx.js";
|
|
7
|
+
import"./cli-7mnp7fd6.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-qt03y53f.js";
|
|
10
|
+
import"./cli-mc47464w.js";
|
|
11
|
+
import"./cli-29yqhrjq.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-pbx6qtf1.js";
|
|
14
|
+
import"./cli-f6njpb4j.js";
|
|
15
|
+
import"./cli-3m4awymw.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
runAuthenticationAgent
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-exz3a4ns.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-9m4gwavm.js";
|
|
6
|
+
import"./cli-z6advcmx.js";
|
|
7
|
+
import"./cli-7mnp7fd6.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-qt03y53f.js";
|
|
10
|
+
import"./cli-mc47464w.js";
|
|
11
|
+
import"./cli-29yqhrjq.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-pbx6qtf1.js";
|
|
14
|
+
import"./cli-f6njpb4j.js";
|
|
15
|
+
import"./cli-3m4awymw.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
BlackboxAttackSurfaceAgent
|
|
19
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
3
|
+
} from "./cli-2kpw8jj1.js";
|
|
4
|
+
import"./cli-exz3a4ns.js";
|
|
5
|
+
import"./cli-tvepp3a1.js";
|
|
6
|
+
import"./cli-fd8tng9v.js";
|
|
7
|
+
import"./cli-5sfep5pp.js";
|
|
8
8
|
import"./cli-9fsre5pt.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
9
|
+
import"./cli-9m4gwavm.js";
|
|
10
|
+
import"./cli-z6advcmx.js";
|
|
11
|
+
import"./cli-7mnp7fd6.js";
|
|
12
12
|
import"./cli-fw5r7pfj.js";
|
|
13
13
|
import"./cli-c8131c4q.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
import"./cli-qt03y53f.js";
|
|
15
|
+
import"./cli-mc47464w.js";
|
|
16
16
|
import"./cli-29yqhrjq.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-pbx6qtf1.js";
|
|
19
|
+
import"./cli-f6njpb4j.js";
|
|
20
|
+
import"./cli-3m4awymw.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
23
23
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-z6advcmx.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-7mnp7fd6.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-qt03y53f.js";
|
|
15
15
|
|
|
16
16
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
17
17
|
init_dist();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-exz3a4ns.js";
|
|
4
4
|
import {
|
|
5
5
|
TargetedPentestAgent,
|
|
6
6
|
buildPentestSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-tvepp3a1.js";
|
|
8
8
|
import {
|
|
9
9
|
CodeAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-fd8tng9v.js";
|
|
11
11
|
import {
|
|
12
12
|
AppsDiscoveryResultSchema,
|
|
13
13
|
DiscoverySummarySchema,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT,
|
|
16
16
|
WHITEBOX_DISCOVERY_SYSTEM_PROMPT,
|
|
17
17
|
WHITEBOX_ENDPOINT_DOCUMENTATION_SYSTEM_PROMPT
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-5sfep5pp.js";
|
|
19
19
|
import {
|
|
20
20
|
EvidenceFileEntrySchema
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-9m4gwavm.js";
|
|
22
22
|
import {
|
|
23
23
|
CweEntrySchema,
|
|
24
24
|
FindingsRegistry,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
hasCanonicalName,
|
|
29
29
|
pLimit,
|
|
30
30
|
runWithBoundedConcurrency
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-z6advcmx.js";
|
|
32
32
|
import {
|
|
33
33
|
createThreatModelPrompt
|
|
34
34
|
} from "./cli-fw5r7pfj.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
init_session,
|
|
41
41
|
init_structured,
|
|
42
42
|
scopedLogger
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-qt03y53f.js";
|
|
44
44
|
import {
|
|
45
45
|
exports_external,
|
|
46
46
|
init_zod
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-z6advcmx.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-7mnp7fd6.js";
|
|
7
7
|
import {
|
|
8
8
|
hasToolCall,
|
|
9
9
|
init_dist,
|
|
10
10
|
stepCountIs
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-qt03y53f.js";
|
|
12
12
|
|
|
13
13
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
14
14
|
init_dist();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-z6advcmx.js";
|
|
4
4
|
import {
|
|
5
5
|
init_dist,
|
|
6
6
|
stepCountIs
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-qt03y53f.js";
|
|
8
8
|
|
|
9
9
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
10
10
|
init_dist();
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
OffensiveSecurityAgent,
|
|
5
5
|
SKILL_TOOL_NAMES,
|
|
6
6
|
buildBaseSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-z6advcmx.js";
|
|
8
8
|
import {
|
|
9
9
|
init_dist,
|
|
10
10
|
init_session,
|
|
11
11
|
sessions,
|
|
12
12
|
stepCountIs
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-qt03y53f.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureValidToken,
|
|
16
16
|
getPensarApiUrl,
|
|
17
17
|
init_auth,
|
|
18
18
|
init_constants
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-mc47464w.js";
|
|
20
20
|
import {
|
|
21
21
|
exports_external,
|
|
22
22
|
init_zod
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
config,
|
|
26
26
|
init_config
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-pbx6qtf1.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__require
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_auth,
|
|
5
5
|
init_constants,
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-mc47464w.js";
|
|
8
8
|
import {
|
|
9
9
|
AISDKError,
|
|
10
10
|
APICallError,
|
|
@@ -86,11 +86,11 @@ import {
|
|
|
86
86
|
import {
|
|
87
87
|
config,
|
|
88
88
|
init_config
|
|
89
|
-
} from "./cli-
|
|
89
|
+
} from "./cli-pbx6qtf1.js";
|
|
90
90
|
import {
|
|
91
91
|
getCurrentVersion,
|
|
92
92
|
init_installation
|
|
93
|
-
} from "./cli-
|
|
93
|
+
} from "./cli-3m4awymw.js";
|
|
94
94
|
import {
|
|
95
95
|
__callDispose,
|
|
96
96
|
__commonJS,
|
|
@@ -41867,7 +41867,7 @@ async function create2(input) {
|
|
|
41867
41867
|
if (normalizedConfig?.headers !== undefined) {
|
|
41868
41868
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
41869
41869
|
} else {
|
|
41870
|
-
const { config: appConfig } = await import("./index-
|
|
41870
|
+
const { config: appConfig } = await import("./index-3r8abyxc.js");
|
|
41871
41871
|
const cfg = await appConfig.get();
|
|
41872
41872
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
41873
41873
|
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createReportErrorTool,
|
|
6
6
|
isMemoryEnabled,
|
|
7
7
|
readPlan
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-z6advcmx.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-qt03y53f.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_external,
|
|
19
19
|
init_zod
|
|
@@ -170,6 +170,7 @@ var SECTION_POC_PORTABILITY = `POC Script Portability Requirements:
|
|
|
170
170
|
- Prefer built-in shell features over external commands when possible
|
|
171
171
|
- If a PoC requires a specific non-standard tool, check for it at the start and exit with a clear error message if missing`;
|
|
172
172
|
var SECTION_BROWSER_INTERACTION = `Browser Interaction:
|
|
173
|
+
- Lean on the browser for testing wherever it applies. For anything interactive, stateful, client-side, or auth-gated — login flows, multi-step forms, SPA/JavaScript-driven behavior, DOM-based XSS, CSRF, and any page that only behaves correctly with a rendered, logged-in session — drive the test through the browser (browser_navigate / browser_click / browser_fill / browser_snapshot) rather than raw requests. The browser preserves your authenticated session and executes client-side logic that http_request / curl cannot see. Fall back to http_request / execute_command (curl) for stateless API-level checks, header inspection, and high-volume payload fuzzing.
|
|
173
174
|
- Use browser_navigate to load pages, browser_snapshot to inspect the DOM, and browser_screenshot for visual evidence
|
|
174
175
|
- Use browser_click and browser_fill to interact with forms, buttons, and input fields — essential for testing login flows, search fields, and other interactive elements
|
|
175
176
|
- Screenshot liberally so the user can follow along. Whenever you are driving a browser, treat screenshots as the primary way the user watches your work. Err heavily on the side of more screenshots rather than fewer.
|
|
@@ -186,7 +187,9 @@ var SECTION_AUTHENTICATION = `Authentication:
|
|
|
186
187
|
- After a successful login, capture the resulting session credentials and reuse them for raw requests. For a browser login, call browser_get_cookies to extract the session cookies (including httpOnly ones) — pass them as the Cookie header to http_request, or as -H "Cookie: ..." / -b flags to execute_command (curl). Any worker you spawn automatically inherits a snapshot of your authenticated browser session.
|
|
187
188
|
- For http_request: include the captured Cookie and any Authorization headers on every call. For execute_command (curl): include -H "Cookie: ..." and/or -H "Authorization: ..." flags.
|
|
188
189
|
- If a request returns 401/403 after you logged in yourself, your captured session may have expired — re-authenticate the same way you did originally and refresh your session cookies/tokens.
|
|
189
|
-
- If you cannot authenticate
|
|
190
|
+
- Do NOT spin your wheels on authentication. If you have followed the credential Context instructions and still cannot authenticate, do NOT try to work around it — do NOT register a new account, self-sign-up, or fabricate credentials. Those are not the credentials under test and only pollute results. Make at most a couple of genuine attempts, then call report_error with reason "authentication_failed" and a specific message describing exactly what you tried and how it failed.
|
|
191
|
+
- If you cannot authenticate with the available credentials, or another runtime condition blocks all testing, call report_error with a clear, specific message instead of giving up silently or documenting a non-finding.
|
|
192
|
+
- Do NOT complete destructive or state-changing account actions. When testing a password-reset, account-recovery, email-change, or account-deletion flow, demonstrate the flaw (e.g. a predictable/guessable reset token, a reset that can be triggered for another user, or a flow missing authorization) WITHOUT actually finishing the action on the real account under test — never set a new password, consume a real reset token, change the account email, or delete the account. Doing so can lock you or the operator out and invalidate the credentials. Stop at the point that proves impact and document that instead.`;
|
|
190
193
|
var SECTION_CREDENTIAL_DISCOVERY = `Credential & Secret Discovery:
|
|
191
194
|
- When you find exposed configuration in client-side code (JS bundles, HTML source, config files), distinguish between:
|
|
192
195
|
- SENSITIVE SECRETS (API keys granting backend access, database credentials, JWT signing keys, private keys, service account tokens) — document as a HIGH/CRITICAL finding
|
|
@@ -456,7 +459,11 @@ ${SECTION_SOURCE_CODE_PROHIBITION}
|
|
|
456
459
|
Your methodology:
|
|
457
460
|
1. ORIENT — Call list_memories to review any existing knowledge from previous engagements (target-specific notes, successful techniques, false positive patterns, technology context). Use what you find to shape your plan.
|
|
458
461
|
2. PLAN — State the objectives you have been given and outline your high-level orchestration plan in plain text BEFORE any tool calls. For each objective, briefly state what attack class the worker should focus on (e.g. "Objective 1 → SQL injection, focus on /api/users id parameter"). Output this plan as a text message — not as a tool call.
|
|
459
|
-
3. RECON — Perform LIGHT initial reconnaissance to confirm the target is reachable and understand baseline behavior. Use http_request for a handful of probes, browser_navigate + browser_snapshot to see the surface, and execute_command sparingly. Do NOT begin exploitation here — that is the workers' job. Note any anomalies (unusual error responses, exposed headers, framework fingerprints, surprising endpoint behavior) for the final exploratory worker.
|
|
462
|
+
3. RECON & AUTHENTICATE — Perform LIGHT initial reconnaissance to confirm the target is reachable and understand baseline behavior. Use http_request for a handful of probes, browser_navigate + browser_snapshot to see the surface, and execute_command sparingly. Do NOT begin exploitation here — that is the workers' job. Note any anomalies (unusual error responses, exposed headers, framework fingerprints, surprising endpoint behavior) for the final exploratory worker.
|
|
463
|
+
- If authentication is required (an "Existing Authentication Session" section is absent and the target / objectives need a logged-in session), you MUST authenticate NOW, in YOUR browser, BEFORE any fan-out. Follow the "Available Credentials" instructions exactly — use the method each credential's Context describes (e.g. a token/API exchange via execute_command or http_request) rather than defaulting to a browser login; only drive the browser login flow (browser_navigate + browser_fill with credentialId/credentialField) when the Context does not specify how.
|
|
464
|
+
- VERIFY the session before fanning out: request a protected resource and confirm it does NOT return 401/403. Use browser_get_cookies to capture the session cookies for reuse in raw http_request / curl calls.
|
|
465
|
+
- Authenticating HERE (not in the workers) is critical: each worker you spawn inherits a snapshot of YOUR browser's authenticated cookies + localStorage at spawn time, so ONE successful login up front propagates to every worker. Do NOT instruct workers to re-authenticate.
|
|
466
|
+
- If you cannot authenticate and the objectives require it, call report_error with reason "authentication_failed" and a specific message BEFORE spawning any workers — do not fan out unauthenticated workers that will all fail, and do not report non-findings.
|
|
460
467
|
4. FAN OUT — For EACH objective, call spawn_pentest_agent EXACTLY ONCE. Each spawn dispatches a focused worker that will perform the full PLAN → VERIFY → PREPARE → TEST → EXPLOIT → DOCUMENT loop on its objective. Workers write findings to the shared findings registry — you do NOT need to forward findings between them.
|
|
461
468
|
5. CHAIN & EXPLORE — After all per-objective workers complete, call spawn_pentest_agent ONE FINAL TIME with a synthesized objective that:
|
|
462
469
|
a. Summarizes what earlier workers confirmed or ruled out (so the exploratory worker doesn't re-do their work).
|
|
@@ -595,6 +602,7 @@ Do NOT discover or enumerate other endpoints or services. Focus exclusively on t
|
|
|
595
602
|
1. Call list_memories to review any prior knowledge relevant to this target or engagement.
|
|
596
603
|
2. State the objectives and outline your orchestration plan in plain text BEFORE any tool calls — one bullet per objective, briefly naming the attack class each worker should focus on.
|
|
597
604
|
3. Perform LIGHT initial recon (a handful of http_request probes, browser_navigate + browser_snapshot to see the surface). Do NOT begin exploitation here — that is the workers' job. Note any anomalies you observe for the final exploratory worker.
|
|
605
|
+
- AUTHENTICATE FIRST if the target/objectives need a logged-in session and no "Existing Authentication Session" is provided: log in ONCE in YOUR browser during this recon step, following the "Available Credentials" instructions exactly (prefer the credential Context's method; use credentialId/credentialField so secrets resolve securely). Verify the session with a protected request (expect NOT 401/403) and capture cookies via browser_get_cookies. Every worker inherits your authenticated browser snapshot, so do this BEFORE fan-out and do NOT have workers re-authenticate. If you cannot authenticate and the objectives require it, call report_error with reason "authentication_failed" instead of fanning out.
|
|
598
606
|
4. Call spawn_pentest_agent EXACTLY ONCE PER OBJECTIVE. For every spawn:
|
|
599
607
|
- Set \`target\` to the FULL URL from the assignment above (domain + endpoint path) — pass it through verbatim. Do not strip the path or rewrite the host. Workers do not perform endpoint discovery; they deeply test the path you hand them.
|
|
600
608
|
- Pass the matching objective in the \`objectives\` array (a single-element array).
|