Malware URL
The Malware URL detector scans and detects malicious URLs in the input prompt. Pegasi users from potential threats by classifying URLs as either malicious or benign.
Vulnerability
Configuration
Initialize the Malware URL Detector with the desired options:
from pegasi.shield.input_detectors import LanguageInput
pegasi = Shield()
input_detectors = [LanguageInput()]
sanitized_prompt, valid_results, risk_score = pegasi.scan_input(prompt, input_detectors)