blob: 01db35c97a592e527138843ccb621a2aefee68aa [file] [log] [blame] [view]
inferno-chromiuma660ca32016-11-23 08:35:07 -08001# OSS-Fuzz - Continuous Fuzzing for Open Source Software
Mike Aizatsky3986fa32016-09-14 09:44:10 -07002
inferno-chromiuma660ca32016-11-23 08:35:07 -08003> *Status*: Beta. We are preparing the project for public release soon.
Mike Aizatsky3986fa32016-09-14 09:44:10 -07004
Mike Aizatskya95b41b2016-10-25 16:36:29 -07005[FAQ](docs/faq.md)
Kostya Serebryanyc5bf8fd2016-11-18 16:58:20 -08006| [Ideal Fuzzing Integration](docs/ideal_integration.md)
Abhishek Aryaea873052016-11-29 10:57:46 -08007| [New Project Guide](docs/new_project_guide.md)
Kostya Serebryanye20e32b2016-11-29 13:25:25 -08008| [Reproducing Bugs](docs/reproducing.md)
9| [Projects](projects)
Abhishek Aryaea873052016-11-29 10:57:46 -080010| [Projects Issue Tracker](https://bugs.chromium.org/p/oss-fuzz/issues/list)
Kostya Serebryanye24d41a2016-11-29 13:22:57 -080011| [Glossary](docs/glossary.md)
Mike Aizatsky72732852016-10-17 12:59:36 -070012
Mike Aizatsky92511cd2016-10-25 14:36:06 -070013
Kostya Serebryanya4160422016-11-21 14:01:10 -080014[Create New Issue](https://github.com/google/oss-fuzz/issues/new) for questions or feedback about OSS-Fuzz.
Mike Aizatsky25a86da2016-10-25 14:33:39 -070015
Kostya Serebryany1250af62016-11-21 13:48:02 -080016## Introduction
Mike Aizatsky8f24df72016-10-25 14:31:45 -070017
18[Fuzz testing](https://en.wikipedia.org/wiki/Fuzz_testing) is a well-known
Kostya Serebryanyb2f73b22016-11-18 16:50:54 -080019technique for uncovering various kinds of programming errors in software.
inferno-chromiuma660ca32016-11-23 08:35:07 -080020Many of these detectable errors (e.g. [buffer overflow](https://en.wikipedia.org/wiki/Buffer_overflow)) can have serious security implications.
Mike Aizatsky8f24df72016-10-25 14:31:45 -070021
Kostya Serebryanyb48c72b2016-11-18 16:47:25 -080022We successfully deployed
23[guided in-process fuzzing of Chrome components](https://security.googleblog.com/2016/08/guided-in-process-fuzzing-of-chrome.html)
inferno-chromiuma660ca32016-11-23 08:35:07 -080024and found [hundreds](https://bugs.chromium.org/p/chromium/issues/list?can=1&q=label%3AStability-LibFuzzer+-status%3ADuplicate%2CWontFix) of security vulnerabilities and stability bugs. We now want to share the experience and the service with the open source community.
Mike Aizatsky8f24df72016-10-25 14:31:45 -070025
inferno-chromiuma660ca32016-11-23 08:35:07 -080026In cooperation with the [Core Infrastructure Initiative](https://www.coreinfrastructure.org/),
27OSS-Fuzz aims to make common open source software more secure and stable by
Kostya Serebryanyb48c72b2016-11-18 16:47:25 -080028combining modern fuzzing techniques and scalable
29distributed execution.
30
31At the first stage of the project we use
32[libFuzzer](http://llvm.org/docs/LibFuzzer.html) with
33[Sanitizers](https://github.com/google/sanitizers). More fuzzing engines will be added later.
34[ClusterFuzz](docs/clusterfuzz.md)
35provides distributed fuzzer execution environment and reporting.
Mike Aizatsky8f24df72016-10-25 14:31:45 -070036
Kostya Serebryany229ffae2016-12-02 20:41:47 -080037Currently OSS-Fuzz supports C and C++ code (other languages supported by [LLVM](http://llvm.org) may work too).
38
Mike Aizatsky8f24df72016-10-25 14:31:45 -070039## Process Overview
40
Abhishek Aryaea873052016-11-29 10:57:46 -080041The following process is used for projects in OSS-Fuzz:
Mike Aizatsky8f24df72016-10-25 14:31:45 -070042
Kostya Serebryany02915722016-11-18 15:48:16 -080043- A maintainer of an opensource project or an outside volunteer creates
Kostya Serebryanyf133c892016-11-21 13:53:40 -080044one or more [fuzz targets](http://libfuzzer.info/#fuzz-target)
45and [integrates](docs/ideal_integration.md) them with the project's build and test system.
Kostya Serebryany30575082016-12-02 17:15:57 -080046- The project is [accepted to OSS-Fuzz](#accepting-new-projects).
Kostya Serebryany02915722016-11-18 15:48:16 -080047- When [ClusterFuzz](docs/clusterfuzz.md) finds a bug, an issue is automatically
Kostya Serebryany6a4f2ee2016-11-18 15:50:54 -080048 reported in the OSS-Fuzz [issue tracker](https://bugs.chromium.org/p/oss-fuzz/issues/list)
49 ([example](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9)).
inferno-chromium65b15732016-11-29 11:42:58 -080050 ([Why different tracker?](docs/faq.md#why-do-you-use-a-different-issue-tracker-for-reporting-bugs-in-oss-projects)).
Kostya Serebryany8e95e1a2016-11-18 15:52:12 -080051 Project owners are CC-ed to the bug report.
Kostya Serebryany02915722016-11-18 15:48:16 -080052- The bug is fixed upstream.
inferno-chromiumf8d92b92016-11-26 18:22:14 -080053- [ClusterFuzz](docs/clusterfuzz.md) automatically verifies the fix, adds a comment and closes the issue ([example](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53#c3)).
Kostya Serebryany534718a2016-11-30 10:39:22 -080054- 7 days after the fix is verified or 90 days after reporting, the issue becomes *public*
inferno-chromiuma660ca32016-11-23 08:35:07 -080055 ([guidelines](#bug-disclosure-guidelines)).
Mike Aizatsky8f24df72016-10-25 14:31:45 -070056
Mike Aizatsky3b639fb2016-11-22 11:48:48 -080057<!-- NOTE: this anchor is referenced by oss-fuzz blog post -->
Abhishek Aryaea873052016-11-29 10:57:46 -080058## Accepting New Projects
Mike Aizatsky8f24df72016-10-25 14:31:45 -070059
Abhishek Aryaea873052016-11-29 10:57:46 -080060To be accepted to OSS-Fuzz, an open-source project must
Kostya Serebryany7053f0f2016-10-25 18:34:38 -070061have a significant user base and/or be critical to the global IT infrastructure.
Abhishek Aryaea873052016-11-29 10:57:46 -080062To submit a new project:
inferno-chromiumb975a522016-11-23 08:43:15 -080063- [Create a pull request](https://help.github.com/articles/creating-a-pull-request/) with new
inferno-chromium5f71a382016-12-01 12:46:20 -080064`projects/<project_name>/project.yaml` file ([example](projects/libarchive/project.yaml)) giving at least the following information:
Abhishek Aryaea873052016-11-29 10:57:46 -080065 * project homepage.
inferno-chromiuma660ca32016-11-23 08:35:07 -080066 * e-mail of the engineering contact person to be CCed on new issues. This
67 email should be
Kostya Serebryany81545e12016-11-18 08:32:07 -080068 [linked to a Google Account](https://support.google.com/accounts/answer/176347?hl=en)
Kostya Serebryanya3dff732016-12-02 14:54:24 -080069 ([why?](docs/faq.md#why-we-require-an-e-mail-associated-with-a-google-account))
Abhishek Aryaea873052016-11-29 10:57:46 -080070 and belong to an established project committer (according to VCS logs).
inferno-chromiuma660ca32016-11-23 08:35:07 -080071 If this is not you or the email address differs from VCS, an informal e-mail verification will be required.
inferno-chromium235ba312016-12-01 12:40:43 -080072 * Note that `project_name` can only contain alphanumeric characters, underscores(_) or dashes(-).
Abhishek Aryaea873052016-11-29 10:57:46 -080073- Once accepted by an OSS-Fuzz project member, follow the [New Project Guide](docs/new_project_guide.md)
Mike Aizatsky8f24df72016-10-25 14:31:45 -070074 to write the code.
75
76
Kostya Serebryanye9be2cf2016-10-25 18:39:20 -070077## Bug Disclosure Guidelines
Mike Aizatsky8f24df72016-10-25 14:31:45 -070078
inferno-chromiuma660ca32016-11-23 08:35:07 -080079Following [Google's standard disclosure policy](https://googleprojectzero.blogspot.com/2015/02/feedback-and-data-driven-updates-to.html)
inferno-chromium459050e2016-11-16 10:12:37 -080080OSS-Fuzz will adhere to following disclosure principles:
Abhishek Aryaea873052016-11-29 10:57:46 -080081 - **90-day deadline**. After notifying project authors, we will open reported
Kostya Serebryanyef90c6c2016-11-18 17:00:15 -080082 issues in 90 days, or 7 days after the fix is released.
Mike Aizatsky8f24df72016-10-25 14:31:45 -070083 - **Weekends and holidays**. If a deadline is due to expire on a weekend or
84 US public holiday, the deadline will be moved to the next normal work day.
inferno-chromiuma660ca32016-11-23 08:35:07 -080085 - **Grace period**. We have a 14-day grace period. If a 90-day deadline
Kostya Serebryany2a8a3ca2016-11-30 10:43:22 -080086 expires but the upstream engineers let us know before the deadline that a
Mike Aizatsky8f24df72016-10-25 14:31:45 -070087 patch is scheduled for release on a specific day within 14 days following
88 the deadline, the public disclosure will be delayed until the availability
89 of the patch.
90
Kostya Serebryany2b464882016-11-18 16:08:25 -080091## More Documentation
Mike Aizatsky3986fa32016-09-14 09:44:10 -070092
inferno-chromium57c12582016-11-29 13:18:18 -080093* [Glossary](docs/glossary.md) describes the common terms used in OSS-Fuzz.
Abhishek Aryaea873052016-11-29 10:57:46 -080094* [New Project Guide](docs/new_project_guide.md) walks through the steps necessary to add new projects to OSS-Fuzz.
inferno-chromiuma660ca32016-11-23 08:35:07 -080095* [Ideal Integration](docs/ideal_integration.md) describes the steps to integrate fuzz targets with your project.
Oliver Chang9158c542016-11-07 13:08:44 -080096* [Fuzzer execution environment](docs/fuzzer_environment.md) documents the
97 environment under which your fuzzers will be run.
inferno-chromium3e5c61c2016-11-29 13:34:58 -080098* [Projects](projects) lists OSS projects currently added to OSS-Fuzz.
Mike Aizatsky4028e812016-10-19 10:53:00 -070099* [Chrome's Efficient Fuzzer Guide](https://chromium.googlesource.com/chromium/src/testing/libfuzzer/+/HEAD/efficient_fuzzer.md)
100 while contains some chrome-specifics, is an excellent documentation on making your fuzzer better.
Kostya Serebryanyfefde242016-12-02 15:44:43 -0800101* Blog posts: 2016-12-01 ([1](https://opensource.googleblog.com/2016/12/announcing-oss-fuzz-continuous-fuzzing.html),
102[2](https://testing.googleblog.com/2016/12/announcing-oss-fuzz-continuous-fuzzing.html),
103[3](https://security.googleblog.com/2016/12/announcing-oss-fuzz-continuous-fuzzing.html))
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700104
inferno-chromium6ee2fe32016-11-26 18:30:49 -0800105## Build Status
Oliver Chang6c315052016-10-25 20:39:39 -0700106[This page](https://oss-fuzz-build-logs.storage.googleapis.com/status.html)
Abhishek Aryaea873052016-11-29 10:57:46 -0800107gives the latest build logs for each project.
Oliver Changa25bf352016-10-07 18:28:27 -0700108
Oliver Chang9e0c1432016-10-25 20:44:34 -0700109## Trophies
Mike Aizatsky26819642016-10-06 14:02:52 -0700110
Oliver Chang9e0c1432016-10-25 20:44:34 -0700111[This page](https://bugs.chromium.org/p/oss-fuzz/issues/list?can=1&q=status%3AFixed%2CVerified+Type%3ABug%2CBug-Security+-component%3AInfra+)
inferno-chromium74542942016-11-29 11:46:55 -0800112gives a list of publically viewable fixed bugs found by OSS-Fuzz.
Mike Aizatsky26819642016-10-06 14:02:52 -0700113
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700114## References
Kostya Serebryanye751c6c2016-10-17 16:40:10 -0700115* [libFuzzer documentation](http://libfuzzer.info)
116* [libFuzzer tutorial](http://tutorial.libfuzzer.info)
Mike Aizatsky4407d872016-10-19 10:52:02 -0700117* [Chromium Fuzzing Page](https://chromium.googlesource.com/chromium/src/testing/libfuzzer/)
inferno-chromiumb975a522016-11-23 08:43:15 -0800118* [ClusterFuzz](https://blog.chromium.org/2012/04/fuzzing-for-security.html)
Mike Aizatsky3986fa32016-09-14 09:44:10 -0700119