Skip to content

Instantly share code, notes, and snippets.

@lukem512
Created August 19, 2024 17:33
Show Gist options
  • Save lukem512/1b7b0ee6a5ff37a56b02593c410ebaf1 to your computer and use it in GitHub Desktop.
Save lukem512/1b7b0ee6a5ff37a56b02593c410ebaf1 to your computer and use it in GitHub Desktop.
Google Safe Browsing (v5) Proto Definition
syntax = "proto3";
import "google/protobuf/duration.proto";
package safebrowsing_proto;
message SearchHashesResponse {
repeated FullHash full_hashes = 1;
google.protobuf.Duration cache_duration = 2;
}
message FullHash {
bytes full_hash = 1;
repeated FullHashDetail full_hash_details = 2;
}
message FullHashDetail {
ThreatType threat_type = 1;
repeated ThreatAttribute attributes = 2;
}
enum ThreatType {
THREAT_TYPE_UNSPECIFIED = 0;
MALWARE = 1;
SOCIAL_ENGINEERING = 2;
UNWANTED_SOFTWARE = 3;
POTENTIALLY_HARMFUL_APPLICATION = 4;
}
enum ThreatAttribute {
THREAT_ATTRIBUTE_UNSPECIFIED = 0;
CANARY = 1;
FRAME_ONLY = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment