Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Issue 10382113: Add SafeBrowsing support for checking downloaded zip files that contain executables. (Closed)

Created:
8 years, 7 months ago by Brian Ryner
Modified:
8 years, 7 months ago
Reviewers:
asanka, mattm, noelutz, noé
CC:
chromium-reviews, Randy Smith (Not in Mondays)
Visibility:
Public.

Description

Add SafeBrowsing support for checking downloaded zip files that contain executables. BUG=none TEST=DownloadProtectionServiceTest.CheckClientDownloadZip Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137599

Patch Set 1 #

Patch Set 2 : Fix Windows DownloadType check #

Patch Set 3 : Minor cleanup #

Total comments: 10

Patch Set 4 : Address Noe's comments #

Patch Set 5 : Address Matt's review comments #

Total comments: 2

Patch Set 6 : Add a histogram for zipped archives #

Total comments: 2

Patch Set 7 : Fix histogram #

Patch Set 8 : Merge, fix readonly folder bug and other issues #

Total comments: 2

Patch Set 9 : Fix FilePath printf format on Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -16 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.h View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 7 8 10 chunks +86 lines, -14 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 2 chunks +103 lines, -0 lines 0 comments Download
M chrome/common/safe_browsing/csd.proto View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Brian Ryner
8 years, 7 months ago (2012-05-11 17:48:51 UTC) #1
noelutz
Mostly LG. Just have some minor comments. noe. http://codereview.chromium.org/10382113/diff/4003/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/4003/chrome/browser/safe_browsing/download_protection_service.cc#newcode494 chrome/browser/safe_browsing/download_protection_service.cc:494: RecordImprovedProtectionStats(REASON_NOT_BINARY_FILE); ...
8 years, 7 months ago (2012-05-11 17:54:33 UTC) #2
Brian Ryner
Please take another look. Thanks, http://codereview.chromium.org/10382113/diff/4003/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/4003/chrome/browser/safe_browsing/download_protection_service.cc#newcode494 chrome/browser/safe_browsing/download_protection_service.cc:494: RecordImprovedProtectionStats(REASON_NOT_BINARY_FILE); On 2012/05/11 17:54:33, ...
8 years, 7 months ago (2012-05-11 22:25:42 UTC) #3
mattm
http://codereview.chromium.org/10382113/diff/4003/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/4003/chrome/browser/safe_browsing/download_protection_service.cc#newcode72 chrome/browser/safe_browsing/download_protection_service.cc:72: return ClientDownloadRequest::ZIPPED_WIN_EXECUTABLE; Seems a little weird to say this ...
8 years, 7 months ago (2012-05-11 22:42:06 UTC) #4
Brian Ryner
http://codereview.chromium.org/10382113/diff/4003/chrome/common/safe_browsing/csd.proto File chrome/common/safe_browsing/csd.proto (right): http://codereview.chromium.org/10382113/diff/4003/chrome/common/safe_browsing/csd.proto#newcode172 chrome/common/safe_browsing/csd.proto:172: ZIPPED_WIN_EXECUTABLE = 3; On 2012/05/11 22:42:06, mattm wrote: > ...
8 years, 7 months ago (2012-05-11 23:09:40 UTC) #5
mattm
http://codereview.chromium.org/10382113/diff/4003/chrome/common/safe_browsing/csd.proto File chrome/common/safe_browsing/csd.proto (right): http://codereview.chromium.org/10382113/diff/4003/chrome/common/safe_browsing/csd.proto#newcode172 chrome/common/safe_browsing/csd.proto:172: ZIPPED_WIN_EXECUTABLE = 3; On 2012/05/11 23:09:41, Brian Ryner wrote: ...
8 years, 7 months ago (2012-05-11 23:12:32 UTC) #6
Brian Ryner
Please take another look. http://codereview.chromium.org/10382113/diff/4003/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/4003/chrome/browser/safe_browsing/download_protection_service.cc#newcode72 chrome/browser/safe_browsing/download_protection_service.cc:72: return ClientDownloadRequest::ZIPPED_WIN_EXECUTABLE; On 2012/05/11 22:42:06, ...
8 years, 7 months ago (2012-05-12 00:06:59 UTC) #7
mattm
lgtm http://codereview.chromium.org/10382113/diff/13004/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/13004/chrome/browser/safe_browsing/download_protection_service.cc#newcode539 chrome/browser/safe_browsing/download_protection_service.cc:539: // Don't consider an archived archive to be ...
8 years, 7 months ago (2012-05-12 00:47:06 UTC) #8
Brian Ryner
On 2012/05/12 00:47:06, mattm wrote: > lgtm > > http://codereview.chromium.org/10382113/diff/13004/chrome/browser/safe_browsing/download_protection_service.cc > File chrome/browser/safe_browsing/download_protection_service.cc (right): > ...
8 years, 7 months ago (2012-05-13 18:12:44 UTC) #9
noelutz
lgtm
8 years, 7 months ago (2012-05-14 15:57:30 UTC) #10
mattm
On 2012/05/13 18:12:44, Brian Ryner wrote: > On 2012/05/12 00:47:06, mattm wrote: > > lgtm ...
8 years, 7 months ago (2012-05-14 22:19:46 UTC) #11
Brian Ryner
PTAL http://codereview.chromium.org/10382113/diff/13004/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/13004/chrome/browser/safe_browsing/download_protection_service.cc#newcode539 chrome/browser/safe_browsing/download_protection_service.cc:539: // Don't consider an archived archive to be ...
8 years, 7 months ago (2012-05-15 00:58:33 UTC) #12
mattm
http://codereview.chromium.org/10382113/diff/2008/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/2008/chrome/browser/safe_browsing/download_protection_service.cc#newcode561 chrome/browser/safe_browsing/download_protection_service.cc:561: zip_file_has_archive); should it be: zip_file_has_archive && !info_.zipped_executable ?
8 years, 7 months ago (2012-05-15 01:02:35 UTC) #13
Brian Ryner
http://codereview.chromium.org/10382113/diff/2008/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/2008/chrome/browser/safe_browsing/download_protection_service.cc#newcode561 chrome/browser/safe_browsing/download_protection_service.cc:561: zip_file_has_archive); On 2012/05/15 01:02:35, mattm wrote: > should it ...
8 years, 7 months ago (2012-05-15 01:13:38 UTC) #14
mattm
lgtm
8 years, 7 months ago (2012-05-15 01:17:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryner@chromium.org/10382113/8006
8 years, 7 months ago (2012-05-15 02:35:50 UTC) #16
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 7 months ago (2012-05-15 05:08:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryner@chromium.org/10382113/8006
8 years, 7 months ago (2012-05-15 05:33:28 UTC) #18
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 7 months ago (2012-05-15 06:37:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryner@chromium.org/10382113/8006
8 years, 7 months ago (2012-05-15 17:42:57 UTC) #20
commit-bot: I haz the power
Try job failure for 10382113-8006 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 7 months ago (2012-05-15 21:06:39 UTC) #21
Brian Ryner
Whoops, this is probably a real test failure. Looking into it.
8 years, 7 months ago (2012-05-15 21:09:03 UTC) #22
Brian Ryner
+randy This seems to be happening because the test in question uses files with a ...
8 years, 7 months ago (2012-05-16 04:55:25 UTC) #23
Brian Ryner
Oh, and in case you can't get to the test log for some reason, the ...
8 years, 7 months ago (2012-05-16 05:01:36 UTC) #24
Randy Smith (Not in Mondays)
Asanka: My apologies, but could you take a look at this? I have two reasons ...
8 years, 7 months ago (2012-05-16 18:38:50 UTC) #25
Brian Ryner
I think I may have figured it out, see the chrome_download_manager_delegate change in the latest ...
8 years, 7 months ago (2012-05-16 20:16:51 UTC) #26
asanka
On 2012/05/16 18:38:50, rdsmith wrote: > Asanka: My apologies, but could you take a look ...
8 years, 7 months ago (2012-05-16 20:17:16 UTC) #27
Randy Smith (Not in Mondays)
Ah, got it. Yuck. Thanks, Brian and Asanka, for figuring that one out.
8 years, 7 months ago (2012-05-16 20:21:48 UTC) #28
Brian Ryner
On 2012/05/16 20:21:48, rdsmith wrote: > Ah, got it. Yuck. Thanks, Brian and Asanka, for ...
8 years, 7 months ago (2012-05-16 20:24:02 UTC) #29
asanka
chrome/browser/downloads/ LGTM http://codereview.chromium.org/10382113/diff/10007/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/10007/chrome/browser/safe_browsing/download_protection_service.cc#newcode178 chrome/browser/safe_browsing/download_protection_service.cc:178: "target_file:%s, referrer_url:%s, sha256_hash:%s, total_bytes:%" PRId64 Drive by ...
8 years, 7 months ago (2012-05-16 20:28:17 UTC) #30
Brian Ryner
http://codereview.chromium.org/10382113/diff/10007/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/10382113/diff/10007/chrome/browser/safe_browsing/download_protection_service.cc#newcode178 chrome/browser/safe_browsing/download_protection_service.cc:178: "target_file:%s, referrer_url:%s, sha256_hash:%s, total_bytes:%" PRId64 On 2012/05/16 20:28:18, asanka ...
8 years, 7 months ago (2012-05-16 20:39:01 UTC) #31
Brian Ryner
Looks like this test passes now on the windows trybot. Noe or Matt, want to ...
8 years, 7 months ago (2012-05-16 23:00:33 UTC) #32
mattm
lgtm
8 years, 7 months ago (2012-05-16 23:27:15 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryner@chromium.org/10382113/15010
8 years, 7 months ago (2012-05-16 23:29:45 UTC) #34
commit-bot: I haz the power
8 years, 7 months ago (2012-05-17 01:21:13 UTC) #35
Change committed as 137599

Powered by Google App Engine
This is Rietveld 408576698