22 lines
1.5 KiB
TypeScript
22 lines
1.5 KiB
TypeScript
import type { ReportContextPublication } from '../../src/reporting/report-context';
|
|
|
|
/** Synthetic published results, deliberately carrying confidential IDs for disclosure checks. */
|
|
export function reportContext(revision = 9): ReportContextPublication {
|
|
return {
|
|
version: 1, projectId: 'dummy-project', assessmentIds: ['dummy-assessment'], scanRunIds: [], repositoryRevision: revision,
|
|
generatedAt: '2026-10-02T12:00:00Z', engineVersion: '1', catalogVersion: '1.9.1', severityCatalogVersion: '1', vocabularyVersion: '1',
|
|
findingCount: 4,
|
|
clusters: [
|
|
{ id: 'cloud-privileged-access-exposure', label: 'Cloud Privileged Access Exposure',
|
|
description: 'Beobachtete Befunde begünstigen den Missbrauch privilegierter Cloud-Zugänge; sie beweisen keinen Angriff.',
|
|
severity: 'critical', hasEvidence: true, scanner: 2, gpo: 0,
|
|
confidence: { catalogued: 1, recognized: 1, estimated: 0 }, tools: ['maester'],
|
|
resultIds: ['secret-result-one', 'secret-result-two'], sources: [{ publisher: 'Synthetic', title: 'Synthetic source', url: 'https://example.invalid/source' }] },
|
|
{ id: 'other-deviations', label: 'Other Deviations (not yet catalogued)', description: 'Noch nicht fachlich zugeordnete Abweichungen.',
|
|
severity: 'undetermined', hasEvidence: true, scanner: 1, gpo: 1,
|
|
confidence: { catalogued: 0, recognized: 0, estimated: 0 }, tools: ['synthetic'],
|
|
resultIds: ['secret-gpo-result', 'secret-other'], sources: [] }
|
|
], sharedSettingLevers: []
|
|
};
|
|
}
|