File size: 20,119 Bytes
7a1524a
 
 
 
aa4e8b4
7a1524a
0a66e52
 
7a1524a
0a66e52
7a1524a
48b61a4
44b4260
0a66e52
7a1524a
0a66e52
7a1524a
44b4260
4b84f18
44b4260
7a1524a
 
 
 
 
 
 
 
 
 
0a66e52
 
7a1524a
 
0a66e52
7a1524a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0a66e52
7a1524a
 
0a66e52
7a1524a
 
 
 
b320573
7a1524a
b320573
 
 
7a1524a
b320573
 
7a1524a
 
 
 
 
0a66e52
7a1524a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4b84f18
7a1524a
 
 
b320573
aa4e8b4
 
 
 
 
 
 
7a1524a
 
 
 
b320573
7a1524a
 
 
b320573
7a1524a
 
 
b320573
7a1524a
 
 
b320573
7a1524a
 
 
b320573
7a1524a
 
 
b320573
7a1524a
 
 
 
 
 
 
 
 
 
 
d2a95e9
7a1524a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302e1da
 
 
7a1524a
 
 
 
 
b320573
7a1524a
 
b320573
7a1524a
 
b320573
7a1524a
 
b320573
7a1524a
 
b320573
7a1524a
 
 
b320573
 
aa4e8b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b320573
 
aa4e8b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b320573
7a1524a
 
 
 
