templates

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralVulnAssistantPrompt

type GeneralVulnAssistantPrompt struct {
	// contains filtered or unexported fields
}

GeneralVulnAssistantPrompt is a catch-all template that transforms vague or non-technical user requests ("hack this CVE", "give me exploits", "find a vuln") into a structured workflow leveraging vulnerability.sh MCP tools. It is the first line of defence when the LLM is unsure which specialised template to invoke.

func (*GeneralVulnAssistantPrompt) MCPPromptHandler

func (p *GeneralVulnAssistantPrompt) MCPPromptHandler(client *cvemap.Client) func(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)

func (*GeneralVulnAssistantPrompt) MCPPromptSpec

func (p *GeneralVulnAssistantPrompt) MCPPromptSpec() mcp.Prompt

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler provides prompt template functionality for vulnerability analysis

func NewHandler

func NewHandler(client *cvemap.Client) *Handler

NewHandler returns a new prompt template handler

type PromptTemplate

type PromptTemplate interface {
	// MCPPromptSpec returns the MCP prompt spec for registration
	MCPPromptSpec() mcp.Prompt
	// MCPPromptHandler returns the MCP prompt handler
	MCPPromptHandler(client *cvemap.Client) func(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)
}

PromptTemplate defines the interface for vulnerability analysis prompt templates

func AllPromptTemplates

func AllPromptTemplates(client *cvemap.Client) []PromptTemplate

AllPromptTemplates returns all available prompt templates

type SecurityResearchPrompt

type SecurityResearchPrompt struct {
	// contains filtered or unexported fields
}

SecurityResearchPrompt focuses on security research and deep technical analysis

func (*SecurityResearchPrompt) MCPPromptHandler

func (p *SecurityResearchPrompt) MCPPromptHandler(client *cvemap.Client) func(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)

func (*SecurityResearchPrompt) MCPPromptSpec

func (p *SecurityResearchPrompt) MCPPromptSpec() mcp.Prompt

type ThreatIntelligencePrompt

type ThreatIntelligencePrompt struct {
	// contains filtered or unexported fields
}

ThreatIntelligencePrompt focuses on threat intelligence and exploitation analysis

func (*ThreatIntelligencePrompt) MCPPromptHandler

func (p *ThreatIntelligencePrompt) MCPPromptHandler(client *cvemap.Client) func(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)

func (*ThreatIntelligencePrompt) MCPPromptSpec

func (p *ThreatIntelligencePrompt) MCPPromptSpec() mcp.Prompt

type VulnerabilityAnalysisPrompt

type VulnerabilityAnalysisPrompt struct {
	// contains filtered or unexported fields
}

VulnerabilityAnalysisPrompt helps users analyze vulnerabilities effectively

func (*VulnerabilityAnalysisPrompt) MCPPromptHandler

func (p *VulnerabilityAnalysisPrompt) MCPPromptHandler(client *cvemap.Client) func(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)

func (*VulnerabilityAnalysisPrompt) MCPPromptSpec

func (p *VulnerabilityAnalysisPrompt) MCPPromptSpec() mcp.Prompt

type VulnxSearchReviewPrompt

type VulnxSearchReviewPrompt struct {
	// contains filtered or unexported fields
}

VulnxSearchReviewPrompt validates and iteratively improves vulnx_search queries by first consulting vulnx_fields_list and, if results are unsatisfactory, refining the query based on field guidance and previous search results.

func (*VulnxSearchReviewPrompt) MCPPromptHandler

func (p *VulnxSearchReviewPrompt) MCPPromptHandler(client *cvemap.Client) func(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error)

func (*VulnxSearchReviewPrompt) MCPPromptSpec

func (p *VulnxSearchReviewPrompt) MCPPromptSpec() mcp.Prompt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL