Schema/ThemisPolicy.schema.json
|
{
"$schema": "http://json-schema.org/draft-07/schema#", "title": "ThemisRules Policy", "type": "object", "additionalProperties": false, "properties": { "Meta": { "type": "object", "required": [ "Name", "Version" ], "properties": { "Name": { "type": "string" }, "Version": { "type": "string" }, "Author": { "type": "string" }, "Description": { "type": "string" }, "AppliesTo": { "type": "string" }, "Created": { "type": "string" }, "References": { "type": "array", "items": { "type": "string" } }, "SourcePolicy": { "type": "string", "description": "In backups: the policy whose Enforce run saved them." } } }, "RegistryRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Path", "ValueName" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "Path": { "type": "string", "description": "Registry key, such as HKLM:\\SOFTWARE\\... Must be a registry path." }, "ValueName": { "type": "string" }, "Value": { "type": [ "string", "integer", "number", "array" ] }, "Type": { "type": "string", "enum": [ "Binary", "DWord", "ExpandString", "MultiString", "QWord", "String" ] }, "Default": { "type": [ "string", "integer", "number" ], "description": "Value Windows uses when the registry value is not set. If it meets the rule, a missing value is compliant." }, "Ensure": { "type": "string", "enum": [ "Absent" ], "description": "Absent: the value must not exist (Enforce removes it). Used by backups." }, "Comparison": { "type": "string", "enum": [ "Equal", "AtLeast", "AtMost", "Between", "In" ] }, "Min": { "type": "number" }, "Max": { "type": "number" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "WriteValue": { "description": "What Enforce writes when it differs from Value (needed for Between and In)." }, "MatchValue": { "description": "With Ensure = Absent: only this value is removed." }, "RemoveKeyIfEmpty": { "type": "boolean", "description": "In backups: remove the key when it is left empty." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } }, "ServiceRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "State": { "type": "string", "enum": [ "Running", "Stopped" ] }, "StartupType": { "type": "string", "enum": [ "Automatic", "Manual", "Disabled" ] }, "Action": { "type": "string", "enum": [ "Absent" ], "description": "Absent deletes the service in Enforce mode." }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "AllowStricter": { "type": "boolean", "description": "Accept a stricter startup type (Disabled meets Manual)." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } }, "ProcessRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "State" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "State": { "type": "string", "enum": [ "Absent", "Present" ] }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } }, "AuditPolicyRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Subcategory", "Setting" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "Subcategory": { "type": "string", "pattern": "^\\{[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\\}$", "description": "Advanced audit policy subcategory GUID (auditpol /list /subcategory:* /v)." }, "Setting": { "type": "string", "enum": [ "Success", "Failure", "SuccessAndFailure", "NoAuditing" ] }, "Exact": { "type": "boolean", "description": "Require exactly this setting instead of at least it. Used by backups." }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } }, "UserRightsRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Right", "Principals" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "Right": { "type": "string", "pattern": "^Se[A-Za-z]+(Privilege|Right)$", "description": "User right constant, such as SeDebugPrivilege." }, "Principals": { "type": "array", "items": { "type": "string", "pattern": "^S-1-[0-9]+(-[0-9]+)+$" }, "description": "SIDs, such as S-1-5-32-544 for Administrators. Names are not accepted." }, "Comparison": { "type": "string", "enum": [ "Equal", "Includes", "Excludes" ], "default": "Equal" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } }, "SecurityPolicyRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Key", "Value" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "Key": { "type": "string", "enum": [ "MinimumPasswordAge", "MaximumPasswordAge", "MinimumPasswordLength", "PasswordComplexity", "PasswordHistorySize", "LockoutBadCount", "ResetLockoutCount", "LockoutDuration", "AllowAdministratorLockout", "RequireLogonToChangePassword", "ForceLogoffWhenHourExpire", "ClearTextPassword", "LSAAnonymousNameLookup", "EnableAdminAccount", "EnableGuestAccount" ], "description": "[System Access] setting of the local security policy." }, "Value": { "type": "integer" }, "Comparison": { "type": "string", "enum": [ "Equal", "AtLeast", "AtMost", "Between" ], "default": "Equal", "description": "How the actual value is compared. AtLeast, AtMost and Between need numbers; Between uses Min and Max. Enforce always writes Value." }, "Min": { "type": "number" }, "Max": { "type": "number" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } }, "FirewallProfileRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Profile", "Setting", "Value" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "Profile": { "type": "string", "enum": [ "Domain", "Private", "Public" ] }, "Setting": { "type": "string", "enum": [ "Enabled", "DefaultInboundAction", "DefaultOutboundAction", "NotifyOnListen", "LogBlocked", "LogAllowed", "LogMaxSizeKilobytes", "AllowInboundRules", "AllowLocalFirewallRules", "AllowUnicastResponseToMulticast" ] }, "Value": { "type": [ "string", "integer" ] }, "Comparison": { "type": "string", "enum": [ "Equal", "AtLeast", "AtMost", "Between" ], "default": "Equal", "description": "How the actual value is compared. AtLeast, AtMost and Between need numbers; Between uses Min and Max. Enforce always writes Value." }, "Min": { "type": "number" }, "Max": { "type": "number" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } }, "FeatureRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Feature", "State" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "Feature": { "type": "string" }, "State": { "type": "string", "enum": [ "Enabled", "Disabled" ] }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } }, "SecureFolderRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Path" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "Path": { "type": "string" }, "Sddl": { "type": "string" }, "Ensure": { "type": "string", "enum": [ "Absent" ] }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } }, "LocalGroupMemberRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Group", "Member" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "Group": { "type": "string", "pattern": "^S-1-\\d+(-\\d+)+$", "description": "SID of the local group, for example S-1-5-32-573 (Event Log Readers)." }, "Member": { "type": "string", "pattern": "^S-1-\\d+(-\\d+)+$", "description": "SID of the account." }, "Ensure": { "type": "string", "enum": [ "Present", "Absent" ], "default": "Present" }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } }, "additionalProperties": true } }, "EventLogRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "LogName", "MaxSizeMB" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "LogName": { "type": "string", "description": "Event log name, for example Security or Microsoft-Windows-PowerShell/Operational." }, "MaxSizeMB": { "type": "integer", "minimum": 1, "maximum": 16384, "description": "Required maximum size in MB; a larger log is compliant unless Exact is set." }, "Exact": { "type": "boolean", "description": "Require exactly MaxSizeMB (restore rules use it)." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } }, "additionalProperties": true } }, "ScheduledTaskRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "TaskName" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "TaskPath": { "type": "string", "default": "\\", "description": "Folder of the task, starting and ending with a backslash." }, "TaskName": { "type": "string" }, "Ensure": { "type": "string", "enum": [ "Disabled", "Enabled", "Absent", "Present" ], "default": "Disabled" }, "Xml": { "type": "string", "description": "Task definition, for Present (restore rules carry it)." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } }, "additionalProperties": true } }, "FirewallRuleRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "DisplayName" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "DisplayName": { "type": "string", "description": "Name of the rule; Themis only touches rules in its own group, ThemisRules." }, "Program": { "type": "string", "description": "Full path of the .exe; environment variables are allowed." }, "Direction": { "type": "string", "enum": [ "Outbound", "Inbound" ], "default": "Outbound" }, "Action": { "type": "string", "enum": [ "Block", "Allow" ], "default": "Block" }, "Ensure": { "type": "string", "enum": [ "Present", "Absent" ], "default": "Present" }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } }, "additionalProperties": true } }, "RootCertificateRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Thumbprint" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Thumbprint": { "type": "string", "pattern": "^[0-9A-Fa-f]{40}$" }, "Store": { "type": "string", "enum": [ "LocalMachine", "CurrentUser" ], "default": "LocalMachine" }, "Ensure": { "type": "string", "enum": [ "Absent", "Present" ], "default": "Absent" }, "RawData": { "type": "string", "description": "The certificate in Base64, for Present (restore rules carry it)." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } }, "additionalProperties": true } }, "FileSignatureRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Path" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Path": { "type": "string", "description": "Path of the file; environment variables are allowed." }, "Publisher": { "type": "string", "description": "Text the signer must contain, such as O=Microsoft Corporation." }, "AllowMissing": { "type": "boolean", "default": false }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } }, "additionalProperties": true } }, "AppLockerRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Collection" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Collection": { "type": "string", "enum": [ "Exe", "Script", "Msi", "Dll", "Appx" ] }, "Mode": { "type": "string", "enum": [ "AuditOnly", "Enabled", "NotConfigured" ], "default": "AuditOnly" }, "DefaultRules": { "type": "boolean", "default": true, "description": "Allow the Windows and Program Files folders to everyone, and everything to administrators." }, "AllowPublishers": { "type": "array", "items": { "type": "string" }, "description": "Publishers allowed anywhere, as AppLocker writes them." }, "AllowPaths": { "type": "array", "items": { "type": "string" }, "description": "Extra folders or files allowed. Only use folders users cannot write to, or leave out the ones they can with AllowPathExceptions." }, "AllowPathExceptions": { "type": "array", "items": { "type": "string" }, "description": "Paths the AllowPaths rules do not cover, such as the Downloads folder of every user." }, "RestoreXml": { "type": "string", "description": "Restore rules only: the exact collection to put back." }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } }, "additionalProperties": true } }, "DefenderPreferenceRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "Setting": { "type": "string", "enum": [ "DisableRealtimeMonitoring", "DisableBehaviorMonitoring", "DisableIOAVProtection", "DisableScriptScanning", "DisableRemovableDriveScanning", "DisableEmailScanning", "DisableArchiveScanning", "DisableBlockAtFirstSeen", "PUAProtection", "MAPSReporting", "SubmitSamplesConsent", "EnableNetworkProtection", "EnableControlledFolderAccess", "CloudBlockLevel", "CloudExtendedTimeout", "SignatureUpdateInterval" ], "description": "A Set-MpPreference setting. Give Setting and Value, or AsrRule." }, "Value": { "description": "true/false, or a whole number, as Set-MpPreference takes it." }, "Comparison": { "type": "string", "enum": [ "Equal", "AtLeast", "AtMost", "Between", "In" ] }, "Min": { "type": "number" }, "Max": { "type": "number" }, "AsrRule": { "type": "string", "pattern": "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$", "description": "GUID of an attack surface reduction rule." }, "AsrAction": { "type": "string", "enum": [ "Block", "Audit", "Warn", "Disabled", "Absent" ], "default": "Block" }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "AppliesIf": { "type": "object", "description": "Conditions on facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}. Built-in facts are read from the machine (Get-ThemisFact)." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } }, "additionalProperties": true } }, "DnsOverHttpsRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "ServerAddress" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "ServerAddress": { "type": "string", "description": "IP address of the DNS server." }, "Template": { "type": "string", "description": "DNS over HTTPS address, such as https://dns.quad9.net/dns-query." }, "AllowFallbackToUdp": { "type": "boolean", "default": false }, "AutoUpgrade": { "type": "boolean", "default": true }, "Ensure": { "type": "string", "enum": [ "Present", "Absent" ], "default": "Present" }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "AppliesIf": { "type": "object", "description": "Conditions on facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}. Built-in facts are read from the machine (Get-ThemisFact)." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } }, "additionalProperties": true } }, "CheckRules": { "type": "array", "items": { "type": "object", "required": [ "ID", "Name", "Fact", "Expected" ], "properties": { "ID": { "type": "string" }, "Name": { "type": "string" }, "MacroLevel": { "type": "string", "enum": [ "L1", "L2", "L3", "L4", "L5" ], "description": "Hardening level. Invoke-ThemisPolicy -MacroLevel Ln evaluates rules up to Ln." }, "Description": { "type": "string" }, "AppliesIf": { "type": "object", "description": "Conditions on the facts given with -Facts: a value, or {\"lt\"|\"le\"|\"gt\"|\"ge\"|\"eq\"|\"ne\": number}." }, "DependsOn": { "type": "array", "items": { "type": "string" }, "description": "IDs of earlier rules that must be applicable and compliant first." }, "Fact": { "type": "string" }, "Expected": {}, "Action": { "type": "string" }, "Severity": { "type": "string", "enum": [ "Low", "Medium", "High", "Critical" ], "default": "Medium", "description": "How much a rule that does not comply weighs in the weighted score." }, "References": { "type": "array", "items": { "type": "string" }, "description": "Where the rule comes from: benchmark IDs (CIS 2.3.1.1), documentation addresses." }, "RequiresRestart": { "type": "boolean", "description": "The change needs a restart to take effect." }, "Caution": { "type": "string", "description": "What the rule can break when it is enforced: remote administration, network access, sign-in. Tools show it next to the result." } } } } } } |