@prism-d1/cli 1.2.0 → 1.4.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.
Files changed (181) hide show
  1. package/dist/assets/github-workflows/prism-eval-gate-kiro.yml +2 -2
  2. package/dist/assets/infra/bin/app.ts +61 -37
  3. package/dist/assets/infra/lib/constructs/security-agent-construct.ts +35 -30
  4. package/dist/assets/infra/lib/metrics-pipeline-stack.ts +2 -110
  5. package/dist/assets/infra/lib/security-agent-resources.ts +136 -0
  6. package/dist/assets/infra/lib/security-agent-stack.ts +69 -0
  7. package/dist/assets/pentest-cdk/bin/app.ts +12 -0
  8. package/dist/assets/pentest-cdk/cdk.json +7 -0
  9. package/dist/assets/pentest-cdk/lib/pentest-target-stack.ts +206 -0
  10. package/dist/assets/pentest-cdk/package.json +18 -0
  11. package/dist/assets/pentest-cdk/tsconfig.json +12 -0
  12. package/dist/src/aws/advice.d.ts +33 -0
  13. package/dist/src/aws/advice.d.ts.map +1 -0
  14. package/dist/src/aws/advice.js +174 -0
  15. package/dist/src/aws/advice.js.map +1 -0
  16. package/dist/src/aws/check.d.ts +64 -0
  17. package/dist/src/aws/check.d.ts.map +1 -0
  18. package/dist/src/aws/check.js +269 -0
  19. package/dist/src/aws/check.js.map +1 -0
  20. package/dist/src/aws/connect.d.ts +65 -0
  21. package/dist/src/aws/connect.d.ts.map +1 -0
  22. package/dist/src/aws/connect.js +250 -0
  23. package/dist/src/aws/connect.js.map +1 -0
  24. package/dist/src/aws/connection.d.ts +67 -0
  25. package/dist/src/aws/connection.d.ts.map +1 -0
  26. package/dist/src/aws/connection.js +137 -0
  27. package/dist/src/aws/connection.js.map +1 -0
  28. package/dist/src/aws/recommend.d.ts +70 -0
  29. package/dist/src/aws/recommend.d.ts.map +1 -0
  30. package/dist/src/aws/recommend.js +244 -0
  31. package/dist/src/aws/recommend.js.map +1 -0
  32. package/dist/src/aws/run-check.d.ts +31 -0
  33. package/dist/src/aws/run-check.d.ts.map +1 -0
  34. package/dist/src/aws/run-check.js +91 -0
  35. package/dist/src/aws/run-check.js.map +1 -0
  36. package/dist/src/codewatch/results.d.ts +155 -4
  37. package/dist/src/codewatch/results.d.ts.map +1 -1
  38. package/dist/src/codewatch/results.js +12 -2
  39. package/dist/src/codewatch/results.js.map +1 -1
  40. package/dist/src/commands/_top/version.d.ts +62 -0
  41. package/dist/src/commands/_top/version.d.ts.map +1 -0
  42. package/dist/src/commands/_top/version.js +175 -0
  43. package/dist/src/commands/_top/version.js.map +1 -0
  44. package/dist/src/commands/aws/check.d.ts +25 -0
  45. package/dist/src/commands/aws/check.d.ts.map +1 -0
  46. package/dist/src/commands/aws/check.js +42 -0
  47. package/dist/src/commands/aws/check.js.map +1 -0
  48. package/dist/src/commands/aws/connect.d.ts +16 -0
  49. package/dist/src/commands/aws/connect.d.ts.map +1 -0
  50. package/dist/src/commands/aws/connect.js +39 -0
  51. package/dist/src/commands/aws/connect.js.map +1 -0
  52. package/dist/src/commands/aws/recommend.d.ts +12 -0
  53. package/dist/src/commands/aws/recommend.d.ts.map +1 -0
  54. package/dist/src/commands/aws/recommend.js +21 -0
  55. package/dist/src/commands/aws/recommend.js.map +1 -0
  56. package/dist/src/commands/bedrock-protection/scan-account.d.ts.map +1 -1
  57. package/dist/src/commands/bedrock-protection/scan-account.js +14 -35
  58. package/dist/src/commands/bedrock-protection/scan-account.js.map +1 -1
  59. package/dist/src/commands/bedrock-protection/scan-org.d.ts.map +1 -1
  60. package/dist/src/commands/bedrock-protection/scan-org.js +12 -5
  61. package/dist/src/commands/bedrock-protection/scan-org.js.map +1 -1
  62. package/dist/src/commands/bootstrapper/setup-otel-sync.d.ts +12 -6
  63. package/dist/src/commands/bootstrapper/setup-otel-sync.d.ts.map +1 -1
  64. package/dist/src/commands/bootstrapper/setup-otel-sync.js +18 -409
  65. package/dist/src/commands/bootstrapper/setup-otel-sync.js.map +1 -1
  66. package/dist/src/commands/enable/codeburn.d.ts +59 -0
  67. package/dist/src/commands/enable/codeburn.d.ts.map +1 -0
  68. package/dist/src/commands/enable/codeburn.js +531 -0
  69. package/dist/src/commands/enable/codeburn.js.map +1 -0
  70. package/dist/src/commands/enable/security.d.ts +41 -0
  71. package/dist/src/commands/enable/security.d.ts.map +1 -0
  72. package/dist/src/commands/enable/security.js +128 -0
  73. package/dist/src/commands/enable/security.js.map +1 -0
  74. package/dist/src/commands/export/otel.d.ts +31 -0
  75. package/dist/src/commands/export/otel.d.ts.map +1 -0
  76. package/dist/src/commands/export/otel.js +52 -0
  77. package/dist/src/commands/export/otel.js.map +1 -0
  78. package/dist/src/commands/security/code-review.d.ts +22 -0
  79. package/dist/src/commands/security/code-review.d.ts.map +1 -0
  80. package/dist/src/commands/security/code-review.js +44 -0
  81. package/dist/src/commands/security/code-review.js.map +1 -0
  82. package/dist/src/commands/security/findings.d.ts +15 -0
  83. package/dist/src/commands/security/findings.d.ts.map +1 -0
  84. package/dist/src/commands/security/findings.js +33 -0
  85. package/dist/src/commands/security/findings.js.map +1 -0
  86. package/dist/src/commands/security/pentest.d.ts +18 -0
  87. package/dist/src/commands/security/pentest.d.ts.map +1 -0
  88. package/dist/src/commands/security/pentest.js +33 -0
  89. package/dist/src/commands/security/pentest.js.map +1 -0
  90. package/dist/src/commands/security/threat-model.d.ts +16 -0
  91. package/dist/src/commands/security/threat-model.d.ts.map +1 -0
  92. package/dist/src/commands/security/threat-model.js +25 -0
  93. package/dist/src/commands/security/threat-model.js.map +1 -0
  94. package/dist/src/commands/security/threats.d.ts +12 -0
  95. package/dist/src/commands/security/threats.d.ts.map +1 -0
  96. package/dist/src/commands/security/threats.js +24 -0
  97. package/dist/src/commands/security/threats.js.map +1 -0
  98. package/dist/src/commands/securityagent/setup.d.ts +19 -5
  99. package/dist/src/commands/securityagent/setup.d.ts.map +1 -1
  100. package/dist/src/commands/securityagent/setup.js +25 -189
  101. package/dist/src/commands/securityagent/setup.js.map +1 -1
  102. package/dist/src/dashboard/aws.d.ts +39 -0
  103. package/dist/src/dashboard/aws.d.ts.map +1 -0
  104. package/dist/src/dashboard/aws.js +35 -0
  105. package/dist/src/dashboard/aws.js.map +1 -0
  106. package/dist/src/dashboard/codewatch.d.ts.map +1 -1
  107. package/dist/src/dashboard/codewatch.js +2 -1
  108. package/dist/src/dashboard/codewatch.js.map +1 -1
  109. package/dist/src/dashboard/page.d.ts.map +1 -1
  110. package/dist/src/dashboard/page.js +193 -5
  111. package/dist/src/dashboard/page.js.map +1 -1
  112. package/dist/src/dashboard/payload.d.ts +11 -5
  113. package/dist/src/dashboard/payload.d.ts.map +1 -1
  114. package/dist/src/dashboard/payload.js +7 -2
  115. package/dist/src/dashboard/payload.js.map +1 -1
  116. package/dist/src/dashboard/security.d.ts +130 -0
  117. package/dist/src/dashboard/security.d.ts.map +1 -0
  118. package/dist/src/dashboard/security.js +144 -0
  119. package/dist/src/dashboard/security.js.map +1 -0
  120. package/dist/src/dashboard/setup.d.ts +15 -0
  121. package/dist/src/dashboard/setup.d.ts.map +1 -1
  122. package/dist/src/dashboard/setup.js +20 -3
  123. package/dist/src/dashboard/setup.js.map +1 -1
  124. package/dist/src/dashboard/usage.js +1 -1
  125. package/dist/src/dashboard/usage.js.map +1 -1
  126. package/dist/src/index.d.ts.map +1 -1
  127. package/dist/src/index.js +9 -2
  128. package/dist/src/index.js.map +1 -1
  129. package/dist/src/security/cfn-diff.d.ts +57 -0
  130. package/dist/src/security/cfn-diff.d.ts.map +1 -0
  131. package/dist/src/security/cfn-diff.js +112 -0
  132. package/dist/src/security/cfn-diff.js.map +1 -0
  133. package/dist/src/security/errors.d.ts +45 -0
  134. package/dist/src/security/errors.d.ts.map +1 -0
  135. package/dist/src/security/errors.js +116 -0
  136. package/dist/src/security/errors.js.map +1 -0
  137. package/dist/src/security/marker.d.ts +46 -0
  138. package/dist/src/security/marker.d.ts.map +1 -0
  139. package/dist/src/security/marker.js +120 -0
  140. package/dist/src/security/marker.js.map +1 -0
  141. package/dist/src/security/pentest-dockerfile.d.ts +8 -0
  142. package/dist/src/security/pentest-dockerfile.d.ts.map +1 -0
  143. package/dist/src/security/pentest-dockerfile.js +163 -0
  144. package/dist/src/security/pentest-dockerfile.js.map +1 -0
  145. package/dist/src/security/pentest.d.ts +233 -0
  146. package/dist/src/security/pentest.d.ts.map +1 -0
  147. package/dist/src/security/pentest.js +1057 -0
  148. package/dist/src/security/pentest.js.map +1 -0
  149. package/dist/src/security/repo.d.ts +25 -0
  150. package/dist/src/security/repo.d.ts.map +1 -0
  151. package/dist/src/security/repo.js +38 -0
  152. package/dist/src/security/repo.js.map +1 -0
  153. package/dist/src/security/review.d.ts +202 -0
  154. package/dist/src/security/review.d.ts.map +1 -0
  155. package/dist/src/security/review.js +706 -0
  156. package/dist/src/security/review.js.map +1 -0
  157. package/dist/src/security/setup.d.ts +209 -0
  158. package/dist/src/security/setup.d.ts.map +1 -0
  159. package/dist/src/security/setup.js +742 -0
  160. package/dist/src/security/setup.js.map +1 -0
  161. package/dist/src/security/threat-model.d.ts +133 -0
  162. package/dist/src/security/threat-model.d.ts.map +1 -0
  163. package/dist/src/security/threat-model.js +653 -0
  164. package/dist/src/security/threat-model.js.map +1 -0
  165. package/dist/src/utils/audit-account.d.ts +50 -0
  166. package/dist/src/utils/audit-account.d.ts.map +1 -0
  167. package/dist/src/utils/audit-account.js +69 -0
  168. package/dist/src/utils/audit-account.js.map +1 -0
  169. package/dist/src/utils/audit-iam.d.ts +1 -1
  170. package/dist/src/utils/audit-iam.d.ts.map +1 -1
  171. package/dist/src/utils/audit-iam.js +11 -7
  172. package/dist/src/utils/audit-iam.js.map +1 -1
  173. package/dist/src/utils/exec.d.ts +6 -0
  174. package/dist/src/utils/exec.d.ts.map +1 -1
  175. package/dist/src/utils/exec.js +12 -1
  176. package/dist/src/utils/exec.js.map +1 -1
  177. package/dist/src/utils/otel-sync-schedule.d.ts +19 -0
  178. package/dist/src/utils/otel-sync-schedule.d.ts.map +1 -1
  179. package/dist/src/utils/otel-sync-schedule.js +24 -2
  180. package/dist/src/utils/otel-sync-schedule.js.map +1 -1
  181. package/package.json +3 -3
