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

trailmark

Builds source and binary code graphs for security analysis, taint modeling with native analyzers, context slicing, mutation testing, cryptographic protocol modeling, finding triage, and variant analysis.

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

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

التنزيل

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

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

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

الملفات: 144 · الحجم: 1.1 م.ب

نزّل ملف ZIP

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

التثبيت

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

التعليمات

trailmark

Source code graph analysis for security auditing. Parses code into queryable graphs of functions, classes, and calls, then uses that structure for native taint analyzer modeling, diagram generation, mutation testing triage, protocol verification, and differential review.

The original graph skills support Trailmark 0.2.x through the 0.5.0 release line. Prefer --language auto, trailmark.parse.detect_languages() (0.3+), and QueryEngine.preanalysis() for the core workflow. Before using features added in v0.4.0 or v0.5.0, check the installed Trailmark version or probe for the method/CLI command first.

taint-trace uses trailmark>=0.8.0,<0.9 from the package index and checks the required graph APIs directly. Its launcher needs uv; native taint analyzers are separate dependencies. See the backend catalog for language routes and capability requirements.

Compatibility

Use this guard before relying on version-gated features:

trailmark --version 2>/dev/null || uv run trailmark --version 2>/dev/null

Compare the reported version numerically. If it is 0.4.0 or newer, the expanded v0.4 feature set is available; 0.5.0 or newer adds the v0.5 set. If the command is missing or reports an older version, stay on the v0.2-safe baseline — the trailmark skill's Version Gate section has the authoritative list. (The version CLI itself was added in 0.2.2, so a missing command can also mean trailmark is not installed at all.)

v0.4.0 adds expanded parser coverage, explicit proxy nodes for unresolved calls, node origins (source, proxy, binary, synthetic), new edge kinds (resolves_to, type_uses, specializes, corresponds_to), subgraph edge and connection queries, generic/type-reference queries, the native trailmark diagram CLI, and binary graph augmentation via augment_binary().

v0.5.0 adds a PostgreSQL-oriented sql parser (with node kinds schema, table, view, procedure), the stable .trailmark/links.toml configuration for declaring cross-language/FFI/RPC/external links (external endpoints become proxy.external:<symbol> nodes), repository links/proxies/type_uses edges for single-language parses, Solidity entrypoints from parser metadata (visibility/mutability/overridden-by attributes, interfaces excluded), node attributes in attack_surface() entries, TypeScript constructed-receiver resolution, and C# file-scoped namespace support. It adds no new QueryEngine methods or CLI commands, so gate v0.5 features on the version number, not hasattr().

Prerequisites

Trailmark (source) must be installed:

uv tool install trailmark
# Python snippets: uv run --with trailmark python -   (a tool env is not importable)

Skills

SkillDescription
trailmarkBuild and query multi-language source/binary code graphs with pre-analysis passes, version feature gates, proxy nodes, type/reference queries, cross-language link configuration, and structural traversal helpers
slicing-code-contextBuild bounded graph-informed source packets and delegate focused work to constrained subagents
diagramming-codeGenerate Mermaid diagrams from code graphs (call graphs, class hierarchies, complexity heatmaps, data flow); v0.4 native diagram support is feature-gated
crypto-protocol-diagramExtract protocol message flow from source code or specs (RFC, ProVerif, Tamarin) into sequence diagrams
genotoxicTriage mutation testing results using graph analysis — classify survived mutants as false positives, missing tests, or fuzzing targets
vector-forgeMutation-driven test vector generation — find coverage gaps via mutation testing, then generate Wycheproof-style vectors that close them
graph-evolutionCompare code graphs at two snapshots to surface security-relevant structural changes text diffs miss
trailmark-review-gateApply PASS/WARN/FAIL/UNKNOWN structural gate rules to branch, PR, fix, or release diffs
mermaid-to-proverifConvert Mermaid sequence diagrams into ProVerif formal verification models
audit-augmentationProject SARIF, weAudit, and v0.4 binary-analysis graph findings onto code graphs as annotations and subgraphs
trailmark-finding-triageTriage one finding, SARIF result, weAudit annotation, suspicious function, or report excerpt with reachability, taint, privilege-boundary, and blast-radius evidence; scripts/evidence_packet.py builds the evidence for several file/line findings from one graph
trailmark-variant-neighborhoodExpand one seed issue into graph-derived variant candidates for variant-analysis, Semgrep, CodeQL, or manual review
taint-traceRepair native modeling and precision gaps using graph and source evidence, then run an existing taint analyzer
trailmark-summaryQuick structural overview (auto-detected languages, entry points, dependencies) for vivisect/galvanize
trailmark-structuralFull structural analysis with all pre-analysis passes (blast radius, taint, privilege boundaries, complexity)

