@pensar/apex 2.1.3-canary.9978c1ae → 2.1.3-canary.a2e99e97
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-gf41p56q.js → agent-4vm9m2ft.js} +10 -8
- package/build/agent-rt8h17s3.js +19 -0
- package/build/agent-tk933cmw.js +27 -0
- package/build/{apps-yzmjmpf9.js → apps-4ydk4b5z.js} +17 -16
- package/build/{auth-p29y3nzn.js → auth-9wbcvarq.js} +17 -16
- package/build/authentication-vah7w9pm.js +19 -0
- package/build/blackboxAgent-sr2bfe3s.js +19 -0
- package/build/{blackboxPentest-dg3b1t6b.js → blackboxPentest-52ed5674.js} +15 -14
- package/build/{cli-704tt332.js → cli-192yezw4.js} +38 -20
- package/build/{cli-80jkzpct.js → cli-2yqc0vnm.js} +1 -1
- package/build/{cli-29yqhrjq.js → cli-3k1x5rn3.js} +1 -1
- package/build/{cli-twhj2d1q.js → cli-3x9ygtbv.js} +1 -1
- package/build/{cli-bpcymyg8.js → cli-84kpy9q6.js} +48 -18
- package/build/{cli-1xx6s4nh.js → cli-86hen4re.js} +6386 -610
- package/build/{cli-mmc95pfp.js → cli-8fx3r1dj.js} +5 -5
- package/build/{cli-ecp92fqe.js → cli-b0jq621d.js} +5 -2
- package/build/{cli-dgyyj1b0.js → cli-f2bq20gj.js} +1 -1
- package/build/{cli-hty9x6e3.js → cli-gpvaz7xr.js} +4589 -4132
- package/build/{cli-24mzbewx.js → cli-hzw5gtyt.js} +1 -1
- package/build/{cli-fex1cvdc.js → cli-jx3sh6sh.js} +1 -1
- package/build/cli-pmf3g5b8.js +195 -0
- package/build/{cli-qnqppth7.js → cli-r0rzk777.js} +116 -231
- package/build/{cli-366c64xy.js → cli-rsv7cf68.js} +6 -3
- package/build/{cli-j313zw46.js → cli-t4276f9k.js} +1 -1
- package/build/{cli-d4bn60j7.js → cli-tdgq36q1.js} +2 -2
- package/build/{cli-zbwmbxpd.js → cli-z43s0k01.js} +6 -4
- package/build/cli.js +87 -57
- package/build/{config-t3ny5d68.js → config-hfjj9ezh.js} +3 -3
- package/build/{doctor-atj45rne.js → doctor-7kct1dej.js} +7 -7
- package/build/fastStrike-1zd4mz1b.js +156 -0
- package/build/{fixes-pqgk5v9z.js → fixes-qe5rdb3d.js} +17 -16
- package/build/{index-9j3fxkcg.js → index-1trvqqeg.js} +3 -3
- package/build/{index-eyt8y7cq.js → index-3bv2yd2r.js} +10 -10
- package/build/{index-s03jmg2x.js → index-4vc4m36f.js} +4 -4
- package/build/{index-n1yh9e86.js → index-gq9h8j5j.js} +1 -1
- package/build/{index-n22g9ytc.js → index-q9c8pjd9.js} +7 -7
- package/build/{index-ehk56y92.js → index-t0292j04.js} +2 -2
- package/build/{index-7cw66451.js → index-vx40h3qp.js} +66 -41
- package/build/{index-cm74qg8e.js → index-vzzeev14.js} +11 -11
- package/build/{issues-6gyfhe2j.js → issues-6d8b9w7f.js} +17 -16
- package/build/{logs-5ga7w81s.js → logs-cfbd2jyf.js} +17 -16
- package/build/{offesecAgent-zvj9q4yc.js → offesecAgent-956zqy2c.js} +9 -9
- package/build/pentest-5677aybe.js +29 -0
- package/build/{pentests-887d85z1.js → pentests-sg9ewjha.js} +17 -16
- package/build/targetedPentest-8nnwew21.js +56 -0
- package/build/{targets-63cs73s2.js → targets-es8w9353.js} +17 -16
- package/build/threatModel-hb40ht6h.js +27 -0
- package/build/{uninstall-6hc47s0e.js → uninstall-3t8hjepr.js} +1 -1
- package/build/{upload-8kv9v08h.js → upload-0te23vjs.js} +7 -7
- package/build/{utils-etpb7d2y.js → utils-cpcmtj0f.js} +6 -6
- package/package.json +1 -1
- package/build/agent-brysbb20.js +0 -19
- package/build/agent-yz2ygex0.js +0 -25
- package/build/authentication-mh5ymtgy.js +0 -19
- package/build/blackboxAgent-3z0r12m0.js +0 -19
- package/build/pentest-90d9gtrs.js +0 -28
- package/build/targetedPentest-56fzgqyw.js +0 -36
- package/build/threatModel-gznjwpk9.js +0 -26
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-gpvaz7xr.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-jx3sh6sh.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-86hen4re.js";
|
|
12
|
+
import"./cli-3x9ygtbv.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_external,
|
|
15
15
|
init_zod
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-3k1x5rn3.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-hzw5gtyt.js";
|
|
19
|
+
import"./cli-2yqc0vnm.js";
|
|
20
|
+
import"./cli-f2bq20gj.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
23
23
|
// src/core/agents/specialized/findingJudge/agent.ts
|
|
@@ -207,8 +207,10 @@ class FindingJudgeAgent extends OffensiveSecurityAgent {
|
|
|
207
207
|
eventBus: opts.eventBus,
|
|
208
208
|
sandbox: opts.sandbox,
|
|
209
209
|
enableThinking: opts.enableThinking,
|
|
210
|
+
thinkingEffort: opts.thinkingEffort,
|
|
210
211
|
openAIReasoningEffort: opts.openAIReasoningEffort,
|
|
211
212
|
subagentId: opts.subagentId ?? "finding-judge",
|
|
213
|
+
subagentName: opts.subagentName ?? "Finding Judge",
|
|
212
214
|
activeTools: [...FINDING_JUDGE_ACTIVE_TOOLS],
|
|
213
215
|
responseSchema: FindingJudgeOutputSchema,
|
|
214
216
|
stopWhen: stepCountIs(60)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-b0jq621d.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-tdgq36q1.js";
|
|
6
|
+
import"./cli-gpvaz7xr.js";
|
|
7
|
+
import"./cli-jx3sh6sh.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-86hen4re.js";
|
|
10
|
+
import"./cli-3x9ygtbv.js";
|
|
11
|
+
import"./cli-3k1x5rn3.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-hzw5gtyt.js";
|
|
14
|
+
import"./cli-2yqc0vnm.js";
|
|
15
|
+
import"./cli-f2bq20gj.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
CodeAgent
|
|
19
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PentestResponseSchema,
|
|
3
|
+
TargetedPentestAgent,
|
|
4
|
+
buildPentestActiveTools,
|
|
5
|
+
buildPentestPrompt,
|
|
6
|
+
buildPentestSystemPrompt
|
|
7
|
+
} from "./cli-84kpy9q6.js";
|
|
8
|
+
import"./cli-9fsre5pt.js";
|
|
9
|
+
import"./cli-tdgq36q1.js";
|
|
10
|
+
import"./cli-gpvaz7xr.js";
|
|
11
|
+
import"./cli-jx3sh6sh.js";
|
|
12
|
+
import"./cli-c8131c4q.js";
|
|
13
|
+
import"./cli-86hen4re.js";
|
|
14
|
+
import"./cli-3x9ygtbv.js";
|
|
15
|
+
import"./cli-3k1x5rn3.js";
|
|
16
|
+
import"./cli-gpnb45ck.js";
|
|
17
|
+
import"./cli-hzw5gtyt.js";
|
|
18
|
+
import"./cli-2yqc0vnm.js";
|
|
19
|
+
import"./cli-f2bq20gj.js";
|
|
20
|
+
import"./cli-8rxa073f.js";
|
|
21
|
+
export {
|
|
22
|
+
buildPentestSystemPrompt,
|
|
23
|
+
buildPentestPrompt,
|
|
24
|
+
buildPentestActiveTools,
|
|
25
|
+
TargetedPentestAgent,
|
|
26
|
+
PentestResponseSchema
|
|
27
|
+
};
|
|
@@ -12,26 +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-
|
|
15
|
+
} from "./cli-8fx3r1dj.js";
|
|
16
|
+
import"./cli-r0rzk777.js";
|
|
17
|
+
import"./cli-z43s0k01.js";
|
|
18
|
+
import"./cli-pmf3g5b8.js";
|
|
19
|
+
import"./cli-84kpy9q6.js";
|
|
20
|
+
import"./cli-192yezw4.js";
|
|
21
|
+
import"./cli-b0jq621d.js";
|
|
22
|
+
import"./cli-rsv7cf68.js";
|
|
22
23
|
import"./cli-9fsre5pt.js";
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
24
|
+
import"./cli-tdgq36q1.js";
|
|
25
|
+
import"./cli-gpvaz7xr.js";
|
|
26
|
+
import"./cli-jx3sh6sh.js";
|
|
26
27
|
import"./cli-fw5r7pfj.js";
|
|
27
28
|
import"./cli-c8131c4q.js";
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
29
|
+
import"./cli-86hen4re.js";
|
|
30
|
+
import"./cli-3x9ygtbv.js";
|
|
31
|
+
import"./cli-3k1x5rn3.js";
|
|
31
32
|
import"./cli-gpnb45ck.js";
|
|
32
|
-
import"./cli-
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
33
|
+
import"./cli-hzw5gtyt.js";
|
|
34
|
+
import"./cli-2yqc0vnm.js";
|
|
35
|
+
import"./cli-f2bq20gj.js";
|
|
35
36
|
import"./cli-8rxa073f.js";
|
|
36
37
|
|
|
37
38
|
// src/cli/apps.ts
|
|
@@ -1,18 +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-
|
|
2
|
+
import"./cli-8fx3r1dj.js";
|
|
3
|
+
import"./cli-r0rzk777.js";
|
|
4
|
+
import"./cli-z43s0k01.js";
|
|
5
|
+
import"./cli-pmf3g5b8.js";
|
|
6
|
+
import"./cli-84kpy9q6.js";
|
|
7
|
+
import"./cli-192yezw4.js";
|
|
8
|
+
import"./cli-b0jq621d.js";
|
|
9
|
+
import"./cli-rsv7cf68.js";
|
|
9
10
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
import"./cli-tdgq36q1.js";
|
|
12
|
+
import"./cli-gpvaz7xr.js";
|
|
13
|
+
import"./cli-jx3sh6sh.js";
|
|
13
14
|
import"./cli-fw5r7pfj.js";
|
|
14
15
|
import"./cli-c8131c4q.js";
|
|
15
|
-
import"./cli-
|
|
16
|
+
import"./cli-86hen4re.js";
|
|
16
17
|
import {
|
|
17
18
|
disconnect,
|
|
18
19
|
fetchWorkspaces,
|
|
@@ -25,15 +26,15 @@ import {
|
|
|
25
26
|
pollWorkOSToken,
|
|
26
27
|
selectWorkspace,
|
|
27
28
|
startDeviceFlow
|
|
28
|
-
} from "./cli-
|
|
29
|
-
import"./cli-
|
|
29
|
+
} from "./cli-3x9ygtbv.js";
|
|
30
|
+
import"./cli-3k1x5rn3.js";
|
|
30
31
|
import"./cli-gpnb45ck.js";
|
|
31
32
|
import {
|
|
32
33
|
config,
|
|
33
34
|
init_config
|
|
34
|
-
} from "./cli-
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
35
|
+
} from "./cli-hzw5gtyt.js";
|
|
36
|
+
import"./cli-2yqc0vnm.js";
|
|
37
|
+
import"./cli-f2bq20gj.js";
|
|
37
38
|
import {
|
|
38
39
|
__require
|
|
39
40
|
} from "./cli-8rxa073f.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent
|
|
3
|
+
} from "./cli-192yezw4.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-tdgq36q1.js";
|
|
6
|
+
import"./cli-gpvaz7xr.js";
|
|
7
|
+
import"./cli-jx3sh6sh.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-86hen4re.js";
|
|
10
|
+
import"./cli-3x9ygtbv.js";
|
|
11
|
+
import"./cli-3k1x5rn3.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-hzw5gtyt.js";
|
|
14
|
+
import"./cli-2yqc0vnm.js";
|
|
15
|
+
import"./cli-f2bq20gj.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
runAuthenticationAgent
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-z43s0k01.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-tdgq36q1.js";
|
|
6
|
+
import"./cli-gpvaz7xr.js";
|
|
7
|
+
import"./cli-jx3sh6sh.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-86hen4re.js";
|
|
10
|
+
import"./cli-3x9ygtbv.js";
|
|
11
|
+
import"./cli-3k1x5rn3.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-hzw5gtyt.js";
|
|
14
|
+
import"./cli-2yqc0vnm.js";
|
|
15
|
+
import"./cli-f2bq20gj.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
BlackboxAttackSurfaceAgent
|
|
19
|
+
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
3
|
+
} from "./cli-r0rzk777.js";
|
|
4
|
+
import"./cli-z43s0k01.js";
|
|
5
|
+
import"./cli-pmf3g5b8.js";
|
|
6
|
+
import"./cli-84kpy9q6.js";
|
|
7
|
+
import"./cli-b0jq621d.js";
|
|
8
|
+
import"./cli-rsv7cf68.js";
|
|
8
9
|
import"./cli-9fsre5pt.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
10
|
+
import"./cli-tdgq36q1.js";
|
|
11
|
+
import"./cli-gpvaz7xr.js";
|
|
12
|
+
import"./cli-jx3sh6sh.js";
|
|
12
13
|
import"./cli-fw5r7pfj.js";
|
|
13
14
|
import"./cli-c8131c4q.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
15
|
+
import"./cli-86hen4re.js";
|
|
16
|
+
import"./cli-3x9ygtbv.js";
|
|
17
|
+
import"./cli-3k1x5rn3.js";
|
|
17
18
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-hzw5gtyt.js";
|
|
20
|
+
import"./cli-2yqc0vnm.js";
|
|
21
|
+
import"./cli-f2bq20gj.js";
|
|
21
22
|
import"./cli-8rxa073f.js";
|
|
22
23
|
|
|
23
24
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-gpvaz7xr.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-jx3sh6sh.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-86hen4re.js";
|
|
15
15
|
|
|
16
16
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
17
17
|
init_dist();
|
|
@@ -37,9 +37,9 @@ Obtain valid credentials/sessions that other agents can use for authenticated te
|
|
|
37
37
|
# Available Tools
|
|
38
38
|
|
|
39
39
|
## API Authentication
|
|
40
|
-
- \`
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
- \`execute_command\` — Run curl (or other shell commands) to submit credentials via form POST,
|
|
41
|
+
JSON POST, or HTTP Basic auth, and to capture the Set-Cookie / token response. Use this for all
|
|
42
|
+
custom and complex API auth flows.
|
|
43
43
|
|
|
44
44
|
## Browser Authentication
|
|
45
45
|
- \`browser_navigate\` — Navigate to login page
|
|
@@ -77,11 +77,11 @@ Look for:
|
|
|
77
77
|
## Step 2: Authenticate
|
|
78
78
|
|
|
79
79
|
### API path (use when target is an API or has a simple form):
|
|
80
|
-
1.
|
|
81
|
-
- \`
|
|
82
|
-
- \`
|
|
83
|
-
- \`
|
|
84
|
-
2.
|
|
80
|
+
1. Use \`execute_command\` with curl to submit the credentials, matching the target's scheme:
|
|
81
|
+
- \`curl -i -d 'username=...&password=...' <loginUrl>\` for HTML form POST
|
|
82
|
+
- \`curl -i -H 'Content-Type: application/json' -d '{"username":"...","password":"..."}' <loginUrl>\` for JSON APIs
|
|
83
|
+
- \`curl -i -u '<user>:<pass>' <url>\` for HTTP Basic
|
|
84
|
+
2. Inspect the response (\`-i\` shows headers) — capture any \`Set-Cookie\` value or token to use as the session credential.
|
|
85
85
|
|
|
86
86
|
### Browser path (use for SPAs, OAuth, JS-rendered forms):
|
|
87
87
|
1. \`browser_navigate\` to the login URL
|
|
@@ -113,7 +113,7 @@ If both API and browser approaches fail, use \`delegate_to_auth_subagent\` for c
|
|
|
113
113
|
**First**, call \`complete_authentication\` with:
|
|
114
114
|
- \`success\`: whether auth succeeded
|
|
115
115
|
- \`summary\`: what happened and what credentials/cookies were obtained
|
|
116
|
-
- \`exportedCookies\`: the cookie string for downstream HTTP requests (from browser_get_cookies cookieHeader or
|
|
116
|
+
- \`exportedCookies\`: the cookie string for downstream HTTP requests (from browser_get_cookies cookieHeader or the Set-Cookie header in the curl response)
|
|
117
117
|
- \`exportedHeaders\`: auth headers map, e.g. {"Authorization": "Bearer <token>"} (from browser_evaluate localStorage tokens or API response)
|
|
118
118
|
- \`strategy\`: method used ("browser", "form_post", "json_post", "basic_auth", "bearer")
|
|
119
119
|
- \`authBarrier\`: if a barrier was encountered (captcha, mfa, etc.)
|
|
@@ -127,13 +127,21 @@ These are the ONLY way downstream agents receive the session credentials.
|
|
|
127
127
|
|
|
128
128
|
# Error Recovery
|
|
129
129
|
|
|
130
|
-
If authentication fails:
|
|
130
|
+
If authentication fails, try these mechanical fixes (they are login mechanics, not credential changes):
|
|
131
131
|
1. Try alternative field names (email vs username, passwd vs password)
|
|
132
132
|
2. Check for CSRF token requirements (look in page source or hidden form fields)
|
|
133
133
|
3. Verify the endpoint URL is correct
|
|
134
134
|
4. Try a different method (form_post vs json_post)
|
|
135
135
|
5. If all else fails, call \`complete_authentication\` with success=false
|
|
136
136
|
|
|
137
|
+
If credentials were provided to you, they are already verified and SHARED — do not modify them or their
|
|
138
|
+
account settings. When such provided credentials are genuinely rejected — wrong password, account locked, a
|
|
139
|
+
forced password change is required, MFA is required, or the email is not confirmed — do NOT try to recover by resetting or changing
|
|
140
|
+
the password, modifying MFA/2FA settings, or running any account-recovery flow. Fail fast: call
|
|
141
|
+
\`complete_authentication\` with success=false and a summary naming the reason. Do NOT register a new account
|
|
142
|
+
or self-sign-up to get around a rejected provided credential — that is a different account than the one
|
|
143
|
+
under test and only pollutes results.
|
|
144
|
+
|
|
137
145
|
## Rate Limiting
|
|
138
146
|
|
|
139
147
|
If you encounter rate-limiting errors (e.g. "Rate limit exceeded", HTTP 429, "too many requests"):
|
|
@@ -179,6 +187,7 @@ class AuthenticationAgent extends OffensiveSecurityAgent {
|
|
|
179
187
|
context,
|
|
180
188
|
environmentVariables,
|
|
181
189
|
enableThinking,
|
|
190
|
+
thinkingEffort,
|
|
182
191
|
openAIReasoningEffort
|
|
183
192
|
} = opts;
|
|
184
193
|
const cm = session.credentialManager;
|
|
@@ -193,13 +202,14 @@ class AuthenticationAgent extends OffensiveSecurityAgent {
|
|
|
193
202
|
abortSignal,
|
|
194
203
|
eventBus,
|
|
195
204
|
subagentId,
|
|
205
|
+
subagentName: opts.subagentName,
|
|
196
206
|
environmentVariables,
|
|
197
207
|
enableThinking,
|
|
208
|
+
thinkingEffort,
|
|
198
209
|
openAIReasoningEffort,
|
|
199
210
|
toolChoice: "auto",
|
|
200
211
|
activeTools: [
|
|
201
212
|
"execute_command",
|
|
202
|
-
"authenticate_session",
|
|
203
213
|
"complete_authentication",
|
|
204
214
|
"browser_navigate",
|
|
205
215
|
"browser_snapshot",
|
|
@@ -294,17 +304,25 @@ function buildAuthPrompt(target, authHints, credentialManager, context) {
|
|
|
294
304
|
if (credBlock) {
|
|
295
305
|
parts.push(`INSTRUCTIONS:
|
|
296
306
|
You have credentials available via credential IDs — authenticate immediately.
|
|
297
|
-
1.
|
|
298
|
-
2.
|
|
307
|
+
1. For API/form logins, use execute_command (curl) to submit credentials and capture the Set-Cookie / token response
|
|
308
|
+
2. For browser-based logins, use the browser tools. For browser_fill on password/secret fields,
|
|
299
309
|
pass credentialId + credentialField (e.g. credentialField="password") instead of the raw value —
|
|
300
310
|
the secret is resolved securely at execution time. NEVER type a password directly.
|
|
301
|
-
3. Call complete_authentication with exported cookies/headers to persist credentials and end the run
|
|
311
|
+
3. Call complete_authentication with exported cookies/headers to persist credentials and end the run
|
|
312
|
+
|
|
313
|
+
The credentials above were provided to you and have already been verified — they are SHARED across runs, so
|
|
314
|
+
do not modify them or their account settings. NEVER change the password, complete a password reset /
|
|
315
|
+
forced-password-change / account-recovery flow, or modify MFA/2FA settings (enrolling, disabling, or
|
|
316
|
+
resetting a second factor) for this account. If they do not authenticate (rejected, locked out, forced
|
|
317
|
+
password change required, MFA required, email not confirmed), call complete_authentication with
|
|
318
|
+
success=false and a clear summary of why — do not attempt to recover, reset, or rotate them. Do NOT
|
|
319
|
+
register a new account or self-sign-up to work around a failed login: that is not the credential under test
|
|
320
|
+
and only pollutes results — fail fast with success=false instead.`);
|
|
302
321
|
} else {
|
|
303
322
|
parts.push(`INSTRUCTIONS:
|
|
304
323
|
1. Probe the target with execute_command (curl) to determine the auth mechanism
|
|
305
|
-
2. Attempt authentication with
|
|
306
|
-
3.
|
|
307
|
-
4. Call complete_authentication with exported cookies/headers to persist credentials and end the run`);
|
|
324
|
+
2. Attempt authentication with execute_command (curl) or the browser tools
|
|
325
|
+
3. Call complete_authentication with exported cookies/headers to persist credentials and end the run`);
|
|
308
326
|
}
|
|
309
327
|
return parts.join(`
|
|
310
328
|
`);
|
|
@@ -24438,4 +24438,4 @@ var require_src = __commonJS((exports) => {
|
|
|
24438
24438
|
};
|
|
24439
24439
|
});
|
|
24440
24440
|
|
|
24441
|
-
export { AISDKError, APICallError, EmptyResponseBodyError, getErrorMessage, InvalidArgumentError, InvalidPromptError, InvalidResponseDataError, JSONParseError, LoadAPIKeyError, LoadSettingError, NoContentGeneratedError, NoSuchModelError, TooManyEmbeddingValuesForCallError, TypeValidationError, UnsupportedFunctionalityError, isJSONArray, isJSONObject, init_dist, safeParse, toJSONSchema, init_core2 as init_core, exports_iso, safeParseAsync2 as safeParseAsync, string2 as string, number2 as number, boolean2 as boolean, _null3 as _null, unknown, array, object, looseObject, union, discriminatedUnion, intersection, record, _enum2 as _enum, literal, optional, custom, preprocess, exports_external, init_v4, ZodFirstPartyTypeKind2 as ZodFirstPartyTypeKind, init_v3, EventSourceParserStream, init_stream, combineHeaders, createToolNameMapping, delay, DelayedPromise, extractResponseHeaders, convertBase64ToUint8Array, convertUint8ArrayToBase64, convertToBase64, convertToFormData, cancelResponseBody, DownloadError, fetchWithValidatedRedirects, DEFAULT_MAX_DOWNLOAD_SIZE, readResponseWithSizeLimit, downloadBlob, createIdGenerator, generateId, getErrorMessage2 as getErrorMessage1, isAbortError, getRuntimeEnvironmentUserAgent, normalizeHeaders, withUserAgentSuffix, getFromApi, isNonNullable, isSameOrigin, isUrlSupported, loadApiKey, loadOptionalSetting, loadSetting, lazySchema, jsonSchema, asSchema, zodSchema, validateTypes, safeValidateTypes, safeParseJSON, isParsableJson, parseJsonEventStream, parseProviderOptions, postJsonToApi, postFormDataToApi, tool, dynamicTool, createProviderToolFactory, createProviderToolFactoryWithOutputSchema, resolve, createJsonErrorResponseHandler, createEventSourceResponseHandler, createJsonResponseHandler, stripFileExtension, withoutTrailingSlash, executeTool, init_dist3 as init_dist1, zod_default, init_zod, GatewayError, GatewayAuthenticationError, createGatewayProvider, gateway, init_dist4 as init_dist2, require_src };
|
|
24441
|
+
export { AISDKError, APICallError, EmptyResponseBodyError, getErrorMessage, InvalidArgumentError, InvalidPromptError, InvalidResponseDataError, JSONParseError, LoadAPIKeyError, LoadSettingError, NoContentGeneratedError, NoSuchModelError, TooManyEmbeddingValuesForCallError, TypeValidationError, UnsupportedFunctionalityError, isJSONArray, isJSONObject, init_dist, safeParse, toJSONSchema, init_core2 as init_core, exports_iso, safeParseAsync2 as safeParseAsync, string2 as string, number2 as number, boolean2 as boolean, _null3 as _null, unknown, array, object, looseObject, union, discriminatedUnion, intersection, record, _enum2 as _enum, literal, optional, custom, preprocess, exports_external, init_v4, ZodFirstPartyTypeKind2 as ZodFirstPartyTypeKind, init_v3, EventSourceParserStream, init_stream, combineHeaders, createToolNameMapping, delay, DelayedPromise, extractResponseHeaders, convertBase64ToUint8Array, convertUint8ArrayToBase64, convertToBase64, convertToFormData, cancelResponseBody, DownloadError, fetchWithValidatedRedirects, DEFAULT_MAX_DOWNLOAD_SIZE, readResponseWithSizeLimit, downloadBlob, createIdGenerator, generateId, getErrorMessage2 as getErrorMessage1, isAbortError, getRuntimeEnvironmentUserAgent, normalizeHeaders, withUserAgentSuffix, getFromApi, isNonNullable, isSameOrigin, isUrlSupported, loadApiKey, loadOptionalSetting, loadSetting, lazySchema, jsonSchema, asSchema, zodSchema, validateTypes, safeValidateTypes, parseJSON, safeParseJSON, isParsableJson, parseJsonEventStream, parseProviderOptions, postJsonToApi, postFormDataToApi, tool, dynamicTool, createProviderToolFactory, createProviderToolFactoryWithOutputSchema, resolve, createJsonErrorResponseHandler, createEventSourceResponseHandler, createJsonResponseHandler, stripFileExtension, withoutTrailingSlash, executeTool, init_dist3 as init_dist1, zod_default, init_zod, GatewayError, GatewayAuthenticationError, createGatewayProvider, gateway, init_dist4 as init_dist2, require_src };
|