diff options
author | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 20:50:03 +0000 |
---|---|---|
committer | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 20:50:03 +0000 |
commit | fa8fb429c8272d5fa0f796d9ae9018f9327d9f9b (patch) | |
tree | 08f6af8279a0bbe297fa27e2141aa362446cac59 /chrome/common/safe_browsing | |
parent | 1708606d820f97aac8e4910baed72e34e9ed716c (diff) | |
download | chromium_src-fa8fb429c8272d5fa0f796d9ae9018f9327d9f9b.zip chromium_src-fa8fb429c8272d5fa0f796d9ae9018f9327d9f9b.tar.gz chromium_src-fa8fb429c8272d5fa0f796d9ae9018f9327d9f9b.tar.bz2 |
Add a new BrowserFeature for client-side FakeAV detection that is set
when a page loads a resource from a known bad IP address or IP subnet.
BUG=None
TEST=BrowserFeatureExtractorTest
Review URL: http://codereview.chromium.org/7235015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91005 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/safe_browsing')
-rw-r--r-- | chrome/common/safe_browsing/client_model.proto | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/common/safe_browsing/client_model.proto b/chrome/common/safe_browsing/client_model.proto index aa704c3..622ba8f 100644 --- a/chrome/common/safe_browsing/client_model.proto +++ b/chrome/common/safe_browsing/client_model.proto @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // @@ -73,4 +73,15 @@ message ClientSideModel { // version number and it should always be larger than the previous model // version. optional int32 version = 6; + + // List of known bad IP subnets. + message IPSubnet { + // The subnet prefix is a valid 16-byte IPv6 address (in network order) that + // is hashed using sha256. + required bytes prefix = 1; + + // Network prefix size in bits. Default is an exact-host match. + optional int32 size = 2 [default = 128]; + }; + repeated IPSubnet bad_subnet = 7; } |