Skip to content

Instantly share code, notes, and snippets.

@aeharvlee
Created April 21, 2020 12:51
Show Gist options
  • Save aeharvlee/4e737aed3b245a17a3b95e815130a0e5 to your computer and use it in GitHub Desktop.
Save aeharvlee/4e737aed3b245a17a3b95e815130a0e5 to your computer and use it in GitHub Desktop.
syntax = "proto3";
package black_ipv4;
service BlackIPv4Service {
rpc GetReputationByIPv4(ReputationRequest) returns (Reputation);
}
message AttackVector {
uint32 vulnerability_scan = 1;
uint32 falsifying_websites = 2;
uint32 interrupting_server = 3;
uint32 spreading_malware = 4;
uint32 identity_theft = 5;
uint32 monetary_loss = 6;
}
message BlackIPv4Reputation {
string detected_at = 1;
uint32 threat_score = 2;
AttackVector attack_vector = 3;
uint32 detected_wafs = 4;
uint32 attacked_hosts = 5;
string description = 6;
}
message ReputationRequest {
string start_date = 1;
string ipv4 = 2;
bool descending = 3;
uint32 limit = 4;
string language = 5;
}
message Reputation {
ReputationRequest request = 1;
string country = 2;
string country_code = 3;
uint32 returned = 4;
repeated BlackIPv4Reputation black_ipv4_reputation = 5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment