@mitre/hdf-schema 3.2.0 → 3.3.1

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 (37) hide show
  1. package/README.md +15 -16
  2. package/dist/go/hdf.go +398 -134
  3. package/dist/helpers.d.ts +1 -1
  4. package/dist/index.d.ts +27 -52
  5. package/dist/index.js +30 -48
  6. package/dist/schemas/hdf-amendments.schema.json +466 -45
  7. package/dist/schemas/hdf-baseline.schema.json +471 -50
  8. package/dist/schemas/hdf-comparison.schema.json +721 -103
  9. package/dist/schemas/hdf-evidence-package.schema.json +465 -44
  10. package/dist/schemas/hdf-plan.schema.json +472 -50
  11. package/dist/schemas/hdf-results.schema.json +678 -80
  12. package/dist/schemas/hdf-system.schema.json +497 -59
  13. package/dist/ts/hdf.d.ts +3562 -0
  14. package/dist/ts/hdf.js +564 -0
  15. package/dist/ts/hdf.ts +3623 -0
  16. package/package.json +18 -17
  17. package/dist/ts/hdf-amendments.d.ts +0 -474
  18. package/dist/ts/hdf-amendments.js +0 -88
  19. package/dist/ts/hdf-amendments.ts +0 -486
  20. package/dist/ts/hdf-baseline.d.ts +0 -549
  21. package/dist/ts/hdf-baseline.js +0 -110
  22. package/dist/ts/hdf-baseline.ts +0 -563
  23. package/dist/ts/hdf-comparison.d.ts +0 -1185
  24. package/dist/ts/hdf-comparison.js +0 -216
  25. package/dist/ts/hdf-comparison.ts +0 -1210
  26. package/dist/ts/hdf-evidence-package.d.ts +0 -348
  27. package/dist/ts/hdf-evidence-package.js +0 -39
  28. package/dist/ts/hdf-evidence-package.ts +0 -356
  29. package/dist/ts/hdf-plan.d.ts +0 -204
  30. package/dist/ts/hdf-plan.js +0 -23
  31. package/dist/ts/hdf-plan.ts +0 -205
  32. package/dist/ts/hdf-results.d.ts +0 -1588
  33. package/dist/ts/hdf-results.js +0 -246
  34. package/dist/ts/hdf-results.ts +0 -1616
  35. package/dist/ts/hdf-system.d.ts +0 -609
  36. package/dist/ts/hdf-system.js +0 -102
  37. package/dist/ts/hdf-system.ts +0 -617
