ioc-extractor
Version:
IoC (Indicator of Compromise) extractor
35 lines (33 loc) • 974 B
TypeScript
type StrictOptions = Partial<{
strict: boolean;
}>;
type SortOptions = Partial<{
sort: boolean;
}>;
type StrictSortOptions = StrictOptions & SortOptions;
type Options = StrictOptions & SortOptions & Partial<{
refang: boolean;
punycode: boolean;
}>;
interface IOC {
asns: string[];
btcs: string[];
cves: string[];
domains: string[];
emails: string[];
eths: string[];
gaPubIDs: string[];
gaTrackIDs: string[];
ipv4s: string[];
ipv6s: string[];
macAddresses: string[];
md5s: string[];
sha1s: string[];
sha256s: string[];
sha512s: string[];
ssdeeps: string[];
urls: string[];
xmrs: string[];
}
type IOCKey = "asns" | "btcs" | "cves" | "domains" | "emails" | "eths" | "gaPubIDs" | "gaTrackIDs" | "ipv4s" | "ipv6s" | "macAddresses" | "md5s" | "sha1s" | "sha256s" | "sha512s" | "ssdeeps" | "urls" | "xmrs";
export type { IOC, IOCKey, Options, SortOptions, StrictOptions, StrictSortOptions };