]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] Add obfuscated URL detection to url_suspect plugin
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 22 Nov 2025 13:46:55 +0000 (13:46 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 22 Nov 2025 13:46:55 +0000 (13:46 +0000)
commit49e510cb8bbd30de3c33a404b09d70953ff6dd01
treeb97ef8dec52db86a9904830e5a6f77776c5fad70
parent9e0b9d91d7d3408f24e2c5d031d5b67c17bbdced
[Feature] Add obfuscated URL detection to url_suspect plugin

Detect URLs hidden in message text using various obfuscation techniques:
- Spaced protocols (h t t p s : / /)
- hxxp variants (hxxp://)
- Bracket dots (example[.]com)
- Word dots (example dot com)
- HTML entities (&#46; for dots)

Features:
- Hyperscan-based prefiltering for performance
- Normalization and URL extraction from obfuscated text
- URL injection with 'obscured' flag for further analysis
- Configurable via built-in settings or external maps
- DoS protection with strict limits

New symbol: URL_OBFUSCATED_TEXT (score: 5.0)
src/plugins/lua/url_suspect.lua