{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-windows-device-malware-state-schema.json",
  "title": "microsoft.graph.windowsDeviceMalwareState",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-manageddevice-api-openapi.yml#/components/schemas/microsoft.graph.windowsDeviceMalwareState",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "windowsDeviceMalwareState",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "additionalInformationUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "Information URL to learn more about the malware"
        },
        "category": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.windowsMalwareCategory"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Category of the malware. The possible values are: invalid, adware, spyware, passwordStealer, trojanDownloader, worm, backdoor, remoteAccessTrojan, trojan, emailFlooder, keylogger, dialer, monitoringSoftware, browserModifier, cookie, browserPlugin, aolExploit, nuker, securityDisabler, jokeProgram, hostileActiveXControl, softwareBundler, stealthNotifier, settingsModifier, toolBar, remoteControlSoftware, trojanFtp, potentialUnwantedSoftware, icqExploit, trojanTelnet, exploit, filesharingProgram, malwareCreationTool, remoteControlSoftware, tool, trojanDenialOfService, trojanDropper, trojanMassMailer, trojanMonitoringSoftware, trojanProxyServer, virus, known, unknown, spp, behavior, vulnerability, policy, enterpriseUnwantedSoftware, ransom, hipsRule."
        },
        "detectionCount": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "description": "Number of times the malware is detected",
          "format": "int32"
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Malware name"
        },
        "executionState": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.windowsMalwareExecutionState"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Execution status of the malware like blocked/executing etc. The possible values are: unknown, blocked, allowed, running, notRunning."
        },
        "initialDetectionDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "Initial detection datetime of the malware",
          "format": "date-time"
        },
        "lastStateChangeDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": [
            "string",
            "null"
          ],
          "description": "The last time this particular threat was changed",
          "format": "date-time"
        },
        "severity": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.windowsMalwareSeverity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Severity of the malware. The possible values are: unknown, low, moderate, high, severe."
        },
        "state": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.windowsMalwareState"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Current status of the malware like cleaned/quarantined/allowed etc. The possible values are: unknown, detected, cleaned, quarantined, removed, allowed, blocked, cleanFailed, quarantineFailed, removeFailed, allowFailed, abandoned, blockFailed."
        },
        "threatState": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.windowsMalwareThreatState"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Current status of the malware like cleaned/quarantined/allowed etc. The possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Malware detection entity."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.windowsDeviceMalwareState",
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.windowsMalwareCategory": {
      "title": "windowsMalwareCategory",
      "enum": [
        "invalid",
        "adware",
        "spyware",
        "passwordStealer",
        "trojanDownloader",
        "worm",
        "backdoor",
        "remoteAccessTrojan",
        "trojan",
        "emailFlooder",
        "keylogger",
        "dialer",
        "monitoringSoftware",
        "browserModifier",
        "cookie",
        "browserPlugin",
        "aolExploit",
        "nuker",
        "securityDisabler",
        "jokeProgram",
        "hostileActiveXControl",
        "softwareBundler",
        "stealthNotifier",
        "settingsModifier",
        "toolBar",
        "remoteControlSoftware",
        "trojanFtp",
        "potentialUnwantedSoftware",
        "icqExploit",
        "trojanTelnet",
        "exploit",
        "filesharingProgram",
        "malwareCreationTool",
        "remote_Control_Software",
        "tool",
        "trojanDenialOfService",
        "trojanDropper",
        "trojanMassMailer",
        "trojanMonitoringSoftware",
        "trojanProxyServer",
        "virus",
        "known",
        "unknown",
        "spp",
        "behavior",
        "vulnerability",
        "policy",
        "enterpriseUnwantedSoftware",
        "ransom",
        "hipsRule"
      ],
      "type": "string",
      "description": "Malware category id",
      "x-ms-enum": {
        "name": "windowsMalwareCategory",
        "modelAsString": false,
        "values": [
          {
            "value": "invalid",
            "description": "Invalid",
            "name": "invalid"
          },
          {
            "value": "adware",
            "description": "Adware",
            "name": "adware"
          },
          {
            "value": "spyware",
            "description": "Spyware",
            "name": "spyware"
          },
          {
            "value": "passwordStealer",
            "description": "Password stealer",
            "name": "passwordStealer"
          },
          {
            "value": "trojanDownloader",
            "description": "Trojan downloader",
            "name": "trojanDownloader"
          },
          {
            "value": "worm",
            "description": "Worm",
            "name": "worm"
          },
          {
            "value": "backdoor",
            "description": "Backdoor",
            "name": "backdoor"
          },
          {
            "value": "remoteAccessTrojan",
            "description": "Remote access Trojan",
            "name": "remoteAccessTrojan"
          },
          {
            "value": "trojan",
            "description": "Trojan",
            "name": "trojan"
          },
          {
            "value": "emailFlooder",
            "description": "Email flooder",
            "name": "emailFlooder"
          },
          {
            "value": "keylogger",
            "description": "Keylogger",
            "name": "keylogger"
          },
          {
            "value": "dialer",
            "description": "Dialer",
            "name": "dialer"
          },
          {
            "value": "monitoringSoftware",
            "description": "Monitoring software",
            "name": "monitoringSoftware"
          },
          {
            "value": "browserModifier",
            "description": "Browser modifier",
            "name": "browserModifier"
          },
          {
            "value": "cookie",
            "description": "Cookie",
            "name": "cookie"
          },
          {
            "value": "browserPlugin",
            "description": "Browser plugin",
            "name": "browserPlugin"
          },
          {
            "value": "aolExploit",
            "description": "AOL exploit",
            "name": "aolExploit"
          },
          {
            "value": "nuker",
            "description": "Nuker",
            "name": "nuker"
          },
          {
            "value": "securityDisabler",
            "description": "Security disabler",
            "name": "securityDisabler"
          },
          {
            "value": "jokeProgram",
            "description": "Joke program",
            "name": "jokeProgram"
          },
          {
            "value": "hostileActiveXControl",
            "description": "Hostile ActiveX control",
            "name": "hostileActiveXControl"
          },
          {
            "value": "softwareBundler",
            "description": "Software bundler",
            "name": "softwareBundler"
          },
          {
            "value": "stealthNotifier",
            "description": "Stealth modifier",
            "name": "stealthNotifier"
          },
          {
            "value": "settingsModifier",
            "description": "Settings modifier",
            "name": "settingsModifier"
          },
          {
            "value": "toolBar",
            "description": "Toolbar",
            "name": "toolBar"
          },
          {
            "value": "remoteControlSoftware",
            "description": "Remote control software",
            "name": "remoteControlSoftware"
          },
          {
            "value": "trojanFtp",
            "description": "Trojan FTP",
            "name": "trojanFtp"
          },
          {
            "value": "potentialUnwantedSoftware",
            "description": "Potential unwanted software",
            "name": "potentialUnwantedSoftware"
          },
          {
            "value": "icqExploit",
            "description": "ICQ exploit",
            "name": "icqExploit"
          },
          {
            "value": "trojanTelnet",
            "description": "Trojan telnet",
            "name": "trojanTelnet"
          },
          {
            "value": "exploit",
            "description": "Exploit",
            "name": "exploit"
          },
          {
            "value": "filesharingProgram",
            "description": "File sharing program",
            "name": "filesharingProgram"
          },
          {
            "value": "malwareCreationTool",
            "description": "Malware creation tool",
            "name": "malwareCreationTool"
          },
          {
            "value": "remote_Control_Software",
            "description": "Remote control software",
            "name": "remote_Control_Software"
          },
          {
            "value": "tool",
            "description": "Tool",
            "name": "tool"
          },
          {
            "value": "trojanDenialOfService",
            "description": "Trojan denial of service",
            "name": "trojanDenialOfService"
          },
          {
            "value": "trojanDropper",
            "description": "Trojan dropper",
            "name": "trojanDropper"
          },
          {
            "value": "trojanMassMailer",
            "description": "Trojan mass mailer",
            "name": "trojanMassMailer"
          },
          {
            "value": "trojanMonitoringSoftware",
            "description": "Trojan monitoring software",
            "name": "trojanMonitoringSoftware"
          },
          {
            "value": "trojanProxyServer",
            "description": "Trojan proxy server",
            "name": "trojanProxyServer"
          },
          {
            "value": "virus",
            "description": "Virus",
            "name": "virus"
          },
          {
            "value": "known",
            "description": "Known",
            "name": "known"
          },
          {
            "value": "unknown",
            "description": "Unknown",
            "name": "unknown"
          },
          {
            "value": "spp",
            "description": "SPP",
            "name": "spp"
          },
          {
            "value": "behavior",
            "description": "Behavior",
            "name": "behavior"
          },
          {
            "value": "vulnerability",
            "description": "Vulnerability",
            "name": "vulnerability"
          },
          {
            "value": "policy",
            "description": "Policy",
            "name": "policy"
          },
          {
            "value": "enterpriseUnwantedSoftware",
            "description": "Enterprise Unwanted Software",
            "name": "enterpriseUnwantedSoftware"
          },
          {
            "value": "ransom",
            "description": "Ransom",
            "name": "ransom"
          },
          {
            "value": "hipsRule",
            "description": "HIPS Rule",
            "name": "hipsRule"
          }
        ]
      }
    },
    "microsoft.graph.windowsMalwareExecutionState": {
      "title": "windowsMalwareExecutionState",
      "enum": [
        "unknown",
        "blocked",
        "allowed",
        "running",
        "notRunning"
      ],
      "type": "string",
      "description": "Malware execution status",
      "x-ms-enum": {
        "name": "windowsMalwareExecutionState",
        "modelAsString": false,
        "values": [
          {
            "value": "unknown",
            "description": "Unknown",
            "name": "unknown"
          },
          {
            "value": "blocked",
            "description": "Blocked",
            "name": "blocked"
          },
          {
            "value": "allowed",
            "description": "Allowed",
            "name": "allowed"
          },
          {
            "value": "running",
            "description": "Running",
            "name": "running"
          },
          {
            "value": "notRunning",
            "description": "Not running",
            "name": "notRunning"
          }
        ]
      }
    },
    "microsoft.graph.windowsMalwareSeverity": {
      "title": "windowsMalwareSeverity",
      "enum": [
        "unknown",
        "low",
        "moderate",
        "high",
        "severe"
      ],
      "type": "string",
      "description": "Malware severity",
      "x-ms-enum": {
        "name": "windowsMalwareSeverity",
        "modelAsString": false,
        "values": [
          {
            "value": "unknown",
            "description": "Unknown",
            "name": "unknown"
          },
          {
            "value": "low",
            "description": "Low",
            "name": "low"
          },
          {
            "value": "moderate",
            "description": "Moderate",
            "name": "moderate"
          },
          {
            "value": "high",
            "description": "High",
            "name": "high"
          },
          {
            "value": "severe",
            "description": "Severe",
            "name": "severe"
          }
        ]
      }
    },
    "microsoft.graph.windowsMalwareState": {
      "title": "windowsMalwareState",
      "enum": [
        "unknown",
        "detected",
        "cleaned",
        "quarantined",
        "removed",
        "allowed",
        "blocked",
        "cleanFailed",
        "quarantineFailed",
        "removeFailed",
        "allowFailed",
        "abandoned",
        "blockFailed"
      ],
      "type": "string",
      "description": "Malware current status",
      "x-ms-enum": {
        "name": "windowsMalwareState",
        "modelAsString": false,
        "values": [
          {
            "value": "unknown",
            "description": "Unknown",
            "name": "unknown"
          },
          {
            "value": "detected",
            "description": "Detected",
            "name": "detected"
          },
          {
            "value": "cleaned",
            "description": "Cleaned",
            "name": "cleaned"
          },
          {
            "value": "quarantined",
            "description": "Quarantined",
            "name": "quarantined"
          },
          {
            "value": "removed",
            "description": "Removed",
            "name": "removed"
          },
          {
            "value": "allowed",
            "description": "Allowed",
            "name": "allowed"
          },
          {
            "value": "blocked",
            "description": "Blocked",
            "name": "blocked"
          },
          {
            "value": "cleanFailed",
            "description": "Clean failed",
            "name": "cleanFailed"
          },
          {
            "value": "quarantineFailed",
            "description": "Quarantine failed",
            "name": "quarantineFailed"
          },
          {
            "value": "removeFailed",
            "description": "Remove failed",
            "name": "removeFailed"
          },
          {
            "value": "allowFailed",
            "description": "Allow failed",
            "name": "allowFailed"
          },
          {
            "value": "abandoned",
            "description": "Abandoned",
            "name": "abandoned"
          },
          {
            "value": "blockFailed",
            "description": "Block failed",
            "name": "blockFailed"
          }
        ]
      }
    },
    "microsoft.graph.windowsMalwareThreatState": {
      "title": "windowsMalwareThreatState",
      "enum": [
        "active",
        "actionFailed",
        "manualStepsRequired",
        "fullScanRequired",
        "rebootRequired",
        "remediatedWithNonCriticalFailures",
        "quarantined",
        "removed",
        "cleaned",
        "allowed",
        "noStatusCleared"
      ],
      "type": "string",
      "description": "Malware threat status",
      "x-ms-enum": {
        "name": "windowsMalwareThreatState",
        "modelAsString": false,
        "values": [
          {
            "value": "active",
            "description": "Active",
            "name": "active"
          },
          {
            "value": "actionFailed",
            "description": "Action failed",
            "name": "actionFailed"
          },
          {
            "value": "manualStepsRequired",
            "description": "Manual steps required",
            "name": "manualStepsRequired"
          },
          {
            "value": "fullScanRequired",
            "description": "Full scan required",
            "name": "fullScanRequired"
          },
          {
            "value": "rebootRequired",
            "description": "Reboot required",
            "name": "rebootRequired"
          },
          {
            "value": "remediatedWithNonCriticalFailures",
            "description": "Remediated with non critical failures ",
            "name": "remediatedWithNonCriticalFailures"
          },
          {
            "value": "quarantined",
            "description": "Quarantined",
            "name": "quarantined"
          },
          {
            "value": "removed",
            "description": "Removed",
            "name": "removed"
          },
          {
            "value": "cleaned",
            "description": "Cleaned",
            "name": "cleaned"
          },
          {
            "value": "allowed",
            "description": "Allowed",
            "name": "allowed"
          },
          {
            "value": "noStatusCleared",
            "description": "No status cleared",
            "name": "noStatusCleared"
          }
        ]
      }
    }
  }
}