2017-08-05 18:17:15 +00:00
{
2017-09-13 12:09:48 +00:00
"id" : "safebrowsing:v4" ,
2017-10-22 08:07:36 +00:00
"documentationLink" : "https://developers.google.com/safe-browsing/" ,
2018-01-23 18:40:42 +00:00
"revision" : "20180116" ,
2017-09-13 12:09:48 +00:00
"title" : "Google Safe Browsing API" ,
"ownerName" : "Google" ,
2017-10-01 08:13:39 +00:00
"discoveryVersion" : "v1" ,
2017-08-05 18:17:15 +00:00
"resources" : {
2018-01-23 18:40:42 +00:00
"threatHits" : {
"methods" : {
"create" : {
"path" : "v4/threatHits" ,
"id" : "safebrowsing.threatHits.create" ,
"description" : "Reports a Safe Browsing threat list hit to Google. Only projects with\nTRUSTED_REPORTER visibility can use this method." ,
"request" : {
"$ref" : "ThreatHit"
} ,
"response" : {
"$ref" : "Empty"
} ,
"parameterOrder" : [ ] ,
"httpMethod" : "POST" ,
"parameters" : { } ,
"flatPath" : "v4/threatHits"
}
}
} ,
"encodedFullHashes" : {
"methods" : {
"get" : {
"path" : "v4/encodedFullHashes/{encodedRequest}" ,
"id" : "safebrowsing.encodedFullHashes.get" ,
"description" : "" ,
"response" : {
"$ref" : "FindFullHashesResponse"
} ,
"parameterOrder" : [
"encodedRequest"
] ,
"httpMethod" : "GET" ,
"parameters" : {
"encodedRequest" : {
"location" : "path" ,
"description" : "A serialized FindFullHashesRequest proto." ,
"format" : "byte" ,
"required" : true ,
"type" : "string"
} ,
"clientId" : {
"description" : "A client ID that (hopefully) uniquely identifies the client implementation\nof the Safe Browsing API." ,
"type" : "string" ,
"location" : "query"
} ,
"clientVersion" : {
"location" : "query" ,
"description" : "The version of the client implementation." ,
"type" : "string"
}
} ,
"flatPath" : "v4/encodedFullHashes/{encodedRequest}"
}
}
} ,
2017-12-03 20:01:25 +00:00
"threatLists" : {
"methods" : {
"list" : {
2018-01-23 18:40:42 +00:00
"parameters" : { } ,
"flatPath" : "v4/threatLists" ,
2017-12-03 20:01:25 +00:00
"path" : "v4/threatLists" ,
"id" : "safebrowsing.threatLists.list" ,
"description" : "Lists the Safe Browsing threat lists available for download." ,
"response" : {
"$ref" : "ListThreatListsResponse"
} ,
"parameterOrder" : [ ] ,
2018-01-23 18:40:42 +00:00
"httpMethod" : "GET"
2017-12-03 20:01:25 +00:00
}
}
} ,
"threatMatches" : {
"methods" : {
"find" : {
2018-01-23 18:40:42 +00:00
"parameters" : { } ,
"flatPath" : "v4/threatMatches:find" ,
2017-12-03 20:01:25 +00:00
"path" : "v4/threatMatches:find" ,
2018-01-23 18:40:42 +00:00
"id" : "safebrowsing.threatMatches.find" ,
2017-12-03 20:01:25 +00:00
"request" : {
"$ref" : "FindThreatMatchesRequest"
} ,
"description" : "Finds the threat entries that match the Safe Browsing lists." ,
"response" : {
"$ref" : "FindThreatMatchesResponse"
} ,
2018-01-23 18:40:42 +00:00
"parameterOrder" : [ ] ,
"httpMethod" : "POST"
2017-12-03 20:01:25 +00:00
}
}
} ,
2017-10-01 08:13:39 +00:00
"fullHashes" : {
2017-08-05 18:17:15 +00:00
"methods" : {
"find" : {
2017-09-21 15:48:45 +00:00
"request" : {
2017-10-01 08:13:39 +00:00
"$ref" : "FindFullHashesRequest"
2017-09-21 15:48:45 +00:00
} ,
2017-12-03 20:01:25 +00:00
"description" : "Finds the full hashes that match the requested hash prefixes." ,
2017-09-21 15:48:45 +00:00
"response" : {
"$ref" : "FindFullHashesResponse"
} ,
2017-10-22 08:07:36 +00:00
"parameterOrder" : [ ] ,
"httpMethod" : "POST" ,
2017-09-21 15:48:45 +00:00
"parameters" : { } ,
2017-10-22 08:07:36 +00:00
"flatPath" : "v4/fullHashes:find" ,
"path" : "v4/fullHashes:find" ,
"id" : "safebrowsing.fullHashes.find"
2017-08-05 18:17:15 +00:00
}
}
} ,
"encodedUpdates" : {
"methods" : {
"get" : {
"parameters" : {
2018-01-23 18:40:42 +00:00
"encodedRequest" : {
"description" : "A serialized FetchThreatListUpdatesRequest proto." ,
"format" : "byte" ,
"required" : true ,
"type" : "string" ,
"location" : "path"
} ,
2017-08-05 18:17:15 +00:00
"clientId" : {
"description" : "A client ID that uniquely identifies the client implementation of the Safe\nBrowsing API." ,
2018-01-23 18:40:42 +00:00
"type" : "string" ,
"location" : "query"
2017-08-05 18:17:15 +00:00
} ,
"clientVersion" : {
"description" : "The version of the client implementation." ,
2017-12-03 20:01:25 +00:00
"type" : "string" ,
"location" : "query"
2017-08-05 18:17:15 +00:00
}
2017-12-03 20:01:25 +00:00
} ,
"flatPath" : "v4/encodedUpdates/{encodedRequest}" ,
2018-01-23 18:40:42 +00:00
"path" : "v4/encodedUpdates/{encodedRequest}" ,
2017-12-03 20:01:25 +00:00
"id" : "safebrowsing.encodedUpdates.get" ,
2018-01-23 18:40:42 +00:00
"description" : "" ,
"response" : {
"$ref" : "FetchThreatListUpdatesResponse"
} ,
"parameterOrder" : [
"encodedRequest"
] ,
"httpMethod" : "GET"
2017-09-21 15:48:45 +00:00
}
}
} ,
"threatListUpdates" : {
"methods" : {
"fetch" : {
2018-01-23 18:40:42 +00:00
"id" : "safebrowsing.threatListUpdates.fetch" ,
"path" : "v4/threatListUpdates:fetch" ,
2017-12-03 20:01:25 +00:00
"request" : {
"$ref" : "FetchThreatListUpdatesRequest"
} ,
2018-01-23 18:40:42 +00:00
"description" : "Fetches the most recent threat list updates. A client can request updates\nfor multiple lists at once." ,
"httpMethod" : "POST" ,
"parameterOrder" : [ ] ,
2017-09-21 15:48:45 +00:00
"response" : {
"$ref" : "FetchThreatListUpdatesResponse"
} ,
"parameters" : { } ,
2018-01-23 18:40:42 +00:00
"flatPath" : "v4/threatListUpdates:fetch"
2017-10-01 08:13:39 +00:00
}
}
2017-08-05 18:17:15 +00:00
}
} ,
"parameters" : {
2018-01-23 18:40:42 +00:00
"key" : {
"location" : "query" ,
"description" : "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token." ,
"type" : "string"
} ,
2017-10-22 08:07:36 +00:00
"access_token" : {
2017-09-13 12:09:48 +00:00
"location" : "query" ,
2017-10-22 08:07:36 +00:00
"description" : "OAuth access token." ,
2017-10-01 08:13:39 +00:00
"type" : "string"
2017-08-05 18:17:15 +00:00
} ,
2017-09-21 15:48:45 +00:00
"quotaUser" : {
2018-01-23 18:40:42 +00:00
"location" : "query" ,
2017-10-01 08:13:39 +00:00
"description" : "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters." ,
2018-01-23 18:40:42 +00:00
"type" : "string"
2017-09-21 15:48:45 +00:00
} ,
"pp" : {
2017-10-01 08:13:39 +00:00
"description" : "Pretty-print response." ,
2017-10-22 08:07:36 +00:00
"type" : "boolean" ,
2017-10-01 08:13:39 +00:00
"default" : "true" ,
2017-10-22 08:07:36 +00:00
"location" : "query"
2017-10-01 08:13:39 +00:00
} ,
2017-12-03 20:01:25 +00:00
"oauth_token" : {
"description" : "OAuth 2.0 token for the current user." ,
2017-10-01 08:13:39 +00:00
"type" : "string" ,
"location" : "query"
} ,
2018-01-23 18:40:42 +00:00
"bearer_token" : {
"location" : "query" ,
"description" : "OAuth bearer token." ,
"type" : "string"
} ,
2017-10-01 08:13:39 +00:00
"upload_protocol" : {
2017-12-03 20:01:25 +00:00
"location" : "query" ,
2017-10-01 08:13:39 +00:00
"description" : "Upload protocol for media (e.g. \"raw\", \"multipart\")." ,
2017-12-03 20:01:25 +00:00
"type" : "string"
2017-09-21 15:48:45 +00:00
} ,
2017-10-01 08:13:39 +00:00
"prettyPrint" : {
2017-12-03 20:01:25 +00:00
"location" : "query" ,
2017-10-01 08:13:39 +00:00
"description" : "Returns response with indentations and line breaks." ,
"type" : "boolean" ,
2017-12-03 20:01:25 +00:00
"default" : "true"
} ,
2017-10-01 08:13:39 +00:00
"uploadType" : {
2017-10-22 08:07:36 +00:00
"location" : "query" ,
2017-10-01 08:13:39 +00:00
"description" : "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." ,
2017-10-22 08:07:36 +00:00
"type" : "string"
2017-10-01 08:13:39 +00:00
} ,
2018-01-23 18:40:42 +00:00
"fields" : {
2017-12-03 20:01:25 +00:00
"location" : "query" ,
2018-01-23 18:40:42 +00:00
"description" : "Selector specifying which fields to include in a partial response." ,
2017-12-03 20:01:25 +00:00
"type" : "string"
2017-10-22 08:07:36 +00:00
} ,
"$.xgafv" : {
2018-01-23 18:40:42 +00:00
"description" : "V1 error format." ,
"type" : "string" ,
2017-10-22 08:07:36 +00:00
"enumDescriptions" : [
"v1 error format" ,
"v2 error format"
] ,
"location" : "query" ,
"enum" : [
"1" ,
"2"
2018-01-23 18:40:42 +00:00
]
} ,
"callback" : {
"location" : "query" ,
"description" : "JSONP" ,
2017-10-22 08:07:36 +00:00
"type" : "string"
} ,
"alt" : {
2018-01-23 18:40:42 +00:00
"enum" : [
"json" ,
"media" ,
"proto"
] ,
2017-10-22 08:07:36 +00:00
"type" : "string" ,
"enumDescriptions" : [
"Responses with Content-Type of application/json" ,
"Media download with context-dependent Content-Type" ,
"Responses with Content-Type of application/x-protobuf"
] ,
"location" : "query" ,
"description" : "Data format for response." ,
2018-01-23 18:40:42 +00:00
"default" : "json"
2017-08-05 18:17:15 +00:00
}
} ,
"schemas" : {
2017-12-03 20:01:25 +00:00
"RawHashes" : {
2018-01-23 18:40:42 +00:00
"id" : "RawHashes" ,
2017-12-03 20:01:25 +00:00
"description" : "The uncompressed threat entries in hash format of a particular prefix length.\nHashes can be anywhere from 4 to 32 bytes in size. A large majority are 4\nbytes, but some hashes are lengthened if they collide with the hash of a\npopular URL.\n\nUsed for sending ThreatEntrySet to clients that do not support compression,\nor when sending non-4-byte hashes to clients that do support compression." ,
"type" : "object" ,
"properties" : {
"prefixSize" : {
"description" : "The number of bytes for each prefix encoded below. This field can be\nanywhere from 4 (shortest prefix) to 32 (full SHA256 hash)." ,
"format" : "int32" ,
"type" : "integer"
2018-01-23 18:40:42 +00:00
} ,
"rawHashes" : {
"description" : "The hashes, in binary format, concatenated into one long string. Hashes are\nsorted in lexicographic order. For JSON API users, hashes are\nbase64-encoded." ,
"format" : "byte" ,
"type" : "string"
2017-10-22 08:07:36 +00:00
}
2018-01-23 18:40:42 +00:00
}
2017-10-22 08:07:36 +00:00
} ,
2018-01-23 18:40:42 +00:00
"Empty" : {
"id" : "Empty" ,
"description" : "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`." ,
"type" : "object" ,
"properties" : { }
} ,
"FindFullHashesRequest" : {
"id" : "FindFullHashesRequest" ,
"description" : "Request to return full hashes matched by the provided hash prefixes." ,
2017-10-22 08:07:36 +00:00
"type" : "object" ,
"properties" : {
2018-01-23 18:40:42 +00:00
"apiClient" : {
"description" : "Client metadata associated with callers of higher-level APIs built on top\nof the client's implementation." ,
"$ref" : "ClientInfo"
} ,
"clientStates" : {
"description" : "The current client states for each of the client's local threat lists." ,
2017-10-22 08:07:36 +00:00
"type" : "array" ,
"items" : {
2018-01-23 18:40:42 +00:00
"format" : "byte" ,
"type" : "string"
2017-12-03 20:01:25 +00:00
}
2017-10-22 08:07:36 +00:00
} ,
2018-01-23 18:40:42 +00:00
"client" : {
"$ref" : "ClientInfo" ,
"description" : "The client metadata."
} ,
"threatInfo" : {
"$ref" : "ThreatInfo" ,
"description" : "The lists and hashes to be checked."
2017-12-03 20:01:25 +00:00
}
2018-01-23 18:40:42 +00:00
}
2017-12-03 20:01:25 +00:00
} ,
2018-01-23 18:40:42 +00:00
"FetchThreatListUpdatesRequest" : {
"id" : "FetchThreatListUpdatesRequest" ,
"description" : "Describes a Safe Browsing API update request. Clients can request updates for\nmultiple lists in a single request.\nNOTE: Field index 2 is unused.\nNEXT: 5" ,
2017-12-03 20:01:25 +00:00
"type" : "object" ,
"properties" : {
2018-01-23 18:40:42 +00:00
"listUpdateRequests" : {
"description" : "The requested threat list updates." ,
2017-10-22 08:07:36 +00:00
"type" : "array" ,
"items" : {
2018-01-23 18:40:42 +00:00
"$ref" : "ListUpdateRequest"
2017-10-22 08:07:36 +00:00
}
} ,
2017-12-03 20:01:25 +00:00
"client" : {
"description" : "The client metadata." ,
"$ref" : "ClientInfo"
}
2018-01-23 18:40:42 +00:00
}
2017-12-03 20:01:25 +00:00
} ,
2018-01-23 18:40:42 +00:00
"ListUpdateResponse" : {
"id" : "ListUpdateResponse" ,
"description" : "An update to an individual list." ,
"type" : "object" ,
2017-12-03 20:01:25 +00:00
"properties" : {
2017-10-01 08:13:39 +00:00
"threatEntryType" : {
"enumDescriptions" : [
"Unspecified." ,
"A URL." ,
"An executable program." ,
"An IP range." ,
"Chrome extension." ,
"Filename." ,
"CERT"
] ,
"enum" : [
"THREAT_ENTRY_TYPE_UNSPECIFIED" ,
"URL" ,
"EXECUTABLE" ,
"IP_RANGE" ,
"CHROME_EXTENSION" ,
"FILENAME" ,
"CERT"
2017-10-22 08:07:36 +00:00
] ,
2018-01-23 18:40:42 +00:00
"description" : "The format of the threats." ,
2017-08-05 18:17:15 +00:00
"type" : "string"
2017-10-22 08:07:36 +00:00
} ,
2018-01-23 18:40:42 +00:00
"additions" : {
"description" : "A set of entries to add to a local threat type's list. Repeated to allow\nfor a combination of compressed and raw data to be sent in a single\nresponse." ,
"type" : "array" ,
"items" : {
"$ref" : "ThreatEntrySet"
}
2017-10-22 08:07:36 +00:00
} ,
2018-01-23 18:40:42 +00:00
"checksum" : {
"description" : "The expected SHA256 hash of the client state; that is, of the sorted list\nof all hashes present in the database after applying the provided update.\nIf the client state doesn't match the expected state, the client must\ndisregard this update and retry later." ,
"$ref" : "Checksum"
} ,
"responseType" : {
"description" : "The type of response. This may indicate that an action is required by the\nclient when the response is received." ,
2017-12-03 20:01:25 +00:00
"type" : "string" ,
"enumDescriptions" : [
2018-01-23 18:40:42 +00:00
"Unknown." ,
"Partial updates are applied to the client's existing local database." ,
"Full updates replace the client's entire local database. This means\nthat either the client was seriously out-of-date or the client is\nbelieved to be corrupt."
] ,
"enum" : [
"RESPONSE_TYPE_UNSPECIFIED" ,
"PARTIAL_UPDATE" ,
"FULL_UPDATE"
2017-12-03 20:01:25 +00:00
]
2017-10-01 08:13:39 +00:00
} ,
2017-09-21 15:48:45 +00:00
"threatType" : {
2017-10-01 08:13:39 +00:00
"enumDescriptions" : [
"Unknown." ,
"Malware threat type." ,
"Social engineering threat type." ,
"Unwanted software threat type." ,
"Potentially harmful application threat type." ,
"Social engineering threat type for internal use." ,
"API abuse threat type." ,
"Malicious binary threat type." ,
"Client side detection whitelist threat type." ,
"Client side download detection whitelist threat type." ,
"Client incident threat type." ,
"Whitelist used when detecting client incident threats.\nThis enum was never launched and should be re-used for the next list." ,
"List used for offline APK checks in PAM." ,
"Patterns to be used for activating the subresource filter. Interstitial\nwill not be shown for patterns from this list."
] ,
2017-09-21 15:48:45 +00:00
"enum" : [
"THREAT_TYPE_UNSPECIFIED" ,
"MALWARE" ,
"SOCIAL_ENGINEERING" ,
"UNWANTED_SOFTWARE" ,
"POTENTIALLY_HARMFUL_APPLICATION" ,
"SOCIAL_ENGINEERING_INTERNAL" ,
"API_ABUSE" ,
"MALICIOUS_BINARY" ,
"CSD_WHITELIST" ,
"CSD_DOWNLOAD_WHITELIST" ,
"CLIENT_INCIDENT" ,
"CLIENT_INCIDENT_WHITELIST" ,
"APK_MALWARE_OFFLINE" ,
"SUBRESOURCE_FILTER"
2017-12-03 20:01:25 +00:00
] ,
2018-01-23 18:40:42 +00:00
"description" : "The threat type for which data is returned." ,
2017-12-03 20:01:25 +00:00
"type" : "string"
2017-10-01 08:13:39 +00:00
} ,
2018-01-23 18:40:42 +00:00
"removals" : {
"description" : "A set of entries to remove from a local threat type's list. In practice,\nthis field is empty or contains exactly one ThreatEntrySet." ,
2017-12-03 20:01:25 +00:00
"type" : "array" ,
"items" : {
2018-01-23 18:40:42 +00:00
"$ref" : "ThreatEntrySet"
2017-12-03 20:01:25 +00:00
}
2017-10-22 08:07:36 +00:00
} ,
2018-01-23 18:40:42 +00:00
"newClientState" : {
"description" : "The new client state, in encrypted format. Opaque to clients." ,
"format" : "byte" ,
"type" : "string"
} ,
2017-10-22 08:07:36 +00:00
"platformType" : {
2018-01-23 18:40:42 +00:00
"enumDescriptions" : [
"Unknown platform." ,
"Threat posed to Windows." ,
"Threat posed to Linux." ,
"Threat posed to Android." ,
"Threat posed to OS X." ,
"Threat posed to iOS." ,
"Threat posed to at least one of the defined platforms." ,
"Threat posed to all defined platforms." ,
"Threat posed to Chrome."
] ,
2017-10-22 08:07:36 +00:00
"enum" : [
"PLATFORM_TYPE_UNSPECIFIED" ,
"WINDOWS" ,
"LINUX" ,
"ANDROID" ,
"OSX" ,
"IOS" ,
"ANY_PLATFORM" ,
"ALL_PLATFORMS" ,
"CHROME"
] ,
2017-12-03 20:01:25 +00:00
"description" : "The platform type for which data is returned." ,
2018-01-23 18:40:42 +00:00
"type" : "string"
}
}
} ,
"ThreatMatch" : {
"description" : "A match when checking a threat entry in the Safe Browsing threat lists." ,
"type" : "object" ,
"properties" : {
"threat" : {
"$ref" : "ThreatEntry" ,
"description" : "The threat matching this threat."
} ,
"platformType" : {
"description" : "The platform type matching this threat." ,
2017-10-22 08:07:36 +00:00
"type" : "string" ,
"enumDescriptions" : [
"Unknown platform." ,
"Threat posed to Windows." ,
"Threat posed to Linux." ,
"Threat posed to Android." ,
"Threat posed to OS X." ,
"Threat posed to iOS." ,
"Threat posed to at least one of the defined platforms." ,
"Threat posed to all defined platforms." ,
"Threat posed to Chrome."
2018-01-23 18:40:42 +00:00
] ,
"enum" : [
"PLATFORM_TYPE_UNSPECIFIED" ,
"WINDOWS" ,
"LINUX" ,
"ANDROID" ,
"OSX" ,
"IOS" ,
"ANY_PLATFORM" ,
"ALL_PLATFORMS" ,
"CHROME"
2017-10-22 08:07:36 +00:00
]
} ,
"threatEntryType" : {
2018-01-23 18:40:42 +00:00
"description" : "The threat entry type matching this threat." ,
2017-10-22 08:07:36 +00:00
"type" : "string" ,
"enumDescriptions" : [
"Unspecified." ,
"A URL." ,
"An executable program." ,
"An IP range." ,
"Chrome extension." ,
"Filename." ,
"CERT"
2017-10-01 08:13:39 +00:00
] ,
2017-09-21 15:48:45 +00:00
"enum" : [
2018-01-23 18:40:42 +00:00
"THREAT_ENTRY_TYPE_UNSPECIFIED" ,
"URL" ,
"EXECUTABLE" ,
"IP_RANGE" ,
"CHROME_EXTENSION" ,
"FILENAME" ,
"CERT"
2017-10-22 08:07:36 +00:00
]
2017-10-01 08:13:39 +00:00
} ,
2018-01-23 18:40:42 +00:00
"cacheDuration" : {
"description" : "The cache lifetime for the returned match. Clients must not cache this\nresponse for more than this duration to avoid false positives." ,
"format" : "google-duration" ,
"type" : "string"
} ,
2017-10-01 08:13:39 +00:00
"threatType" : {
2017-09-21 15:48:45 +00:00
"enumDescriptions" : [
2017-10-01 08:13:39 +00:00
"Unknown." ,
"Malware threat type." ,
"Social engineering threat type." ,
"Unwanted software threat type." ,
"Potentially harmful application threat type." ,
"Social engineering threat type for internal use." ,
"API abuse threat type." ,
"Malicious binary threat type." ,
"Client side detection whitelist threat type." ,
"Client side download detection whitelist threat type." ,
"Client incident threat type." ,
"Whitelist used when detecting client incident threats.\nThis enum was never launched and should be re-used for the next list." ,
"List used for offline APK checks in PAM." ,
"Patterns to be used for activating the subresource filter. Interstitial\nwill not be shown for patterns from this list."
] ,
"enum" : [
"THREAT_TYPE_UNSPECIFIED" ,
"MALWARE" ,
"SOCIAL_ENGINEERING" ,
"UNWANTED_SOFTWARE" ,
"POTENTIALLY_HARMFUL_APPLICATION" ,
"SOCIAL_ENGINEERING_INTERNAL" ,
"API_ABUSE" ,
"MALICIOUS_BINARY" ,
"CSD_WHITELIST" ,
"CSD_DOWNLOAD_WHITELIST" ,
"CLIENT_INCIDENT" ,
"CLIENT_INCIDENT_WHITELIST" ,
"APK_MALWARE_OFFLINE" ,
"SUBRESOURCE_FILTER"
2017-10-22 08:07:36 +00:00
] ,
2018-01-23 18:40:42 +00:00
"description" : "The threat type matching this threat." ,
2017-09-21 15:48:45 +00:00
"type" : "string"
} ,
2018-01-23 18:40:42 +00:00
"threatEntryMetadata" : {
"$ref" : "ThreatEntryMetadata" ,
"description" : "Optional metadata associated with this threat."
}
} ,
"id" : "ThreatMatch"
} ,
"ThreatEntry" : {
"id" : "ThreatEntry" ,
"description" : "An individual threat; for example, a malicious URL or its hash\nrepresentation. Only one of these fields should be set." ,
"type" : "object" ,
"properties" : {
"url" : {
"description" : "A URL." ,
"type" : "string"
2017-12-03 20:01:25 +00:00
} ,
2018-01-23 18:40:42 +00:00
"digest" : {
"description" : "The digest of an executable in SHA256 format. The API supports both\nbinary and hex digests. For JSON requests, digests are base64-encoded." ,
"format" : "byte" ,
"type" : "string"
} ,
"hash" : {
"description" : "A hash prefix, consisting of the most significant 4-32 bytes of a SHA256\nhash. This field is in binary format. For JSON requests, hashes are\nbase64-encoded." ,
2017-09-21 15:48:45 +00:00
"format" : "byte" ,
"type" : "string"
}
2018-01-23 18:40:42 +00:00
}
} ,
"MetadataEntry" : {
"id" : "MetadataEntry" ,
"description" : "A single metadata entry." ,
"type" : "object" ,
"properties" : {
"key" : {
"description" : "The metadata entry key. For JSON requests, the key is base64-encoded." ,
"format" : "byte" ,
"type" : "string"
} ,
"value" : {
"description" : "The metadata entry value. For JSON requests, the value is base64-encoded." ,
"format" : "byte" ,
"type" : "string"
}
}
} ,
"FindThreatMatchesRequest" : {
"id" : "FindThreatMatchesRequest" ,
"description" : "Request to check entries against lists." ,
"type" : "object" ,
"properties" : {
"client" : {
"$ref" : "ClientInfo" ,
"description" : "The client metadata."
} ,
"threatInfo" : {
"$ref" : "ThreatInfo" ,
"description" : "The lists and entries to be checked for matches."
}
}
} ,
"RawIndices" : {
"description" : "A set of raw indices to remove from a local list." ,
"type" : "object" ,
"properties" : {
"indices" : {
"description" : "The indices to remove from a lexicographically-sorted local list." ,
"type" : "array" ,
"items" : {
"format" : "int32" ,
"type" : "integer"
}
}
2017-10-22 08:07:36 +00:00
} ,
2018-01-23 18:40:42 +00:00
"id" : "RawIndices"
2017-09-21 15:48:45 +00:00
} ,
2018-01-23 18:40:42 +00:00
"ThreatSource" : {
"id" : "ThreatSource" ,
"description" : "A single resource related to a threat hit." ,
2017-09-21 15:48:45 +00:00
"type" : "object" ,
"properties" : {
2018-01-23 18:40:42 +00:00
"url" : {
"description" : "The URL of the resource." ,
"type" : "string"
2017-10-01 08:13:39 +00:00
} ,
2018-01-23 18:40:42 +00:00
"remoteIp" : {
"description" : "The remote IP of the resource in ASCII format. Either IPv4 or IPv6." ,
2017-10-01 08:13:39 +00:00
"type" : "string"
2017-12-03 20:01:25 +00:00
} ,
2018-01-23 18:40:42 +00:00
"referrer" : {
"description" : "Referrer of the resource. Only set if the referrer is available." ,
"type" : "string"
} ,
"type" : {
"description" : "The type of source reported." ,
"type" : "string" ,
2017-12-03 20:01:25 +00:00
"enumDescriptions" : [
"Unknown." ,
2018-01-23 18:40:42 +00:00
"The URL that matched the threat list (for which GetFullHash returned a\nvalid hash)." ,
"The final top-level URL of the tab that the client was browsing when the\nmatch occurred." ,
"A redirect URL that was fetched before hitting the final TAB_URL." ,
"A resource loaded within the final TAB_URL."
2017-12-03 20:01:25 +00:00
] ,
2018-01-23 18:40:42 +00:00
"enum" : [
"THREAT_SOURCE_TYPE_UNSPECIFIED" ,
"MATCHING_URL" ,
"TAB_URL" ,
"TAB_REDIRECT" ,
"TAB_RESOURCE"
]
}
}
} ,
"UserInfo" : {
"description" : "Details about the user that encountered the threat." ,
"type" : "object" ,
"properties" : {
"userId" : {
"description" : "Unique user identifier defined by the client." ,
"format" : "byte" ,
"type" : "string"
} ,
"regionCode" : {
"description" : "The UN M.49 region code associated with the user's location." ,
"type" : "string"
}
} ,
"id" : "UserInfo"
} ,
"FetchThreatListUpdatesResponse" : {
"type" : "object" ,
"properties" : {
"listUpdateResponses" : {
"description" : "The list updates requested by the clients." ,
2017-10-22 08:07:36 +00:00
"type" : "array" ,
2017-09-21 15:48:45 +00:00
"items" : {
2018-01-23 18:40:42 +00:00
"$ref" : "ListUpdateResponse"
2017-12-03 20:01:25 +00:00
}
2017-08-05 18:17:15 +00:00
} ,
2018-01-23 18:40:42 +00:00
"minimumWaitDuration" : {
"description" : "The minimum duration the client must wait before issuing any update\nrequest. If this field is not set clients may update as soon as they want." ,
"format" : "google-duration" ,
"type" : "string"
2017-12-03 20:01:25 +00:00
}
} ,
2018-01-23 18:40:42 +00:00
"id" : "FetchThreatListUpdatesResponse"
2017-12-03 20:01:25 +00:00
} ,
2018-01-23 18:40:42 +00:00
"Checksum" : {
"description" : "The expected state of a client's local database." ,
2017-12-03 20:01:25 +00:00
"type" : "object" ,
"properties" : {
2018-01-23 18:40:42 +00:00
"sha256" : {
"description" : "The SHA256 hash of the client state; that is, of the sorted list of all\nhashes present in the database." ,
"format" : "byte" ,
"type" : "string"
}
} ,
"id" : "Checksum"
} ,
"FindFullHashesResponse" : {
"id" : "FindFullHashesResponse" ,
"type" : "object" ,
"properties" : {
"negativeCacheDuration" : {
"description" : "For requested entities that did not match the threat list, how long to\ncache the response." ,
2017-12-03 20:01:25 +00:00
"format" : "google-duration" ,
"type" : "string"
} ,
2018-01-23 18:40:42 +00:00
"minimumWaitDuration" : {
"description" : "The minimum duration the client must wait before issuing any find hashes\nrequest. If this field is not set, clients can issue a request as soon as\nthey want." ,
"format" : "google-duration" ,
"type" : "string"
} ,
"matches" : {
"description" : "The full hashes that matched the requested prefixes." ,
"type" : "array" ,
"items" : {
"$ref" : "ThreatMatch"
}
}
}
} ,
"ThreatHit" : {
"type" : "object" ,
"properties" : {
2017-12-03 20:01:25 +00:00
"threatType" : {
2018-01-23 18:40:42 +00:00
"description" : "The threat type reported." ,
"type" : "string" ,
2017-10-22 08:07:36 +00:00
"enumDescriptions" : [
"Unknown." ,
"Malware threat type." ,
"Social engineering threat type." ,
"Unwanted software threat type." ,
"Potentially harmful application threat type." ,
"Social engineering threat type for internal use." ,
"API abuse threat type." ,
"Malicious binary threat type." ,
"Client side detection whitelist threat type." ,
"Client side download detection whitelist threat type." ,
"Client incident threat type." ,
"Whitelist used when detecting client incident threats.\nThis enum was never launched and should be re-used for the next list." ,
"List used for offline APK checks in PAM." ,
"Patterns to be used for activating the subresource filter. Interstitial\nwill not be shown for patterns from this list."
2017-12-03 20:01:25 +00:00
] ,
"enum" : [
"THREAT_TYPE_UNSPECIFIED" ,
"MALWARE" ,
"SOCIAL_ENGINEERING" ,
"UNWANTED_SOFTWARE" ,
"POTENTIALLY_HARMFUL_APPLICATION" ,
"SOCIAL_ENGINEERING_INTERNAL" ,
"API_ABUSE" ,
"MALICIOUS_BINARY" ,
"CSD_WHITELIST" ,
"CSD_DOWNLOAD_WHITELIST" ,
"CLIENT_INCIDENT" ,
"CLIENT_INCIDENT_WHITELIST" ,
"APK_MALWARE_OFFLINE" ,
"SUBRESOURCE_FILTER"
2018-01-23 18:40:42 +00:00
]
2017-08-05 18:17:15 +00:00
} ,
2018-01-23 18:40:42 +00:00
"resources" : {
"description" : "The resources related to the threat hit." ,
"type" : "array" ,
"items" : {
"$ref" : "ThreatSource"
}
2017-12-03 20:01:25 +00:00
} ,
2018-01-23 18:40:42 +00:00
"entry" : {
"description" : "The threat entry responsible for the hit. Full hash should be reported for\nhash-based hits." ,
2017-12-03 20:01:25 +00:00
"$ref" : "ThreatEntry"
} ,
"platformType" : {
2018-01-23 18:40:42 +00:00
"description" : "The platform type reported." ,
"type" : "string" ,
2017-10-22 08:07:36 +00:00
"enumDescriptions" : [
"Unknown platform." ,
"Threat posed to Windows." ,
"Threat posed to Linux." ,
"Threat posed to Android." ,
"Threat posed to OS X." ,
"Threat posed to iOS." ,
"Threat posed to at least one of the defined platforms." ,
"Threat posed to all defined platforms." ,
"Threat posed to Chrome."
] ,
2017-12-03 20:01:25 +00:00
"enum" : [
"PLATFORM_TYPE_UNSPECIFIED" ,
"WINDOWS" ,
"LINUX" ,
"ANDROID" ,
"OSX" ,
"IOS" ,
"ANY_PLATFORM" ,
"ALL_PLATFORMS" ,
"CHROME"
2018-01-23 18:40:42 +00:00
]
} ,
"userInfo" : {
"description" : "Details about the user that encountered the threat." ,
"$ref" : "UserInfo"
} ,
"clientInfo" : {
"$ref" : "ClientInfo" ,
"description" : "Client-reported identification."
}
} ,
"id" : "ThreatHit"
} ,
"ThreatEntrySet" : {
"description" : "A set of threats that should be added or removed from a client's local\ndatabase." ,
"type" : "object" ,
"properties" : {
"compressionType" : {
"enumDescriptions" : [
"Unknown." ,
"Raw, uncompressed data." ,
"Rice-Golomb encoded data."
2017-12-03 20:01:25 +00:00
] ,
2018-01-23 18:40:42 +00:00
"enum" : [
"COMPRESSION_TYPE_UNSPECIFIED" ,
"RAW" ,
"RICE"
] ,
"description" : "The compression type for the entries in this set." ,
2017-12-03 20:01:25 +00:00
"type" : "string"
2017-10-22 08:07:36 +00:00
} ,
2018-01-23 18:40:42 +00:00
"riceIndices" : {
"description" : "The encoded local, lexicographically-sorted list indices, using a\nGolomb-Rice encoding. Used for sending compressed removal indices. The\nremoval indices (uint32) are sorted in ascending order, then delta encoded\nand stored as encoded_data." ,
"$ref" : "RiceDeltaEncoding"
} ,
"rawIndices" : {
"description" : "The raw removal indices for a local list." ,
"$ref" : "RawIndices"
} ,
"rawHashes" : {
"description" : "The raw SHA256-formatted entries." ,
"$ref" : "RawHashes"
} ,
"riceHashes" : {
"description" : "The encoded 4-byte prefixes of SHA256-formatted entries, using a\nGolomb-Rice encoding. The hashes are converted to uint32, sorted in\nascending order, then delta encoded and stored as encoded_data." ,
"$ref" : "RiceDeltaEncoding"
}
} ,
"id" : "ThreatEntrySet"
} ,
"ListUpdateRequest" : {
"description" : "A single list update request." ,
"type" : "object" ,
"properties" : {
"platformType" : {
"enumDescriptions" : [
"Unknown platform." ,
"Threat posed to Windows." ,
"Threat posed to Linux." ,
"Threat posed to Android." ,
"Threat posed to OS X." ,
"Threat posed to iOS." ,
"Threat posed to at least one of the defined platforms." ,
"Threat posed to all defined platforms." ,
"Threat posed to Chrome."
] ,
2017-12-03 20:01:25 +00:00
"enum" : [
2018-01-23 18:40:42 +00:00
"PLATFORM_TYPE_UNSPECIFIED" ,
"WINDOWS" ,
"LINUX" ,
"ANDROID" ,
"OSX" ,
"IOS" ,
"ANY_PLATFORM" ,
"ALL_PLATFORMS" ,
"CHROME"
2017-12-03 20:01:25 +00:00
] ,
2018-01-23 18:40:42 +00:00
"description" : "The type of platform at risk by entries present in the list." ,
"type" : "string"
} ,
"threatType" : {
"description" : "The type of threat posed by entries present in the list." ,
2017-12-03 20:01:25 +00:00
"type" : "string" ,
2018-01-23 18:40:42 +00:00
"enumDescriptions" : [
"Unknown." ,
"Malware threat type." ,
"Social engineering threat type." ,
"Unwanted software threat type." ,
"Potentially harmful application threat type." ,
"Social engineering threat type for internal use." ,
"API abuse threat type." ,
"Malicious binary threat type." ,
"Client side detection whitelist threat type." ,
"Client side download detection whitelist threat type." ,
"Client incident threat type." ,
"Whitelist used when detecting client incident threats.\nThis enum was never launched and should be re-used for the next list." ,
"List used for offline APK checks in PAM." ,
"Patterns to be used for activating the subresource filter. Interstitial\nwill not be shown for patterns from this list."
] ,
"enum" : [
"THREAT_TYPE_UNSPECIFIED" ,
"MALWARE" ,
"SOCIAL_ENGINEERING" ,
"UNWANTED_SOFTWARE" ,
"POTENTIALLY_HARMFUL_APPLICATION" ,
"SOCIAL_ENGINEERING_INTERNAL" ,
"API_ABUSE" ,
"MALICIOUS_BINARY" ,
"CSD_WHITELIST" ,
"CSD_DOWNLOAD_WHITELIST" ,
"CLIENT_INCIDENT" ,
"CLIENT_INCIDENT_WHITELIST" ,
"APK_MALWARE_OFFLINE" ,
"SUBRESOURCE_FILTER"
]
} ,
"constraints" : {
"description" : "The constraints associated with this request." ,
"$ref" : "Constraints"
} ,
"threatEntryType" : {
2017-12-03 20:01:25 +00:00
"enumDescriptions" : [
"Unspecified." ,
"A URL." ,
"An executable program." ,
"An IP range." ,
"Chrome extension." ,
"Filename." ,
"CERT"
2018-01-23 18:40:42 +00:00
] ,
"enum" : [
"THREAT_ENTRY_TYPE_UNSPECIFIED" ,
"URL" ,
"EXECUTABLE" ,
"IP_RANGE" ,
"CHROME_EXTENSION" ,
"FILENAME" ,
"CERT"
] ,
"description" : "The types of entries present in the list." ,
"type" : "string"
} ,
"state" : {
"description" : "The current state of the client for the requested list (the encrypted\nclient state that was received from the last successful list update)." ,
"format" : "byte" ,
"type" : "string"
}
} ,
"id" : "ListUpdateRequest"
} ,
"Constraints" : {
"id" : "Constraints" ,
"description" : "The constraints for this update." ,
"type" : "object" ,
"properties" : {
"maxUpdateEntries" : {
"description" : "The maximum size in number of entries. The update will not contain more\nentries than this value. This should be a power of 2 between 2**10 and\n2**20. If zero, no update size limit is set." ,
"format" : "int32" ,
"type" : "integer"
} ,
"maxDatabaseEntries" : {
"description" : "Sets the maximum number of entries that the client is willing to have\nin the local database. This should be a power of 2 between 2**10 and\n2**20. If zero, no database size limit is set." ,
"format" : "int32" ,
"type" : "integer"
} ,
"region" : {
"description" : "Requests the list for a specific geographic location. If not set the\nserver may pick that value based on the user's IP address. Expects ISO\n3166-1 alpha-2 format." ,
"type" : "string"
} ,
"supportedCompressions" : {
"description" : "The compression types supported by the client." ,
"type" : "array" ,
"items" : {
"enum" : [
"COMPRESSION_TYPE_UNSPECIFIED" ,
"RAW" ,
"RICE"
] ,
"type" : "string"
} ,
"enumDescriptions" : [
"Unknown." ,
"Raw, uncompressed data." ,
"Rice-Golomb encoded data."
2017-12-03 20:01:25 +00:00
]
2017-10-22 08:07:36 +00:00
}
2018-01-23 18:40:42 +00:00
}
2017-08-05 18:17:15 +00:00
} ,
2017-12-03 20:01:25 +00:00
"ListThreatListsResponse" : {
2018-01-23 18:40:42 +00:00
"id" : "ListThreatListsResponse" ,
2017-08-05 18:17:15 +00:00
"type" : "object" ,
"properties" : {
2017-12-03 20:01:25 +00:00
"threatLists" : {
"description" : "The lists available for download by the client." ,
2017-10-22 08:07:36 +00:00
"type" : "array" ,
2017-08-05 18:17:15 +00:00
"items" : {
2017-12-03 20:01:25 +00:00
"$ref" : "ThreatListDescriptor"
2017-10-22 08:07:36 +00:00
}
2017-08-05 18:17:15 +00:00
}
2018-01-23 18:40:42 +00:00
}
2017-08-05 18:17:15 +00:00
} ,
2017-12-03 20:01:25 +00:00
"RiceDeltaEncoding" : {
"id" : "RiceDeltaEncoding" ,
"description" : "The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or\ncompressed removal indices." ,
2017-08-05 18:17:15 +00:00
"type" : "object" ,
"properties" : {
2017-12-03 20:01:25 +00:00
"riceParameter" : {
"description" : "The Golomb-Rice parameter, which is a number between 2 and 28. This field\nis missing (that is, zero) if `num_entries` is zero." ,
2017-10-22 08:07:36 +00:00
"format" : "int32" ,
2017-09-21 15:48:45 +00:00
"type" : "integer"
2017-10-22 08:07:36 +00:00
} ,
2017-12-03 20:01:25 +00:00
"firstValue" : {
"description" : "The offset of the first entry in the encoded data, or, if only a single\ninteger was encoded, that single integer's value." ,
"format" : "int64" ,
2017-10-22 08:07:36 +00:00
"type" : "string"
2017-12-03 20:01:25 +00:00
} ,
"encodedData" : {
"description" : "The encoded deltas that are encoded using the Golomb-Rice coder." ,
2017-10-22 08:07:36 +00:00
"format" : "byte" ,
2017-10-01 08:13:39 +00:00
"type" : "string"
2017-08-05 18:17:15 +00:00
} ,
2017-12-03 20:01:25 +00:00
"numEntries" : {
"description" : "The number of entries that are delta encoded in the encoded data. If only a\nsingle integer was encoded, this will be zero and the single value will be\nstored in `first_value`." ,
2018-01-23 18:40:42 +00:00
"format" : "int32" ,
"type" : "integer"
2017-08-05 18:17:15 +00:00
}
2017-12-03 20:01:25 +00:00
}
} ,
"FindThreatMatchesResponse" : {
2017-08-05 18:17:15 +00:00
"type" : "object" ,
"properties" : {
2017-12-03 20:01:25 +00:00
"matches" : {
"description" : "The threat list matches." ,
2017-10-22 08:07:36 +00:00
"type" : "array" ,
2017-08-05 18:17:15 +00:00
"items" : {
2017-12-03 20:01:25 +00:00
"$ref" : "ThreatMatch"
}
2017-08-05 18:17:15 +00:00
}
2017-12-03 20:01:25 +00:00
} ,
"id" : "FindThreatMatchesResponse"
2017-08-05 18:17:15 +00:00
} ,
2017-12-03 20:01:25 +00:00
"ThreatListDescriptor" : {
2018-01-23 18:40:42 +00:00
"description" : "Describes an individual threat list. A list is defined by three parameters:\nthe type of threat posed, the type of platform targeted by the threat, and\nthe type of entries in the list." ,
2017-09-21 15:48:45 +00:00
"type" : "object" ,
2017-08-05 18:17:15 +00:00
"properties" : {
2018-01-23 18:40:42 +00:00
"platformType" : {
"enumDescriptions" : [
"Unknown platform." ,
"Threat posed to Windows." ,
"Threat posed to Linux." ,
"Threat posed to Android." ,
"Threat posed to OS X." ,
"Threat posed to iOS." ,
"Threat posed to at least one of the defined platforms." ,
"Threat posed to all defined platforms." ,
"Threat posed to Chrome."
] ,
"enum" : [
"PLATFORM_TYPE_UNSPECIFIED" ,
"WINDOWS" ,
"LINUX" ,
"ANDROID" ,
"OSX" ,
"IOS" ,
"ANY_PLATFORM" ,
"ALL_PLATFORMS" ,
"CHROME"
] ,
"description" : "The platform type targeted by the list's entries." ,
"type" : "string"
} ,
2017-12-03 20:01:25 +00:00
"threatType" : {
2018-01-23 18:40:42 +00:00
"description" : "The threat type posed by the list's entries." ,
"type" : "string" ,
2017-12-03 20:01:25 +00:00
"enumDescriptions" : [
"Unknown." ,
"Malware threat type." ,
"Social engineering threat type." ,
"Unwanted software threat type." ,
"Potentially harmful application threat type." ,
"Social engineering threat type for internal use." ,
"API abuse threat type." ,
"Malicious binary threat type." ,
"Client side detection whitelist threat type." ,
"Client side download detection whitelist threat type." ,
"Client incident threat type." ,
"Whitelist used when detecting client incident threats.\nThis enum was never launched and should be re-used for the next list." ,
"List used for offline APK checks in PAM." ,
"Patterns to be used for activating the subresource filter. Interstitial\nwill not be shown for patterns from this list."
] ,
"enum" : [
"THREAT_TYPE_UNSPECIFIED" ,
"MALWARE" ,
"SOCIAL_ENGINEERING" ,
"UNWANTED_SOFTWARE" ,
"POTENTIALLY_HARMFUL_APPLICATION" ,
"SOCIAL_ENGINEERING_INTERNAL" ,
"API_ABUSE" ,
"MALICIOUS_BINARY" ,
"CSD_WHITELIST" ,
"CSD_DOWNLOAD_WHITELIST" ,
"CLIENT_INCIDENT" ,
"CLIENT_INCIDENT_WHITELIST" ,
"APK_MALWARE_OFFLINE" ,
"SUBRESOURCE_FILTER"
2018-01-23 18:40:42 +00:00
]
2017-12-03 20:01:25 +00:00
} ,
2017-08-05 18:17:15 +00:00
"threatEntryType" : {
2017-09-13 12:09:48 +00:00
"enumDescriptions" : [
"Unspecified." ,
"A URL." ,
"An executable program." ,
"An IP range." ,
"Chrome extension." ,
"Filename." ,
"CERT"
2017-09-21 15:48:45 +00:00
] ,
"enum" : [
"THREAT_ENTRY_TYPE_UNSPECIFIED" ,
2017-10-01 08:13:39 +00:00
"URL" ,
"EXECUTABLE" ,
"IP_RANGE" ,
"CHROME_EXTENSION" ,
"FILENAME" ,
"CERT"
2017-12-03 20:01:25 +00:00
] ,
"description" : "The entry types contained in the list." ,
2017-10-01 08:13:39 +00:00
"type" : "string"
2017-12-03 20:01:25 +00:00
}
} ,
2018-01-23 18:40:42 +00:00
"id" : "ThreatListDescriptor"
2017-12-03 20:01:25 +00:00
} ,
"ClientInfo" : {
2018-01-23 18:40:42 +00:00
"description" : "The client metadata associated with Safe Browsing API requests." ,
2017-12-03 20:01:25 +00:00
"type" : "object" ,
"properties" : {
"clientId" : {
"description" : "A client ID that (hopefully) uniquely identifies the client implementation\nof the Safe Browsing API." ,
"type" : "string"
} ,
2018-01-23 18:40:42 +00:00
"clientVersion" : {
"description" : "The version of the client implementation." ,
"type" : "string"
2017-12-03 20:01:25 +00:00
}
} ,
2018-01-23 18:40:42 +00:00
"id" : "ClientInfo"
2017-12-03 20:01:25 +00:00
} ,
"ThreatInfo" : {
"description" : "The information regarding one or more threats that a client submits when\nchecking for matches in threat lists." ,
"type" : "object" ,
"properties" : {
2018-01-23 18:40:42 +00:00
"threatEntryTypes" : {
2017-08-05 18:17:15 +00:00
"enumDescriptions" : [
2018-01-23 18:40:42 +00:00
"Unspecified." ,
"A URL." ,
"An executable program." ,
"An IP range." ,
"Chrome extension." ,
"Filename." ,
"CERT"
2017-08-05 18:17:15 +00:00
] ,
2018-01-23 18:40:42 +00:00
"description" : "The entry types to be checked." ,
"type" : "array" ,
"items" : {
"enum" : [
"THREAT_ENTRY_TYPE_UNSPECIFIED" ,
"URL" ,
"EXECUTABLE" ,
"IP_RANGE" ,
"CHROME_EXTENSION" ,
"FILENAME" ,
"CERT"
] ,
"type" : "string"
}
} ,
"threatTypes" : {
2017-12-03 20:01:25 +00:00
"description" : "The threat types to be checked." ,
"type" : "array" ,
"items" : {
2018-01-23 18:40:42 +00:00
"type" : "string" ,
2017-12-03 20:01:25 +00:00
"enum" : [
"THREAT_TYPE_UNSPECIFIED" ,
"MALWARE" ,
"SOCIAL_ENGINEERING" ,
"UNWANTED_SOFTWARE" ,
"POTENTIALLY_HARMFUL_APPLICATION" ,
"SOCIAL_ENGINEERING_INTERNAL" ,
"API_ABUSE" ,
"MALICIOUS_BINARY" ,
"CSD_WHITELIST" ,
"CSD_DOWNLOAD_WHITELIST" ,
"CLIENT_INCIDENT" ,
"CLIENT_INCIDENT_WHITELIST" ,
"APK_MALWARE_OFFLINE" ,
"SUBRESOURCE_FILTER"
2018-01-23 18:40:42 +00:00
]
} ,
"enumDescriptions" : [
"Unknown." ,
"Malware threat type." ,
"Social engineering threat type." ,
"Unwanted software threat type." ,
"Potentially harmful application threat type." ,
"Social engineering threat type for internal use." ,
"API abuse threat type." ,
"Malicious binary threat type." ,
"Client side detection whitelist threat type." ,
"Client side download detection whitelist threat type." ,
"Client incident threat type." ,
"Whitelist used when detecting client incident threats.\nThis enum was never launched and should be re-used for the next list." ,
"List used for offline APK checks in PAM." ,
"Patterns to be used for activating the subresource filter. Interstitial\nwill not be shown for patterns from this list."
]
2017-12-03 20:01:25 +00:00
} ,
"platformTypes" : {
"description" : "The platform types to be checked." ,
"type" : "array" ,
"items" : {
"type" : "string" ,
"enum" : [
"PLATFORM_TYPE_UNSPECIFIED" ,
"WINDOWS" ,
"LINUX" ,
"ANDROID" ,
"OSX" ,
"IOS" ,
"ANY_PLATFORM" ,
"ALL_PLATFORMS" ,
"CHROME"
]
2018-01-23 18:40:42 +00:00
} ,
"enumDescriptions" : [
"Unknown platform." ,
"Threat posed to Windows." ,
"Threat posed to Linux." ,
"Threat posed to Android." ,
"Threat posed to OS X." ,
"Threat posed to iOS." ,
"Threat posed to at least one of the defined platforms." ,
"Threat posed to all defined platforms." ,
"Threat posed to Chrome."
]
2017-10-01 08:13:39 +00:00
} ,
2017-12-03 20:01:25 +00:00
"threatEntries" : {
"description" : "The threat entries to be checked." ,
"type" : "array" ,
"items" : {
"$ref" : "ThreatEntry"
}
2017-09-13 12:09:48 +00:00
}
2017-10-22 08:07:36 +00:00
} ,
2017-12-03 20:01:25 +00:00
"id" : "ThreatInfo"
2018-01-23 18:40:42 +00:00
} ,
"ThreatEntryMetadata" : {
"id" : "ThreatEntryMetadata" ,
"description" : "The metadata associated with a specific threat entry. The client is expected\nto know the metadata key/value pairs associated with each threat type." ,
"type" : "object" ,
"properties" : {
"entries" : {
"description" : "The metadata entries." ,
"type" : "array" ,
"items" : {
"$ref" : "MetadataEntry"
}
}
}
2017-08-05 18:17:15 +00:00
}
2017-10-01 08:13:39 +00:00
} ,
"protocol" : "rest" ,
"icons" : {
2018-01-23 18:40:42 +00:00
"x32" : "http://www.google.com/images/icons/product/search-32.gif" ,
"x16" : "http://www.google.com/images/icons/product/search-16.gif"
2017-10-01 08:13:39 +00:00
} ,
"version" : "v4" ,
2018-01-23 18:40:42 +00:00
"baseUrl" : "https://safebrowsing.googleapis.com/" ,
"kind" : "discovery#restDescription" ,
"description" : "Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources." ,
"servicePath" : "" ,
"rootUrl" : "https://safebrowsing.googleapis.com/" ,
"basePath" : "" ,
"ownerDomain" : "google.com" ,
"name" : "safebrowsing" ,
"batchPath" : "batch"
2017-08-05 18:17:15 +00:00
}