تخطَّ إلى المحتوى
إضافةمستورديحتوي سكربتاتترخيص مشاركة بالمثل

variant-analysis

Find similar vulnerabilities and bugs across codebases using pattern-based analysis

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

اقرأ هذا قبل أن تنزّل

لا يشغّل تلقين أي شيء من هذا العنصر. لكن ما تنزّله يعمل على جهازك إن شغّلته أنت أو سمحت لكلود كود بتشغيله، فاقرأ الملفات أولاً.

  • في العنصر ملفات سكربت.

الملفات: 55 · الحجم: 201 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

تُثبَّت الإضافات من سوق الإضافات في كلود كود، لا بنسخ الملفات. نزّل الحزمة لتقرأ محتواها وترخيصها.

التعليمات

Variant Analysis

Find similar vulnerabilities and bugs across codebases using pattern-based analysis.

Author: Axel Mierczuk

When to Use

  • Hunt for bug variants after finding an initial vulnerability
  • Build CodeQL or Semgrep queries from a known bug pattern
  • Perform systematic code audits across large codebases
  • Create reusable patterns for recurring vulnerability classes

What It Does

A five-step process: extract the root cause, write a pattern matching only the known bug, generalize it one element at a time, triage what it finds, and report.

Each step has its own strategy reference under skills/variant-analysis/references/.

Entry Points

