Skip to content
PT
← Projects

Projects · Project 02 · Email security

Nuntum: email as an attack vector

Phishing remains among the most common entry points in incidents, and much of it relies on something simple: pretending to be a trusted domain. I built Nuntum, my domain’s email service on an adapted open source base, to study this vector from the inside: who can send on my behalf, how the recipient verifies it, and what happens when verification fails.

The service is real, but the architecture below has been simplified and sanitized. Addresses, messages, component names, schedules and operational values are examples or have been generalized.

SPF · RFC 7208DKIM · RFC 6376DMARC · RFC 7489MITRE ATT&CKOWASP LLM Top 10

Research question

Can a small domain, with no security team, prevent its use for phishing without losing legitimate mail?

Each control was treated as a hypothesis: it only took effect after a test send confirmed the expected outcome.

  1. 01Threat

    How would an attacker use the domain or the service?

  2. 02Control

    Which record or rule should prevent it?

  3. 03Test

    A controlled send that reproduces the technique.

  4. 04Reading

    SPF, DKIM and DMARC results at the recipient.

  5. 05Policy

    Adjustment applied only after validation.

Threat model

Techniques mapped to MITRE ATT&CK, the email authentication RFCs and the OWASP Top 10 for LLM applications.

Offensive techniqueReferenceControlStatus
Spoofing of my domainT1566 · T1656Strict SPF, DKIM and DMARC at p=rejectTested
Spoofed external sender reaching the inboxT1566.002Inbound authentication check; rejected at the edgeTested
Legitimate mail without alignment (false positive)RFC 7489 §3.1Sending provider with its own DKIM validated before enforcing policyTested
AI agent with excessive agencyLLM06:2025Assistant only drafts; sending requires human confirmationTested
Service outage and message lossNIST CSF · RCQueues with retries and automated backupsTested
TLS downgrade in transitRFC 8461MTA-STS and TLS-RPTControl evaluated
Abuse of an inactive domainRFC 7505Null MX and SPF -all on the previous domainControl evaluated

Interface

Interface adapted with its own identity and an installable mobile version. Sample content.

Running the tests

Pick a situation and follow the checks the message goes through.

    Incoming

    From
    To
    Subject
    Size

    Authentication and MFA

    spf —
    dkim —
    dmarc —

    Domain DNS · example

    RecordNameValuePurpose
    MX@10 edge-1 · 20 edge-2 · 30 edge-3Who receives
    SPF@v=spf1 include:edge include:provider ~allWho may send
    DKIMselector._domainkeyv=DKIM1; k=rsa; p=MIIBIjAN…Signing key
    DMARC_dmarcv=DMARC1; p=rejectWhat to do on failure

    Architecture

    Solid line: receiving. Dashed: sending and access.

    01 | INTERNET SENDERExternal serverLooks up the MX RECIPIENTExternal inboxChecks SPF, DKIMand DMARC 02 | DOMAIN DNS PUBLIC RECORDSMX · who receivesSPF · who may sendDKIM · signing keyDMARC · p=reject 03 | SENDING DEDICATED PROVIDERVerified domainSigns with its own DKIMManaged service 04 | EDGE AND APPLICATION · SERVERLESS ROUTINGManaged serviceChecks SPF, DKIM and DMARCRejects spoofing INTAKEE-mail functionRejects above 25 MiB4 attempts per step QUEUESIn · out · assistantRetry policyManaged service SITE AND APIEdge computingPer-user sessionSends only from its ownaddresses REAL TIMEDurable ObjectUpdates the open inbox 05 | DATA DATABASEManaged relational storeMessages and calendar BACKUPAutomatedDatabase copy FILESManaged object storageRaw mail, files 06 | ACCESS BROWSER AND PHONEInstallable appPassword and session AI ASSISTANTOwn revocable keyDrafts only; sending confirmed delivers stores notifies key sends delivers looks up

    Findings

    • With DMARC set to reject, spoofing of the domain is refused by the recipient, not just flagged as spam.
    • The biggest risk in enforcing the policy is blocking your own legitimate mail, so the provider was validated first.
    • An AI assistant with inbox access is a new vector; human confirmation limits the damage.

    Architecture shown

    • No self-managed server and no exposed port.
    • SPF, DKIM and DMARC at p=reject.
    • Queues with retries and automated backups.
    • Adapted open source base, with its own identity and rules.

    Controls evaluated in the study

    • Aggregate DMARC reports to observe authorized senders.
    • MTA-STS and TLS-RPT against TLS downgrade.
    • Null MX and SPF -all on inactive domains.
    • Expiry and rotation of access keys.