blob: d22c290f27ca7d0ad800a8c05112b121a9f383a2 [file] [log] [blame] [view]
Kostya Serebryany8454ca72016-10-25 18:41:41 -07001# oss-fuzz - Continuous Fuzzing for Open Source Software
Mike Aizatsky3986fa32016-09-14 09:44:10 -07002
Mike Aizatskyd2db6a12016-10-25 14:36:24 -07003> *Status*: Beta. We are preparing the project for the first public release. Documentation and smoothing the process is our main priority.
Mike Aizatsky3986fa32016-09-14 09:44:10 -07004
Mike Aizatskya95b41b2016-10-25 16:36:29 -07005[FAQ](docs/faq.md)
Mike Aizatsky5ded7222016-10-26 11:16:30 -07006| [New Target Guide](docs/new_target.md)
Mike Aizatsky6e8e29e2016-10-26 11:49:53 -07007| [Reproducing](docs/reproducing.md)
Mike Aizatskyb6652b52016-10-25 16:52:27 -07008| [Targets List](targets/README.md)
Mike Aizatsky72732852016-10-17 12:59:36 -07009
Mike Aizatsky92511cd2016-10-25 14:36:06 -070010
11[Create New Issue](https://github.com/google/oss-fuzz/issues/new) for questions or feedback.
Mike Aizatsky25a86da2016-10-25 14:33:39 -070012
Mike Aizatsky8f24df72016-10-25 14:31:45 -070013## Goals
14
15Oss-fuzz aims to make common open source software more secure by
16combining modern white-box fuzzing techniques together with scalable
Kostya Serebryany4b6e7032016-10-25 18:21:41 -070017distributed execution.
Mike Aizatsky8f24df72016-10-25 14:31:45 -070018
19At the first stage of the project we plan to combine
20[libFuzzer](http://llvm.org/docs/LibFuzzer.html) with various `clang`
21[sanitizers](https://github.com/google/sanitizers).
22[ClusterFuzz](https://blog.chromium.org/2012/04/fuzzing-for-security.html)
23provides distributed fuzzer execution environment and reporting.
24
25## Background
26
27[Fuzz testing](https://en.wikipedia.org/wiki/Fuzz_testing) is a well-known
28technique for uncovering certain types of programming errors in software.
29Many detectable errors (e.g. buffer overruns) have real security
30implications.
31
32Our previous experience applying [libFuzzer](http://llvm.org/docs/LibFuzzer.html)
33to do [guided in-process fuzzing of Chrome components](https://security.googleblog.com/2016/08/guided-in-process-fuzzing-of-chrome.html)
34has proved very successful.
35
36
37## Process Overview
38
39The following process is used for targets in oss-fuzz:
40
41- a target is accepted to oss-fuzz.
42- oss-fuzz build server build target fuzzers regularly and submits them to
43 ClusterFuzz for execution.
44- ClusterFuzz continuously executes target fuzzers
45- when fuzzing uncovers an issue, ClusterFuzz creates an internal testcase.
46- issues are automatically triaged and filed in the oss-fuzz [testcase issue
Mike Aizatsky42928b32016-10-25 14:49:25 -070047 tracker](https://bugs.chromium.org/p/oss-fuzz/issues/list).
48 [Example issue](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9).
Mike Aizatsky557e4482016-10-25 16:40:47 -070049 ([Why different tracker?](docs/faq.md#why-do-you-use-a-different-issue-tracker-for-reportig-bugs-in-fuzz-targets))
Mike Aizatsky8f24df72016-10-25 14:31:45 -070050- if the target project has a defined process for reporting security issues,
Mike Aizatsky0d2c7f92016-10-25 14:59:45 -070051 we will follow it, otherwise we will cc target engineers on an issue.
52- engineers fix the issue and land the fix upstream.
Mike Aizatsky8f24df72016-10-25 14:31:45 -070053- fuzzing infrastructure automatically verifies the fix, adds a comment and
54 closes the issue.
Mike Aizatsky0d2c7f92016-10-25 14:59:45 -070055- after the issue is fixed or after 90 days since reporting has passed, the issue
Mike Aizatsky8f24df72016-10-25 14:31:45 -070056 becomes *public*.
57
Mike Aizatsky42928b32016-10-25 14:49:25 -070058The following table summarizes issue visibility through the process:
59
60| Issue State | Visibility |
61|----------|------------|
62| New | oss-fuzz engineers |
Kostya Serebryany8f34de82016-10-25 18:24:42 -070063| Reported | oss-fuzz engineers + everyone CC'ed on the bug |
Mike Aizatsky42928b32016-10-25 14:49:25 -070064| Fixed & Verified | public |
65| Lapsed (90 days since report) | public |
Mike Aizatsky8f24df72016-10-25 14:31:45 -070066
67## Accepting New Targets
68
Kostya Serebryany7053f0f2016-10-25 18:34:38 -070069In order to be accepted to oss-fuzz, an open-source project must
70have a significant user base and/or be critical to the global IT infrastructure.
Mike Aizatsky8f24df72016-10-25 14:31:45 -070071
72To submit a new target to oss-fuzz:
Mike Aizatskye84f13c2016-10-26 11:47:04 -070073- create a pull request with a change to [targets/README.md](targets/README.md) providing the following information:
Mike Aizatsky8f24df72016-10-25 14:31:45 -070074 * project site and details
75 * source code repository location
76 * a link to the project security issue reporting process *OR*
77 * an e-mail of the engineering contact person to be CCed on issue. This
Mike Aizatskye7b8a082016-10-25 14:58:44 -070078 has to be an e-mail with google account that belongs to an
Mike Aizatsky7e497062016-10-25 15:01:11 -070079 established project committer (according to VCS logs).
80 If this is not you or address differs from VCS, an informal e-mail verification will be required.
Mike Aizatskyb6652b52016-10-25 16:52:27 -070081 This e-mail will also be publicly listed in our [Targets](targets/README.md)
Mike Aizatsky8f24df72016-10-25 14:31:45 -070082 page.
Mike Aizatskya95b41b2016-10-25 16:36:29 -070083- once accepted by an oss-fuzz project member, follow the [New Target Guide](docs/new_target.md)
Mike Aizatsky8f24df72016-10-25 14:31:45 -070084 to write the code.
85
86
Kostya Serebryanye9be2cf2016-10-25 18:39:20 -070087## Bug Disclosure Guidelines
Mike Aizatsky8f24df72016-10-25 14:31:45 -070088
89Following Google's standard [disclosure policy](https://googleprojectzero.blogspot.com/2015/02/feedback-and-data-driven-updates-to.html)
90oss-fuzz will adhere to following disclosure principles:
Mike Aizatskya95b41b2016-10-25 16:36:29 -070091 - **90-day deadline**. After notifying target authors, we will open reported
Mike Aizatsky8f24df72016-10-25 14:31:45 -070092 issues in 90 days, or sooner if the fix is released.
93 - **Weekends and holidays**. If a deadline is due to expire on a weekend or
94 US public holiday, the deadline will be moved to the next normal work day.
95 - **Grace period**. We will have a 14-day grace period. If a 90-day deadline
Mike Aizatskya95b41b2016-10-25 16:36:29 -070096 will expire but upstream engineers let us know before the deadline that a
Mike Aizatsky8f24df72016-10-25 14:31:45 -070097 patch is scheduled for release on a specific day within 14 days following
98 the deadline, the public disclosure will be delayed until the availability
99 of the patch.
100
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700101## Documentation
102
Mike Aizatskya95b41b2016-10-25 16:36:29 -0700103* [New Target Guide](docs/new_target.md) walks through steps necessary to add new targets to oss-fuzz.
Mike Aizatsky3e3dcd22016-09-27 11:59:07 -0700104* [Running and Building Fuzzers](docs/building_running_fuzzers.md) documents the process for fuzzers that are
105 *part of target project* source code repository.
106* [Running and Building External Fuzzers](docs/building_running_fuzzers_external.md) documents the process for fuzzers that are
107 *part of oss-fuzz* source code repository.
Mike Aizatskyb6652b52016-10-25 16:52:27 -0700108* [Targets List](targets/README.md) lists OSS targets added to oss-fuzz.
Mike Aizatsky4028e812016-10-19 10:53:00 -0700109* [Chrome's Efficient Fuzzer Guide](https://chromium.googlesource.com/chromium/src/testing/libfuzzer/+/HEAD/efficient_fuzzer.md)
110 while contains some chrome-specifics, is an excellent documentation on making your fuzzer better.
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700111
Oliver Changa25bf352016-10-07 18:28:27 -0700112## Build status
Oliver Chang6c315052016-10-25 20:39:39 -0700113[This page](https://oss-fuzz-build-logs.storage.googleapis.com/status.html)
114gives the latest build logs for each target.
Oliver Changa25bf352016-10-07 18:28:27 -0700115
Oliver Chang9e0c1432016-10-25 20:44:34 -0700116## Trophies
Mike Aizatsky26819642016-10-06 14:02:52 -0700117
Oliver Chang9e0c1432016-10-25 20:44:34 -0700118[This page](https://bugs.chromium.org/p/oss-fuzz/issues/list?can=1&q=status%3AFixed%2CVerified+Type%3ABug%2CBug-Security+-component%3AInfra+)
119gives a list of publically viewable (fixed) bugs found by oss-fuzz.
Mike Aizatsky26819642016-10-06 14:02:52 -0700120
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700121## References
Kostya Serebryanye751c6c2016-10-17 16:40:10 -0700122* [libFuzzer documentation](http://libfuzzer.info)
123* [libFuzzer tutorial](http://tutorial.libfuzzer.info)
Mike Aizatsky4407d872016-10-19 10:52:02 -0700124* [Chromium Fuzzing Page](https://chromium.googlesource.com/chromium/src/testing/libfuzzer/)
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700125