AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

trailmark-variant-neighborhood

Expands one confirmed or suspected vulnerability into a Trailmark graph neighborhood of variant candidates by finding sibling functions, shared callers and callees, common sensitive sinks, common entrypoint paths, interface implementations, override relationships, type/reference neighbors, and structurally similar nodes. Use after one issue is found to seed variant-analysis, semgrep-rule-creator, static-analysis, or manual review with graph-derived candidate locations.

Original source
trailofbits
License
CC-BY-SA-4.0
Pinned revision
2be6433b39e009cd2b6fd3be1895f6b1faa5af9a

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read trailofbits--trailmark-variant-neighborhood at revision 2be6433b39e009cd2b6fd3be1895f6b1faa5af9a, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 4

references/output-format.md

Output Format

Use Markdown unless the user asks for JSON.

# Trailmark Variant Neighborhood

## Seed

- Finding:
- Bound node:
- Root cause:

## Candidate Summary

| Rank | Candidate | Reason | Reachability | Confidence |
|---|---|---|---|---|

## Graph Neighborhoods

### Shared Callers
### Shared Callees / Sinks
### Entrypoint Path Neighbors
### Interface Or Implementation Siblings
### Type / State Neighbors

## Variant-Analysis Handoff

- Root cause:
- Keep specific:
- Abstract:
- Suggested searches:
- Suggested CodeQL/Semgrep direction:

## Exclusions And Limitations

Wording Requirements

  • Say "candidate" or "review target", not "variant vulnerability".
  • Explain why each candidate was included.
  • Separate graph similarity from semantic root-cause similarity.
  • Include exclusions so reviewers understand why obvious nearby code was not prioritized.

Handoff Guidance

For variant-analysis, provide:

  • seed location
  • root cause in one sentence
  • ranked candidate table
  • positive and negative examples
  • graph dimensions that produced useful candidates

For semgrep-rule-creator, provide:

  • the syntax that should stay specific
  • the syntax that should be abstracted
  • at least one true-positive candidate and one likely negative example

For static-analysis, provide:

  • candidate files and functions
  • suggested source, sink, or path query shape
  • SARIF output expectation if the user wants machine-readable results