DescriptionSubmit a sample of notification images to Safe Browsing
These will be scanned for social engineering behavior.
Only uploads if all of the following are true:
- User has opted in to SBER_LEVEL_SCOUT.
- Origin is not on CSD phishing whitelist.
- Device has sent < 5 reports in last 24 hours (see persistence TODO).
- Do a dice roll, and keep only 20% of notifications (see Finch TODO).
The notification image bitmap is downscaled to <= 512x512, encoded as a
PNG, then sent to the CSD server as a NotificationImageReportRequest
protobuf from chrome/common/safe_browsing/csd.proto.
BUG=678443
Patch Set 1 #
Total comments: 31
Patch Set 2 : Address peter's review comments #
Total comments: 8
Patch Set 3 : Add basic success test #
Total comments: 6
Patch Set 4 : Address most review comments #Patch Set 5 : Address Peter's nits #Patch Set 6 : Added tests for SBER level and image downscaling #Patch Set 7 : Add partial test for MaxReportsPerDay #Patch Set 8 : Fix MaxReportsPerDay test #Patch Set 9 : Report net_error codes to UMA #Messages
Total messages: 17 (6 generated)
|