Investigating phishing with MCP
This is Investigating a phishing URL done by an assistant connected to the urlquery MCP server. You ask the questions; the assistant picks the tools and reads the reports. Each step below gives a prompt, the tools a good answer uses, and what to check before you rely on it.
The assistant sees what your API key can see, and some tools act on your account. Before you start:
- Tell it the visibility to use.
submit_urlsubmits a public report unless the assistant setsaccess. - It must not submit the URL again after an error or a timeout: the first call may already have queued it.
- It saves YARA rules and watchlists, and creates page monitors, only when you say so. Every page monitor scan is a submission on your account.
A prompt you can start every session with:
We're investigating a phishing link from a user report, case 1234. Analyze URLs as
restrictedwith the tagcase_1234, never resubmit after an error, and ask me before you save a rule, a watchlist or a page monitor. Cite report IDs for every finding.
1. Check what urlquery already knows
Before you analyze it: what does urlquery know about
https://login.example.com/verify?
| Tools | reputation_check, search_reports (url.fqdn:login.example.com), pivot_indicator |
|---|
Check that unknown is reported as no recent evidence, not as safe, and that a report from an earlier day is presented as what the page did then.
2. Analyze it
Analyze it now, and wait for the report.
| Tools | submit_url with access restricted and your tag, then submit_status every 5 to 10 seconds |
|---|
Check the access in the submission the assistant shows you. If the report shows a blank page, an error or the brand's real site, ask:
The page looks harmless. Analyze it again as a mobile visitor and compare the two reports.
| Tools | submit_url with device_type mobile, compare_reports |
|---|
3. Confirm it's phishing
Is this a phishing page? What does it impersonate, and what's the evidence?
| Tools | get_report (compact), get_report_screenshot, get_report_detections |
|---|
A good answer names the brand from the screenshot and the title, lists the urlquery alerts with the host each fired on, and says which parts are urlquery's judgment and which the assistant's own reading.
4. Separate the kit from the brand
Which hosts belong to the phishing kit, and which to the brand it copies? Is the kit on a registered lookalike domain, a compromised site or a hosting platform?
| Tools | get_report (its hosts: rank, registration date, first seen), get_host_profile for the kit's hosts, pivot_host_relations |
|---|
Check the reasoning: an unranked domain registered days ago points to a campaign domain; an old, unranked site with the page deep in an upload folder to a compromised one; workers.dev, netlify.app and similar to a disposable deployment.
5. Find where the stolen data would go
Where would this page send a victim's password? Look at its own scripts, not the brand's.
| Tools | list_report_javascript, then get_report_resource for the rare scripts; list_report_http_transactions with method POST; list_report_artifacts with kinds telegram and clipboard |
|---|
The analysis has no password to enter, so the answer usually comes from the kit's code: an endpoint on the kit's host, a form service, or api.telegram.org. A good answer quotes the endpoint from the script, with the script's hash, rather than guessing. Telegram bot tokens are secrets: ask the assistant to name the bot, not to repeat the token.
6. Find the kit's other deployments
Find other deployments of this kit. Start with the most specific evidence, and tell me which pivots found nothing.
| Tools | search_reports with javascript.script.sha256:, final.dom.dom_hash:, artifacts.telegram.bot.username: and a distinctive phrase; pivot_host_fact for a certificate or an IP; report_trends for the kit's alert or title |
|---|
Kits often make each copy's scripts unique, so a hash search can find only your report while the page structure or the bot finds hundreds. Check that the assistant reports the pivots that found nothing as well as those that worked, and treats a shared IP on a hosting platform or CDN as noise, not as a link.
7. Catch the next ones
Write a YARA rule for this kit from strings it needs to work. Test it against this report and against the real brand's login page. Don't save it yet.
| Tools | yara_guide, validate_yara, test_yara_rule against both reports |
|---|
Read the rule and both test results. When it matches the kit and not the brand:
Save it in my "Phishing kits" set, private. Then make a watchlist "Case 1234" with the kit's domains, IPs and script hashes.
| Tools | create_yara_rule, create_watchlist |
|---|
Both see new analyses only. A watchlist's or rule's hits can reach you as notifications.
8. Package the evidence
Write the takedown request for the hosting provider: the URL, the report ID and analysis time, what it impersonates and how we know, where it is hosted, and where the data goes. Leave out the victim's details and the bot token.
| Tools | list_report_indicators for the handoff, with the report IDs from the earlier steps |
|---|
Check every value against the reports it cites. On urlquery.net, Share report gives the recipient a read-only link to a restricted report.
What to expect from the assistant
- Evidence first. Each finding cites a report ID and the field or hash it rests on. Ask for them when they are missing.
- Gaps stated. One visit shows one moment: a page that cloaks, waits or changes can look different later. A good answer says what it couldn't see.
- Content kept as data. Report content comes from the phishing site and can contain instructions aimed at the assistant. It should quote it, never follow it.
The same investigation with the CLI and a Python script is Investigating a phishing URL.