@@ -1,1616 +0,0 @@
1
- /**
2
- * The top level value containing all assessment results.
3
- */
4
- export interface HdfResults {
5
- /**
6
- * Information on the baselines that were evaluated, including findings.
7
- */
8
- baselines: EvaluatedBaseline[];
9
- /**
10
- * The components that were assessed. Each component describes a system element (host,
11
- * container, cloud resource, application, etc.) with optional identity, SBOM, and external
12
- * references.
13
- */
14
- components?: Component[];
15
- /**
16
- * Reserved for tool-specific data not defined in the HDF standard. Use this to preserve
17
- * original tool output, auxiliary data, or custom metadata.
18
- */
19
- extensions?: { [key: string]: any };
20
- /**
21
- * Information about the tool that generated this file.
22
- */
23
- generator?: Generator;
24
- /**
25
- * Unique identifier for this assessment run.
26
- */
27
- id?: string;
28
- /**
29
- * Cryptographic integrity information for verifying this file.
30
- */
31
- integrity?: Integrity;
32
- /**
33
- * Reference to an hdf-plan document describing the assessment plan that produced these
34
- * results. May be a relative path, absolute URI, or fragment identifier.
35
- */
36
- planRef?: string;
37
- /**
38
- * Optional reference to automated remediation resources (Ansible playbooks, Terraform
39
- * scripts, etc.) for fixing failing requirements found in this assessment.
40
- */
41
- remediation?: Remediation;
42
- /**
43
- * Information about the test execution environment where the security tool was run.
44
- * Distinct from targets (what is being tested).
45
- */
46
- runner?: Runner;
47
- /**
48
- * Statistics for the assessment run, including duration and result counts.
49
- */
50
- statistics?: Statistics;
51
- /**
52
- * Reference to an hdf-system document describing the system under assessment. May be a
53
- * relative path, absolute URI, or fragment identifier.
54
- */
55
- systemRef?: string;
56
- /**
57
- * When this assessment was executed.
58
- */
59
- timestamp?: Date;
60
- /**
61
- * The security tool that produced the assessment data in this file.
62
- */
63
- tool?: Tool;
64
- [property: string]: any;
65
- }
66
-
67
- /**
68
- * Information on a baseline that was evaluated, including any findings.
69
- *
70
- * Shared metadata fields for baselines. Used in both standalone baseline documents and
71
- * evaluated baseline results.
72
- */
73
- export interface EvaluatedBaseline {
74
- /**
75
- * The set of dependencies this baseline depends on.
76
- */
77
- depends?: Dependency[];
78
- /**
79
- * The description - should be more detailed than the summary.
80
- */
81
- description?: string;
82
- /**
83
- * Reserved for tool-specific baseline metadata not defined in the HDF standard.
84
- */
85
- extensions?: { [key: string]: any };
86
- /**
87
- * A set of descriptions for the requirement groups.
88
- */
89
- groups?: RequirementGroup[];
90
- /**
91
- * Typed inputs used to parameterize this baseline at execution time. See the Input
92
- * primitive for the full schema.
93
- */
94
- inputs?: Input[];
95
- /**
96
- * Cryptographic integrity information for verifying this baseline has not been tampered
97
- * with.
98
- */
99
- integrity?: Integrity;
100
- /**
101
- * SHA-256 checksum of the original baseline definition file (before execution). This is an
102
- * immutable reference to the baseline as defined, used to detect tampering with baseline
103
- * requirements or metadata.
104
- */
105
- originalChecksum?: Checksum;
106
- /**
107
- * The name of the parent baseline if this is a dependency of another.
108
- */
109
- parentBaseline?: string;
110
- /**
111
- * The set of requirements including any findings. A baseline must have at least one
112
- * requirement.
113
- */
114
- requirements: EvaluatedRequirement[];
115
- /**
116
- * SHA-256 checksum of the raw results before any amendments (statusOverrides or POAMs).
117
- * Used to detect tampering with test results. Compare with currentChecksum to verify
118
- * amendment integrity.
119
- */
120
- resultsChecksum?: Checksum;
121
- /**
122
- * An explanation of the baseline status. Example: why it was skipped, failed to load, or
123
- * any other status details.
124
- */
125
- statusMessage?: string;
126
- /**
127
- * The name - must be unique.
128
- */
129
- name: string;
130
- /**
131
- * The copyright holder(s).
132
- */
133
- copyright?: string;
134
- /**
135
- * The email address or other contact information of the copyright holder(s).
136
- */
137
- copyrightEmail?: string;
138
- /**
139
- * Optional key-value labels for flexible grouping. Well-known keys: system, component,
140
- * environment, region, team. Values must be strings.
141
- */
142
- labels?: { [key: string]: string };
143
- /**
144
- * The copyright license. Example: 'Apache-2.0'.
145
- */
146
- license?: string;
147
- /**
148
- * The maintainer(s).
149
- */
150
- maintainer?: string;
151
- /**
152
- * The status. Example: 'loaded'.
153
- */
154
- status?: string;
155
- /**
156
- * The summary. Example: the Security Technical Implementation Guide (STIG) header.
157
- */
158
- summary?: string;
159
- /**
160
- * The set of supported platform targets.
161
- */
162
- supports?: SupportedPlatform[];
163
- /**
164
- * The title - should be human readable.
165
- */
166
- title?: string;
167
- /**
168
- * The version of the baseline.
169
- */
170
- version?: string;
171
- [property: string]: any;
172
- }
173
-
174
- /**
175
- * A dependency for a baseline. Can include relative paths or URLs for where to find the
176
- * dependency.
177
- */
178
- export interface Dependency {
179
- /**
180
- * The branch name for a git repo.
181
- */
182
- branch?: string;
183
- /**
184
- * The 'user/profilename' attribute for an Automate server.
185
- */
186
- compliance?: string;
187
- /**
188
- * The location of the git repo. Example:
189
- * 'https://github.com/my-org/ubuntu-22.04-stig-baseline.git'.
190
- */
191
- git?: string;
192
- /**
193
- * The name or assigned alias.
194
- */
195
- name?: string;
196
- /**
197
- * The relative path if the dependency is locally available.
198
- */
199
- path?: string;
200
- /**
201
- * The status. Should be: 'loaded', 'failed', or 'skipped'.
202
- */
203
- status?: string;
204
- /**
205
- * The reason for the status if it is 'failed' or 'skipped'.
206
- */
207
- statusMessage?: string;
208
- /**
209
- * The 'user/profilename' attribute for a Supermarket server.
210
- */
211
- supermarket?: string;
212
- /**
213
- * The address of the dependency.
214
- */
215
- url?: string;
216
- [property: string]: any;
217
- }
218
-
219
- /**
220
- * Describes a group of requirements, such as those defined in a single file.
221
- */
222
- export interface RequirementGroup {
223
- /**
224
- * The unique identifier for the group. Example: the relative path to the file specifying
225
- * the requirements.
226
- */
227
- id: string;
228
- /**
229
- * The set of requirements as specified by their ids in this group. Example: 'SV-238196'.
230
- */
231
- requirements: string[];
232
- /**
233
- * The title of the group - should be human readable.
234
- */
235
- title?: string;
236
- [property: string]: any;
237
- }
238
-
239
- /**
240
- * A typed input parameter that bridges governance requirements and scanner automation.
241
- * Inputs carry expected configuration values with type information, comparison operators,
242
- * and validation constraints, enabling traceability from policy through to scan results.
243
- */
244
- export interface Input {
245
- /**
246
- * Validation constraints for the input value.
247
- */
248
- constraints?: InputConstraints;
249
- /**
250
- * Human-readable description of what this input controls.
251
- */
252
- description?: string;
253
- /**
254
- * The input name. Must be unique within a baseline or results document. Example:
255
- * 'max_concurrent_sessions'.
256
- */
257
- name: string;
258
- /**
259
- * The comparison operator used when evaluating this input against observed values.
260
- */
261
- operator?: ComparisonOperator;
262
- /**
263
- * Whether this input must be provided. Defaults to false if omitted.
264
- */
265
- required?: boolean;
266
- /**
267
- * Whether this input contains sensitive data (passwords, keys). Sensitive values should be
268
- * redacted in output. Defaults to false if omitted.
269
- */
270
- sensitive?: boolean;
271
- /**
272
- * The data type of this input.
273
- */
274
- type?: InputType;
275
- /**
276
- * The input value. Type should match the declared type field. Accepts any JSON value.
277
- */
278
- value?: any;
279
- [property: string]: any;
280
- }
281
-
282
- /**
283
- * Validation constraints for the input value.
284
- *
285
- * Validation constraints for an input value.
286
- */
287
- export interface InputConstraints {
288
- /**
289
- * Enumeration of permitted values.
290
- */
291
- allowedValues?: any[];
292
- /**
293
- * Maximum allowed value (for Numeric inputs).
294
- */
295
- max?: number;
296
- /**
297
- * Minimum allowed value (for Numeric inputs).
298
- */
299
- min?: number;
300
- /**
301
- * Regular expression pattern the value must match (for String inputs).
302
- */
303
- pattern?: string;
304
- [property: string]: any;
305
- }
306
-
307
- /**
308
- * The comparison operator used when evaluating this input against observed values.
309
- *
310
- * Comparison operator for evaluating the input value against observed values. Numeric:
311
- * eq/ne/lt/le/gt/ge. String: eq/ne/contains/matches. Collection: in/notIn.
312
- */
313
- export enum ComparisonOperator {
314
- Contains = "contains",
315
- Eq = "eq",
316
- Ge = "ge",
317
- Gt = "gt",
318
- In = "in",
319
- LE = "le",
320
- Lt = "lt",
321
- Matches = "matches",
322
- Ne = "ne",
323
- NotIn = "notIn",
324
- }
325
-
326
- /**
327
- * The data type of this input.
328
- *
329
- * The data type of the input value. Aligns with InSpec input types.
330
- */
331
- export enum InputType {
332
- Array = "Array",
333
- Boolean = "Boolean",
334
- Hash = "Hash",
335
- Numeric = "Numeric",
336
- Regexp = "Regexp",
337
- String = "String",
338
- }
339
-
340
- /**
341
- * Cryptographic integrity information for verifying this baseline has not been tampered
342
- * with.
343
- *
344
- * Cryptographic integrity information for verifying the HDF file has not been tampered
345
- * with. If algorithm is provided, checksum must also be provided, and vice versa.
346
- *
347
- * Cryptographic integrity information for verifying this file.
348
- */
349
- export interface Integrity {
350
- /**
351
- * The hash algorithm used for the checksum.
352
- */
353
- algorithm?: HashAlgorithm;
354
- /**
355
- * The checksum value.
356
- */
357
- checksum?: string;
358
- /**
359
- * Optional cryptographic signature.
360
- */
361
- signature?: string;
362
- /**
363
- * Identifier of who signed this file.
364
- */
365
- signedBy?: string;
366
- [property: string]: any;
367
- }
368
-
369
- /**
370
- * The hash algorithm used for the checksum.
371
- *
372
- * Supported cryptographic hash algorithms for checksums and integrity verification.
373
- */
374
- export enum HashAlgorithm {
375
- Sha256 = "sha256",
376
- Sha384 = "sha384",
377
- Sha512 = "sha512",
378
- }
379
-
380
- /**
381
- * SHA-256 checksum of the original baseline definition file (before execution). This is an
382
- * immutable reference to the baseline as defined, used to detect tampering with baseline
383
- * requirements or metadata.
384
- *
385
- * Cryptographic checksum for baseline integrity verification.
386
- *
387
- * SHA-256 checksum of the previous amendment in chronological order. Creates a
388
- * tamper-evident chain of amendments (similar to blockchain). Null for the first amendment
389
- * on a requirement.
390
- *
391
- * SHA-256 checksum of the raw results before any amendments (statusOverrides or POAMs).
392
- * Used to detect tampering with test results. Compare with currentChecksum to verify
393
- * amendment integrity.
394
- *
395
- * Optional cryptographic checksum for verifying the integrity of remediation resources
396
- * fetched from the URI. Recommended for security when referencing external automation
397
- * scripts.
398
- */
399
- export interface Checksum {
400
- /**
401
- * The hash algorithm used for the checksum.
402
- */
403
- algorithm: HashAlgorithm;
404
- /**
405
- * The checksum value.
406
- */
407
- value: string;
408
- [property: string]: any;
409
- }
410
-
411
- /**
412
- * A requirement that has been evaluated, including any findings.
413
- *
414
- * Core requirement fields shared between baseline requirements and evaluated requirements.
415
- * Contains the fundamental requirement definition without assessment results.
416
- */
417
- export interface EvaluatedRequirement {
418
- /**
419
- * Array of labeled descriptions. At least one description with label 'default' must be
420
- * present. Convention: place default description first. Common labels: 'default', 'check',
421
- * 'fix', 'rationale'.
422
- */
423
- descriptions: Description[];
424
- /**
425
- * The type of the most recent non-expired override or POAM governing this requirement.
426
- * Indicates why the requirement is in its current state (e.g., waiver, falsePositive,
427
- * riskAdjustment) or what remediation is being tracked (poam). Absent when no overrides or
428
- * POAMs apply.
429
- */
430
- disposition?: OverrideType;
431
- /**
432
- * The current effective impact score (0.0–1.0) after applying the most recent non-expired
433
- * override with an impact field. Absent when no impact overrides apply; consumers should
434
- * use the requirement's impact field in that case.
435
- */
436
- effectiveImpact?: number;
437
- /**
438
- * The current effective compliance status of this requirement after applying the most
439
- * recent non-expired override with a status field, or computed from results (worst-wins) if
440
- * no status-bearing overrides exist.
441
- */
442
- effectiveStatus?: ResultStatus;
443
- /**
444
- * Supporting evidence for this requirement's findings, such as screenshots, code samples,
445
- * or log excerpts.
446
- */
447
- evidence?: Evidence[];
448
- /**
449
- * Plan of Action and Milestones for tracking remediation, mitigation, or risk acceptance.
450
- * POAMs do NOT change effectiveStatus - they track the work being done to address a
451
- * failure. Separate from statusOverrides which DO change status.
452
- */
453
- poams?: Poam[];
454
- /**
455
- * The set of all tests within the requirement and their results.
456
- */
457
- results: RequirementResult[];
458
- /**
459
- * Explicit severity rating. Typically derived from impact score but provided explicitly for
460
- * clarity.
461
- */
462
- severity?: Severity;
463
- /**
464
- * The explicit location of the requirement within the source code.
465
- */
466
- sourceLocation?: SourceLocation;
467
- /**
468
- * Chronological history of all overrides applied to this requirement. Overrides are
469
- * intentional changes to the compliance status and/or impact score (waivers, attestations,
470
- * false positives, risk adjustments). Most recent override should be first in array.
471
- * Preserves full audit trail.
472
- */
473
- statusOverrides?: StatusOverride[];
474
- /**
475
- * The requirement identifier. Example: 'SV-238196'.
476
- */
477
- id: string;
478
- /**
479
- * The impactfulness or severity (0.0 to 1.0).
480
- */
481
- impact: number;
482
- /**
483
- * A set of tags - usually metadata like CCI, STIG ID, severity.
484
- */
485
- tags: { [key: string]: any };
486
- /**
487
- * Whether the requirement is mandatory within its baseline. Distinct from severity (risk
488
- * weight) and status (lifecycle state). Maps cleanly onto: FedRAMP rev5 OSCAL 'CORE' prop,
489
- * FedRAMP 20x inline 'Optional:' markers, CMMC sublevel rows, and CIS Implementation Group
490
- * memberships (IG1/IG2/IG3 may carry richer semantics; layer those onto props[]/tags{}).
491
- * Optional: when omitted, consumers should treat the requirement as 'required' by
492
- * convention.
493
- */
494
- applicability?: Applicability;
495
- /**
496
- * The raw source code of the requirement. Set to null for manual-only requirements or
497
- * requirements not yet implemented; use verificationMethod to disambiguate manual-by-design
498
- * from manual-pending-automation. Note that if this is an overlay, it does not include the
499
- * underlying source code.
500
- */
501
- code?: string;
502
- /**
503
- * Classification of the control's nature, aligning with NIST SP 800-53 / SP 800-53A
504
- * categories. 'policy' = an authored governance statement; 'procedure' = a documented
505
- * process; 'technical' = an enforced technical configuration; 'management' = a
506
- * programmatic/management activity; 'operational' = a recurring operational activity (e.g.
507
- * AT, IR, MA families). Optional: when omitted, consumers may infer heuristically from
508
- * family/id but should not assume a default.
509
- */
510
- controlType?: ControlType;
511
- /**
512
- * The set of references to external documents.
513
- */
514
- refs?: Reference[];
515
- /**
516
- * The title - is nullable.
517
- */
518
- title?: string;
519
- /**
520
- * How this requirement is intended to be verified. Disambiguates the two cases that null
521
- * 'code' overloads: 'manual-by-design' (the requirement is statement-form and not amenable
522
- * to automation, e.g. FedRAMP 20x KSIs); 'manual-pending-automation' (automation could
523
- * exist but does not yet, e.g. a STIG rule lacking a fix). 'automated' = a check exists and
524
- * runs without operator action; 'hybrid' = part automated, part manual. Optional: when
525
- * omitted, consumers should not infer a default.
526
- */
527
- verificationMethod?: VerificationMethodEnum;
528
- [property: string]: any;
529
- }
530
-
531
- /**
532
- * Whether the requirement is mandatory within its baseline. Distinct from severity (risk
533
- * weight) and status (lifecycle state). Maps cleanly onto: FedRAMP rev5 OSCAL 'CORE' prop,
534
- * FedRAMP 20x inline 'Optional:' markers, CMMC sublevel rows, and CIS Implementation Group
535
- * memberships (IG1/IG2/IG3 may carry richer semantics; layer those onto props[]/tags{}).
536
- * Optional: when omitted, consumers should treat the requirement as 'required' by
537
- * convention.
538
- */
539
- export enum Applicability {
540
- Advisory = "advisory",
541
- Optional = "optional",
542
- Required = "required",
543
- }
544
-
545
- /**
546
- * Classification of the control's nature, aligning with NIST SP 800-53 / SP 800-53A
547
- * categories. 'policy' = an authored governance statement; 'procedure' = a documented
548
- * process; 'technical' = an enforced technical configuration; 'management' = a
549
- * programmatic/management activity; 'operational' = a recurring operational activity (e.g.
550
- * AT, IR, MA families). Optional: when omitted, consumers may infer heuristically from
551
- * family/id but should not assume a default.
552
- */
553
- export enum ControlType {
554
- Management = "management",
555
- Operational = "operational",
556
- Policy = "policy",
557
- Procedure = "procedure",
558
- Technical = "technical",
559
- }
560
-
561
- export interface Description {
562
- /**
563
- * The description text content.
564
- */
565
- data: string;
566
- /**
567
- * Description category. The 'default' label is required for the primary description. Common
568
- * labels: 'default', 'check', 'fix', 'rationale'. Tools may use custom labels.
569
- */
570
- label: string;
571
- [property: string]: any;
572
- }
573
-
574
- /**
575
- * The type of the most recent non-expired override or POAM governing this requirement.
576
- * Indicates why the requirement is in its current state (e.g., waiver, falsePositive,
577
- * riskAdjustment) or what remediation is being tracked (poam). Absent when no overrides or
578
- * POAMs apply.
579
- *
580
- * The type of amendment, aligned with FedRAMP deviation request categories. 'waiver': risk
581
- * accepted by Authorizing Official. 'attestation': manually verified by assessor. 'poam':
582
- * remediation tracked (no status change). 'inherited': control provided by another
583
- * component or system. 'falsePositive': scanner incorrectly identified a finding — for
584
- * compliance scans (STIG, CIS), the check actually passes, so status is typically set to
585
- * 'passed'; for vulnerability scans (CVE, SCA), the flagged vulnerability does not apply to
586
- * this system, so status is typically set to 'notApplicable'. The disposition field on the
587
- * requirement distinguishes false positives from genuinely not-applicable findings.
588
- * 'riskAdjustment': impact score adjusted based on environmental context (FedRAMP Risk
589
- * Adjustment); does not change pass/fail status, only impact via the impact field.
590
- * 'operationalRequirement': deviation required by operational constraints (FedRAMP
591
- * Operational Requirement); the finding cannot be remediated because the system requires
592
- * the affected functionality. Remains an open risk. Migration note: 'exception' was removed
593
- * in v3.1.0 — use 'waiver' with status 'notApplicable' instead.
594
- *
595
- * The type of override applied to this requirement.
596
- */
597
- export enum OverrideType {
598
- Attestation = "attestation",
599
- FalsePositive = "falsePositive",
600
- Inherited = "inherited",
601
- OperationalRequirement = "operationalRequirement",
602
- Poam = "poam",
603
- RiskAdjustment = "riskAdjustment",
604
- Waiver = "waiver",
605
- }
606
-
607
- /**
608
- * The current effective compliance status of this requirement after applying the most
609
- * recent non-expired override with a status field, or computed from results (worst-wins) if
610
- * no status-bearing overrides exist.
611
- *
612
- * The status of an individual test result. 'notApplicable' indicates the requirement does
613
- * not apply to the target. 'notReviewed' indicates the requirement was not assessed (e.g.,
614
- * requires manual verification).
615
- *
616
- * The status of this test within the requirement. Example: 'failed'.
617
- *
618
- * The new status this override sets for the requirement. Optional when only impact is being
619
- * overridden.
620
- */
621
- export enum ResultStatus {
622
- Error = "error",
623
- Failed = "failed",
624
- NotApplicable = "notApplicable",
625
- NotReviewed = "notReviewed",
626
- Passed = "passed",
627
- }
628
-
629
- /**
630
- * Supporting evidence for a finding or override, such as screenshots, code samples, log
631
- * excerpts, or URLs.
632
- */
633
- export interface Evidence {
634
- /**
635
- * Timestamp when this evidence was captured. ISO 8601 format.
636
- */
637
- capturedAt?: Date;
638
- /**
639
- * Identity of who or what captured this evidence.
640
- */
641
- capturedBy?: Identity;
642
- /**
643
- * The evidence content. For screenshots/files: base64-encoded data or URL. For code/logs:
644
- * the raw text. For URLs: the URL string.
645
- */
646
- data: string;
647
- /**
648
- * Human-readable description of what this evidence shows.
649
- */
650
- description?: string;
651
- /**
652
- * Encoding used for the data. Example: 'base64', 'utf-8'.
653
- */
654
- encoding?: string;
655
- /**
656
- * MIME type of the evidence. Example: 'image/png', 'text/plain', 'application/json'.
657
- */
658
- mimeType?: string;
659
- /**
660
- * Size of the evidence data in bytes.
661
- */
662
- size?: number;
663
- /**
664
- * The type of evidence being provided.
665
- */
666
- type: EvidenceType;
667
- [property: string]: any;
668
- }
669
-
670
- /**
671
- * Identity of who or what captured this evidence.
672
- *
673
- * Represents an identity that performed an action, such as capturing evidence or applying
674
- * an override.
675
- *
676
- * Identity of who created this POA&M. For simple cases, use type 'simple' with just an
677
- * identifier.
678
- *
679
- * Identity of who completed this milestone.
680
- *
681
- * The identity that created this signature.
682
- *
683
- * Identity of who applied this override. For simple cases, use type 'simple' with just an
684
- * identifier.
685
- *
686
- * Identity of the person or system that approved this override.
687
- *
688
- * Team or individual responsible for this component. Enables per-component ownership when
689
- * different teams manage different parts of a system.
690
- *
691
- * The identity of the person or system responsible for executing the test. This could be a
692
- * human auditor manually completing a checklist, an automated CI/CD system, or a security
693
- * tool. Optional field to support both automated and manual HDF generation.
694
- */
695
- export interface Identity {
696
- /**
697
- * Optional description of the identity or identity system, particularly useful when type is
698
- * 'other'.
699
- */
700
- description?: string;
701
- /**
702
- * The identifier value. Example: 'user@example.com', 'jdoe', 'automated-scanner-01'.
703
- */
704
- identifier: string;
705
- /**
706
- * The type of identifier. Use 'email' for email addresses, 'username' for user accounts,
707
- * 'system' for automated systems, 'simple' for basic string identifiers without additional
708
- * classification, or 'other' for custom identity systems.
709
- */
710
- type: OperatorType;
711
- [property: string]: any;
712
- }
713
-
714
- /**
715
- * The type of identifier. Use 'email' for email addresses, 'username' for user accounts,
716
- * 'system' for automated systems, 'simple' for basic string identifiers without additional
717
- * classification, or 'other' for custom identity systems.
718
- */
719
- export enum OperatorType {
720
- Email = "email",
721
- Other = "other",
722
- Simple = "simple",
723
- System = "system",
724
- Username = "username",
725
- }
726
-
727
- /**
728
- * The type of evidence being provided.
729
- */
730
- export enum EvidenceType {
731
- Code = "code",
732
- File = "file",
733
- Log = "log",
734
- Other = "other",
735
- Screenshot = "screenshot",
736
- URL = "url",
737
- }
738
-
739
- /**
740
- * Plan of Action and Milestones for tracking remediation, mitigation, or risk acceptance.
741
- * POAMs do NOT change the effectiveStatus - the requirement remains in its current state
742
- * while the POA&M tracks remediation efforts.
743
- */
744
- export interface Poam {
745
- /**
746
- * Timestamp when this POA&M was created. ISO 8601 format.
747
- */
748
- appliedAt: Date;
749
- /**
750
- * Identity of who created this POA&M. For simple cases, use type 'simple' with just an
751
- * identifier.
752
- */
753
- appliedBy: Identity;
754
- /**
755
- * Supporting evidence for this POA&M, such as documentation of compensating controls or
756
- * mitigation implementation.
757
- */
758
- evidence?: Evidence[];
759
- /**
760
- * Optional expiration date for this POA&M requiring review/renewal. ISO 8601 format.
761
- */
762
- expiresAt?: Date;
763
- /**
764
- * Detailed explanation of the plan, including what actions will be taken.
765
- */
766
- explanation: string;
767
- /**
768
- * Optional array of milestones tracking progress toward completion.
769
- */
770
- milestones?: Milestone[];
771
- /**
772
- * SHA-256 checksum of the previous amendment in chronological order. Creates a
773
- * tamper-evident chain of amendments (similar to blockchain). Null for the first amendment
774
- * on a requirement.
775
- */
776
- previousChecksum?: Checksum;
777
- /**
778
- * Optional digital signature for enhanced trust and non-repudiation.
779
- */
780
- signature?: Signature;
781
- /**
782
- * The type of POA&M. 'remediation' fixes root cause. 'mitigation' reduces risk via
783
- * compensating controls. 'riskAcceptance' documents decision to accept risk.
784
- * 'vendorDependency' tracks a fix that depends on a vendor releasing a patch or update.
785
- */
786
- type: PoamType;
787
- [property: string]: any;
788
- }
789
-
790
- /**
791
- * A milestone or task within a POA&M remediation plan.
792
- */
793
- export interface Milestone {
794
- /**
795
- * Actual completion timestamp. ISO 8601 format.
796
- */
797
- completedAt?: Date;
798
- /**
799
- * Identity of who completed this milestone.
800
- */
801
- completedBy?: Identity;
802
- /**
803
- * Description of this milestone or task.
804
- */
805
- description: string;
806
- /**
807
- * Estimated completion date. ISO 8601 format.
808
- */
809
- estimatedCompletion: Date;
810
- /**
811
- * Current status of this milestone.
812
- */
813
- status: Status;
814
- [property: string]: any;
815
- }
816
-
817
- /**
818
- * Current status of this milestone.
819
- */
820
- export enum Status {
821
- Completed = "completed",
822
- InProgress = "inProgress",
823
- Pending = "pending",
824
- }
825
-
826
- /**
827
- * Optional digital signature for enhanced trust and non-repudiation.
828
- *
829
- * A digital signature following W3C Data Integrity Proofs pattern. Supports hardware
830
- * security tokens (PKCS#11/PKCS#12), Yubikeys, GPG keys, passkeys, and other cryptographic
831
- * signing methods via JWK, PEM, or Base58 key formats.
832
- *
833
- * Optional digital signature for enhanced trust and non-repudiation. Supports hardware
834
- * security tokens (PKCS#11/PKCS#12), Yubikeys, GPG keys, passkeys, and other signing
835
- * methods.
836
- */
837
- export interface Signature {
838
- /**
839
- * Challenge value from the verifier, used in challenge-response authentication.
840
- */
841
- challenge?: string;
842
- /**
843
- * When the signature was created. ISO 8601 format.
844
- */
845
- created: Date;
846
- /**
847
- * The identity that created this signature.
848
- */
849
- creator: Identity;
850
- /**
851
- * Domain restriction for the signature, prevents cross-domain replay attacks.
852
- */
853
- domain?: string;
854
- /**
855
- * Random value to prevent replay attacks.
856
- */
857
- nonce?: string;
858
- /**
859
- * The purpose of this signature. Example: 'attestation', 'authentication',
860
- * 'assertionMethod'.
861
- */
862
- proofPurpose: string;
863
- /**
864
- * The base64-encoded or base58-encoded signature value.
865
- */
866
- signatureValue: string;
867
- /**
868
- * The signature suite type. Example: 'JsonWebSignature2020', 'RsaSignature2018',
869
- * 'Ed25519Signature2020'.
870
- */
871
- type: string;
872
- /**
873
- * The verification method containing the public key for signature verification.
874
- */
875
- verificationMethod: VerificationMethod;
876
- [property: string]: any;
877
- }
878
-
879
- /**
880
- * The verification method containing the public key for signature verification.
881
- *
882
- * Verification method containing the public key needed to verify a digital signature.
883
- * Supports multiple key formats including JWK (for RSA, EC), PEM, and Base58.
884
- */
885
- export interface VerificationMethod {
886
- /**
887
- * The entity that controls this verification method. Can be a DID, URI, or other identifier.
888
- */
889
- controller: string;
890
- /**
891
- * Public key in Base58 format, commonly used with Ed25519 keys.
892
- */
893
- publicKeyBase58?: string;
894
- /**
895
- * Public key in JSON Web Key format.
896
- */
897
- publicKeyJwk?: { [key: string]: any };
898
- /**
899
- * Public key in PEM format. Example: '-----BEGIN PUBLIC KEY-----...-----END PUBLIC
900
- * KEY-----'.
901
- */
902
- publicKeyPem?: string;
903
- /**
904
- * The type of verification method. Example: 'JsonWebKey2020', 'RsaVerificationKey2018',
905
- * 'Ed25519VerificationKey2020'.
906
- */
907
- type: string;
908
- [property: string]: any;
909
- }
910
-
911
- /**
912
- * The type of POA&M. 'remediation' fixes root cause. 'mitigation' reduces risk via
913
- * compensating controls. 'riskAcceptance' documents decision to accept risk.
914
- * 'vendorDependency' tracks a fix that depends on a vendor releasing a patch or update.
915
- */
916
- export enum PoamType {
917
- Mitigation = "mitigation",
918
- Remediation = "remediation",
919
- RiskAcceptance = "riskAcceptance",
920
- VendorDependency = "vendorDependency",
921
- }
922
-
923
- /**
924
- * A reference to an external document.
925
- *
926
- * A reference using the 'ref' field.
927
- *
928
- * A URL pointing at the reference.
929
- *
930
- * A URI pointing at the reference.
931
- */
932
- export interface Reference {
933
- ref?: { [key: string]: any }[] | string;
934
- url?: string;
935
- uri?: string;
936
- [property: string]: any;
937
- }
938
-
939
- /**
940
- * A test within a requirement and its results and findings such as how long it took to run.
941
- */
942
- export interface RequirementResult {
943
- /**
944
- * The stacktrace/backtrace of the exception if one occurred.
945
- */
946
- backtrace?: string[];
947
- /**
948
- * A description of this test. Example: 'limits.conf * is expected to include ["hard",
949
- * "maxlogins", "10"]'.
950
- */
951
- codeDesc: string;
952
- /**
953
- * The type of exception if an exception was thrown.
954
- */
955
- exception?: string;
956
- /**
957
- * An explanation of the test result. Typically provided for failed tests, errors, or to
958
- * explain why a test was not applicable or not reviewed.
959
- */
960
- message?: string;
961
- /**
962
- * The resource used in the test. Example: 'file', 'command', 'service'.
963
- */
964
- resource?: string;
965
- /**
966
- * The unique identifier of the resource. Example: '/etc/passwd'.
967
- */
968
- resourceId?: string;
969
- /**
970
- * The execution time in seconds for the test.
971
- */
972
- runTime?: number;
973
- /**
974
- * The time at which the test started.
975
- */
976
- startTime: Date;
977
- /**
978
- * The status of this test within the requirement. Example: 'failed'.
979
- */
980
- status: ResultStatus;
981
- [property: string]: any;
982
- }
983
-
984
- /**
985
- * Explicit severity rating. Typically derived from impact score but provided explicitly for
986
- * clarity.
987
- *
988
- * Severity rating for a requirement. Typically derived from the numeric impact score.
989
- */
990
- export enum Severity {
991
- Critical = "critical",
992
- High = "high",
993
- Informational = "informational",
994
- Low = "low",
995
- Medium = "medium",
996
- }
997
-
998
- /**
999
- * The explicit location of the requirement within the source code.
1000
- *
1001
- * The explicit location of a requirement within source code.
1002
- */
1003
- export interface SourceLocation {
1004
- /**
1005
- * The line on which this requirement is located.
1006
- */
1007
- line?: number;
1008
- /**
1009
- * Path to the file that this requirement originates from.
1010
- */
1011
- ref?: string;
1012
- [property: string]: any;
1013
- }
1014
-
1015
- /**
1016
- * An intentional change to a requirement's compliance status and/or impact score. At least
1017
- * one of status or impact must be set. Overrides change the effectiveStatus or impact of
1018
- * the requirement. All overrides must have an expiration date to enforce periodic review.
1019
- */
1020
- export interface StatusOverride {
1021
- /**
1022
- * Timestamp when this override was applied. ISO 8601 format.
1023
- */
1024
- appliedAt: Date;
1025
- /**
1026
- * Identity of who applied this override. For simple cases, use type 'simple' with just an
1027
- * identifier.
1028
- */
1029
- appliedBy: Identity;
1030
- /**
1031
- * Supporting evidence for this override, such as screenshots demonstrating manual
1032
- * verification for attestations.
1033
- */
1034
- evidence?: Evidence[];
1035
- /**
1036
- * Timestamp when this override expires and must be reviewed/renewed. REQUIRED - no
1037
- * permanent overrides allowed. ISO 8601 format.
1038
- */
1039
- expiresAt: Date;
1040
- /**
1041
- * Override to the requirement's impact score. At least one of status or impact must be set.
1042
- */
1043
- impact?: ImpactOverride;
1044
- /**
1045
- * SHA-256 checksum of the previous amendment in chronological order. Creates a
1046
- * tamper-evident chain of amendments (similar to blockchain). Null for the first amendment
1047
- * on a requirement.
1048
- */
1049
- previousChecksum?: Checksum;
1050
- /**
1051
- * Explanation for why this override was applied.
1052
- */
1053
- reason: string;
1054
- /**
1055
- * Optional digital signature for enhanced trust and non-repudiation. Supports hardware
1056
- * security tokens (PKCS#11/PKCS#12), Yubikeys, GPG keys, passkeys, and other signing
1057
- * methods.
1058
- */
1059
- signature?: Signature;
1060
- /**
1061
- * The new status this override sets for the requirement. Optional when only impact is being
1062
- * overridden.
1063
- */
1064
- status?: ResultStatus;
1065
- /**
1066
- * The type of override applied to this requirement.
1067
- */
1068
- type: OverrideType;
1069
- [property: string]: any;
1070
- }
1071
-
1072
- /**
1073
- * Override to the requirement's impact score. At least one of status or impact must be
1074
- * set.
1075
- *
1076
- * An override to the requirement's impact score. The prior impact is the original result
1077
- * value or the preceding override in the chain.
1078
- */
1079
- export interface ImpactOverride {
1080
- /**
1081
- * The overridden impact score (0.0–1.0).
1082
- */
1083
- value: number;
1084
- [property: string]: any;
1085
- }
1086
-
1087
- /**
1088
- * How this requirement is intended to be verified. Disambiguates the two cases that null
1089
- * 'code' overloads: 'manual-by-design' (the requirement is statement-form and not amenable
1090
- * to automation, e.g. FedRAMP 20x KSIs); 'manual-pending-automation' (automation could
1091
- * exist but does not yet, e.g. a STIG rule lacking a fix). 'automated' = a check exists and
1092
- * runs without operator action; 'hybrid' = part automated, part manual. Optional: when
1093
- * omitted, consumers should not infer a default.
1094
- *
1095
- * How a requirement is intended to be verified. Disambiguates the two cases that null
1096
- * 'code' overloads: 'manual-by-design' (the requirement is statement-form and not amenable
1097
- * to automation, e.g. FedRAMP 20x KSIs); 'manual-pending-automation' (automation could
1098
- * exist but does not yet, e.g. a STIG rule lacking a fix). 'automated' = a check exists and
1099
- * runs without operator action; 'hybrid' = part automated, part manual. Named '_Enum' to
1100
- * disambiguate from the unrelated Verification_Method DID-context struct.
1101
- */
1102
- export enum VerificationMethodEnum {
1103
- Automated = "automated",
1104
- Hybrid = "hybrid",
1105
- ManualByDesign = "manual-by-design",
1106
- ManualPendingAutomation = "manual-pending-automation",
1107
- }
1108
-
1109
- /**
1110
- * A supported platform target. Example: the platform name being 'ubuntu'.
1111
- */
1112
- export interface SupportedPlatform {
1113
- /**
1114
- * The location of the platform. Can be: 'os', 'aws', 'azure', or 'gcp'.
1115
- */
1116
- platform?: string;
1117
- /**
1118
- * The platform family. Example: 'redhat'.
1119
- */
1120
- platformFamily?: string;
1121
- /**
1122
- * The platform name - can include wildcards. Example: 'debian'.
1123
- */
1124
- platformName?: string;
1125
- /**
1126
- * The release of the platform. Example: '20.04' for 'ubuntu'.
1127
- */
1128
- release?: string;
1129
- [property: string]: any;
1130
- }
1131
-
1132
- /**
1133
- * A system component. Uses discriminated union pattern with 'type' field as discriminator.
1134
- * Superset of Target with identity, external IDs, and SBOM support.
1135
- *
1136
- * A physical or virtual server, workstation, or network device.
1137
- *
1138
- * Base properties shared by all component types. Extends the Target concept with stable
1139
- * identity, external references, and SBOM embedding.
1140
- *
1141
- * A static container image (not running).
1142
- *
1143
- * A running container instance.
1144
- *
1145
- * A container orchestration platform (Kubernetes, OpenShift, ECS, etc.).
1146
- *
1147
- * A cloud provider account (AWS account, Azure subscription, GCP project).
1148
- *
1149
- * A specific cloud resource (EC2 instance, S3 bucket, Azure VM, etc.).
1150
- *
1151
- * A code repository (for SAST tools).
1152
- *
1153
- * A running application or API (for DAST tools).
1154
- *
1155
- * A software artifact or dependency (for SCA tools).
1156
- *
1157
- * A network segment or network device.
1158
- *
1159
- * A database instance.
1160
- */
1161
- export interface Component {
1162
- /**
1163
- * Names of baselines that apply to this component.
1164
- */
1165
- baselineRefs?: string[];
1166
- /**
1167
- * Stable UUID (RFC 4122) for this component. Required in hdf-system documents, optional in
1168
- * hdf-results. Enables cross-document correlation, diffing, and data flow references.
1169
- */
1170
- componentId?: string;
1171
- /**
1172
- * Description of this component's role or purpose.
1173
- */
1174
- description?: string;
1175
- /**
1176
- * Map of external identifier scheme to value. Well-known schemes: aws (instance ID), azure
1177
- * (resource ID), cmdb (asset ID), emass (system ID), cve (CVE ID). Custom schemes are
1178
- * allowed.
1179
- */
1180
- externalIds?: { [key: string]: string };
1181
- /**
1182
- * System-specific overrides for baseline input values.
1183
- */
1184
- inputOverrides?: InputOverride[];
1185
- /**
1186
- * Optional key-value labels for flexible grouping. Well-known keys: system, component,
1187
- * environment, region, team. Values must be strings.
1188
- */
1189
- labels?: { [key: string]: string };
1190
- /**
1191
- * Human-readable name for this component.
1192
- */
1193
- name: string;
1194
- /**
1195
- * Team or individual responsible for this component. Enables per-component ownership when
1196
- * different teams manage different parts of a system.
1197
- */
1198
- owner?: Identity;
1199
- /**
1200
- * Embedded CycloneDX or SPDX SBOM document representing this component's software
1201
- * inventory. The sbomFormat field determines which format constraints apply.
1202
- */
1203
- sbom?: any;
1204
- /**
1205
- * Format of the SBOM (embedded or referenced). Required when sbom or sbomRef is present.
1206
- */
1207
- sbomFormat?: SbomFormat;
1208
- /**
1209
- * URI reference to an external CycloneDX or SPDX SBOM document for this component. May be a
1210
- * relative path, absolute URI, or fragment identifier.
1211
- */
1212
- sbomRef?: string;
1213
- /**
1214
- * Label selector to match targets belonging to this component during migration. Targets
1215
- * with matching labels are automatically included.
1216
- */
1217
- targetSelector?: { [key: string]: string };
1218
- /**
1219
- * Component type discriminator. Same values as Target types.
1220
- */
1221
- type: Copyright;
1222
- /**
1223
- * Fully qualified domain name.
1224
- */
1225
- fqdn?: string;
1226
- /**
1227
- * IP address of the host.
1228
- */
1229
- ipAddress?: string;
1230
- /**
1231
- * MAC address in colon-separated hexadecimal format.
1232
- */
1233
- macAddress?: string;
1234
- /**
1235
- * Operating system name.
1236
- */
1237
- osName?: string;
1238
- /**
1239
- * Operating system version.
1240
- */
1241
- osVersion?: string;
1242
- /**
1243
- * Image digest for immutable reference.
1244
- */
1245
- digest?: string;
1246
- /**
1247
- * Container image ID.
1248
- */
1249
- imageId?: string;
1250
- /**
1251
- * Container registry. Example: 'docker.io'.
1252
- */
1253
- registry?: string;
1254
- /**
1255
- * Repository name. Example: 'library/nginx'.
1256
- */
1257
- repository?: string;
1258
- /**
1259
- * Image tag. Example: '1.25'.
1260
- */
1261
- tag?: string;
1262
- /**
1263
- * Running container ID.
1264
- */
1265
- containerId?: string;
1266
- /**
1267
- * Image the container was started from.
1268
- */
1269
- image?: string;
1270
- /**
1271
- * Container runtime. Example: 'docker', 'containerd', 'cri-o'.
1272
- */
1273
- runtime?: string;
1274
- /**
1275
- * Cluster name.
1276
- */
1277
- clusterName?: string;
1278
- /**
1279
- * Namespace within the cluster, if applicable.
1280
- */
1281
- namespace?: string;
1282
- /**
1283
- * Platform type. Example: 'kubernetes', 'openshift', 'ecs', 'docker-swarm'.
1284
- */
1285
- platformType?: string;
1286
- /**
1287
- * Platform version.
1288
- *
1289
- * Application version.
1290
- *
1291
- * Package version.
1292
- *
1293
- * Database version.
1294
- */
1295
- version?: string;
1296
- /**
1297
- * Cloud account identifier.
1298
- */
1299
- accountId?: string;
1300
- /**
1301
- * Cloud provider.
1302
- */
1303
- provider?: CloudProvider | null;
1304
- /**
1305
- * Cloud region, if applicable.
1306
- *
1307
- * Cloud region where the resource resides.
1308
- */
1309
- region?: string;
1310
- /**
1311
- * Amazon Resource Name (AWS only).
1312
- */
1313
- arn?: string;
1314
- /**
1315
- * Provider-specific resource identifier.
1316
- */
1317
- resourceId?: string;
1318
- /**
1319
- * Type of cloud resource. Example: 'ec2:instance', 's3:bucket'.
1320
- */
1321
- resourceType?: string;
1322
- /**
1323
- * Branch that was scanned.
1324
- */
1325
- branch?: string;
1326
- /**
1327
- * Commit SHA that was scanned.
1328
- */
1329
- commit?: string;
1330
- /**
1331
- * Repository URL.
1332
- *
1333
- * Application URL (for DAST tools).
1334
- */
1335
- url?: string;
1336
- /**
1337
- * Environment. Example: 'production', 'staging', 'development'.
1338
- */
1339
- environment?: string;
1340
- /**
1341
- * Package checksum for verification.
1342
- */
1343
- checksum?: string;
1344
- /**
1345
- * Package manager. Example: 'npm', 'maven', 'pip', 'nuget'.
1346
- */
1347
- packageManager?: string;
1348
- /**
1349
- * Package name.
1350
- */
1351
- packageName?: string;
1352
- /**
1353
- * Network CIDR block.
1354
- */
1355
- cidr?: string;
1356
- /**
1357
- * Network gateway address.
1358
- */
1359
- gateway?: string;
1360
- /**
1361
- * Database engine. Example: 'postgresql', 'mysql', 'oracle', 'mssql'.
1362
- */
1363
- engine?: string;
1364
- /**
1365
- * Database host.
1366
- */
1367
- host?: string;
1368
- /**
1369
- * Database port.
1370
- */
1371
- port?: number;
1372
- [property: string]: any;
1373
- }
1374
-
1375
- /**
1376
- * An override of a baseline input value for a specific component. Enables system-specific
1377
- * tailoring of baseline parameters.
1378
- */
1379
- export interface InputOverride {
1380
- /**
1381
- * Identity of the person or system that approved this override.
1382
- */
1383
- approvedBy?: Identity;
1384
- /**
1385
- * Name of the baseline this override applies to. If omitted, applies to all baselines that
1386
- * define this input.
1387
- */
1388
- baselineRef?: string;
1389
- /**
1390
- * Name of the input being overridden. Must match an Input.name in the referenced baseline.
1391
- */
1392
- inputName: string;
1393
- /**
1394
- * Rationale for why this override is needed.
1395
- */
1396
- justification?: string;
1397
- /**
1398
- * The overridden value. Should match the type of the original input.
1399
- */
1400
- value: any;
1401
- [property: string]: any;
1402
- }
1403
-
1404
- export enum CloudProvider {
1405
- Aws = "aws",
1406
- Azure = "azure",
1407
- Gcp = "gcp",
1408
- Oci = "oci",
1409
- Other = "other",
1410
- }
1411
-
1412
- /**
1413
- * Format of the SBOM (embedded or referenced). Required when sbom or sbomRef is present.
1414
- */
1415
- export enum SbomFormat {
1416
- Cyclonedx = "cyclonedx",
1417
- Spdx = "spdx",
1418
- }
1419
-
1420
- /**
1421
- * A human readable/meaningful reference. Example: a book title.
1422
- *
1423
- * IP address of the host.
1424
- */
1425
- export enum Copyright {
1426
- Application = "application",
1427
- Artifact = "artifact",
1428
- CloudAccount = "cloudAccount",
1429
- CloudResource = "cloudResource",
1430
- ContainerImage = "containerImage",
1431
- ContainerInstance = "containerInstance",
1432
- ContainerPlatform = "containerPlatform",
1433
- Database = "database",
1434
- Host = "host",
1435
- Network = "network",
1436
- Repository = "repository",
1437
- }
1438
-
1439
- /**
1440
- * Information about the tool that generated this file.
1441
- *
1442
- * Information about the tool that generated this HDF file.
1443
- */
1444
- export interface Generator {
1445
- /**
1446
- * The name of the software that produced this HDF file. Example: 'gosec-to-hdf'.
1447
- */
1448
- name: string;
1449
- /**
1450
- * The version of the tool. Example: '5.22.3'.
1451
- */
1452
- version: string;
1453
- [property: string]: any;
1454
- }
1455
-
1456
- /**
1457
- * Optional reference to automated remediation resources (Ansible playbooks, Terraform
1458
- * scripts, etc.) for fixing failing requirements found in this assessment.
1459
- *
1460
- * Reference to automated remediation resources for implementing security controls. Points
1461
- * to external automation content like Ansible playbooks, Terraform scripts, or
1462
- * vendor-provided remediation tools.
1463
- */
1464
- export interface Remediation {
1465
- /**
1466
- * Optional cryptographic checksum for verifying the integrity of remediation resources
1467
- * fetched from the URI. Recommended for security when referencing external automation
1468
- * scripts.
1469
- */
1470
- checksum?: Checksum;
1471
- /**
1472
- * URI pointing to automated remediation resources (Ansible playbooks, Terraform scripts,
1473
- * etc.). Examples: GitHub repository, DISA STIG Supplemental Automation Content,
1474
- * vendor-provided scripts.
1475
- */
1476
- uri: string;
1477
- [property: string]: any;
1478
- }
1479
-
1480
- /**
1481
- * Information about the test execution environment where the security tool was run.
1482
- * Distinct from targets (what is being tested).
1483
- *
1484
- * Information about the test execution environment. This is distinct from the target being
1485
- * scanned - the runner is where the security tool executes, while targets are what is being
1486
- * assessed.
1487
- */
1488
- export interface Runner {
1489
- /**
1490
- * The CPU architecture of the runner system. Example: 'x86_64', 'arm64', 'aarch64'.
1491
- */
1492
- architecture?: string;
1493
- /**
1494
- * The container instance identifier. Example: 'a1b2c3d4e5f6', 'security-scan-job-xyz123'.
1495
- * Can be a Docker container ID, Kubernetes pod name, or other container runtime identifier.
1496
- */
1497
- containerId?: string;
1498
- /**
1499
- * The container image used for the test execution. Example: 'inspec/inspec:latest',
1500
- * 'ghcr.io/my-org/scanner:v2.1.0'. Useful for CI/CD pipelines where tests run in containers.
1501
- */
1502
- containerImage?: string;
1503
- /**
1504
- * The hostname of the runner system. Example: 'ci-runner-01', 'jenkins-agent-03',
1505
- * 'k8s-node-worker-03'.
1506
- */
1507
- hostname?: string;
1508
- /**
1509
- * The name of the runner environment. Examples: 'ubuntu', 'macos', 'windows', 'docker',
1510
- * 'kubernetes-pod', 'manual'.
1511
- */
1512
- name: string;
1513
- /**
1514
- * The identity of the person or system responsible for executing the test. This could be a
1515
- * human auditor manually completing a checklist, an automated CI/CD system, or a security
1516
- * tool. Optional field to support both automated and manual HDF generation.
1517
- */
1518
- operator?: Identity;
1519
- /**
1520
- * The version/release of the operating system or runtime. Example: '20.04', '13.2', '11'.
1521
- */
1522
- release?: string;
1523
- [property: string]: any;
1524
- }
1525
-
1526
- /**
1527
- * Statistics for the assessment run, including duration and result counts.
1528
- *
1529
- * Statistics for the assessment run(s) such as duration and result counts.
1530
- */
1531
- export interface Statistics {
1532
- /**
1533
- * How long (in seconds) this assessment run took.
1534
- */
1535
- duration?: number;
1536
- /**
1537
- * Breakdowns of requirement statistics by result status.
1538
- */
1539
- requirements?: StatisticHash;
1540
- [property: string]: any;
1541
- }
1542
-
1543
- /**
1544
- * Breakdowns of requirement statistics by result status.
1545
- *
1546
- * Statistics for requirement results, grouped by status.
1547
- */
1548
- export interface StatisticHash {
1549
- /**
1550
- * Statistics for requirements that encountered an error during assessment.
1551
- */
1552
- error?: StatisticBlock;
1553
- /**
1554
- * Statistics for requirements that failed.
1555
- */
1556
- failed?: StatisticBlock;
1557
- /**
1558
- * Statistics for requirements that are not applicable to the target.
1559
- */
1560
- notApplicable?: StatisticBlock;
1561
- /**
1562
- * Statistics for requirements that were not reviewed (manual check required).
1563
- */
1564
- notReviewed?: StatisticBlock;
1565
- /**
1566
- * Statistics for requirements that passed.
1567
- */
1568
- passed?: StatisticBlock;
1569
- [property: string]: any;
1570
- }
1571
-
1572
- /**
1573
- * Statistics for requirements that encountered an error during assessment.
1574
- *
1575
- * Statistics for a given item, such as the total count.
1576
- *
1577
- * Statistics for requirements that failed.
1578
- *
1579
- * Statistics for requirements that are not applicable to the target.
1580
- *
1581
- * Statistics for requirements that were not reviewed (manual check required).
1582
- *
1583
- * Statistics for requirements that passed.
1584
- */
1585
- export interface StatisticBlock {
1586
- /**
1587
- * The total count. Example: the total number of requirements in a given category for a run.
1588
- */
1589
- total: number;
1590
- [property: string]: any;
1591
- }
1592
-
1593
- /**
1594
- * The security tool that produced the assessment data in this file.
1595
- *
1596
- * The security tool that produced the assessment data represented in this HDF file. Aligns
1597
- * with SARIF, OSCAL, and CycloneDX terminology.
1598
- */
1599
- export interface Tool {
1600
- /**
1601
- * The file format, if it is a recognized named format shared by multiple tools. Examples:
1602
- * 'SARIF', 'XCCDF'. Omit for tool-specific formats where the tool name already implies the
1603
- * format (Nessus XML, gosec JSON).
1604
- */
1605
- format?: string;
1606
- /**
1607
- * The name of the security tool that produced the data. Examples: 'gosec', 'Semgrep',
1608
- * 'OpenSCAP', 'AWS Config', 'Nessus'. Omit if the tool cannot be identified.
1609
- */
1610
- name?: string;
1611
- /**
1612
- * Version of the source tool, if available in the tool's output. Example: '5.22.3'.
1613
- */
1614
- version?: string;
1615
- [property: string]: any;
1616
- }