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.
Imported description, not reviewed yet
This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.
Download
Read this before you download
Talqeen never runs anything from this item. But what you download runs on your machine if you run it or let Claude Code run it, so read the files first.
- The item has script files.
Install
Plugins are installed from a plugin marketplace in Claude Code, not by copying files. Download the package to read its content and its license.
Instructions
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
| Skill | Description |
|---|---|
trailmark | Build 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-context | Build bounded graph-informed source packets and delegate focused work to constrained subagents |
diagramming-code | Generate Mermaid diagrams from code graphs (call graphs, class hierarchies, complexity heatmaps, data flow); v0.4 native diagram support is feature-gated |
crypto-protocol-diagram | Extract protocol message flow from source code or specs (RFC, ProVerif, Tamarin) into sequence diagrams |
genotoxic | Triage mutation testing results using graph analysis — classify survived mutants as false positives, missing tests, or fuzzing targets |
vector-forge | Mutation-driven test vector generation — find coverage gaps via mutation testing, then generate Wycheproof-style vectors that close them |
graph-evolution | Compare code graphs at two snapshots to surface security-relevant structural changes text diffs miss |
trailmark-review-gate | Apply PASS/WARN/FAIL/UNKNOWN structural gate rules to branch, PR, fix, or release diffs |
mermaid-to-proverif | Convert Mermaid sequence diagrams into ProVerif formal verification models |
audit-augmentation | Project SARIF, weAudit, and v0.4 binary-analysis graph findings onto code graphs as annotations and subgraphs |
trailmark-finding-triage | Triage 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-neighborhood | Expand one seed issue into graph-derived variant candidates for variant-analysis, Semgrep, CodeQL, or manual review |
taint-trace | Repair native modeling and precision gaps using graph and source evidence, then run an existing taint analyzer |
trailmark-summary | Quick structural overview (auto-detected languages, entry points, dependencies) for vivisect/galvanize |
trailmark-structural | Full 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
| Skill | Use For |
|---|---|
mutation-testing | Guidance for running mutation frameworks (mewt, muton) — use before genotoxic for triage |
differential-review | Text-level security diff review — complements graph-evolution's structural analysis |
audit-context-building | Deep architectural context before vulnerability hunting |
variant-analysis | Search for related candidates after trailmark-finding-triage identifies a repeatable root cause |
Files
- folder.claude-plugin369 B
- plugin.json369 B
- folderagents1.9 KB
- code-slice-worker.md1.9 KB
- folderskills1,008 KBscript
- folderaudit-augmentation16 KB
- folderagents245 B
- openai.yaml245 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences3.5 KB
- formats.md3.5 KB
- SKILL.md9.1 KB
- foldercrypto-protocol-diagram70 KBscript
- folderagents244 B
- openai.yaml244 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderexamples16 KBscript
- foldersimple-handshake11 KBscript
- expected-output.md4.8 KB
- protocol.py5.7 KBscript
- foldersimple-proverif5.7 KB
- expected-output.md4 KB
- model.pv1.8 KB
- folderreferences32 KB
- ascii-sequence-diagram.md2.3 KB
- mermaid-sequence-syntax.md7.5 KB
- protocol-patterns.md11 KB
- spec-parsing-patterns.md12 KB
- SKILL.md18 KB
- folderdiagramming-code19 KBscript
- folderagents241 B
- openai.yaml241 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences7.9 KB
- diagram-types.md5.1 KB
- mermaid-syntax.md2.9 KB
- folderscripts1.5 KBscript
- diagram.py389 Bscript
- test_skill_commands.py1.1 KBscript
- SKILL.md6.7 KB
- foldergenotoxic69 KB
- folderagents229 B
- openai.yaml229 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences53 KB
- graph-analysis.md13 KB
- mutation-frameworks.md28 KB
- triage-methodology.md12 KB
- SKILL.md13 KB
- foldergraph-evolution33 KBscript
- folderagents246 B
- openai.yaml246 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences9.3 KB
- evolution-metrics.md5.1 KB
- report-format.md4.2 KB
- folderscripts7.7 KBscript
- graph_diff.py7.7 KBscript
- SKILL.md13 KB
- foldermermaid-to-proverif71 KBscript
- folderagents249 B
- openai.yaml249 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderexamples12 KB
- foldersimple-handshake12 KB
- diagram.md1.8 KB
- sample-output.pv9.8 KB
- folderreferences36 KB
- crypto-to-proverif-mapping.md10 KB
- proverif-syntax.md14 KB
- security-properties.md12 KB
- foldertests2 KBscript
- test_guidance.py2 KBscript
- SKILL.md18 KB
- folderslicing-code-context123 KBscript
- folderagents361 B
- openai.yaml361 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences4.1 KB
- slice-packet.md4.1 KB
- folderscripts107 KBscript
- build_slice_packet.py38 KBscript
- pyproject.toml316 B
- test_build_slice_packet.py18 KBscript
- uv.lock50 KB
- SKILL.md8.4 KB
- foldertaint-trace427 KBscript
- folderagents122 B
- openai.yaml122 B
- folderreferences66 KB
- artifacts.md14 KB
- catalog.md3.6 KB
- checker-framework.md3 KB
- clang.md2.8 KB
- codeql.md4.4 KB
- graph-evidence.md2.8 KB
- infer.md2.6 KB
- joern.md6.2 KB
- model-quality.md6 KB
- opengrep.md2.5 KB
- psalm.md12 KB
- pysa.md3 KB
- semgrep.md3.4 KB
- folderscripts352 KBscript
- activation.py10 KBscript
- catalog.py5.4 KBscript
- contracts.py17 KBscript
- finding_comparison.py8.3 KBscript
- graph_context.py11 KBscript
- joern_fixture.py18 KBscript
- manifest_validation.py20 KBscript
- native.py20 KBscript
- psalm_feature_probes.py7.4 KBscript
- psalm_features.py12 KBscript
- psalm_version.py471 Bscript
- pyproject.toml556 B
- requirements-test.txt22 B
- runner.py20 KBscript
- runner_artifacts.py2 KBscript
- runner_config.py12 KBscript
- runner_contracts.py13 KBscript
- runner_probe.py10 KBscript
- runner_startup.py7.6 KBscript
- taint_trace.py5.5 KBscript
- taint_trace.sh266 Bscript
- test_activation.py815 Bscript
- test_graph.py11 KBscript
- test_joern.py4.2 KBscript
- test_native.py12 KBscript
- test_precision.py4.3 KBscript
- test_psalm_compat.py6.9 KBscript
- test_psalm_features.py5.8 KBscript
- test_report.py24 KBscript
- test_runner.py49 KBscript
- test_style.py1.3 KBscript
- test_taint_trace.py20 KBscript
- trace_artifacts.py2.6 KBscript
- trace_report.py11 KBscript
- SKILL.md9.4 KB
- foldertrailmark35 KB
- folderagents242 B
- openai.yaml242 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences14 KB
- preanalysis-passes.md5.6 KB
- query-patterns.md8.7 KB
- SKILL.md17 KB
- foldertrailmark-finding-triage37 KBscript
- folderagents245 B
- openai.yaml245 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences5.9 KB
- input-normalization.md1.8 KB
- output-format.md1.7 KB
- query-recipes.md2.4 KB
- folderscripts21 KBscript
- evidence_packet.py10 KBscript
- test_evidence_packet.py10 KBscript
- SKILL.md7.6 KB
- foldertrailmark-review-gate12 KB
- folderagents246 B
- openai.yaml246 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences4.6 KB
- gate-rules.md2.2 KB
- output-format.md1 KB
- review-integration.md1.4 KB
- SKILL.md4.3 KB
- foldertrailmark-structural9.3 KB
- folderagents256 B
- openai.yaml256 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- SKILL.md6 KB
- foldertrailmark-summary6.9 KB
- folderagents238 B
- openai.yaml238 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- SKILL.md3.6 KB
- foldertrailmark-variant-neighborhood13 KB
- folderagents252 B
- openai.yaml252 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences5.2 KB
- neighborhood-patterns.md2.2 KB
- output-format.md1.4 KB
- ranking.md1.6 KB
- SKILL.md4.2 KB
- foldervector-forge66 KB
- folderagents241 B
- openai.yaml241 B
- folderassets3 KB
- trail-of-bits-mark.svg3 KB
- folderreferences44 KB
- fault-simulation.md5.7 KB
- lessons-learned.md7.6 KB
- mutation-frameworks.md20 KB
- report-template.md912 B
- vector-patterns.md9.6 KB
- SKILL.md19 KB
- foldertests16 KBscript
- taint-trace-run.test.mjs16 KBscript
- folderworkflows29 KBscript
- taint-trace-run.js29 KBscript
- LICENSE20 KB
- README.md9.7 KB
What the automatic scan found
We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.
- Needs a lookA script file
In file plugins/trailmark/skills/crypto-protocol-diagram/examples/simple-handshake/protocol.py
- Needs a lookObfuscation or dynamic evaluation of text
In file plugins/trailmark/skills/trailmark-finding-triage/scripts/test_evidence_packet.py, line 59
Comments (0)
No comments yet. Be the first.
Sign in to comment. Commenting comes at level 1 (Member).