Taint Analysis Workflow

Invoke /trailmark:taint-trace for guidance or /trailmark:taint-trace-run for staged inventory, capability fixtures, baseline, modeling, native analysis, and reporting. Workflow arguments are a JSON object:

{
  "target": ".",
  "languages": ["php"],
  "backends": {"php": "psalm"},
  "focus": ["execute_query"]
}

Languages default to auto; backend overrides and sink focus are optional. The skill supplies its skill_dir when invoking the workflow; checkout users can also supply that absolute skill directory explicitly. The workflow otherwise resolves only known installed plugin caches.

Artifacts live under the target's .trailmark/taint-trace/runs/. Reports separate analyzed, limited, skipped, and failed components and retain native findings, traces, model provenance, and unresolved graph gaps. Trailmark provides structural evidence; the native analyzer computes taint flows. Single-function analysis is explicitly limited, and a fully skipped run cannot report success. The skill does not execute the target application.

Models record a specific native modeling-gap hypothesis as well as source evidence. Reports distinguish native warning records from unique flows and leave model benefit unmeasured without comparison evidence. Startup controls cover backend-supported discovery isolation; inspect explicit executable hooks before running analyzers.

Ordinary checks use deterministic fixtures. Enable native backend tests explicitly: TAINT_TRACE_PSALM, TAINT_TRACE_JOERN, TAINT_TRACE_SEMGREP, and TAINT_TRACE_OPENGREP select executable paths; 1 selects the executable on PATH for Semgrep or OpenGrep. Run standalone capability contracts with the commands in artifact handling. The built-in Joern probe covers 12 graphable languages and checks native cross-function traces and context-specific escaping. Psalm 5/6 retain explicit taint mode; Psalm 7 also supports its default combined analysis and independently probed precise modeling features. The native CI matrix runs Psalm 5.26.1, 6.20.10, 7.0.0, and 7.1.0 on PHP 8.3. Trailmark 0.8.0 supplies PHP pipe invocation and partial-application reference support.

Directory Structure

trailmark/
├── .claude-plugin/
│   └── plugin.json
├── agents/
│   └── code-slice-worker.md          # Bounded worker, no repository tools.
│                                     # Dispatch as `trailmark:code-slice-worker`
├── README.md
├── workflows/
│   └── taint-trace-run.js            # /trailmark:taint-trace-run
├── tests/
│   └── taint-trace-run.test.mjs       # Staged lifecycle contracts
└── skills/
    ├── trailmark/                    # Core graph querying
    ├── slicing-code-context/         # Bounded source slicing and worker delegation
    ├── diagramming-code/             # Mermaid diagram generation
    │   └── scripts/diagram.py
    ├── crypto-protocol-diagram/      # Protocol flow extraction
    │   └── examples/
    ├── genotoxic/                    # Mutation testing triage
    ├── vector-forge/                 # Mutation-driven test vector generation
    │   └── references/
    ├── graph-evolution/              # Structural diff
    │   └── scripts/graph_diff.py
    ├── trailmark-review-gate/         # Structural review gates
    ├── mermaid-to-proverif/          # Sequence diagram → ProVerif
    │   └── examples/
    ├── audit-augmentation/           # SARIF/weAudit integration
    ├── trailmark-finding-triage/      # Single-finding evidence packets
    ├── trailmark-variant-neighborhood/ # Variant candidate neighborhoods
    ├── taint-trace/                  # Graph-backed native taint models and runner
    │   ├── references/              # Load only the selected backend
    │   └── scripts/                 # Context, capability, native evidence, validation
    ├── trailmark-summary/            # Quick overview for vivisect/galvanize
    └── trailmark-structural/         # Full structural analysis

Related Skills

SkillUse For
mutation-testingGuidance for running mutation frameworks (mewt, muton) — use before genotoxic for triage
differential-reviewText-level security diff review — complements graph-evolution's structural analysis
audit-context-buildingDeep architectural context before vulnerability hunting
variant-analysisSearch for related candidates after trailmark-finding-triage identifies a repeatable root cause

