{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-virus-scan-advanced-result-schema.json",
  "title": "VirusScanAdvancedResult",
  "description": "Result of running an advanced virus scan",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-scan-api-openapi.yml#/components/schemas/VirusScanAdvancedResult",
  "type": "object",
  "properties": {
    "CleanResult": {
      "description": "True if the scan contained no viruses, false otherwise",
      "type": "boolean"
    },
    "ContainsExecutable": {
      "description": "True if the scan contained an executable (application code), which can be a significant risk factor",
      "type": "boolean"
    },
    "ContainsInvalidFile": {
      "description": "True if the scan contained an invalid file (such as a PDF that is not a valid PDF, Word Document that is not a valid Word Document, etc.), which can be a significant risk factor",
      "type": "boolean"
    },
    "ContainsScript": {
      "description": "True if the scan contained a script (such as a PHP script, Python script, etc.) which can be a significant risk factor",
      "type": "boolean"
    },
    "ContainsPasswordProtectedFile": {
      "description": "True if the scan contained a password protected or encrypted file, which can be a significant risk factor",
      "type": "boolean"
    },
    "ContainsRestrictedFileFormat": {
      "description": "True if the uploaded file is of a type that is not allowed based on the optional restrictFileTypes parameter, false otherwise; if restrictFileTypes is not set, this will always be false",
      "type": "boolean"
    },
    "ContainsMacros": {
      "description": "True if the uploaded file contains embedded Macros of other embedded threats within the document, which can be a significant risk factor",
      "type": "boolean"
    },
    "ContainsXmlExternalEntities": {
      "description": "True if the uploaded file contains embedded XML External Entity threats of other embedded threats within the document, which can be a significant risk factor",
      "type": "boolean"
    },
    "ContainsInsecureDeserialization": {
      "description": "True if the uploaded file contains embedded Insecure Deserialization threats of other embedded threats within the document, which can be a significant risk factor",
      "type": "boolean"
    },
    "ContainsHtml": {
      "description": "True if the uploaded file contains HTML, which can be a significant risk factor",
      "type": "boolean"
    },
    "ContainsUnsafeArchive": {
      "description": "True if the uploaded file contains unsafe archive (e.g. zip) content, such as a Zip Bomb, or other configurations of a zip file that could lead to an unsafe extraction",
      "type": "boolean"
    },
    "ContainsOleEmbeddedObject": {
      "description": "True if the uploaded file contains an OLE embedded object, which can be a significant risk factor",
      "type": "boolean"
    },
    "ContainsUnwantedAction": {
      "description": "True if the uploaded file contains an unwanted automatic action, which can be a significant risk factor",
      "type": "boolean"
    },
    "VerifiedFileFormat": {
      "description": "For file format verification-supported file formats, the contents-verified file format of the file.  Null indicates that the file format is not supported for contents verification.  If a Virus or Malware is found, this field will always be set to Null.",
      "type": "string"
    },
    "FoundViruses": {
      "description": "Array of viruses found, if any",
      "type": "array",
      "items": {
        "$ref": "#/$defs/VirusFound"
      }
    },
    "ContentInformation": {
      "$ref": "#/$defs/AdditionalAdvancedScanInformation",
      "description": "Contains additional non-threat content verification information"
    }
  },
  "$defs": {
    "AdditionalAdvancedScanInformation": {
      "description": "Additional non-threat content verification information",
      "type": "object",
      "properties": {
        "ContainsJSON": {
          "description": "True if the input file contains JSON data, false otherwise; this is not a threat signal",
          "type": "boolean"
        },
        "ContainsXML": {
          "description": "True if the input file contains XML data, false otherwise; this is not a threat signal",
          "type": "boolean"
        },
        "ContainsImage": {
          "description": "True if the input file contains an image",
          "type": "boolean"
        },
        "Hash_SHA1": {
          "description": "SHA1 hash of input file",
          "type": "string"
        },
        "RelevantSubfileName": {
          "description": "Relevant subfile name in an archive format for identified threats, if any",
          "type": "string"
        },
        "RelevantSubfileHash_SHA1": {
          "description": "SHA1 hash of relevant subfile name in an archive format for identified threats, if any",
          "type": "string"
        },
        "IsAuthenticodeSigned": {
          "description": "True if there is a valid Authenticode signature, False otherwise",
          "type": "boolean"
        }
      }
    },
    "VirusFound": {
      "description": "Virus positively identified",
      "type": "object",
      "properties": {
        "FileName": {
          "description": "Name of the file containing the virus",
          "type": "string"
        },
        "VirusName": {
          "description": "Name of the virus that was found",
          "type": "string"
        }
      }
    }
  }
}