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 ¶
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