{
  "$id": "https://schemas.sand.binaryedge.io/minion/modules/smb",
  "title": "SMB Module Output Body",
  "type": "object",
  "properties": {
    "cpe": {
      "type": "array",
      "items": {
        "$comment": "The final CPE is malformed, and will appear in historical data.",
        "type": "string",
        "enum": [
          "cpe:/a:samba:samba",
          "cpe:/o:microsoft:windows_7",
          "cpe:/o:microsoft:windows_8",
          "cpe:/o:microsoft:windows_8.1",
          "cpe:/o:microsoft:windows_10",
          "cpe:/o:microsoft:windows_server_2008",
          "cpe:/o:microsoft:windows_server_2008:r2",
          "cpe:/o:microsoft:windows_server_2012",
          "cpe:/o:microsoft:windows_server_2012:r2",
          "cpe:/o:microsoft:windows_server_2016",
          "cpe:/o:microsoft:windows_vista",
          "cpe/o:microsoft:windows_server_2012:r2"
        ]
      }
    },
    "potential_os": {
      "type": "string"
    },
    "shares": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/share"
      }
    },
    "smb_dialects": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "1",
          "2.0.2",
          "2.1.0",
          "3.0.0",
          "3.0.2",
          "3.1.1"
        ]
      }
    }
  },
  "required": [
    "smb_dialects"
  ],
  "additionalProperties": false,
  "$defs": {
    "share": {
      "properties": {
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "description",
        "name",
        "type"
      ],
      "additionalProperties": false
    }
  }
}
