/marq:email-securityfrom marq
Covers email authentication and transport architecture: SPF, DKIM, DMARC (including DMARCbis/RFC 9989), ARC, MTA-STS/TLS-RPT, BIMI, and bulk-sender rules. Guides staged rollout to p=reject and gateway selection.
Ships in marq. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Email auth answers one question: may this server speak for the domain in the
visible From? It stops exact-domain spoofing. It does not stop a lookalike domain, a
compromised real mailbox, or a lure sent through a legitimate SaaS, so layer it. The
human/process side is load_skill social-engineering-defense.
permerror, which counts as fail. Forwarding breaks SPF.d=, using the key at <selector>._domainkey.<d>.
Use RSA 2048 and rotate selectors. A vendor signing with its own d= does not
count toward your DMARC.pct= is gone
(use the t=y testing flag instead). New np= sets policy for non-existent
subdomains, and psd= marks public suffixes. Write new records without pct.
verify: https://www.rfc-editor.org/info/rfc9989/p=none; rua=mailto:... for 2 to 4 weeks, across a
month-end and a payroll run. Use a report processor, since raw XML doesn't scale. If
rua points to another domain, that domain must publish
<yours>._report._dmarc.<theirs> TXT.d= and bounce domain on your domain. Move bulk mail to its own subdomain so
reputation and policy stay isolated.t=y on the first step where receivers
support it. Read the reports at each step.sp=reject and np=reject. For parked domains
publish v=spf1 -all, p=reject and a null MX (RFC 7505).Pitfalls:
sp=none left open.~all, which lets "internal"
spoofs through direct-send paths. The fix is reject, -all and correct connectors.
verify: https://www.microsoft.com/en-us/security/blog/2026/01/06/phishing-actors-exploit-complex-routing-and-misconfigurations-to-spoof-domains/These apply to mail to consumer mailboxes at ≥5,000/day from one From domain. Treat them as the floor for invoicing and notification mail too.
p=none
aligned with one of them, valid PTR/FCrDNS, TLS, and RFC 5322 compliance. Marketing
mail needs one-click unsubscribe (RFC 8058), honored within 2 days. Reported spam
must stay under 0.3% (aim for under 0.1%). Gmail ramped enforcement in Nov 2025
with temporary and permanent rejections. Small senders still need SPF or DKIM.
verify: https://support.google.com/mail/answer/81126 , https://senders.yahooinc.com/best-practices/p=none aligned with at least one. Failures are rejected
with 550 5.7.515.
verify: https://support.microsoft.com/en-us/outlook/fix-ndr-error-550-5-7-515-in-outlook-comARC (RFC 8617, Experimental) lets intermediaries (lists, forwarders, your SEG) seal the auth results they saw. Receivers honor a seal only from trusted sealers, so in M365 add your gateway as a trusted ARC sealer. ARC's status is moving. The IETF DMARC WG adopted a draft to reclassify ARC as Historic (2026), and the DKIM WG is drafting DKIM2 as the replacement for forwarding-safe auth. verify: https://datatracker.ietf.org/group/dmarc/documents/
STARTTLS is opportunistic and can be stripped. MTA-STS (RFC 8461) closes that without DNSSEC:
_mta-sts.<d> TXT v=STSv1; id=<bump-on-edit>.https://mta-sts.<d>/.well-known/mta-sts.txt. Its mx: lines
must match every real MX.mode: testing, then switch to enforce.TLS-RPT (RFC 8460, _smtp._tls TXT v=TLSRPTv1; rua=...) reports failures, so turn
it on before enforce. DANE (RFC 7672) is stronger but needs DNSSEC. Exchange Online
validates MTA-STS and DANE outbound by default. Inbound DANE needs DNSSEC plus
Enable-SmtpDaneInbound.
verify: https://learn.microsoft.com/en-us/exchange/security-and-compliance/enhance-mail-flow-using-strict-transport-security
BIMI is the inbox logo (default._bimi.<d> TXT pointing to an SVG Tiny PS file plus
a mark certificate). It requires DMARC enforcement (quarantine or reject, no
sp=none). Gmail accepts a VMC (registered trademark) or a CMC (no trademark,
prior-use logo). It is a brand feature, not a control. Its value is as the exec-friendly
reason to finish DMARC. verify: https://support.google.com/a/answer/10911320
| Model | Strengths | Weaknesses |
|---|---|---|
| SEG (MX → gateway, inline) | Blocks pre-delivery; outbound DLP/encryption; any mail platform | Blind to internal mail; in M365 needs Enhanced Filtering for Connectors or auth sees the gateway IP; bypassable by direct-to-tenant routing |
| ICES (Graph/Gmail API, post-delivery) | Sees internal/lateral phish and ATO/BEC behavior; deploys in hours | Short in-inbox race; a tenant-wide high-privilege OAuth app (supply-chain risk); API throttling |
| Native (Defender for O365 / Gmail) | Already licensed; auth, ZAP/purge, user reporting built in | Detection depth varies with tuning |
Decision: on M365/Workspace, start with native, tuned, and add ICES for BEC/ATO depth. Choose a SEG for pre-delivery blocking across mixed platforms or heavy outbound needs. Never stack a SEG in front of native filtering without fixing connector/IP visibility. verify: https://www.gartner.com/reviews/market/email-security
dns_lookup needs an explicit record_type, because the default ANY is refused by
many resolvers (RFC 8482). Query:
TXT on the apex (SPF), _dmarc.<d>, <sel>._domainkey.<d>, _mta-sts.<d>,
_smtp._tls.<d> and default._bimi.<d>MX, plus each MX's PTRinclude: to count lookups. Use dns_lookup to check parked domains.
Fetch the MTA-STS policy with web fetch.--to <mailbox> --from <addr> --tls tests STARTTLS and delivery. Read the delivered
copy's Authentication-Results.--quit-after RCPT with an outside from/to tests for an open relay without sending.testssl.sh -t smtp on host:25 grades STARTTLS (own MX only).report_finding gaps: no DMARC, p=none past 90 days, SPF permerror, no MTA-STS,
parked domains without reject. Use CWE-290 for spoofability. Inspecting a suspect
message is load_skill phishing-email-analysis.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
email-security, spf, dkim, dmarc, email-authentication, anti-spoofing
npx claudepluginhub rhaist/marq --plugin marq86 skills in this plugin
/actor-ttp-attributionGuides going from observed behavior or IOCs to a candidate threat actor and concrete MITRE ATT&CK technique IDs with calibrated confidence, starting from ORKL report search. Use when the user asks who is behind an attack, which APT or group matches observed TTPs, to map behavior to ATT&CK, or how confident an attribution is./ai-governanceGuides running an AI management system, covering ISO/IEC 42001 (with 42005/42006), NIST AI RMF and its profiles, the AI inventory and risk register, acceptable-use policy, model-vendor assessment, and how it evidences EU AI Act and AI-security duties. Use when the user asks about ISO 42001, NIST AI RMF, an AI policy or inventory, assessing an AI vendor, or AI governance for EU AI Act compliance./Other plugins' skills for the same job