inferno-chromium | e1bb702 | 2016-11-16 09:56:10 -0800 | [diff] [blame] | 1 | # OSS-Fuzz - continuous fuzzing of open source software |
Mike Aizatsky | 3986fa3 | 2016-09-14 09:44:10 -0700 | [diff] [blame] | 2 | |
Mike Aizatsky | d2db6a1 | 2016-10-25 14:36:24 -0700 | [diff] [blame] | 3 | > *Status*: Beta. We are preparing the project for the first public release. Documentation and smoothing the process is our main priority. |
Mike Aizatsky | 3986fa3 | 2016-09-14 09:44:10 -0700 | [diff] [blame] | 4 | |
Mike Aizatsky | a95b41b | 2016-10-25 16:36:29 -0700 | [diff] [blame] | 5 | [FAQ](docs/faq.md) |
Mike Aizatsky | 5ded722 | 2016-10-26 11:16:30 -0700 | [diff] [blame] | 6 | | [New Target Guide](docs/new_target.md) |
Mike Aizatsky | 6e8e29e | 2016-10-26 11:49:53 -0700 | [diff] [blame] | 7 | | [Reproducing](docs/reproducing.md) |
Mike Aizatsky | b6652b5 | 2016-10-25 16:52:27 -0700 | [diff] [blame] | 8 | | [Targets List](targets/README.md) |
Oliver Chang | 9848e9e | 2016-11-04 16:03:00 -0700 | [diff] [blame] | 9 | | [Targets issue tracker](https://bugs.chromium.org/p/oss-fuzz/issues/list) |
Mike Aizatsky | 7273285 | 2016-10-17 12:59:36 -0700 | [diff] [blame] | 10 | |
Mike Aizatsky | 92511cd | 2016-10-25 14:36:06 -0700 | [diff] [blame] | 11 | |
| 12 | [Create New Issue](https://github.com/google/oss-fuzz/issues/new) for questions or feedback. |
Mike Aizatsky | 25a86da | 2016-10-25 14:33:39 -0700 | [diff] [blame] | 13 | |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 14 | ## Goals |
| 15 | |
inferno-chromium | e1bb702 | 2016-11-16 09:56:10 -0800 | [diff] [blame] | 16 | OSS-Fuzz aims to make common open source software more secure by |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 17 | combining modern white-box fuzzing techniques together with scalable |
Kostya Serebryany | 4b6e703 | 2016-10-25 18:21:41 -0700 | [diff] [blame] | 18 | distributed execution. |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 19 | |
| 20 | At the first stage of the project we plan to combine |
| 21 | [libFuzzer](http://llvm.org/docs/LibFuzzer.html) with various `clang` |
| 22 | [sanitizers](https://github.com/google/sanitizers). |
Oliver Chang | b45e9ea | 2016-11-18 14:58:06 -0800 | [diff] [blame] | 23 | [ClusterFuzz](docs/clusterfuzz.md) |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 24 | provides distributed fuzzer execution environment and reporting. |
| 25 | |
| 26 | ## Background |
| 27 | |
| 28 | [Fuzz testing](https://en.wikipedia.org/wiki/Fuzz_testing) is a well-known |
| 29 | technique for uncovering certain types of programming errors in software. |
| 30 | Many detectable errors (e.g. buffer overruns) have real security |
| 31 | implications. |
| 32 | |
| 33 | Our previous experience applying [libFuzzer](http://llvm.org/docs/LibFuzzer.html) |
| 34 | to do [guided in-process fuzzing of Chrome components](https://security.googleblog.com/2016/08/guided-in-process-fuzzing-of-chrome.html) |
| 35 | has proved very successful. |
| 36 | |
| 37 | |
| 38 | ## Process Overview |
| 39 | |
inferno-chromium | e1bb702 | 2016-11-16 09:56:10 -0800 | [diff] [blame] | 40 | The following process is used for targets in OSS-Fuzz: |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 41 | |
inferno-chromium | e1bb702 | 2016-11-16 09:56:10 -0800 | [diff] [blame] | 42 | - a target is accepted to OSS-Fuzz. |
| 43 | - OSS-Fuzz build server build target fuzzers regularly and submits them to |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 44 | ClusterFuzz for execution. |
| 45 | - ClusterFuzz continuously executes target fuzzers |
| 46 | - when fuzzing uncovers an issue, ClusterFuzz creates an internal testcase. |
inferno-chromium | e1bb702 | 2016-11-16 09:56:10 -0800 | [diff] [blame] | 47 | - issues are automatically triaged and filed in the OSS-Fuzz [testcase issue |
Mike Aizatsky | 42928b3 | 2016-10-25 14:49:25 -0700 | [diff] [blame] | 48 | tracker](https://bugs.chromium.org/p/oss-fuzz/issues/list). |
| 49 | [Example issue](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9). |
Mike Aizatsky | 557e448 | 2016-10-25 16:40:47 -0700 | [diff] [blame] | 50 | ([Why different tracker?](docs/faq.md#why-do-you-use-a-different-issue-tracker-for-reportig-bugs-in-fuzz-targets)) |
Mike Aizatsky | ecf29db | 2016-10-27 14:05:31 -0700 | [diff] [blame] | 51 | - if the target has a defined process for reporting security issues, |
Mike Aizatsky | 0d2c7f9 | 2016-10-25 14:59:45 -0700 | [diff] [blame] | 52 | we will follow it, otherwise we will cc target engineers on an issue. |
| 53 | - engineers fix the issue and land the fix upstream. |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 54 | - fuzzing infrastructure automatically verifies the fix, adds a comment and |
| 55 | closes the issue. |
Oliver Chang | ea72981 | 2016-11-14 11:33:25 -0800 | [diff] [blame] | 56 | - after 7 days has passed since the issue is fixed or after 90 days since reporting has passed, the issue |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 57 | becomes *public*. |
| 58 | |
Mike Aizatsky | 42928b3 | 2016-10-25 14:49:25 -0700 | [diff] [blame] | 59 | The following table summarizes issue visibility through the process: |
| 60 | |
| 61 | | Issue State | Visibility | |
| 62 | |----------|------------| |
inferno-chromium | 459050e | 2016-11-16 10:12:37 -0800 | [diff] [blame] | 63 | | New | OSS-Fuzz engineers | |
| 64 | | Reported | OSS-Fuzz engineers + everyone CC'ed on the bug | |
Mike Aizatsky | 42928b3 | 2016-10-25 14:49:25 -0700 | [diff] [blame] | 65 | | Fixed & Verified | public | |
| 66 | | Lapsed (90 days since report) | public | |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 67 | |
| 68 | ## Accepting New Targets |
| 69 | |
inferno-chromium | 459050e | 2016-11-16 10:12:37 -0800 | [diff] [blame] | 70 | In order to be accepted to OSS-Fuzz, an open-source target must |
Kostya Serebryany | 7053f0f | 2016-10-25 18:34:38 -0700 | [diff] [blame] | 71 | have a significant user base and/or be critical to the global IT infrastructure. |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 72 | |
inferno-chromium | 459050e | 2016-11-16 10:12:37 -0800 | [diff] [blame] | 73 | To submit a new target to OSS-Fuzz: |
Mike Aizatsky | e84f13c | 2016-10-26 11:47:04 -0700 | [diff] [blame] | 74 | - create a pull request with a change to [targets/README.md](targets/README.md) providing the following information: |
Mike Aizatsky | ecf29db | 2016-10-27 14:05:31 -0700 | [diff] [blame] | 75 | * target home site and details |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 76 | * source code repository location |
Mike Aizatsky | ecf29db | 2016-10-27 14:05:31 -0700 | [diff] [blame] | 77 | * a link to target security issue reporting process *OR* |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 78 | * an e-mail of the engineering contact person to be CCed on issue. This |
Kostya Serebryany | 81545e1 | 2016-11-18 08:32:07 -0800 | [diff] [blame] | 79 | has to be an e-mail |
| 80 | [linked to a Google Account](https://support.google.com/accounts/answer/176347?hl=en) |
| 81 | that belongs to an |
Mike Aizatsky | ecf29db | 2016-10-27 14:05:31 -0700 | [diff] [blame] | 82 | established target committer (according to VCS logs). |
Mike Aizatsky | 7e49706 | 2016-10-25 15:01:11 -0700 | [diff] [blame] | 83 | If this is not you or address differs from VCS, an informal e-mail verification will be required. |
Mike Aizatsky | b6652b5 | 2016-10-25 16:52:27 -0700 | [diff] [blame] | 84 | This e-mail will also be publicly listed in our [Targets](targets/README.md) |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 85 | page. |
inferno-chromium | 459050e | 2016-11-16 10:12:37 -0800 | [diff] [blame] | 86 | - once accepted by an OSS-Fuzz project member, follow the [New Target Guide](docs/new_target.md) |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 87 | to write the code. |
| 88 | |
| 89 | |
Kostya Serebryany | e9be2cf | 2016-10-25 18:39:20 -0700 | [diff] [blame] | 90 | ## Bug Disclosure Guidelines |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 91 | |
| 92 | Following Google's standard [disclosure policy](https://googleprojectzero.blogspot.com/2015/02/feedback-and-data-driven-updates-to.html) |
inferno-chromium | 459050e | 2016-11-16 10:12:37 -0800 | [diff] [blame] | 93 | OSS-Fuzz will adhere to following disclosure principles: |
Mike Aizatsky | a95b41b | 2016-10-25 16:36:29 -0700 | [diff] [blame] | 94 | - **90-day deadline**. After notifying target authors, we will open reported |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 95 | issues in 90 days, or sooner if the fix is released. |
| 96 | - **Weekends and holidays**. If a deadline is due to expire on a weekend or |
| 97 | US public holiday, the deadline will be moved to the next normal work day. |
| 98 | - **Grace period**. We will have a 14-day grace period. If a 90-day deadline |
Mike Aizatsky | a95b41b | 2016-10-25 16:36:29 -0700 | [diff] [blame] | 99 | will expire but upstream engineers let us know before the deadline that a |
Mike Aizatsky | 8f24df7 | 2016-10-25 14:31:45 -0700 | [diff] [blame] | 100 | patch is scheduled for release on a specific day within 14 days following |
| 101 | the deadline, the public disclosure will be delayed until the availability |
| 102 | of the patch. |
| 103 | |
Mike Aizatsky | 3986fa3 | 2016-09-14 09:44:10 -0700 | [diff] [blame] | 104 | ## Documentation |
| 105 | |
inferno-chromium | 459050e | 2016-11-16 10:12:37 -0800 | [diff] [blame] | 106 | * [New Target Guide](docs/new_target.md) walks through steps necessary to add new targets to OSS-Fuzz. |
Mike Aizatsky | 3e3dcd2 | 2016-09-27 11:59:07 -0700 | [diff] [blame] | 107 | * [Running and Building Fuzzers](docs/building_running_fuzzers.md) documents the process for fuzzers that are |
Mike Aizatsky | ecf29db | 2016-10-27 14:05:31 -0700 | [diff] [blame] | 108 | *part of target* source code repository. |
Mike Aizatsky | 3e3dcd2 | 2016-09-27 11:59:07 -0700 | [diff] [blame] | 109 | * [Running and Building External Fuzzers](docs/building_running_fuzzers_external.md) documents the process for fuzzers that are |
inferno-chromium | 459050e | 2016-11-16 10:12:37 -0800 | [diff] [blame] | 110 | *part of OSS-Fuzz* source code repository. |
Oliver Chang | 9158c54 | 2016-11-07 13:08:44 -0800 | [diff] [blame] | 111 | * [Fuzzer execution environment](docs/fuzzer_environment.md) documents the |
| 112 | environment under which your fuzzers will be run. |
inferno-chromium | 459050e | 2016-11-16 10:12:37 -0800 | [diff] [blame] | 113 | * [Targets List](targets/README.md) lists OSS targets added to OSS-Fuzz. |
Mike Aizatsky | 4028e81 | 2016-10-19 10:53:00 -0700 | [diff] [blame] | 114 | * [Chrome's Efficient Fuzzer Guide](https://chromium.googlesource.com/chromium/src/testing/libfuzzer/+/HEAD/efficient_fuzzer.md) |
| 115 | while contains some chrome-specifics, is an excellent documentation on making your fuzzer better. |
Mike Aizatsky | 3986fa3 | 2016-09-14 09:44:10 -0700 | [diff] [blame] | 116 | |
Oliver Chang | a25bf35 | 2016-10-07 18:28:27 -0700 | [diff] [blame] | 117 | ## Build status |
Oliver Chang | 6c31505 | 2016-10-25 20:39:39 -0700 | [diff] [blame] | 118 | [This page](https://oss-fuzz-build-logs.storage.googleapis.com/status.html) |
| 119 | gives the latest build logs for each target. |
Oliver Chang | a25bf35 | 2016-10-07 18:28:27 -0700 | [diff] [blame] | 120 | |
Oliver Chang | 9e0c143 | 2016-10-25 20:44:34 -0700 | [diff] [blame] | 121 | ## Trophies |
Mike Aizatsky | 2681964 | 2016-10-06 14:02:52 -0700 | [diff] [blame] | 122 | |
Oliver Chang | 9e0c143 | 2016-10-25 20:44:34 -0700 | [diff] [blame] | 123 | [This page](https://bugs.chromium.org/p/oss-fuzz/issues/list?can=1&q=status%3AFixed%2CVerified+Type%3ABug%2CBug-Security+-component%3AInfra+) |
inferno-chromium | 459050e | 2016-11-16 10:12:37 -0800 | [diff] [blame] | 124 | gives a list of publically viewable (fixed) bugs found by OSS-Fuzz. |
Mike Aizatsky | 2681964 | 2016-10-06 14:02:52 -0700 | [diff] [blame] | 125 | |
Mike Aizatsky | 3986fa3 | 2016-09-14 09:44:10 -0700 | [diff] [blame] | 126 | ## References |
Kostya Serebryany | e751c6c | 2016-10-17 16:40:10 -0700 | [diff] [blame] | 127 | * [libFuzzer documentation](http://libfuzzer.info) |
| 128 | * [libFuzzer tutorial](http://tutorial.libfuzzer.info) |
Mike Aizatsky | 4407d87 | 2016-10-19 10:52:02 -0700 | [diff] [blame] | 129 | * [Chromium Fuzzing Page](https://chromium.googlesource.com/chromium/src/testing/libfuzzer/) |
Mike Aizatsky | 3986fa3 | 2016-09-14 09:44:10 -0700 | [diff] [blame] | 130 | |