logical.controlsOffunctionno test imports itfunction controlsOf(f: { readonly cwe: readonly string[]; readonly cve: readonly string[]; }): readonly string[]The controls a finding is evidence against, sorted, without repeats.
The controls of NIST SP 800-53 a finding is evidence against, from what it names: every finding bears on vulnerability monitoring (RA-5); one that names a vulnerability (CVE) or an outdated component bears on flaw remediation (SI-2); and the weakness (CWE) says the rest: injection and unchecked input on input validation (SI-10), broken access on access enforcement (AC-3, AC-6), weak or missing authentication on identification and authentication (IA-2, IA-5), weak cryptography on the protection of information in transit and at rest (SC-8, SC-12, SC-13, SC-28), misconfiguration on configuration settings (CM-6) and exposed information on information handling (SI-11). The table is the estate's own reading, not the standard's.
import { controlsOf } from "./controls.ts";
controlsOf({ cwe: ["CWE-89"], cve: [] }); // ["RA-5", "SI-10"]logical.controlsOffunctionno test imports itfunction controlsOf(f: { readonly cwe: readonly string[]; readonly cve: readonly string[]; }): readonly string[]The controls a finding is evidence against, sorted, without repeats.
logical.Rowtypeno test imports ittype Row = { readonly id: string; readonly status: "fail" | "accepted"; readonly controls: readonly string[]; readonly detail: string };A row of the posture of an asset: the same shape as the probes' policies, so that the posture documents take findings as they take probes.
logical.rowsByAssetfunctionno test imports itfunction rowsByAsset(views: readonly View[]): ReadonlyMap<string, readonly Row[]>The rows of the findings by asset: those that still count against it (fail) and those whose risk is accepted (accepted); false positives, duplicates and verified fixes are not rows.
controlsOffunctionfunction controlsOf(f: { readonly cwe: readonly string[]; readonly cve: readonly string[]; }): readonly string[]The controls a finding is evidence against, sorted, without repeats.
Rowtypeno test imports ittype Row = { readonly id: string; readonly status: "fail" | "accepted"; readonly controls: readonly string[]; readonly detail: string };A row of the posture of an asset: the same shape as the probes' policies, so that the posture documents take findings as they take probes.
rowsByAssetfunctionfunction rowsByAsset(views: readonly View[]): ReadonlyMap<string, readonly Row[]>The rows of the findings by asset: those that still count against it (fail) and those whose risk is accepted (accepted); false positives, duplicates and verified fixes are not rows.