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

Issue 2934373002: Record Code Signature of Downloaded DMG files (Closed)

Created:
3 years, 6 months ago by mortonm
Modified:
3 years, 5 months ago
CC:
chromium-reviews, grt+watch_chromium.org, vakh+watch_chromium.org, timvolodine, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Record Code Signature of Downloaded DMG files: As of MacOS 10.11.5, DMG file metadata includes a signature for the disk image itself, in addition to code signatures on individual executables within the archive. This change records the DMG signature for uploading via SafeBrowsing pings. BUG=627605 Review-Url: https://codereview.chromium.org/2934373002 Cr-Commit-Position: refs/heads/master@{#486012} Committed: https://chromium.googlesource.com/chromium/src/+/276eacb1c63fa58b1fce7e668690c2b53a853f3b

Patch Set 1 : added sanity checks for UDIF signature parsing #

Patch Set 2 : compiles #

Patch Set 3 : tests passing in download protection service and sandbox analyzer #

Patch Set 4 : adding signature in file #

Patch Set 5 : debugging #

Patch Set 6 : debugging weird proto stuff #

Patch Set 7 : tests pass #

Patch Set 8 : cleanup, still need to fix file paths #

Patch Set 9 : adjusted test file path names #

Total comments: 18

Patch Set 10 : comments partially addressed #

Patch Set 11 : addressing comments #

Patch Set 12 : rebase update #

Patch Set 13 : updating UMA XML #

Patch Set 14 : simplifying data structures in download_protection_service.cc #

Total comments: 18

Patch Set 15 : addressing comments #

Total comments: 18

Patch Set 16 : mods to Makefile and checking in signed DMG #

Patch Set 17 : addressing comments #

Patch Set 18 : removing Chrome binary and signature file #

Patch Set 19 : generate DMG with executable inside so that tests pass #

Patch Set 20 : rebase for trybots #

Total comments: 2

Patch Set 21 : addressing comment #

Total comments: 4

Patch Set 22 : minor mods to XML #

Total comments: 7

Patch Set 23 : addressing comments #

Patch Set 24 : rebase update #

Patch Set 25 : rebase update #