aa4e8b4
 
 
7a1524a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aa4e8b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302e1da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2a42347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7a1524a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="utf-8"/>
  <meta content="default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'" http-equiv="Content-Security-Policy"/>
  <meta content="width=device-width,initial-scale=1" name="viewport"/>
  <meta content="light" name="color-scheme"/>
  <meta content="#f6f4ef" name="theme-color"/>
  <title>
   Veyra · Security workbench
  </title>
  <link href="./static/favicon.svg" rel="icon" type="image/svg+xml"/>
  <link href="./static/style.css?v=20261115-polish1" rel="stylesheet"/>
  <script defer="" src="./static/playbooks.js?v=20261107-veyra1">
  </script>
  <script defer="" src="./static/local.js?v=20261107-veyra1">
  </script>
  <script defer="" src="./static/protocols.js?v=20261115-polish1">
  </script>
  <script defer="" src="./static/app.js?v=20261115-polish1">
  </script>
 </head>
 <body>
  <a class="skip" href="#main">
   Skip to content
  </a>
  <div aria-live="polite" id="notice" role="status">
  </div>
  <div id="shell">
   <aside>
    <a aria-label="Veyra home" class="brand" href="#">
     <span class="brand-copy"><img alt="Veyra" class="brand-wordmark" height="52" src="./static/logo.svg" width="137"/><span class="brand-subline">Security workbench</span></span>
    </a>
    <p class="eyebrow workspace-label">
     Workspace
    </p>
    <nav aria-label="Main">
     <button class="nav active" id="nav-overview">
      01
      <span>
       Assessments
      </span>
     </button>
     <button class="nav" id="nav-new">
      02
      <span>
       New assessment
      </span>
     </button>
    </nav>
    <div class="rail-bottom">
     <div class="workspace-name" id="workspace-name">
      Browser workspace
     </div>
     <p class="fine">
      Records stay in this browser profile.
     </p>
    </div>
   </aside>
   <main id="main" tabindex="-1">
    <header class="topline">
     <span class="mono">
      Security operations / Workbench
     </span>
     <span class="mono" id="local-status">
      Local / No server
     </span>
    </header>
    <section aria-label="Browser storage notice" class="local-notice">
     <strong>
      Saved only in this browser. Download a backup to keep a copy.
     </strong>
     <details>
      <summary>How local storage works</summary>
      <p>
      Results are stored locally in IndexedDB for this browser profile and site origin. No shared team database, model, or server is running. Raw source, alerts, and scenario input are not stored. Export JSON backups: clearing site data or changing browsers can remove access to records.
      </p>
     </details>
    </section>
    <div id="view">
    </div>
    <footer>
     <span class="mono">
      Veyra / Evidence before verdicts
     </span>
     <span>
      Pattern checks · No model or server
     </span>
    </footer>
   </main>
  </div>
  <dialog aria-labelledby="create-title" id="create-dialog">
   <form autocomplete="off" id="create-form">
    <p class="error-inline" hidden="" id="create-form-error" role="alert">
    </p>
    <div class="dialog-head">
     <div>
      <p class="eyebrow">
       NEW ENGAGEMENT
      </p>
      <h2 id="create-title">
       Define the assessment.
      </h2>
     </div>
     <button aria-label="Close assessment form" class="close" data-close="" type="button">
      ×
     </button>
    </div>
    <div class="form-grid">
     <div>
      <label for="assessment-name">
       Assessment name
      </label>
      <input id="assessment-name" maxlength="120" name="name" placeholder="Q4 application review" required=""/>
     </div>
     <div>
      <label for="workflow">
       Workflow
      </label>
      <select id="workflow" name="workflow">
       <option value="code">
        Code review / Python
       </option>
       <option value="alerts">
        Alert triage / JSON
       </option>
       <option value="exercise">
        Team exercise / Scenario
       </option>
      </select>
     </div>
    </div>
    <p class="fine">Protocol-focused review? After creating the assessment, open Protocol context under Role tasks for study references and workbook prompts.</p>
    <label for="scope">
     Authorized scope
    </label>
    <input id="scope" maxlength="1000" name="scope" placeholder="Owned service, repository, or exercise boundary" required=""/>
    <label for="client">
     Client label (optional)
    </label>
    <input id="client" maxlength="120" name="client" placeholder="Unassigned"/>
    <p class="fine">
     Client labels organize records in this browser. They do not restrict access.
    </p>
    <fieldset>
     <legend>
      Assign perspectives
     </legend>
     <p class="fine">Choose human review checklists for this assessment. These perspectives guide your team; they do not run agents or attacks.</p>
     <div class="role-checks">
      <label>
       <input checked="" name="roles" type="checkbox" value="red"/>
       Red · Test assumptions
      </label>
      <label>
       <input checked="" name="roles" type="checkbox" value="blue"/>
       Blue · Strengthen defense
      </label>
      <label>
       <input checked="" name="roles" type="checkbox" value="white"/>
       White · Validate evidence
      </label>
      <label>
       <input checked="" name="roles" type="checkbox" value="black"/>
       Black · Model attacker thinking
      </label>
      <label>
       <input checked="" name="roles" type="checkbox" value="purple"/>
       Purple · Connect testing and defense
      </label>
     </div>
    </fieldset>
    <div class="input-heading">
     <label for="content" id="input-label">
      Python source
     </label>
     <button class="text-button" id="sample" type="button">
      Use sample input ↙
     </button>
    </div>
    <textarea aria-describedby="input-help" id="content" maxlength="64000" name="content" required="" rows="9" spellcheck="false"></textarea>
    <p class="fine" id="input-help">
     Paste a Python snippet for limited text-pattern checks. This is not a Python parser or data-flow analysis. Input is never executed.
    </p>
    <label class="attestation">
     <input id="authorization" required="" type="checkbox"/>
     <span>
      I am authorized to review this material within the scope above. I have removed credentials and unnecessary personal data.
     </span>
    </label>
    <p class="fine">
     Raw input is not stored. Findings and analyst notes are saved in this browser. Redaction is best effort; remove secrets before submitting.
    </p>
    <div class="dialog-actions">
     <button data-close="" type="button">
      Cancel
     </button>
     <button class="primary" type="submit">
      Create assessment ↗
     </button>
    </div>
   </form>
  </dialog>
  <dialog aria-labelledby="finding-title" id="finding-dialog">
   <div class="dialog-head">
    <p class="eyebrow">
     EVIDENCE RECORD
    </p>
    <button aria-label="Close finding" class="close" data-close="" type="button">
     ×
    </button>
   </div>
   <div id="finding-body">
   </div>
   <form autocomplete="off" id="verdict-form">
    <p class="error-inline" hidden="" id="verdict-form-error" role="alert">
    </p>
    <button hidden="" id="reload-finding" type="button">
     Reload latest finding
    </button>
    <label for="verdict">
     Analyst verdict
    </label>
    <select id="verdict">
     <option value="unresolved">
      Needs review
     </option>
     <option value="confirmed-static">
      Confirmed by source review
     </option>
     <option value="confirmed-runtime">
      Confirmed by independent testing
     </option>
     <option value="rejected">
      Rejected after review
     </option>
    </select>
    <p class="fine">Source review means you checked the code and its conditions. Independent testing means you obtained runtime evidence outside this workbench.</p>
    <label for="review-note">
     Decision evidence / note
    </label>
    <textarea id="review-note" maxlength="4000" minlength="20" placeholder="Describe the evidence supporting your decision." required="" rows="4"></textarea>
    <fieldset class="review-fields" id="confirmation-fields">
     <legend>
      Analyst attestation · required for confirmations
     </legend>
     <p class="fine">
      These entries are analyst assertions, not independent proof or verified identity.
     </p>
     <div class="form-grid">
      <div>
       <label for="reviewer">
        Reviewer label
       </label>
       <input id="reviewer" maxlength="120"/>
      </div>
      <div>
       <label for="reference">
        Evidence reference / revision
       </label>
       <input id="reference" maxlength="500" placeholder="Ticket, commit, test record"/>
      </div>
     </div>
     <label for="review-prerequisites">
      Verified prerequisites
     </label>
     <textarea id="review-prerequisites" maxlength="2000" rows="2"></textarea>
     <label for="review-mitigations">
      Mitigations inspected
     </label>
     <textarea id="review-mitigations" maxlength="2000" rows="2"></textarea>
     <label for="review-method">
      Validation method / result
     </label>
     <textarea aria-describedby="review-method-help" id="review-method" maxlength="2000" rows="3"></textarea>
     <p class="fine" id="review-method-help">
      For confirmed verdicts, describe the method and result in at least 20 characters, including at least 10 letters or digits.
     </p>
    </fieldset>
    <details class="tracking-details">
     <summary>Fix tracking (optional)</summary>
    <fieldset>
     <legend>
      Remediation tracking
     </legend>
     <div class="form-grid">
      <div>
       <label for="tracking-owner">
        Owner
       </label>
       <input id="tracking-owner" maxlength="120"/>
      </div>
      <div>
       <label for="tracking-due">
        Target date
       </label>
       <input id="tracking-due" type="date"/>
      </div>
      <div>
       <label for="tracking-status">
        Status
       </label>
       <select id="tracking-status">
        <option value="open">
         Open
        </option>
        <option value="in-progress">
         In progress
        </option>
        <option value="resolved">
         Resolved
        </option>
        <option value="retest">
         Retest
        </option>
       </select>
      </div>
     </div>
     <label for="tracking-retest">
      Retest evidence / note
     </label>
     <textarea id="tracking-retest" maxlength="2000" rows="2"></textarea>
    </fieldset>
    </details>
    <p class="fine">
     A runtime verdict requires evidence you obtained independently. This workbench does not execute source or validate exploitation.
    </p>
    <div class="dialog-actions">
     <button id="next-unresolved" type="button">
      Next unresolved →
     </button>
     <button data-close="" type="button">
      Close
     </button>
     <button class="primary" type="submit">
      Record decision ↗
     </button>
    </div>
   </form>
  </dialog>
  <dialog aria-labelledby="delete-title" id="delete-dialog">
   <h2 id="delete-title">
    Delete this assessment?
   </h2>
   <p>
    Its findings, missions, and analyst decisions will be removed from this browser workspace. Exported files and backups are unaffected.
   </p>
   <div class="dialog-actions">
    <button data-close="" type="button">
     Keep assessment
    </button>
    <button class="danger" id="confirm-delete">
     Delete assessment
    </button>
   </div>
  </dialog>
  <dialog aria-labelledby="restore-title" id="restore-dialog">
   <form id="restore-form">
    <div class="dialog-head">
     <h2 id="restore-title">
      Restore workspace backup
     </h2>
     <button aria-label="Close restore" class="close" data-close="" type="button">
      ×
     </button>
    </div>
    <p class="error-inline" hidden="" role="alert">
    </p>
    <p class="fine">
     Choose a versioned JSON backup, up to 5 MB. Valid records are added as new copies; existing assessments are never replaced.
    </p>
    <label for="restore-file">
     Backup file
    </label>
    <input accept=".json,application/json" id="restore-file" required="" type="file"/>
    <div class="record-section" id="restore-preview" role="status">
    </div>
    <label class="attestation">
     <input id="restore-confirm" required="" type="checkbox"/>
     <span>
      I reviewed the preview and want to add these records to this browser workspace.
     </span>
    </label>
    <div class="dialog-actions">
     <button data-close="" type="button">
      Cancel
     </button>
     <button class="primary" disabled="" id="restore-submit" type="submit">
      Restore copies ↗
     </button>
    </div>
   </form>
  </dialog>
  <dialog aria-labelledby="handoff-title" id="handoff-dialog">
   <form id="handoff-form">
    <div class="dialog-head">
     <h2 id="handoff-title">
      Record a role handoff
     </h2>
     <button aria-label="Close handoff" class="close" data-close="" type="button">
      ×
     </button>
    </div>
    <p class="error-inline" hidden="" role="alert">
    </p>
    <p class="fine">
     Records a local coordination note. This does not notify another person or run a role agent.
    </p>
    <div class="form-grid">
     <div>
      <label for="handoff-from">
       From perspective
      </label>
      <select id="handoff-from">
      </select>
     </div>
     <div>
      <label for="handoff-to">
       To perspective
      </label>
      <select id="handoff-to">
      </select>
     </div>
    </div>
    <label for="handoff-note">
     Evidence, challenge, and next action
    </label>
    <textarea id="handoff-note" maxlength="2000" minlength="20" required="" rows="4"></textarea>
    <div class="dialog-actions">
     <button data-close="" type="button">
      Cancel
     </button>
     <button class="primary" type="submit">
      Record handoff ↗
     </button>
    </div>
   </form>
  </dialog>
  <section aria-label="Executive assessment report" id="print-report">
  </section>
  <dialog aria-labelledby="manual-title" id="manual-dialog">
   <form id="manual-form">
    <div class="dialog-head">
     <h2 id="manual-title">
      Add analyst finding
     </h2>
     <button aria-label="Close manual finding" class="close" data-close="" type="button">
      ×
     </button>
    </div>
    <p class="error-inline" hidden="" role="alert">
    </p>
    <p class="fine">
     Records a bounded analyst candidate. New findings are always unresolved with low confidence; no code is executed.
    </p>
    <label for="manual-title-input">
     Finding title
    </label>
    <input id="manual-title-input" maxlength="500" name="title" required=""/>
    <label for="manual-severity">
     Severity
    </label>
    <select id="manual-severity" name="severity">
     <option value="low">
      Low
     </option>
     <option value="medium">
      Medium
     </option>
     <option value="high">
      High
     </option>
    </select>
    <div id="manual-fields">
     <label for="manual-location">
      Location / source revision
     </label>
     <textarea id="manual-location" maxlength="4000" name="location" required="" rows="2"></textarea>
     <label for="manual-root_cause">
      Root cause
     </label>
     <textarea id="manual-root_cause" maxlength="4000" name="root_cause" required="" rows="2"></textarea>
     <label for="manual-input_to_impact">
      Input-to-impact path
     </label>
     <textarea id="manual-input_to_impact" maxlength="4000" name="input_to_impact" required="" rows="2"></textarea>
     <label for="manual-prerequisites">
      Prerequisites
     </label>
     <textarea id="manual-prerequisites" maxlength="4000" name="prerequisites" required="" rows="2"></textarea>
     <label for="manual-mitigations">
      Mitigations inspected
     </label>
     <textarea id="manual-mitigations" maxlength="4000" name="mitigations" required="" rows="2"></textarea>
     <label for="manual-evidence">
      Supporting evidence
     </label>
     <textarea id="manual-evidence" maxlength="4000" name="evidence" required="" rows="2"></textarea>
     <label for="manual-remediation">
      Recommended remediation
     </label>
     <textarea id="manual-remediation" maxlength="4000" name="remediation" required="" rows="2"></textarea>
    </div>
    <div class="dialog-actions">
     <button data-close="" type="button">
      Cancel
     </button>
     <button class="primary" type="submit">
      Add unresolved finding ↗
     </button>
    </div>
   </form>
  </dialog>
  <dialog aria-labelledby="workbook-title" id="workbook-dialog">
   <form id="workbook-form">
    <div class="dialog-head">
     <h2 id="workbook-title">
      Role workbook
     </h2>
     <button aria-label="Close role workbook" class="close" data-close="" type="button">
      ×
     </button>
    </div>
    <p class="error-inline" hidden="" role="alert">
    </p>
    <button hidden="" id="reload-workbook" type="button">
     Reload latest workbook
    </button>
    <p class="fine">
     Analyst-maintained work records. Completing a role requires evidence, an observed result, and a decision. No role agent runs automatically.
    </p>
    <label for="workbook-role">
     Assigned role
    </label>
    <input id="workbook-role" readonly=""/>
    <label for="workbook-owner">
     Owner
    </label>
    <input id="workbook-owner" maxlength="120"/>
    <label for="workbook-status">
     Status
    </label>
    <select id="workbook-status">
     <option value="planned">
      Planned
     </option>
     <option value="in-progress">
      In progress
     </option>
     <option value="complete">
      Complete
     </option>
    </select>
    <div id="workbook-fields">
     <label for="workbook-evidence">
      Evidence reference
     </label>
     <textarea id="workbook-evidence" maxlength="2000" rows="3"></textarea>
     <label for="workbook-expected">
      Expected result
     </label>
     <textarea id="workbook-expected" maxlength="2000" rows="3"></textarea>
     <label for="workbook-observed">
      Observed result
     </label>
     <textarea id="workbook-observed" maxlength="2000" rows="3"></textarea>
     <label for="workbook-decision">
      Review decision
     </label>
     <textarea id="workbook-decision" maxlength="2000" rows="3"></textarea>
    </div>
    <div class="dialog-actions">
     <button data-close="" type="button">
      Cancel
     </button>
     <button class="primary" type="submit">
      Save role workbook ↗
     </button>
    </div>
   </form>
  </dialog>
  <dialog aria-labelledby="recovery-title" id="recovery-dialog">
   <div class="dialog-head">
    <h2 id="recovery-title">
     Local workspace recovery
    </h2>
    <button aria-label="Close recovery guide" class="close" data-close="" type="button">
     ×
    </button>
   </div>
   <ol>
    <li>
     Export a workspace JSON backup before clearing browser data, changing browsers, or moving devices. Choose All clients for a complete backup.
    </li>
    <li>
     Export initiates a browser download. Confirm the file exists in an approved location yourself; this app cannot check that it was saved.
    </li>
    <li>
     In the destination browser, choose Restore backup, inspect clients and record counts, and confirm. Restore adds copies with new IDs and preserves existing records.
    </li>
    <li>
     Snapshot digests are checked before restore writes. A digest detects corruption; it does not authenticate identity or evidence.
    </li>
    <li>
     Keep customer records in approved browser profiles. Client labels organize records but provide no tenant isolation. Removing site data removes local records; this app has no server backup.
    </li>
   </ol>
   <p class="fine">
    Approximate record size and optional browser-origin quota estimates are advisory. Browser storage policies vary. Metadata failures do not block assessments.
   </p>
   <button data-close="" type="button">
    Close guide
   </button>
  </dialog>
 </body>
</html>