Community编程与开发github.com

trailofbits/ossfuzz

OSS-Fuzz 为开源项目提供免费的持续模糊测试服务。适用于设置持续模糊测试基础设施或注册项目时使用。

ossfuzz 是什么?

OSS-Fuzz 是 Google 发起的一项免费持续模糊测试服务,专门为开源项目提供安全漏洞检测。该技能帮助开发者快速为项目集成 OSS-Fuzz,自动设置模糊测试基础设施并注册项目。支持多种编程语言(如 C/C++、Python、Java、Go 等),并利用 ClusterFuzz 进行大规模分布式测试。通过持续的模糊测试,可以自动发现并报告内存泄漏、崩溃、未定义行为等安全缺陷,同时提供覆盖率分析、回归测试等功能,显著提升项目的安全性。该技能适用于希望增强软件可靠性并参与社区安全贡献的开发者团队,支持与 GitHub Actions、GitLab CI 等平台集成。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/trailofbits/skills/tree/main/skills/ossfuzz

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

ossfuzz 是做什么的?

OSS-Fuzz 为开源项目提供免费的持续模糊测试服务。适用于设置持续模糊测试基础设施或注册项目时使用。

概述

OSS-Fuzz 是 Google 发起的一项持续模糊测试服务,旨在通过自动化测试发现开源软件中的安全漏洞和稳定性问题。本技能帮助开发者快速将项目接入 OSS-Fuzz 生态,享受免费的持续模糊测试资源。

主要功能

  • 持续模糊测试:自动构建并运行模糊测试,发现潜在的安全缺陷。
  • 多语言支持:支持 C/C++、Python、Java、Go、Rust 等主流语言。
  • 分布式测试:利用 ClusterFuzz 进行大规模并行测试。
  • 自动报告:发现漏洞后自动创建详细报告,包括崩溃堆栈和复现步骤。
  • 覆盖率分析:提供代码覆盖率数据,帮助评估测试效果。

使用场景

  • 为新的开源项目注册 OSS-Fuzz 服务。
  • 为已有项目添加或更新模糊测试配置。
  • 集成到 CI/CD 流水线中,实现自动化安全测试。

快速开始

  1. 确保项目满足 OSS-Fuzz 的基本要求(如公开仓库、开源许可证)。
  2. 创建 fuzzing 分支或直接在主分支上工作。
  3. 编写模糊测试脚本(如使用 LibFuzzer、AFL 等引擎)。
  4. 在项目根目录创建 Dockerfile 和 build.sh,配置构建环境。
  5. 提交 PR 到 OSS-Fuzz 官方仓库的 projects 目录,添加项目元数据。

集成支持

  • GitHub Actions:通过 OSS-Fuzz 官方 Action 实现自动构建与测试。
  • GitLab CI:使用自定义 CI 配置运行模糊测试。
  • 本地测试:通过 docker-compose 在本地环境模拟 OSS-Fuzz 构建流程。

注意事项

  • 所有项目必须为开源且维护状态良好。
  • 需要编写合适的模糊测试用例以达到有效覆盖率。
  • 初次集成可能需要数天时间完成基础设施部署。

参考资源


本技能由 trailofbits 维护,旨在简化 OSS-Fuzz 集成流程。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

trailofbits/address-sanitizer

AddressSanitizer detects memory errors during fuzzing. Use when fuzzing C/C++ code to find buffer overflows and use-after-free bugs.

trailofbits/aflpp

AFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C/C++ projects.

trailofbits/agentic-actions-auditor

Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches AI agents running in CI/CD pipelines, including env var intermediary patterns, direct expression injection, dangerous sandbox configurations, and wildcard user allowlists. Use when reviewing workflow files that invoke AI coding agents, auditing CI/CD pipeline security for prompt injection risks, or evaluating agentic action configurations.

trailofbits/algorand-vulnerability-scanner

Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees, missing field validations, and access control issues. Use when auditing Algorand projects (TEAL/PyTeal).