Use when
/variant-analysis:variantsWorkflow, for a large codebase or a root cause with many manifestations. Runs the steps across parallel subagents, one per expansion axis (generalizing variable names, function names, sink APIs, …), looping until the sweep stops finding anything new. Takes bug, root, lang, out as a JSON object, which Claude fills from the current context. Below ~40 source files (the primary language's, excluding vendored and fixture trees) it sweeps narrow and once, because fan-out buys nothing at that size.
The variant-analysis skillThe knowledge behind the workflow, and the path for a narrow hunt you want to drive yourself — a handful of files, pasted snippets, or a candidate list to triage against a known root cause. Both fire on their own from a conversational "are there others like this?"; measured on a real codebase, Claude reaches for the workflow more often than the skill, so ask for the skill by name if you want to weigh in on each generalization.

Included

  • Tool selection guidance (ripgrep, Semgrep, CodeQL)
  • Ready-to-use CodeQL and Semgrep templates for Python, JavaScript, Java, Go, and C++
  • A report template, and the pitfalls that most often cause hunts to miss variants

Installation

/plugin install trailofbits/skills/plugins/variant-analysis

Related Skills

  • codeql — deep interprocedural variant analysis
  • semgrep — fast pattern matching for simpler variants
  • sarif-parsing — process variant analysis results

الملفات

  • مجلد.claude-plugin206 بايت
    • plugin.json206 بايت
  • مجلدevals40 ك.ب
    • مجلد01-shell-sink-family5.5 ك.ب
      • مجلدgraders3.4 ك.ب
        • precision-safe-sites-ruled-out.md2.2 ك.ب
        • recall-cross-api-variants.md1.1 ك.ب
        • skill-fired.md43 بايت
      • prompt.md2.1 ك.ب
    • مجلد02-just-found-this4.8 ك.ب
      • مجلدgraders3.5 ك.ب
        • precision-safe-sites-ruled-out.md2.2 ك.ب
        • recall-cross-api-variants.md1.2 ك.ب
        • skill-fired.md43 بايت
      • prompt.md1.3 ك.ب
    • مجلد03-path-traversal-java5.9 ك.ب
      • مجلدgraders3.6 ك.ب
        • precision-validated-sites-ruled-out.md2.4 ك.ب
        • recall-zipslip-and-template.md1.2 ك.ب
      • prompt.md2.3 ك.ب
    • مجلد04-invariant-bug6.2 ك.ب
      • مجلدgraders4.5 ك.ب
        • precision-atomic-sites-ruled-out.md2.2 ك.ب
        • recall-toctou-variants.md1.1 ك.ب
        • root-cause-as-invariant.md1.2 ك.ب
      • prompt.md1.7 ك.ب
    • مجلد05-all-safe-panel5.2 ك.ب
      • مجلدgraders3.2 ك.ب
        • explicit-negative-conclusion.md928 بايت
        • precision-floor-zero-variants.md2.3 ك.ب
      • prompt.md1.9 ك.ب
    • مجلد06-neg-explain-function2.5 ك.ب
      • مجلدgraders2.1 ك.ب
        • explains-without-hunting.md2.1 ك.ب
      • prompt.md403 بايت
    • مجلد07-neg-initial-discovery3.4 ك.ب
      • مجلدgraders2.1 ك.ب
        • audits-without-variant-hunt.md2.1 ك.ب
      • prompt.md1.3 ك.ب
    • .gitignore160 بايت
    • README.md6.5 ك.ب
  • مجلدskills44 ك.ب
    • مجلدvariant-analysis44 ك.ب
      • مجلدagents247 بايت
        • openai.yaml247 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences14 ك.ب
        • reporting.md1.5 ك.ب
        • root-cause.md4.1 ك.ب
        • searching.md4.5 ك.ب
        • triage.md3.5 ك.ب
      • مجلدresources23 ك.ب
        • مجلدcodeql12 ك.ب
          • cpp.ql3.4 ك.ب
          • go.ql2 ك.ب
          • java.ql2.3 ك.ب
          • javascript.ql1.7 ك.ب
          • python.ql2.4 ك.ب
        • مجلدsemgrep10 ك.ب
          • cpp.yaml2.7 ك.ب
          • go.yaml1.8 ك.ب
          • java.yaml2 ك.ب
          • javascript.yaml1.7 ك.ب
          • python.yaml2 ك.ب
        • variant-report-template.md1.3 ك.ب
      • SKILL.md3.8 ك.ب
  • مجلدtests71 ك.بسكربت
    • .gitignore64 بايت
    • README.md6.9 ك.ب
    • eval.sh8.6 ك.بسكربت
    • gradio-vulns.patch2.7 ك.ب
    • ground-truth.json3 ك.ب
    • run_fixtures.sh2 ك.بسكربت
    • score.py30 ك.بسكربت
    • setup-gradio.sh2.4 ك.بسكربت
    • summarize.py9 ك.بسكربت
    • verify_fixtures.py6.4 ك.بسكربت
  • مجلدworkflows24 ك.بسكربت
    • variants.js24 ك.بسكربت
  • LICENSE20 ك.ب
  • README.md2.2 ك.ب

ما وجده الفحص الآلي

فحصنا الملفات آلياً وقت الاستيراد. هذا ما نبّه إليه الفحص، ولا يعني أن العنصر ضار ولا أنه سليم: اقرأه بنفسك.

  • يحتاج مراجعةملف سكربت

    في الملف plugins/variant-analysis/tests/eval.sh

  • يحتاج مراجعةتعمية أو تقييم ديناميكي للنص

    في الملف plugins/variant-analysis/skills/variant-analysis/references/root-cause.md، السطر 24

  • يحتاج مراجعةتعمية أو تقييم ديناميكي للنص

    في الملف plugins/variant-analysis/skills/variant-analysis/resources/semgrep/javascript.yaml، السطر 26

  • يحتاج مراجعةتعمية أو تقييم ديناميكي للنص

    في الملف plugins/variant-analysis/skills/variant-analysis/resources/semgrep/python.yaml، السطر 33

  • يحتاج مراجعةيحذف ملفات بالقوة وبالتكرار

    في الملف plugins/variant-analysis/tests/eval.sh، السطر 279

  • يحتاج مراجعةيحذف ملفات بالقوة وبالتكرار

    في الملف plugins/variant-analysis/tests/setup-gradio.sh، السطر 34

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ

عناصر مشابهة

  • إضافةمستورد

    blockchain-web3

    Smart contract development with Solidity, DeFi protocol implementation, NFT platforms, and Web3 application architecture

    MITالملفات: 11

  • إضافةمستورد

    building-secure-contracts

    Comprehensive smart contract security toolkit based on Trail of Bits' Building Secure Contracts framework. Includes vulnerability scanners for 6 blockchains and 5 development guideline assistants.

    CC-BY-SA-4.0الملفات: 58

  • إضافةمستورديحتوي سكربتات

    burpsuite-project-parser

    Search and extract data from Burp Suite project files (.burp) for security analysis

    CC-BY-SA-4.0الملفات: 8

  • إضافةمستورديحتوي سكربتات

    c-review

    Comprehensive C/C++ security code review, with coverage verified against a parse of the source

    CC-BY-SA-4.0الملفات: 24

  • إضافةمستورد

    claude-md-management

    Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.

    Apache-2.0الملفات: 10

  • إضافةمستورد

    comprehensive-review

    Multi-perspective code analysis covering architecture, security, and best practices

    MITالملفات: 6