# phishing email analyzer

> Triage suspicious emails offline: SPF/DKIM/DMARC, look-alike domains, defanged IOCs, a risk score and a plain-English answer.

phishing email analyzer is a paid AI agent skill on Agensi by Big t, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Big t](https://www.agensi.io/creators/t-b)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-10-08
- Security: scan passed (2026-10-08); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/phishing-email-analyzer
- Tags: security, research, project-management, phishing, email-security, email-headers, spf, dkim

## About this skill

**Know if an email is phishing without clicking anything.**

phishing email analyzer gives your AI agent a SOC-style triage script for suspicious email. Hand it a saved `.eml` file or the raw headers you copied out of Gmail or Outlook. It reads the evidence the receiving mail server recorded, checks every link, sender address and attachment against tested rules, and returns a 0-100 risk score that lists each reason with its points. You also get a plain-English "Is this safe?" answer for the person who received the email, plus a defanged IOC file for whoever blocks it. Everything runs locally. Links are never opened and attachments are never saved or run.

### What it does
- **Authentication:** reads SPF, DKIM and DMARC results from Authentication-Results (RFC 8601), Received-SPF and Microsoft's compauth, checks each one's alignment with the From domain, and reports the sender's DMARC policy. It uses only the top (your provider's) Authentication-Results header, because lower ones can be forged.
- **Route forensics:** reads the Received chain oldest-first and reports each hop's IP class (private, CGNAT, documentation, public), the origin IP, hop delays, and negative time jumps that point to a forged or skewed line.
- **Sender checks:** compares From, Reply-To and Return-Path, catches display-name spoofing ("PayPal Service" sending from some other domain), freemail senders using brand lures, and Microsoft's own phishing/spoof verdicts (X-Forefront-Antispam-Report CAT codes).
- **Look-alike domains:** punycode (`xn--`), mixed Cyrillic/Greek/Latin letters, homoglyphs based on Unicode TR39 confusables (1,586 mappings bundled), 1-2 letter typos, `brand-secure.com` and `paypal.com.evil.net` patterns. Covers 30 common brands, and you can add your own brands and your company's domain to catch CEO and vendor fraud (BEC).
- **Links:** pulls URLs from text, HTML anchors, forms, iframes and meta refresh. Flags link text that shows one domain but points to another, bare IPs, odd ports, URL shorteners and http logins. Unwraps Microsoft Safe Links so you see the real target.
- **Attachments:** hashes each file in memory (MD5, SHA-1, SHA-256), detects the real file type from its bytes, flags double extensions, HTML/SVG login pages, password fields, forms that post elsewhere, macro-enabled Office files, encrypted archives, and file types on Outlook's and Gmail's block lists. Zips are listed but never extracted.
- **Outputs:** a terminal report, `triage.md`, `iocs.csv` (all defanged and safe from CSV formula injection), `answer.txt` in plain language, and `triage.json`.

### Problems it solves
- "Is this email real?" questions from family, staff or clients, answered with evidence instead of a gut feeling
- CEO gift-card and fake-vendor emails that pass SPF, DKIM and DMARC because the attacker owns a look-alike domain
- Raw headers too long and confusing to read by hand
- Pasting a suspicious link into a browser or scanner "just to check"
- Rebuilding IOC lists by hand for a blocklist, ticket or abuse report

### Who it's for
Small-business owners and office managers, MSPs and IT generalists, help-desk and SOC analysts who want a fast first pass, and anyone who gets asked "is this a scam?". The plain-English answer works for non-technical people, and the scored report and IOCs work for analysts.

### What's included
- `SKILL.md`: safety rules for the agent, how to capture headers in Gmail and Outlook, run commands, how to read each signal, and the order to deliver results
- `scripts/phish_triage.py` (main CLI), `eml_parse.py`, `indicators.py`, `make_samples.py` (4 harmless test emails using reserved `.test` domains and RFC 5737 IPs)
- `scripts/data/`: Unicode confusables subset, brand domain list, and blocked/risky file-type lists with their sources
- `references/`: every standard and provider rule with its official source (RFCs, Microsoft, Google, FTC, CISA, Unicode), the full scoring table, and a header-forensics guide
- `examples/expected-results.md`

Standard-library Python only. No API keys, no network calls, no installs.

## Requires

- Python

## Known limitations

- Offline only: no DNS, WHOIS or domain-age lookups, reputation feeds or sandboxing. DKIM signatures aren't re-verified cryptographically. The skill trusts the result your mail provider recorded.
- Organizational-domain matching is an offline approximation of the DNS tree walk in RFC 9989 (DMARCbis).
- The brand list is a starter set of 30 brands. Add others with `--brand`, and pass your company domain with `--org-domain`.
- Wording checks (urgency, gift cards, "verify your account") are English-only and carry few points. Non-English scams lean on the technical signals.
- QR codes inside images and links inside PDF or Office attachments aren't read.
- Outlook `.msg` files aren't supported, and some Outlook "Save as EML" exports drop the original headers. The skill tells you to use "View message details" in that case.
- A low score isn't proof of safety. A well-written email from a hacked real account can look clean. Always verify money or password requests another way.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the phishing email analyzer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill detect phishing attempts that pass standard spam filters?

The analyzer works by inspecting the raw code of an email (.eml file or copied headers). It looks for authentication failures (SPF/DKIM/DMARC), traces the sender's path, checks for look-alike domains using Unicode homoglyph detection, and flags dangerous attachment types without ever opening them.

### Which AI agents or platforms is this skill compatible with?

This skill is a standalone Python-based toolkit designed to be used by any AI agent with file-system or shell access. It uses only the Python standard library, requiring no external dependencies, API keys, or internet connectivity to function.

### Is there a risk of my agent accidentally triggering a malicious link or script during analysis?

No, the skill is designed for maximum safety. It performs all analysis offline, zips are never extracted, and all extracted links/IOCs are 'defanged' (e.g., changing http to hxxp) so they cannot be accidentally clicked or executed during the triage process.

### What exactly is included in the download?

You receive the core triage and parsing scripts, a comprehensive data library of brand domains and Unicode confusables, and a detailed safety guide. It also includes sample 'harmless' phishing emails so you can test your agent's reporting capabilities safely.

### Can I customize the risk scoring or add my own company domains to the look-alike detection?

Yes, the included data files for brands and blocked file types are user-editable. You can easily add your own company domains, specific executive names to watch for, or unique vendor domains to the 'brands' list to better detect Business Email Compromise (BEC) attacks.

### How does the skill communicate its findings to non-technical users?

The analyzer provides a multi-layered output: a technical JSON/Markdown report for IT professionals, a CSV file of indicators for blocking, and a specific 'plain-English' summary designed to be read directly to the end-user who received the suspicious email.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
