IF Commons GitHub

logical/controls

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-findings-lifecycle FR-005

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"]

Source: commons/findings/src/logical/controls.ts

2 of 6 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

logical.controlsOffunctionno test imports it
function 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 it
type 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 it
function 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.

controlsOffunction
function controlsOf(f: { readonly cwe: readonly string[]; readonly cve: readonly string[]; }): readonly string[]

The controls a finding is evidence against, sorted, without repeats.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

Rowtypeno test imports it
type 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.

rowsByAssetfunction
function 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.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.