UNPKG

@iocium/ioc-diff

Version:

A full-featured, ESM-compatible IOC diffing and normalization library + CLI for InfoSec tooling.

30 lines (28 loc) 596 B
/** * Represents a single Indicator of Compromise (IOC). */ export type IOC = { value: string; type?: string; tags?: string[]; severity?: 'low' | 'medium' | 'high' | 'critical'; source?: string; }; /** * The result of comparing two sets of IOCs. */ export type IOCDiffResult = { added: IOC[]; removed: IOC[]; changed: { before: IOC; after: IOC }[]; }; /** * Options to customize IOC diff behavior. */ export type DiffOptions = { matchBy?: 'value' | 'value+type'; compareTags?: boolean; compareSeverity?: boolean; fuzzyMatch?: boolean; fuzzyThreshold?: number; };