الملفات

  • مجلد.claude-plugin369 بايت
    • plugin.json369 بايت
  • مجلدagents1.9 ك.ب
    • code-slice-worker.md1.9 ك.ب
  • مجلدskills1,008 ك.بسكربت
    • مجلدaudit-augmentation16 ك.ب
      • مجلدagents245 بايت
        • openai.yaml245 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences3.5 ك.ب
        • formats.md3.5 ك.ب
      • SKILL.md9.1 ك.ب
    • مجلدcrypto-protocol-diagram70 ك.بسكربت
      • مجلدagents244 بايت
        • openai.yaml244 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدexamples16 ك.بسكربت
        • مجلدsimple-handshake11 ك.بسكربت
          • expected-output.md4.8 ك.ب
          • protocol.py5.7 ك.بسكربت
        • مجلدsimple-proverif5.7 ك.ب
          • expected-output.md4 ك.ب
          • model.pv1.8 ك.ب
      • مجلدreferences32 ك.ب
        • ascii-sequence-diagram.md2.3 ك.ب
        • mermaid-sequence-syntax.md7.5 ك.ب
        • protocol-patterns.md11 ك.ب
        • spec-parsing-patterns.md12 ك.ب
      • SKILL.md18 ك.ب
    • مجلدdiagramming-code19 ك.بسكربت
      • مجلدagents241 بايت
        • openai.yaml241 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences7.9 ك.ب
        • diagram-types.md5.1 ك.ب
        • mermaid-syntax.md2.9 ك.ب
      • مجلدscripts1.5 ك.بسكربت
        • diagram.py389 بايتسكربت
        • test_skill_commands.py1.1 ك.بسكربت
      • SKILL.md6.7 ك.ب
    • مجلدgenotoxic69 ك.ب
      • مجلدagents229 بايت
        • openai.yaml229 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences53 ك.ب
        • graph-analysis.md13 ك.ب
        • mutation-frameworks.md28 ك.ب
        • triage-methodology.md12 ك.ب
      • SKILL.md13 ك.ب
    • مجلدgraph-evolution33 ك.بسكربت
      • مجلدagents246 بايت
        • openai.yaml246 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences9.3 ك.ب
        • evolution-metrics.md5.1 ك.ب
        • report-format.md4.2 ك.ب
      • مجلدscripts7.7 ك.بسكربت
        • graph_diff.py7.7 ك.بسكربت
      • SKILL.md13 ك.ب
    • مجلدmermaid-to-proverif71 ك.بسكربت
      • مجلدagents249 بايت
        • openai.yaml249 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدexamples12 ك.ب
        • مجلدsimple-handshake12 ك.ب
          • diagram.md1.8 ك.ب
          • sample-output.pv9.8 ك.ب
      • مجلدreferences36 ك.ب
        • crypto-to-proverif-mapping.md10 ك.ب
        • proverif-syntax.md14 ك.ب
        • security-properties.md12 ك.ب
      • مجلدtests2 ك.بسكربت
        • test_guidance.py2 ك.بسكربت
      • SKILL.md18 ك.ب
    • مجلدslicing-code-context123 ك.بسكربت
      • مجلدagents361 بايت
        • openai.yaml361 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences4.1 ك.ب
        • slice-packet.md4.1 ك.ب
      • مجلدscripts107 ك.بسكربت
        • build_slice_packet.py38 ك.بسكربت
        • pyproject.toml316 بايت
        • test_build_slice_packet.py18 ك.بسكربت
        • uv.lock50 ك.ب
      • SKILL.md8.4 ك.ب
    • مجلدtaint-trace427 ك.بسكربت
      • مجلدagents122 بايت
        • openai.yaml122 بايت
      • مجلدreferences66 ك.ب
        • artifacts.md14 ك.ب
        • catalog.md3.6 ك.ب
        • checker-framework.md3 ك.ب
        • clang.md2.8 ك.ب
        • codeql.md4.4 ك.ب
        • graph-evidence.md2.8 ك.ب
        • infer.md2.6 ك.ب
        • joern.md6.2 ك.ب
        • model-quality.md6 ك.ب
        • opengrep.md2.5 ك.ب
        • psalm.md12 ك.ب
        • pysa.md3 ك.ب
        • semgrep.md3.4 ك.ب
      • مجلدscripts352 ك.بسكربت
        • activation.py10 ك.بسكربت
        • catalog.py5.4 ك.بسكربت
        • contracts.py17 ك.بسكربت
        • finding_comparison.py8.3 ك.بسكربت
        • graph_context.py11 ك.بسكربت
        • joern_fixture.py18 ك.بسكربت
        • manifest_validation.py20 ك.بسكربت
        • native.py20 ك.بسكربت
        • psalm_feature_probes.py7.4 ك.بسكربت
        • psalm_features.py12 ك.بسكربت
        • psalm_version.py471 بايتسكربت
        • pyproject.toml556 بايت
        • requirements-test.txt22 بايت
        • runner.py20 ك.بسكربت
        • runner_artifacts.py2 ك.بسكربت
        • runner_config.py12 ك.بسكربت
        • runner_contracts.py13 ك.بسكربت
        • runner_probe.py10 ك.بسكربت
        • runner_startup.py7.6 ك.بسكربت
        • taint_trace.py5.5 ك.بسكربت
        • taint_trace.sh266 بايتسكربت
        • test_activation.py815 بايتسكربت
        • test_graph.py11 ك.بسكربت
        • test_joern.py4.2 ك.بسكربت
        • test_native.py12 ك.بسكربت
        • test_precision.py4.3 ك.بسكربت
        • test_psalm_compat.py6.9 ك.بسكربت
        • test_psalm_features.py5.8 ك.بسكربت
        • test_report.py24 ك.بسكربت
        • test_runner.py49 ك.بسكربت
        • test_style.py1.3 ك.بسكربت
        • test_taint_trace.py20 ك.بسكربت
        • trace_artifacts.py2.6 ك.بسكربت
        • trace_report.py11 ك.بسكربت
      • SKILL.md9.4 ك.ب
    • مجلدtrailmark35 ك.ب
      • مجلدagents242 بايت
        • openai.yaml242 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences14 ك.ب
        • preanalysis-passes.md5.6 ك.ب
        • query-patterns.md8.7 ك.ب
      • SKILL.md17 ك.ب
    • مجلدtrailmark-finding-triage37 ك.بسكربت
      • مجلدagents245 بايت
        • openai.yaml245 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences5.9 ك.ب
        • input-normalization.md1.8 ك.ب
        • output-format.md1.7 ك.ب
        • query-recipes.md2.4 ك.ب
      • مجلدscripts21 ك.بسكربت
        • evidence_packet.py10 ك.بسكربت
        • test_evidence_packet.py10 ك.بسكربت
      • SKILL.md7.6 ك.ب
    • مجلدtrailmark-review-gate12 ك.ب
      • مجلدagents246 بايت
        • openai.yaml246 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences4.6 ك.ب
        • gate-rules.md2.2 ك.ب
        • output-format.md1 ك.ب
        • review-integration.md1.4 ك.ب
      • SKILL.md4.3 ك.ب
    • مجلدtrailmark-structural9.3 ك.ب
      • مجلدagents256 بايت
        • openai.yaml256 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • SKILL.md6 ك.ب
    • مجلدtrailmark-summary6.9 ك.ب
      • مجلدagents238 بايت
        • openai.yaml238 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • SKILL.md3.6 ك.ب
    • مجلدtrailmark-variant-neighborhood13 ك.ب
      • مجلدagents252 بايت
        • openai.yaml252 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences5.2 ك.ب
        • neighborhood-patterns.md2.2 ك.ب
        • output-format.md1.4 ك.ب
        • ranking.md1.6 ك.ب
      • SKILL.md4.2 ك.ب
    • مجلدvector-forge66 ك.ب
      • مجلدagents241 بايت
        • openai.yaml241 بايت
      • مجلدassets3 ك.ب
        • trail-of-bits-mark.svg3 ك.ب
      • مجلدreferences44 ك.ب
        • fault-simulation.md5.7 ك.ب
        • lessons-learned.md7.6 ك.ب
        • mutation-frameworks.md20 ك.ب
        • report-template.md912 بايت
        • vector-patterns.md9.6 ك.ب
      • SKILL.md19 ك.ب
  • مجلدtests16 ك.بسكربت
    • taint-trace-run.test.mjs16 ك.بسكربت
  • مجلدworkflows29 ك.بسكربت
    • taint-trace-run.js29 ك.بسكربت
  • LICENSE20 ك.ب
  • README.md9.7 ك.ب

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

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

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

    في الملف plugins/trailmark/skills/crypto-protocol-diagram/examples/simple-handshake/protocol.py

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

    في الملف plugins/trailmark/skills/trailmark-finding-triage/scripts/test_evidence_packet.py، السطر 59

التعليقات (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