trailofbits/ask-questions-if-underspecified

Clarify requirements before implementing. Use when serious doubts arise.

trailofbits/atheris

Atheris is a coverage-guided Python fuzzer based on libFuzzer. Use for fuzzing pure Python code and Python C extensions.

trailofbits/audit-augmentation

Augments Trailmark code graphs with external audit findings from SARIF static analysis results and weAudit annotation files. Maps findings to graph nodes by file and line overlap, creates severity-based subgraphs, and enables cross-referencing findings with pre-analysis data (blast radius, taint, etc.). Use when projecting SARIF results onto a code graph, overlaying weAudit annotations, cross-referencing Semgrep or CodeQL findings with call graph data, or visualizing audit findings in the context of code structure.

trailofbits/audit-context-building

Enables ultra-granular, line-by-line code analysis to build deep architectural context before vulnerability or bug finding.

trailofbits/audit-prep-assistant

Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments).

trailofbits/burpsuite-project-parser

Searches and explores Burp Suite project files (.burp) from the command line. Use when searching response headers or bodies with regex patterns, extracting security audit findings, dumping proxy history or site map data, or analyzing HTTP traffic captured in a Burp project.

trailofbits/cairo-vulnerability-scanner

Scans Cairo/StarkNet smart contracts for 6 critical vulnerabilities including felt252 arithmetic overflow, L1-L2 messaging issues, address conversion problems, and signature replay. Use when auditing StarkNet projects.

trailofbits/cargo-fuzz

cargo-fuzz is the de facto fuzzing tool for Rust projects using Cargo. Use for fuzzing Rust code with libFuzzer backend.

trailofbits/chrome-mcp-troubleshooting

Diagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return "Browser extension is not connected", or behave erratically.

trailofbits/claude-in-chrome-troubleshooting

Diagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return "Browser extension is not connected", or behave erratically.

trailofbits/code-improver

Runs an autonomous review-and-fix improvement loop over any code target — a skill, plugin, module, or directory — using a reviewer the user names: any installed skill or agent. Keeps a cross-round findings ledger, escalates when fixes stop converging, and guards scope mechanically. Use when asked to 'improve this code until review passes', 'run an improvement loop with <reviewer>', or to iterate review-and-fix with a specific reviewer. For skills prefer the skill-improver entry; for a branch prefer pr-improver.

trailofbits/code-maturity-assessor

Systematic code maturity assessment using Trail of Bits' 9-category framework. Analyzes codebase for arithmetic safety, auditing practices, access controls, complexity, decentralization, documentation, MEV risks, low-level code, and testing. Produces professional scorecard with evidence-based ratings and actionable recommendations.

trailofbits/codeql

Scans a codebase for security vulnerabilities using CodeQL's interprocedural data flow and taint tracking analysis. Triggers on "run codeql", "codeql scan", "codeql analysis", "build codeql database", or "find vulnerabilities with codeql". Supports "run all" (security-and-quality + security-experimental suites) and "important only" (high-precision security findings) scan modes. Also handles creating data extension models and processing CodeQL SARIF output.

trailofbits/constant-time-analysis

Detects timing side-channel vulnerabilities in cryptographic code. Use when implementing or reviewing crypto code, encountering division on secrets, secret-dependent branches, or constant-time programming questions in C, C++, Go, Rust, Swift, Java, Kotlin, C#, PHP, JavaScript, TypeScript, Python, or Ruby.

trailofbits/constant-time-testing

Constant-time testing detects timing side channels in cryptographic code. Use when auditing crypto implementations for timing vulnerabilities.

trailofbits/cosmos-vulnerability-scanner

Scans Cosmos SDK blockchain modules and CosmWasm contracts for consensus-critical vulnerabilities — chain halts, fund loss, state divergence. 25 core + 16 IBC + 10 EVM + 3 CosmWasm patterns. Use when auditing custom x/ modules, reviewing IBC integrations, or assessing pre-launch chain security. Updated for SDK v0.53.x.

相关技能