You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add the feature of having bomber output a summary report, with non-technical friendly terminology of how the vulnerability findings can be exploited by bad actors. This can be accomplished by adding a renderer for summary as well as integrating with the OpenAI API.
The text was updated successfully, but these errors were encountered:
Generate text based summary of CVE findings by using render and OpenAI to provide a summary on said findings:
func generateSummary(client *openai.Client, cveDescription string) (string, error) {
prompt := "Summarize the following CVE:\n" + cveDescription
response, err := client.Completions.Create(
openai.CompletionParams{
Prompt: prompt,
MaxTokens: 100, // Adjust as needed
Temperature: 0.7, // Adjust to control randomness
},
)
if err != nil {
return "", err
}
return response.Choices[0].Text, nil
}
Use OpenAI to generate example scenarios of how the CVE's can be exploited.
Set some type of API rate limit threshold?
Loose overview of how to potentially implement this
I want to add the feature of having bomber output a summary report, with non-technical friendly terminology of how the vulnerability findings can be exploited by bad actors. This can be accomplished by adding a renderer for summary as well as integrating with the OpenAI API.
The text was updated successfully, but these errors were encountered: