blob: d2129492e9afaa755e94b39b5be1853c8175e0c6 [file] [log] [blame] [view]
Mike Aizatsky3986fa32016-09-14 09:44:10 -07001# oss-fuzz
2
Mike Aizatsky25a86da2016-10-25 14:33:39 -07003> Fuzzing Open Source Software
Mike Aizatsky3986fa32016-09-14 09:44:10 -07004
Mike Aizatskyd2db6a12016-10-25 14:36:24 -07005> *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 -07006
Mike Aizatsky92511cd2016-10-25 14:36:06 -07007[New Library Guide](docs/new_library.md)
8| [Project List](docs/projects.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
17distributed running.
18
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
47 tracker](https://bugs.chromium.org/p/oss-fuzz/issues/list).
48 The issue is visible to *oss-fuzz engineers only*.
49 ([Example issue](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9).)
50- if the target project has a defined process for reporting security issues,
51 we will follow it, otherwise we will cc library contact engineers on an issue.
52 The issue becomes visible to *CCed people*.
53- library engineers fix the issue and land the fix upstream.
54- fuzzing infrastructure automatically verifies the fix, adds a comment and
55 closes the issue.
56- after the issue is fixed or after 90 days since reporting has passed the issue
57 becomes *public*.
58
59See [Life of a Bug](life_of_a_bug.md) for more information about handling bugs.
60
61## Accepting New Targets
62
63To be accepted to oss-fuzz, a target must be an open-source project with either
64a significant user base or it has to be critical to a global IT infrastructure.
65
66To submit a new target to oss-fuzz:
67- create a pull request and provide the following information:
68 * project site and details
69 * source code repository location
70 * a link to the project security issue reporting process *OR*
71 * an e-mail of the engineering contact person to be CCed on issue. This
72 has to be an established project committer e-mail (present in VCS logs)
73 If this is not you, the committer has to acknowledge theirself.
74 This e-mail will also be publicly listed in our [Projects](projects.md)
75 page.
76- once accepted by an oss-fuzz project member, follow the [New Library Guide](new_library.md)
77 to write the code.
78
79
80## Disclosure Guidelines
81
82Following Google's standard [disclosure policy](https://googleprojectzero.blogspot.com/2015/02/feedback-and-data-driven-updates-to.html)
83oss-fuzz will adhere to following disclosure principles:
84 - **90-day deadline**. After notifying library authors, we will open reported
85 issues in 90 days, or sooner if the fix is released.
86 - **Weekends and holidays**. If a deadline is due to expire on a weekend or
87 US public holiday, the deadline will be moved to the next normal work day.
88 - **Grace period**. We will have a 14-day grace period. If a 90-day deadline
89 will expire but library engineers let us know before the deadline that a
90 patch is scheduled for release on a specific day within 14 days following
91 the deadline, the public disclosure will be delayed until the availability
92 of the patch.
93
Mike Aizatsky3986fa32016-09-14 09:44:10 -070094## Documentation
95
96* [New Library Guide](docs/new_library.md) walks through steps necessary to add fuzzers to an open source project.
Mike Aizatsky3e3dcd22016-09-27 11:59:07 -070097* [Running and Building Fuzzers](docs/building_running_fuzzers.md) documents the process for fuzzers that are
98 *part of target project* source code repository.
99* [Running and Building External Fuzzers](docs/building_running_fuzzers_external.md) documents the process for fuzzers that are
100 *part of oss-fuzz* source code repository.
Mike Aizatskyef4d3ae2016-10-06 13:59:17 -0700101* [Project List](docs/projects.md) lists OSS projects integrated with oss-fuzz.
Oliver Chang5d4f10f2016-10-17 10:23:28 -0700102* [Life of a bug](docs/life_of_a_bug.md)
Mike Aizatsky4028e812016-10-19 10:53:00 -0700103* [Chrome's Efficient Fuzzer Guide](https://chromium.googlesource.com/chromium/src/testing/libfuzzer/+/HEAD/efficient_fuzzer.md)
104 while contains some chrome-specifics, is an excellent documentation on making your fuzzer better.
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700105
Oliver Changa25bf352016-10-07 18:28:27 -0700106## Build status
107[Build status](https://oss-fuzz-build-logs.storage.googleapis.com/status.html)
108
Mike Aizatsky26819642016-10-06 14:02:52 -0700109## Bounties
110
111* freetype2:
112[9](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9&can=1&q=&colspec=ID%20Type%20Component%20Status%20Priority%20Milestone%20Owner%20Summary),
Max Moroz539cbab2016-10-10 15:22:23 +0200113[10](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10&can=1&q=&colspec=ID%20Type%20Component%20Status%20Priority%20Milestone%20Owner%20Summary),
Mike Aizatsky26819642016-10-06 14:02:52 -0700114[36](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36&can=1&q=&colspec=ID%20Type%20Component%20Status%20Priority%20Milestone%20Owner%20Summary)
115
116
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700117## References
Kostya Serebryanye751c6c2016-10-17 16:40:10 -0700118* [libFuzzer documentation](http://libfuzzer.info)
119* [libFuzzer tutorial](http://tutorial.libfuzzer.info)
Mike Aizatsky4407d872016-10-19 10:52:02 -0700120* [Chromium Fuzzing Page](https://chromium.googlesource.com/chromium/src/testing/libfuzzer/)
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700121