{
  "$schema" : "https://json-schema.org/draft/2020-12/schema",
  "type" : "object",
  "properties" : {
    "timestamp" : {
      "type" : "string",
      "format" : "date-time",
      "x-isAttributed" : false,
      "description" : "The timestamp when the event originally occurred"
    },
    "source_ip" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "The source IP address of the connection",
      "oneOf" : [ {
        "format" : "ipv4"
      }, {
        "format" : "ipv6"
      }, {
        "format" : "hostname"
      } ]
    },
    "asset" : {
      "type" : "string",
      "x-isAttributed" : true,
      "description" : "The honeypot asset name"
    },
    "honey_pot" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "The honeypot event source name"
    },
    "primary_account_of_asset" : {
      "type" : "string",
      "x-isAttributed" : true,
      "description" : "Account name of the primary account on the asset"
    },
    "protocol" : {
      "type" : "string",
      "enum" : [ "TCP", "UDP", "SCTP" ],
      "x-isAttributed" : false,
      "description" : "The protocol used for the connection (for example, TCP, UDP)"
    },
    "port" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "The port used for the connection",
      "pattern" : "\\d+"
    },
    "connection_type" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "Type of connection (for example, TCP_SYN_ONLY, FULL)"
    },
    "payload" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "Base64 encoded payload of the connection"
    },
    "source_json" : {
      "type" : "object",
      "x-isAttributed" : false,
      "description" : "The data that was received or collected by our collector or endpoint agent, formatted as JSON"
    },
    "source_data" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "The unparsed, original log line as received from the collector"
    },
    "custom_data" : {
      "type" : "object",
      "x-isAttributed" : false,
      "description" : "JSON string produced by applying one or more user-defined custom parsers to the original data"
    },
    "r7_context" : {
      "type" : "object",
      "properties" : {
        "account" : {
          "type" : "object",
          "properties" : {
            "name" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The name of the r7context resource"
            },
            "rrn" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The RRN (Rapid7 Resource Name) of the r7context resource",
              "pattern" : "rrn(_[^\\s:]+)?:[^\\s:]+:[^\\s:]*:[^\\s:]*(:[^\\s:]+)+"
            },
            "type" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The type of r7context field",
              "enum" : [ "account", "asset:account" ]
            }
          },
          "required" : [ "name", "rrn", "type" ],
          "x-isAttributed" : true
        },
        "asset" : {
          "type" : "object",
          "properties" : {
            "name" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The name of the r7context resource"
            },
            "rrn" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The RRN (Rapid7 Resource Name) of the r7context resource",
              "pattern" : "rrn(_[^\\s:]+)?:[^\\s:]+:[^\\s:]*:[^\\s:]*(:[^\\s:]+)+"
            },
            "type" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The type of r7context field",
              "const" : "asset"
            }
          },
          "required" : [ "name", "rrn", "type" ],
          "x-isAttributed" : true
        }
      },
      "x-isAttributed" : true,
      "description" : "R7_context includes attributed information related to the entry, with references to Rapid7-specific RRNs"
    },
    "entry_id" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "Unique Entry ID assigned to each document or log entry"
    }
  },
  "required" : [ "timestamp", "source_ip", "asset" ],
  "description" : "Connection to honeypot asset"
}