Skip to content

Malware URL

The Malware URL detector scans and detects malicious URLs in the input prompt. Safeguards users from potential threats by classifying URLs as either malicious or benign.

Vulnerability

Usage

Utilizes the following HuggingFace model elftsdmr/malware-url-detect and Guardrail's internal vector DB of malicious URLs

Configuration

Initialize the Malware URL Detector with the desired options:

from guardrail.firewall.input_detectors import LanguageInput

firewall = Firewall()
input_detectors = [LanguageInput()]

sanitized_prompt, valid_results, risk_score = firewall.scan_input(prompt, input_detectors)