IF Commons GitHub

serializers/ocsf/mod

Written to: 2 requirements: 2 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-grc-documents FR-005, 0004-grc-documents FR-008

The ocsf serializer (0004-grc-documents FR-008): each finding of an assessment as an OCSF Compliance Finding (class 2003, category Findings), one JSON document to a line. type_uid is class_uid * 100 + activity_id, severity_id and the compliance status_id are mapped from the severity and the status, the control is in compliance, and metadata names the product and the version of the schema. Times are milliseconds since the epoch, from the finding's own createdAt.

Source: commons/grc/src/serializers/ocsf/mod.ts

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

OCSF_VERSIONconstno test imports it
const OCSF_VERSION: "1.9.0"

The version of OCSF the events are written as.

ocsfconst
const ocsf: Serializer

The ocsf serializer: JSON lines.

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

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