using System.Collections.Generic; namespace DefenderRuleParser2.Models { public class Threat { public string ThreatName { get; set; } public long BeginPosition { get; set; } public long EndPosition { get; set; } public Dictionary SignatureStats { get; set; } = new Dictionary(); public List Signatures { get; set; } = new List(); } public class SignatureEntry { public string Type { get; set; } public long Offset { get; set; } public List Pattern { get; set; } = new List(); public bool Parsed { get; set; } = false; public string ConditionType { get; set; } public int? ConditionValue { get; set; } public SignatureLogic Logic { get; set; } public List SubSignatures { get; set; } = new List(); } public class SignatureLogic { public int Threshold { get; set; } public List SubRules { get; set; } = new List(); } public class SubRuleLogic { public string Pattern { get; set; } public int Weight { get; set; } public byte Control { get; set; } } public class SubSignature { public string Type { get; set; } public List Pattern { get; set; } = new List(); public bool Parsed { get; set; } = false; } }