@@ -0,0 +1,233 @@
1
+ import { type PentestInfo, type PrismResult, type ResultEntry } from '../codewatch/results.js';
2
+ import { type Ctx, type RepoCtx, type SecurityOptions } from './setup.js';
3
+ import { TERMINAL, type ReviewDeps } from './review.js';
4
+ /** A pentest runs for hours (the spike took ~2h50m), so --wait defaults to 6h, not code-review's 30m. */
5
+ export declare const PENTEST_DEFAULT_TIMEOUT_MIN = 360;
6
+ /** Terminal job states (STOPPING is not terminal). Same set as code-review. */
7
+ export { TERMINAL };
8
+ export declare const FAIL_ON_LEVELS: readonly ["critical", "high", "medium", "low"];
9
+ export declare const PENTEST_NOTICE = "prism-cli security pentest deploys a TEMPORARY private environment (a VPC with private subnets only, Fargate behind an internal ALB, VPC endpoints, a service role, a source bucket and a log group) into the AWS account your credentials point to, builds and pushes your app image, uploads the repo at HEAD, registers and verifies a PRIVATE_VPC target domain, and starts an AWS Security Agent penetration test against that environment only. The environment is reachable only by the pentest agent; it has no public endpoint. It is torn down when the job finishes (--keep leaves it up, --cleanup removes it later).";
10
+ export declare const COST_WARNING = "Cost: AWS Security Agent penetration testing is billed in task-hours (publicly reported at $50 per task-hour, per-second metered; verify current pricing at the AWS Security Agent pricing page), plus the Fargate, internal ALB and VPC-endpoint running cost for as long as the environment is up. A run can last hours (the reference run took ~2h50m).";
11
+ export interface PentestOptions extends SecurityOptions {
12
+ /** Repo top level (default: the working directory). */
13
+ path?: string;
14
+ /** Docker build context, relative to the repo root; overrides "path" in pentest.json. */
15
+ appDir?: string;
16
+ /** Dockerfile, relative to the repo root; overrides "dockerfile" in pentest.json. */
17
+ dockerfile?: string;
18
+ /** Adapter to build the app with (default: inferred, v1 only "dockerfile"). */
19
+ appType?: string;
20
+ /** commander turns --no-wait off; default here is already not to wait, so this is opt-in. */
21
+ wait?: boolean;
22
+ timeout?: string | number;
23
+ keep?: boolean;
24
+ status?: boolean;
25
+ cleanup?: boolean;
26
+ includeFalsePositives?: boolean;
27
+ failOn?: string;
28
+ /** security findings --pentest only: a specific job id, and the display severity floor. */
29
+ job?: string;
30
+ severity?: string;
31
+ }
32
+ export declare const PENTEST_CONFIG_PATH = ".prism/pentest.json";
33
+ export interface ActorConfig {
34
+ identifier: string;
35
+ uris?: string[];
36
+ auth: {
37
+ providerType: string;
38
+ value: string;
39
+ };
40
+ }
41
+ export interface PentestConfig {
42
+ appType: string;
43
+ /** Docker build context, relative to the repo root. */
44
+ path: string;
45
+ /** Dockerfile, relative to the repo root (default: <path>/Dockerfile). */
46
+ dockerfile: string;
47
+ port: number;
48
+ healthPath: string;
49
+ /** Literal env values plus resolved Secrets Manager references. */
50
+ env: {
51
+ name: string;
52
+ value: string;
53
+ }[];
54
+ secretEnv: {
55
+ name: string;
56
+ secret: string;
57
+ }[];
58
+ actors: ActorConfig[];
59
+ excludeRiskTypes: string[];
60
+ }
61
+ /**
62
+ * Loads and validates `.prism/pentest.json`. A sensitive-looking env value must
63
+ * be a Secrets Manager reference ({ "secret": "<arn>" }), never a literal, so
64
+ * no credential lands in the committed file.
65
+ */
66
+ export declare function loadPentestConfig(repoRoot: string, override?: {
67
+ appType?: string;
68
+ path?: string;
69
+ appDir?: string;
70
+ dockerfile?: string;
71
+ }): PentestConfig;
72
+ /** The deployed temporary environment the pentest runs against. */
73
+ export interface TargetEnv {
74
+ /** The verified target host (app.<zone>) and its URL. */
75
+ targetHost: string;
76
+ targetUrl: string;
77
+ vpcArn: string;
78
+ /** Every private subnet (for the agent space). */
79
+ subnetArns: string[];
80
+ /** The ONE subnet create-pentest --vpc-config accepts. */
81
+ pentestSubnetArn: string;
82
+ agentSecurityGroupArn: string;
83
+ serviceRoleArn: string;
84
+ logGroup: string;
85
+ sourceZipS3?: string | null;
86
+ expiresAt: string;
87
+ /** CloudFormation stack of the environment, for teardown. */
88
+ stack: string;
89
+ slug: string;
90
+ /** The ALB target group in front of the app; the command waits for a healthy target in it. */
91
+ targetGroupArn: string;
92
+ /** The app container's log group, named in the health-timeout hint. */
93
+ appLogGroup: string;
94
+ }
95
+ export interface PentestPlan {
96
+ /** Human-readable summary of what the deploy will create (cdk diff). */
97
+ diffText: string;
98
+ /** The target host the deploy will stand up (derivable before deploy). */
99
+ targetHost: string;
100
+ stack: string;
101
+ slug: string;
102
+ }
103
+ /**
104
+ * An app type knows how to stand its app up as a private pentest target and
105
+ * tear it down. `plan` is read-only (synth + diff); `apply` deploys and returns
106
+ * the environment handle. v1 ships only the dockerfile adapter.
107
+ */
108
+ export interface PentestApp {
109
+ readonly type: string;
110
+ /** Can this adapter handle the app at `dir`? */
111
+ /** True when the build context dir and (for dockerfile) the Dockerfile exist. */
112
+ detect(dir: string, dockerfile?: string): boolean;
113
+ plan(ctx: Ctx, repo: RepoCtx, cfg: PentestConfig): PentestPlan;
114
+ apply(ctx: Ctx, repo: RepoCtx, cfg: PentestConfig, plan: PentestPlan, approveAll: boolean): TargetEnv;
115
+ }
116
+ interface PentestJob {
117
+ jobId: string;
118
+ status: string;
119
+ step?: string | null;
120
+ reason?: string | null;
121
+ overview?: string | null;
122
+ createdAt?: string;
123
+ updatedAt?: string;
124
+ }
125
+ export declare function toPentestJob(j: any): PentestJob;
126
+ interface Env {
127
+ targetHost: string;
128
+ stack: string;
129
+ slug: string;
130
+ expiresAt: string;
131
+ agentSgId?: string | null;
132
+ appLogGroup?: string | null;
133
+ targetDomainId?: string | null;
134
+ }
135
+ export declare function pendingPentestResult(o: {
136
+ job: PentestJob;
137
+ pentestId: string;
138
+ agentSpaceId: string;
139
+ dedicated: boolean;
140
+ region: string;
141
+ account: string;
142
+ env: Env;
143
+ commit: string | null;
144
+ branch: string | null;
145
+ startedAt: string;
146
+ }): PrismResult;
147
+ export declare function countByRisk(fs: PentestFinding[]): Record<string, number>;
148
+ export interface PentestFinding {
149
+ findingId: string;
150
+ riskLevel: string;
151
+ confidence: string;
152
+ title: string;
153
+ riskType: string;
154
+ description: string;
155
+ }
156
+ export declare function completedPentestResult(o: {
157
+ job: PentestJob;
158
+ pentestId: string;
159
+ agentSpaceId: string;
160
+ dedicated: boolean;
161
+ region: string;
162
+ account: string;
163
+ env: Env;
164
+ commit: string | null;
165
+ branch: string | null;
166
+ startedAt: string;
167
+ findings: PentestFinding[];
168
+ now: Date;
169
+ wallS?: number | null;
170
+ }): PrismResult;
171
+ export declare function totalsLine(c: Record<string, number>): string;
172
+ export declare function getPentestJob(ctx: Ctx, agentSpaceId: string, jobId: string): PentestJob;
173
+ /** Pentest findings, dropping FALSE_POSITIVE confidence unless `includeFP`. */
174
+ export declare function fetchPentestFindings(ctx: Ctx, agentSpaceId: string, jobId: string, includeFP: boolean): PentestFinding[];
175
+ export declare function failOnHit(fs: PentestFinding[], failOn: string | undefined): boolean;
176
+ export type PollOutcome = {
177
+ kind: 'done' | 'timeout' | 'interrupted';
178
+ job: PentestJob;
179
+ };
180
+ export declare function pollPentest(ctx: Ctx, agentSpaceId: string, first: PentestJob, timeoutMin: number): Promise<PollOutcome>;
181
+ /** The --profile/--region this run was given, so a printed follow-up command targets the same account and region. */
182
+ export declare const followUpFlags: (ctx: Ctx) => string;
183
+ /** The newest security-pentest record for this account+region (pending first, else any), used by --status/--cleanup/findings. */
184
+ export declare function latestPentestEntry(root: string, account: string, region: string, jobId?: string): ResultEntry | null;
185
+ /** cdk deploy returns before the ALB has a healthy target; starting then gets 503s and PREFLIGHT fails. */
186
+ export declare const HEALTH_TIMEOUT_MS: number;
187
+ export declare const HEALTH_POLL_MS = 15000;
188
+ /**
189
+ * Polls the ALB target group until at least one target is `healthy`. On
190
+ * timeout aborts with the targets' state, reason and description and how to
191
+ * read the app's logs -- before anything is created in Security Agent.
192
+ */
193
+ export declare function waitForHealthyTarget(ctx: Ctx, env: TargetEnv, say: (l?: string) => void, timeoutMs?: number): Promise<void>;
194
+ /** Security Agent removes its ENIs a while after a job ends; the stack cannot delete the subnets/SG until then. */
195
+ export declare const ENI_DRAIN_TIMEOUT_MS: number;
196
+ export declare const ENI_POLL_MS = 15000;
197
+ /** How long one stack deletion may take (VPC endpoints, the ALB and the bucket-emptying custom resource). */
198
+ export declare const STACK_DELETE_TIMEOUT_MS: number;
199
+ export declare const STACK_POLL_MS = 15000;
200
+ /**
201
+ * The environment stack a record belongs to: the stored name, else the slug,
202
+ * else derived from the target host. shortcut: the derivation follows the
203
+ * dockerfile adapter's naming (PrismPentest-<slug>, app.<slug>.prism.internal)
204
+ * and exists for records whose earlier teardown cleared the name; drop it once
205
+ * those records are gone.
206
+ */
207
+ export declare function recordedStackName(p: PentestInfo): string | null;
208
+ export declare function teardownFailedLine(ctx: Ctx, p: PentestInfo): string;
209
+ /** `prism-cli security pentest`. Returns the exit code. */
210
+ export declare function securityPentest(input: PentestOptions, deps: ReviewDeps, app: PentestApp): Promise<number>;
211
+ /**
212
+ * `prism-cli security findings --pentest [<job>]`. Read-only in AWS: refreshes
213
+ * the pentest job, completes the cached record in place, and prints the
214
+ * findings. Never tears the environment down (that is pentest --status /
215
+ * --cleanup). Returns the exit code.
216
+ */
217
+ export declare function securityPentestFindings(input: PentestOptions, deps: ReviewDeps): Promise<number>;
218
+ /** create-target-domain (PRIVATE_VPC) + verify. UNREACHABLE and VERIFIED/PENDING are OK; FAILED aborts. Returns the domain id. */
219
+ export declare function createAndVerifyDomain(ctx: Ctx, host: string, say: (l?: string) => void): string;
220
+ /**
221
+ * The agent space to run in. v1 creates a DEDICATED pentest space per run (the
222
+ * spike-proven path), bound to the run's VPC, role, log group and target
223
+ * domain. shortcut: reuse the shared PrismD1SecurityAgent space via
224
+ * update-agent-space once that path is proven in an account (see the design's
225
+ * open question); reusing it untested risks the code-review space's config.
226
+ */
227
+ export declare function resolveAgentSpace(ctx: Ctx, env: TargetEnv, domainId: string, say: (l?: string) => void): {
228
+ agentSpaceId: string;
229
+ dedicated: boolean;
230
+ };
231
+ /** create-pentest with vpc-config (ONE subnet), a single ALLOW rule for the target URL, and the source zip. Returns the pentest id. */
232
+ export declare function createPentest(ctx: Ctx, cfg: PentestConfig, env: TargetEnv, agentSpaceId: string, say: (l?: string) => void): string;
233
+ //# sourceMappingURL=pentest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pentest.d.ts","sourceRoot":"","sources":["../../../src/security/pentest.ts"],"names":[],"mappings":"AAsBA,OAAO,EAES,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EACnE,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEL,KAAK,GAAG,EAAE,KAAK,OAAO,EAAiB,KAAK,eAAe,EAC5D,MAAM,YAAY,CAAC;AACpB,OAAO,EACiE,QAAQ,EAC7D,KAAK,UAAU,EACjC,MAAM,aAAa,CAAC;AAMrB,yGAAyG;AACzG,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,+EAA+E;AAC/E,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,eAAO,MAAM,cAAc,gDAAiD,CAAC;AAQ7E,eAAO,MAAM,cAAc,smBAAsmB,CAAC;AAEloB,eAAO,MAAM,YAAY,+VAA+V,CAAC;AAMzX,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6FAA6F;IAC7F,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2FAA2F;IAC3F,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ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