Skillpedia
الاختبار8.0k · #12722

ossfuzz

ما الذي تفعله

تجهّز هذه المهارة مشروعًا مفتوح المصدر لـ OSS-Fuzz وتشغّل أدواته المساعدة محليًا. وهي موجهة إلى أصحاب المشاريع مفتوحة المصدر الذين يريدون fuzzing مستمرًا مجانيًا ومساعدة في إعادة إنتاج الأخطاء المبلّغ عنها.

متى تستخدمها

  • ✓عندما تصون مشروعًا مفتوح المصدر وتريد fuzzing مستمرًا من OSS-Fuzz.
  • ✓عندما تتلقى تقرير خطأ من OSS-Fuzz وتحتاج إلى إعادة إنتاج العطل على حاسوبك.
  • ✓عندما تريد اختبار بناء OSS-Fuzz محليًا قبل إرساله.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/trailofbits/skills/blob/main/plugins/testing-handbook-skills/skills/ossfuzz/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل تساعدني في إضافة مكتبة C مفتوحة المصدر لدي إلى OSS-Fuzz، واختبار البناء على حاسوبي أولًا؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يكتب الوكيل ملفات المشروع، مثل ملف الإعداد و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
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة