본문으로 건너뛰기
Skillpedia
테스트8.0k · #12722

ossfuzz

하는 일

오픈소스 프로젝트를 OSS-Fuzz에 맞게 준비하고, OSS-Fuzz의 도우미 도구를 로컬에서 실행합니다. 무료 지속 퍼징과 보고된 버그 재현 도움을 원하는 오픈소스 관리자를 위한 것입니다.

사용하는 경우

  • ✓오픈소스 프로젝트를 관리하면서 OSS-Fuzz의 지속 퍼징을 원할 때.
  • ✓OSS-Fuzz 버그 보고를 받아 자신의 컴퓨터에서 충돌을 재현해야 할 때.
  • ✓제출하기 전에 OSS-Fuzz 빌드를 로컬에서 테스트하고 싶은 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/trailofbits/skills/blob/main/plugins/testing-handbook-skills/skills/ossfuzz/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 오픈소스 C 라이브러리를 OSS-Fuzz에 추가하고, 먼저 제 컴퓨터에서 빌드를 테스트하도록 도와주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 프로젝트 설정, Dockerfile, 빌드 스크립트 같은 프로젝트 파일을 쓴 다음, OSS-Fuzz의 도우미로 로컬에서 하네스를 빌드하고 실행합니다. 충돌을 재현하는 것도 같은 단계를 따릅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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:

자주 묻는 질문

OSS-Fuzz는 무료인가요?

오픈소스 프로젝트를 위한 무료 서비스라고 설명하지만, 선정된 프로젝트만 받아들여집니다.

자체 복사본을 호스팅할 수 있나요?

네. 핵심이 오픈소스이므로 비공개 프로젝트도 자체 인스턴스를 실행할 수 있습니다.

프로젝트에 어떤 파일이 필요한가요?

프로젝트 설정 파일, Dockerfile, 빌드 스크립트가 필요하며, 스킬이 설정을 돕습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
8.0k
순위
#12722
라이선스
CC-BY-SA-4.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