Zum Inhalt springen
Skillpedia
Tests8.0k · #12722

ossfuzz

Was er macht

Dieser Skill bereitet ein Open-Source-Projekt für OSS-Fuzz vor und führt dessen Hilfswerkzeuge lokal aus. Er richtet sich an Open-Source-Maintainer, die kontinuierliches Fuzzing ohne Kosten und Hilfe beim Nachstellen gemeldeter Fehler wollen.

Wann du ihn nutzt

  • ✓Wenn du ein Open-Source-Projekt pflegst und kontinuierliches Fuzzing durch OSS-Fuzz willst.
  • ✓Wenn du eine Fehlermeldung von OSS-Fuzz erhalten hast und den Absturz auf deinem Rechner nachstellen musst.
  • ✓Wenn du einen OSS-Fuzz-Build lokal testen willst, bevor du ihn einreichst.

Link zum Skill

https://github.com/trailofbits/skills/blob/main/plugins/testing-handbook-skills/skills/ossfuzz/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/trailofbits/skills/blob/main/plugins/testing-handbook-skills/skills/ossfuzz/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Kannst du mir helfen, meine C-Open-Source-Bibliothek zu OSS-Fuzz hinzuzufügen und den Build zuerst auf meinem Computer zu testen?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent schreibt die Projektdateien, etwa eine Projektkonfiguration, ein Dockerfile und ein Build-Skript. Danach nutzt er den Helfer von OSS-Fuzz, um die Harnesses lokal zu bauen und auszuführen. Das Nachstellen eines Absturzes folgt denselben Schritten.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

OSS-Fuzz

OSS-Fuzz is an open-source project developed by Google that provides free distributed infrastructure for continuous fuzz testing. It streamlines the fuzzing process and facilitates simpler modifications. While only select projects are accepted into OSS-Fuzz, the project's core is open-source, allowing anyone to host their own instance for private projects.

Overview

OSS-Fuzz provides a simple CLI framework for building and starting harnesses or calculating their coverage. Additionally, OSS-Fuzz can be used as a service that hosts static web pages generated from fuzzing outputs such as coverage information.

Key Concepts

Concept Description
helper.py CLI script for building images, building fuzzers, and running harnesses locally
Base Images Hierarchical Docker images providing build dependencies and compilers
project.yaml Configuration file defining project metadata for OSS-Fuzz enrollment
Dockerfile Project-specific image with build dependencies
build.sh Script that builds fuzzing harnesses for your project
Criticality Score Metric used by OSS-Fuzz team to evaluate project acceptance

When to Apply

Apply this technique when:

  • Setting up continuous fuzzing for an open-source project
  • Need distributed fuzzing infrastructure without managing servers
  • Want coverage reports and bug tracking integrated with fuzzing
  • Testing existing OSS-Fuzz harnesses locally
  • Reproducing crashes from OSS-Fuzz bug reports

Skip this technique when:

  • Project is closed-source (unless hosting your own OSS-Fuzz instance)
  • Project doesn't meet OSS-Fuzz's criticality score threshold
  • Need proprietary or specialized fuzzing infrastructure
  • Fuzzing simple scripts that don't warrant infrastructure

Quick Reference

Task Command
Clone OSS-Fuzz git clone https://github.com/google/oss-fuzz
Build project image uv run --no-project python infra/helper.py build_image --pull <project>
Build fuzzers with ASan uv run --no-project python infra/helper.py build_fuzzers --sanitizer=address <project>
Run specific harness uv run --no-project python infra/helper.py run_fuzzer <project> <harness>
Generate coverage report uv run --no-project python infra/helper.py coverage <project>
Check helper.py options uv run --no-project python infra/helper.py --help

OSS-Fuzz Project Components

OSS-Fuzz provides several publicly available tools and web interfaces:

Bug Tracker

The bug tracker allows you to:

  • Check bugs from specific projects (initially visible only to maintainers, later made public)
  • Create new issues and comment on existing ones
  • Search for similar bugs across all projects to understand issues

Build Status System

The build status system helps track:

  • Build statuses of all included projects
  • Date of last successful build
  • Build failures and their duration

Fuzz Introspector

Fuzz Introspector displays:

  • Coverage data for projects enrolled in OSS-Fuzz
  • Hit frequency for covered code
  • Performance analysis and blocker identification

Read this case study for examples and explanations.

Step-by-Step: Running a Single Harness

You don't need to host the whole OSS-Fuzz platform to use it. The helper script makes it easy to run individual harnesses locally.

Step 1: Clone OSS-Fuzz

git clone https://github.com/google/oss-fuzz
cd oss-fuzz
uv run --no-project python infra/helper.py --help

Step 2: Build Project Image

uv run --no-project python infra/helper.py build_image --pull <project-name>

This downloads and builds the base Docker image for the project.

Step 3: Build Fuzzers with Sanitizers

uv run --no-project python infra/helper.py build_fuzzers --sanitizer=address <project-name>

Sanitizer options:

Häufige Fragen

Ist OSS-Fuzz kostenlos?

Der Skill beschreibt es als kostenlosen Dienst für Open-Source-Projekte, allerdings werden nur ausgewählte Projekte angenommen.

Kann ich eine eigene Kopie betreiben?

Ja. Der Kern ist Open Source, daher können private Projekte eine eigene Instanz betreiben.

Welche Dateien braucht ein Projekt?

Es braucht eine Projektkonfigurationsdatei, ein Dockerfile und ein Build-Skript. Der Skill hilft bei der Einrichtung.

Details

Originalbeschreibung des Autors

Enrolls a project in OSS-Fuzz, Google's free continuous fuzzing service for open source, and drives it locally. Covers project.yaml, Dockerfile and build.sh setup, the helper scripts, reproducing OSS-Fuzz crash reports, and the acceptance criteria. Use when setting up continuous fuzzing for an open-source project, reproducing an OSS-Fuzz bug report, or testing an OSS-Fuzz build before submitting it.

repo: trailofbits/skills

Beliebtheit

GitHub-Sterne
8.0k
Platz im Ranking
#12722
Lizenz
CC-BY-SA-4.0
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills