Text Classification
Scikit-learn
English
tfidf-logreg+urlflags
cybersecurity
security
phishing
malware
malicious-url
url-classification
explainable-ai
tfidf
logistic-regression
skops
Eval Results (legacy)
Instructions to use DaveyD347/malicious-url-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use DaveyD347/malicious-url-classifier with Scikit-learn:
# ⚠️ Model filename not specified in config.json
- Notebooks
- Google Colab
- Kaggle
Download src/url_spec.json from DaveyD347/malicious-url-classifier: direct link, hf CLI and curl.
- Browser
- Download file 18.9 kB
-
https://huggingface.co/DaveyD347/malicious-url-classifier/resolve/main/src/url_spec.json
- Command line
-
hf download hf://DaveyD347/malicious-url-classifier/src/url_spec.json
-
curl -L -o url_spec.json https://huggingface.co/DaveyD347/malicious-url-classifier/resolve/main/src/url_spec.json
18.9 kB
{
"version": 1,
"second_level": [
"co.uk",
"org.uk",
"ac.uk",
"gov.uk",
"me.uk",
"ltd.uk",
"plc.uk",
"com.au",
"net.au",
"org.au",
"edu.au",
"gov.au",
"co.nz",
"org.nz",
"co.jp",
"ne.jp",
"or.jp",
"ac.jp",
"com.br",
"net.br",
"org.br",
"gov.br",
"co.in",
"net.in",
"org.in",
"gov.in",
"ac.in",
"com.mx",
"org.mx",
"gob.mx",
"co.za",
"org.za",
"gov.za",
"com.cn",
"net.cn",
"org.cn",
"gov.cn",
"com.tr",
"gov.tr",
"com.sg",
"edu.sg",
"gov.sg",
"com.hk",
"co.kr",
"or.kr",
"com.ar",
"com.co",
"com.pe",
"com.ng",
"co.ke",
"com.my",
"co.id",
"com.ph",
"com.vn",
"com.ua",
"co.il",
"com.pl",
"com.es",
"co.th",
"com.sa",
"com.eg",
"com.pk"
],
"hosting_suffixes": [
"web.app",
"firebaseapp.com",
"netlify.app",
"vercel.app",
"github.io",
"gitlab.io",
"pages.dev",
"workers.dev",
"herokuapp.com",
"glitch.me",
"repl.co",
"replit.app",
"000webhostapp.com",
"weebly.com",
"wixsite.com",
"blogspot.com",
"wordpress.com",
"azurewebsites.net",
"cloudfront.net",
"ngrok-free.app",
"ngrok.io",
"onrender.com",
"fly.dev",
"surge.sh",
"myshopify.com",
"square.site",
"godaddysites.com",
"webflow.io",
"framer.website",
"sharepoint.com",
"s3.amazonaws.com",
"storage.googleapis.com",
"blob.core.windows.net",
"r2.dev",
"ipfs.io",
"dweb.link",
"duckdns.org",
"ddns.net",
"hopto.org",
"zapto.org",
"no-ip.org",
"dynu.net",
"freedns.org",
"servehttp.com",
"myftp.biz"
],
"free_hosting": [
"web.app",
"firebaseapp.com",
"netlify.app",
"vercel.app",
"github.io",
"gitlab.io",
"pages.dev",
"workers.dev",
"herokuapp.com",
"glitch.me",
"repl.co",
"replit.app",
"000webhostapp.com",
"weebly.com",
"wixsite.com",
"blogspot.com",
"wordpress.com",
"azurewebsites.net",
"ngrok-free.app",
"ngrok.io",
"onrender.com",
"fly.dev",
"surge.sh",
"square.site",
"godaddysites.com",
"webflow.io",
"framer.website",
"s3.amazonaws.com",
"storage.googleapis.com",
"blob.core.windows.net",
"r2.dev",
"ipfs.io",
"dweb.link"
],
"dynamic_dns": [
"duckdns.org",
"ddns.net",
"hopto.org",
"zapto.org",
"no-ip.org",
"dynu.net",
"freedns.org",
"servehttp.com",
"myftp.biz"
],
"shorteners": [
"bit.ly",
"tinyurl.com",
"t.co",
"goo.gl",
"ow.ly",
"is.gd",
"buff.ly",
"rebrand.ly",
"cutt.ly",
"shorturl.at",
"rb.gy",
"tiny.cc",
"s.id",
"t.ly",
"bl.ink",
"lnkd.in",
"v.gd",
"qrco.de",
"shorturl.asia",
"urlz.fr"
],
"risky_tlds": [
"top",
"xyz",
"tk",
"ml",
"ga",
"cf",
"gq",
"zip",
"mov",
"click",
"country",
"work",
"rest",
"icu",
"buzz",
"cam",
"loan",
"win",
"bid",
"stream",
"gdn",
"men",
"date",
"racing",
"review",
"party",
"trade",
"webcam",
"science",
"kim",
"cyou",
"sbs",
"cfd",
"bond",
"quest",
"monster",
"beauty",
"hair",
"autos",
"boats",
"lol",
"mom",
"pw",
"su",
"support",
"help",
"live",
"online",
"site",
"website",
"space",
"fun",
"shop",
"store",
"vip",
"club",
"info",
"biz",
"link",
"fit",
"ru"
],
"common_tlds": [
"com",
"net",
"org",
"info",
"biz",
"io",
"co",
"us",
"uk",
"de",
"fr",
"ca",
"au",
"me",
"app",
"dev",
"ai",
"gov",
"edu"
],
"exec_ext": [
"exe",
"scr",
"msi",
"apk",
"bat",
"cmd",
"ps1",
"vbs",
"vbe",
"jse",
"wsf",
"jar",
"hta",
"lnk",
"iso",
"img",
"dll",
"pif",
"cpl",
"msix",
"appx",
"xapk"
],
"archive_ext": [
"zip",
"rar",
"7z",
"ace",
"cab",
"arj",
"tgz"
],
"doc_ext": [
"pdf",
"doc",
"docx",
"xls",
"xlsx",
"ppt",
"pptx",
"jpg",
"jpeg",
"png",
"txt",
"rtf",
"csv",
"mp3",
"mp4"
],
"dbl_exec_ext": [
"exe",
"scr",
"js",
"vbs",
"bat",
"cmd",
"com",
"pif",
"hta",
"lnk",
"jar",
"ps1",
"msi"
],
"sensitive_words": [
"login",
"logon",
"signin",
"sign",
"verify",
"verification",
"verified",
"secure",
"security",
"account",
"accounts",
"update",
"confirm",
"confirmation",
"banking",
"bank",
"wallet",
"auth",
"authenticate",
"authentication",
"unlock",
"unlocked",
"recover",
"recovery",
"restore",
"support",
"billing",
"payment",
"webscr",
"password",
"passwd",
"reset",
"suspend",
"suspended",
"alert",
"validate",
"validation",
"kyc",
"claim",
"refund",
"invoice",
"helpdesk",
"service",
"customer",
"limited",
"locked",
"identity",
"credential",
"credentials",
"sso",
"2fa",
"otp",
"pin",
"airdrop",
"giveaway",
"bonus",
"prize",
"reward",
"rewards",
"free",
"gift",
"seed",
"connect",
"sync",
"dapp",
"redelivery",
"parcel",
"tracking",
"toll",
"fee",
"tax"
],
"redirect_keys": [
"url",
"u",
"r",
"redirect",
"redirect_uri",
"redirect_url",
"redir",
"next",
"goto",
"go",
"target",
"dest",
"destination",
"continue",
"return",
"returnurl",
"return_url",
"link",
"to",
"out",
"q",
"rurl",
"forward",
"jump",
"view"
],
"cms_paths": [
"/wp-content/",
"/wp-includes/",
"/wp-admin/",
"/wp-login",
"/administrator/",
"/cgi-bin/",
"/.well-known/",
"/vendor/phpunit/",
"/images/.",
"/includes/"
],
"leet": {
"0": "o",
"1": "l",
"3": "e",
"4": "a",
"5": "s",
"7": "t",
"8": "b",
"9": "g",
"@": "a",
"$": "s",
"!": "i"
},
"brands": {
"contoso": [
"contoso.com"
],
"fabrikam": [
"fabrikam.com"
],
"northwind": [
"northwind.com"
],
"tailspin": [
"tailspin.com"
],
"wingtip": [
"wingtip.com"
],
"adatum": [
"adatum.com"
],
"litware": [
"litware.com"
],
"proseware": [
"proseware.com"
],
"woodgrove": [
"woodgrove.com",
"woodgrovebank.com"
],
"lucerne": [
"lucerne.com"
],
"alpineski": [
"alpineski.com"
],
"humongous": [
"humongous.com"
],
"cohovineyard": [
"cohovineyard.com"
],
"fourthcoffee": [
"fourthcoffee.com"
],
"wideworld": [
"wideworld.com"
],
"bluegate": [
"bluegate.com"
],
"novabank": [
"novabank.com"
],
"zentrix": [
"zentrix.com"
],
"quikpay": [
"quikpay.com"
],
"paylite": [
"paylite.com"
],
"streamora": [
"streamora.com"
],
"cloudvault": [
"cloudvault.com"
],
"mailhub": [
"mailhub.com"
],
"shipfast": [
"shipfast.com"
],
"parcelpro": [
"parcelpro.com"
],
"coinvista": [
"coinvista.com"
],
"walletly": [
"walletly.com"
],
"gamerift": [
"gamerift.com"
],
"photora": [
"photora.com"
],
"ledgerline": [
"ledgerline.com"
],
"trustline": [
"trustline.com"
],
"medcarely": [
"medcarely.com"
],
"telvio": [
"telvio.com"
],
"netflo": [
"netflo.com"
],
"skyroute": [
"skyroute.com"
],
"bankwise": [
"bankwise.com"
],
"brightcart": [
"brightcart.com"
],
"docusafe": [
"docusafe.com"
],
"fileshare": [
"fileshare.com"
],
"cashnest": [
"cashnest.com"
],
"swiftbank": [
"swiftbank.com"
],
"orbitmail": [
"orbitmail.com"
],
"lumipay": [
"lumipay.com"
],
"vaultex": [
"vaultex.com"
],
"cryptora": [
"cryptora.com"
],
"zapcart": [
"zapcart.com"
],
"meridianbank": [
"meridianbank.com"
],
"harborcredit": [
"harborcredit.com"
],
"pinnacletel": [
"pinnacletel.com"
],
"glidepost": [
"glidepost.com"
],
"tunelyx": [
"tunelyx.com"
],
"vidstreamr": [
"vidstreamr.com"
],
"socialoop": [
"socialoop.com"
],
"chatterly": [
"chatterly.com"
],
"jobnest": [
"jobnest.com"
],
"taxportal": [
"taxportal.com"
],
"govpay": [
"govpay.com"
],
"rideshare": [
"rideshare.com"
],
"foodzy": [
"foodzy.com"
],
"hostgrid": [
"hostgrid.com"
],
"paypal": [
"paypal.com",
"paypal.me",
"paypalobjects.com"
],
"microsoft": [
"microsoft.com",
"microsoftonline.com",
"live.com",
"office.com",
"msn.com",
"azure.com",
"windows.net",
"sharepoint.com"
],
"office365": [
"office.com",
"office365.com",
"microsoft.com"
],
"outlook": [
"outlook.com",
"live.com",
"office.com",
"microsoft.com"
],
"onedrive": [
"onedrive.com",
"live.com",
"microsoft.com",
"sharepoint.com"
],
"sharepoint": [
"sharepoint.com",
"microsoft.com"
],
"apple": [
"apple.com",
"icloud.com",
"apple.news"
],
"icloud": [
"icloud.com",
"apple.com"
],
"amazon": [
"amazon.com",
"amazon.co.uk",
"amazon.de",
"amazon.fr",
"amazon.ca",
"amazon.in",
"amazon.co.jp",
"amazonaws.com",
"amazon.com.au",
"media-amazon.com"
],
"netflix": [
"netflix.com",
"nflxext.com",
"nflximg.net"
],
"google": [
"google.com",
"googleapis.com",
"gstatic.com",
"googleusercontent.com",
"google.co.uk",
"google.de",
"youtube.com",
"goo.gl",
"withgoogle.com",
"g.co"
],
"gmail": [
"gmail.com",
"google.com"
],
"facebook": [
"facebook.com",
"fb.com",
"fbcdn.net",
"meta.com"
],
"instagram": [
"instagram.com",
"cdninstagram.com"
],
"whatsapp": [
"whatsapp.com",
"whatsapp.net",
"wa.me"
],
"linkedin": [
"linkedin.com",
"licdn.com",
"lnkd.in"
],
"dhl": [
"dhl.com",
"dhl.de",
"dhl.co.uk"
],
"fedex": [
"fedex.com"
],
"usps": [
"usps.com"
],
"chase": [
"chase.com",
"jpmorganchase.com"
],
"wellsfargo": [
"wellsfargo.com"
],
"bankofamerica": [
"bankofamerica.com",
"bofa.com"
],
"citibank": [
"citibank.com",
"citi.com"
],
"hsbc": [
"hsbc.com",
"hsbc.co.uk"
],
"barclays": [
"barclays.co.uk",
"barclays.com"
],
"santander": [
"santander.com",
"santander.co.uk"
],
"coinbase": [
"coinbase.com"
],
"binance": [
"binance.com"
],
"metamask": [
"metamask.io"
],
"steam": [
"steampowered.com",
"steamcommunity.com"
],
"roblox": [
"roblox.com"
],
"adobe": [
"adobe.com"
],
"dropbox": [
"dropbox.com",
"dropboxusercontent.com"
],
"docusign": [
"docusign.com",
"docusign.net"
],
"wetransfer": [
"wetransfer.com"
],
"verizon": [
"verizon.com"
],
"spotify": [
"spotify.com"
],
"ebay": [
"ebay.com",
"ebay.co.uk"
],
"walmart": [
"walmart.com"
],
"twitter": [
"twitter.com",
"x.com",
"t.co"
],
"discord": [
"discord.com",
"discord.gg",
"discordapp.com"
],
"telegram": [
"telegram.org",
"t.me"
],
"yahoo": [
"yahoo.com"
],
"zoom": [
"zoom.us"
],
"github": [
"github.com",
"github.io",
"githubusercontent.com"
],
"americanexpress": [
"americanexpress.com"
],
"mastercard": [
"mastercard.com"
],
"visa": [
"visa.com"
],
"irs": [
"irs.gov"
],
"hmrc": [
"gov.uk"
],
"royalmail": [
"royalmail.com"
],
"evri": [
"evri.com"
],
"mailchimp": [
"mailchimp.com"
],
"booking": [
"booking.com"
],
"airbnb": [
"airbnb.com"
],
"venmo": [
"venmo.com"
],
"cashapp": [
"cash.app"
],
"revolut": [
"revolut.com"
],
"kraken": [
"kraken.com"
],
"ledger": [
"ledger.com"
],
"trezor": [
"trezor.io"
],
"opensea": [
"opensea.io"
],
"blockchain": [
"blockchain.com"
],
"okta": [
"okta.com"
]
},
"flags": [
{
"id": "data_or_js_scheme",
"label": "data: or javascript: link",
"severity": 3,
"why": "The link carries its own page or script instead of pointing at a website, a trick used to smuggle phishing pages past filters."
},
{
"id": "ip_host",
"label": "Raw IP address",
"severity": 3,
"why": "The link goes to a public IP address instead of a domain name. Real services almost never send people to bare IPs."
},
{
"id": "at_symbol",
"label": "Text before an @ sign",
"severity": 3,
"why": "Browsers ignore everything before an @ in the address, so 'trusted.com@other.site' really goes to other.site."
},
{
"id": "non_ascii_host",
"label": "Non-Latin characters in the domain",
"severity": 3,
"why": "Letters from other alphabets can look identical to Latin ones (Cyrillic 'а' vs 'a'), a homograph attack."
},
{
"id": "punycode",
"label": "Punycode (xn--) domain",
"severity": 2,
"why": "xn-- labels encode international characters. Legitimate for many languages, but also used to disguise lookalike domains."
},
{
"id": "brand_lookalike",
"label": "Lookalike of a known brand",
"severity": 3,
"why": "The domain is one typo or digit swap away from a well-known brand (like paypa1 or rnicrosoft), a classic typosquat."
},
{
"id": "brand_domain_misuse",
"label": "Brand name on a domain it doesn't own",
"severity": 3,
"why": "A brand name is part of the registered domain, but that domain isn't one the brand uses (e.g. brand-login.com or brand.top)."
},
{
"id": "brand_in_subdomain",
"label": "Brand name in a subdomain",
"severity": 3,
"why": "The brand appears to the left of the real domain (brand.com.other.site). The part that matters is the registered domain at the right."
},
{
"id": "brand_in_path",
"label": "Brand name in the path",
"severity": 2,
"why": "The page path names a brand while the domain belongs to someone else, typical of phishing kits on hacked or free hosts."
},
{
"id": "sensitive_words_host",
"label": "Login or payment words in the domain",
"severity": 2,
"why": "Words like secure, login, verify or wallet in a domain name are cheap to register and common in phishing."
},
{
"id": "sensitive_words_path",
"label": "Login or payment words in the path",
"severity": 1,
"why": "The path asks you to log in, verify or pay. Normal on a site you trust, risky on one you don't."
},
{
"id": "exe_download",
"label": "Executable or app download",
"severity": 3,
"why": "The link downloads a program (.exe, .apk, .scr, .msi...). Opening files from unexpected links is how malware spreads."
},
{
"id": "double_extension",
"label": "Double file extension",
"severity": 3,
"why": "A name like invoice.pdf.exe hides the real file type behind a harmless-looking one."
},
{
"id": "archive_download",
"label": "Archive download",
"severity": 1,
"why": "Compressed archives (.zip, .rar, .7z) are often used to slip malware past scanners."
},
{
"id": "risky_tld",
"label": "Frequently abused top-level domain",
"severity": 2,
"why": "This ending (like .top, .xyz, .click) is cheap and shows up far more often in malicious URLs than in normal browsing."
},
{
"id": "free_hosting",
"label": "Free hosting or cloud storage",
"severity": 2,
"why": "Anyone can publish a page here in minutes, so the domain's reputation says nothing about who made the page."
},
{
"id": "dynamic_dns",
"label": "Dynamic DNS host",
"severity": 2,
"why": "Dynamic DNS names are free, anonymous and quick to change, popular for malware control servers and phishing."
},
{
"id": "shortener",
"label": "URL shortener",
"severity": 1,
"why": "Shortened links hide where they really go. Use a preview or expander before clicking."
},
{
"id": "redirect_param",
"label": "Redirects to another site",
"severity": 2,
"why": "A parameter sends you on to a different domain, which can turn a trusted site into a stepping stone (open redirect)."
},
{
"id": "email_in_url",
"label": "Email address in the link",
"severity": 2,
"why": "Phishing kits prefill the target's email so the fake login looks personal."
},
{
"id": "embedded_domain_path",
"label": "Another domain inside the path",
"severity": 2,
"why": "A domain name buried in the path (site.top/brand.com/login) makes a long URL look like it belongs to that brand."
},
{
"id": "many_subdomains",
"label": "Many subdomains",
"severity": 2,
"why": "Long chains of subdomains push the real domain out of view on narrow screens."
},
{
"id": "random_host",
"label": "Random-looking domain",
"severity": 2,
"why": "Machine-generated names (like kq3x9vbz2l) are typical of throwaway malicious infrastructure."
},
{
"id": "hyphen_heavy",
"label": "Many hyphens in the domain",
"severity": 1,
"why": "Domains stitched together from several words with hyphens (secure-account-update-x) are a common phishing pattern."
},
{
"id": "long_host",
"label": "Very long domain",
"severity": 1,
"why": "Unusually long host names often stack brand names and keywords to look legitimate."
},
{
"id": "nonstandard_port",
"label": "Unusual port",
"severity": 2,
"why": "An explicit port like :8080 or :4444 usually means an ad-hoc server rather than a public website."
},
{
"id": "cms_path",
"label": "Hacked-site style path",
"severity": 1,
"why": "Phishing pages are often dropped into WordPress or CMS folders (wp-content, wp-includes) of compromised sites."
},
{
"id": "encoded_chars",
"label": "Heavy percent-encoding",
"severity": 1,
"why": "Lots of %xx escapes can hide words or a second address from a quick look."
},
{
"id": "double_slash_path",
"label": "Double slash in the path",
"severity": 1,
"why": "A // inside the path is a common redirect or obfuscation trick."
},
{
"id": "long_url",
"label": "Very long URL",
"severity": 1,
"why": "Very long links hide the important part. Legitimate tracking links are long too, so this is a weak signal on its own."
},
{
"id": "no_https",
"label": "No HTTPS",
"severity": 1,
"why": "Plain http:// is unencrypted. Most legitimate sites use HTTPS now (though phishing sites can have HTTPS too)."
}
],
"word_brands": [
"apple",
"chase",
"visa",
"steam",
"booking",
"ledger",
"zoom",
"kraken",
"blockchain",
"telegram",
"discord",
"amazon",
"fileshare",
"rideshare",
"wideworld",
"humongous",
"lucerne",
"outlook",
"venmo",
"evri"
],
"confusables": {
"а": "a",
"е": "e",
"о": "o",
"р": "p",
"с": "c",
"х": "x",
"у": "y",
"і": "i",
"ј": "j",
"ԁ": "d",
"ѕ": "s",
"һ": "h",
"ӏ": "l",
"ԛ": "q",
"ԝ": "w",
"ο": "o",
"α": "a",
"ν": "v",
"ρ": "p",
"ε": "e",
"ι": "i",
"κ": "k",
"τ": "t",
"υ": "u",
"ı": "i",
"ɡ": "g",
"ℓ": "l",
"ⅼ": "l",
"o": "o",
"ä": "a",
"ö": "o",
"ü": "u",
"é": "e",
"è": "e",
"á": "a",
"à": "a",
"í": "i",
"ó": "o",
"ú": "u",
"ñ": "n",
"ç": "c"
}
}
{
"version": 1,
"second_level": [
"co.uk",
"org.uk",
"ac.uk",
"gov.uk",
"me.uk",
"ltd.uk",
"plc.uk",
"com.au",
"net.au",
"org.au",
"edu.au",
"gov.au",
"co.nz",
"org.nz",
"co.jp",
"ne.jp",
"or.jp",
"ac.jp",
"com.br",
"net.br",
"org.br",
"gov.br",
"co.in",
"net.in",
"org.in",
"gov.in",
"ac.in",
"com.mx",
"org.mx",
"gob.mx",
"co.za",
"org.za",
"gov.za",
"com.cn",
"net.cn",
"org.cn",
"gov.cn",
"com.tr",
"gov.tr",
"com.sg",
"edu.sg",
"gov.sg",
"com.hk",
"co.kr",
"or.kr",
"com.ar",
"com.co",
"com.pe",
"com.ng",
"co.ke",
"com.my",
"co.id",
"com.ph",
"com.vn",
"com.ua",
"co.il",
"com.pl",
"com.es",
"co.th",
"com.sa",
"com.eg",
"com.pk"
],
"hosting_suffixes": [
"web.app",
"firebaseapp.com",
"netlify.app",
"vercel.app",
"github.io",
"gitlab.io",
"pages.dev",
"workers.dev",
"herokuapp.com",
"glitch.me",
"repl.co",
"replit.app",
"000webhostapp.com",
"weebly.com",
"wixsite.com",
"blogspot.com",
"wordpress.com",
"azurewebsites.net",
"cloudfront.net",
"ngrok-free.app",
"ngrok.io",
"onrender.com",
"fly.dev",
"surge.sh",
"myshopify.com",
"square.site",
"godaddysites.com",
"webflow.io",
"framer.website",
"sharepoint.com",
"s3.amazonaws.com",
"storage.googleapis.com",
"blob.core.windows.net",