Patch Set 26 : correcting rebase mixup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -37 lines) Patch
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +40 lines, -0 lines 0 comments Download
M chrome/common/safe_browsing/archive_analyzer_results.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/safe_browsing/safe_archive_analyzer_param_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/data/safe_browsing/mach_o/Makefile View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +38 lines, -33 lines 0 comments Download
M chrome/test/data/safe_browsing/mach_o/README View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -0 lines 0 comments Download
D chrome/test/data/safe_browsing/mach_o/codesign.keychain View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary file 0 comments Download
A chrome/test/data/safe_browsing/mach_o/signed-archive.dmg View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Binary file 0 comments Download
A chrome/test/data/safe_browsing/mach_o/signed-archive-signature.data View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Binary file 0 comments Download
M chrome/utility/safe_browsing/mac/dmg_analyzer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/utility/safe_browsing/mac/dmg_iterator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/utility/safe_browsing/mac/dmg_iterator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/utility/safe_browsing/mac/udif.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/utility/safe_browsing/mac/udif.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +36 lines, -2 lines 0 comments Download
M components/safe_browsing/csd.proto View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 120 (94 generated)
mortonm
I assume we will want to use a smaller DMG than Chrome for the tester, ...
3 years, 5 months ago (2017-06-26 18:15:50 UTC) #21
Jialiu Lin
mortonm@, please don't use chrome dmg. We don't want to expose chrome executable in chromium ...
3 years, 5 months ago (2017-06-26 18:28:36 UTC) #26
Robert Sesek
On 2017/06/26 18:28:36, Jialiu Lin wrote: > rsesek@, do you have any testing dmgs that ...
3 years, 5 months ago (2017-06-26 18:56:34 UTC) #27
mortonm
Still have to generate the signed DMG for testing purposes (instead of using Chrome executable) ...
3 years, 5 months ago (2017-06-27 16:36:23 UTC) #36
Jialiu Lin
Looking great! My comments are mostly nits. I'll take another look after you updating the ...
3 years, 5 months ago (2017-06-28 00:23:35 UTC) #39
mortonm
https://codereview.chromium.org/2934373002/diff/580001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): https://codereview.chromium.org/2934373002/diff/580001/chrome/browser/safe_browsing/download_protection_service.cc#newcode818 chrome/browser/safe_browsing/download_protection_service.cc:818: #if defined(OS_MACOSX) On 2017/06/28 00:23:34, Jialiu Lin wrote: > ...
3 years, 5 months ago (2017-06-28 16:24:42 UTC) #40
Robert Sesek
Really nice! Hopefully you, me, and Greg can figure out a solution to the keychain ...
3 years, 5 months ago (2017-06-28 18:21:07 UTC) #41
mortonm
https://codereview.chromium.org/2934373002/diff/440001/chrome/utility/safe_browsing/mac/udif.cc File chrome/utility/safe_browsing/mac/udif.cc (right): https://codereview.chromium.org/2934373002/diff/440001/chrome/utility/safe_browsing/mac/udif.cc#newcode577 chrome/utility/safe_browsing/mac/udif.cc:577: if (temp_data == nullptr) { On 2017/06/28 18:21:06, Robert ...
3 years, 5 months ago (2017-06-28 23:07:09 UTC) #43
mortonm
3 years, 5 months ago (2017-06-30 18:06:40 UTC) #61
mortonm
adding reviewers kerrnel@ and rkaplow@ for OWNER of tools/metrics/histograms/histograms.xml
3 years, 5 months ago (2017-06-30 18:13:53 UTC) #65
Jialiu Lin
c/b/safe_browsing/* LGTM c/u/safe_browsing/* LGTM components/safe_browsing/* LGTM I'll rely on kerrnel@ and rsesek@ to review chrome/test/data/safe_browsing/*
3 years, 5 months ago (2017-06-30 18:14:49 UTC) #66
Greg K
https://codereview.chromium.org/2934373002/diff/700001/chrome/test/data/safe_browsing/mach_o/Makefile File chrome/test/data/safe_browsing/mach_o/Makefile (right): https://codereview.chromium.org/2934373002/diff/700001/chrome/test/data/safe_browsing/mach_o/Makefile#newcode10 chrome/test/data/safe_browsing/mach_o/Makefile:10: pre-build = security import codesign.key; security import codesign.crt I ...
3 years, 5 months ago (2017-06-30 18:16:22 UTC) #67
mortonm
https://codereview.chromium.org/2934373002/diff/700001/chrome/test/data/safe_browsing/mach_o/Makefile File chrome/test/data/safe_browsing/mach_o/Makefile (right): https://codereview.chromium.org/2934373002/diff/700001/chrome/test/data/safe_browsing/mach_o/Makefile#newcode10 chrome/test/data/safe_browsing/mach_o/Makefile:10: pre-build = security import codesign.key; security import codesign.crt On ...
3 years, 5 months ago (2017-06-30 20:01:06 UTC) #68
rkaplow
lgtm https://codereview.chromium.org/2934373002/diff/720001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2934373002/diff/720001/tools/metrics/histograms/histograms.xml#newcode47874 tools/metrics/histograms/histograms.xml:47874: + specific way: - Not used at all ...
3 years, 5 months ago (2017-06-30 20:31:40 UTC) #69
mortonm
https://codereview.chromium.org/2934373002/diff/720001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2934373002/diff/720001/tools/metrics/histograms/histograms.xml#newcode47874 tools/metrics/histograms/histograms.xml:47874: + specific way: - Not used at all during ...
3 years, 5 months ago (2017-06-30 20:54:04 UTC) #71
Robert Sesek
Almost there! Just a few nits about the Makefile. https://codereview.chromium.org/2934373002/diff/760001/chrome/test/data/safe_browsing/mach_o/Makefile File chrome/test/data/safe_browsing/mach_o/Makefile (right): https://codereview.chromium.org/2934373002/diff/760001/chrome/test/data/safe_browsing/mach_o/Makefile#newcode9 chrome/test/data/safe_browsing/mach_o/Makefile:9: ...
3 years, 5 months ago (2017-07-05 18:53:12 UTC) #72
Jialiu Lin
On 2017/07/05 18:53:12, Robert Sesek wrote: > Almost there! Just a few nits about the ...
3 years, 5 months ago (2017-07-05 19:02:25 UTC) #73
mortonm
https://codereview.chromium.org/2934373002/diff/760001/chrome/test/data/safe_browsing/mach_o/Makefile File chrome/test/data/safe_browsing/mach_o/Makefile (right): https://codereview.chromium.org/2934373002/diff/760001/chrome/test/data/safe_browsing/mach_o/Makefile#newcode9 chrome/test/data/safe_browsing/mach_o/Makefile:9: # Funcitons to add and remove key and cert ...
3 years, 5 months ago (2017-07-10 16:31:49 UTC) #74
Robert Sesek
LGTM https://codereview.chromium.org/2934373002/diff/760001/chrome/test/data/safe_browsing/mach_o/Makefile File chrome/test/data/safe_browsing/mach_o/Makefile (right): https://codereview.chromium.org/2934373002/diff/760001/chrome/test/data/safe_browsing/mach_o/Makefile#newcode68 chrome/test/data/safe_browsing/mach_o/Makefile:68: $(call pre-build) On 2017/07/10 16:31:48, mortonm wrote: > ...
3 years, 5 months ago (2017-07-10 17:03:18 UTC) #75
Jialiu Lin
ping kerrnel@~ Any more comments?
3 years, 5 months ago (2017-07-12 01:54:06 UTC) #105
Greg K
On 2017/07/12 01:54:06, Jialiu Lin wrote: > ping kerrnel@~ Any more comments? Robert got everything, ...
3 years, 5 months ago (2017-07-12 16:35:32 UTC) #108
Greg K
On 2017/07/12 16:35:32, Greg K wrote: > On 2017/07/12 01:54:06, Jialiu Lin wrote: > > ...
3 years, 5 months ago (2017-07-12 16:40:11 UTC) #109
mortonm
On 2017/07/12 16:40:11, Greg K wrote: > On 2017/07/12 16:35:32, Greg K wrote: > > ...
3 years, 5 months ago (2017-07-12 17:06:22 UTC) #111
Greg K
On 2017/07/12 17:06:22, mortonm wrote: > On 2017/07/12 16:40:11, Greg K wrote: > > On ...
3 years, 5 months ago (2017-07-12 17:20:43 UTC) #114
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2934373002/840001
3 years, 5 months ago (2017-07-12 17:37:37 UTC) #117
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 17:46:33 UTC) #120
Message was sent while issue was closed.
Committed patchset #26 (id:840001) as
https://chromium.googlesource.com/chromium/src/+/276eacb1c63fa58b1fce7e668690...

Powered by Google App Engine
This is Rietveld 408576698