/security-agent-skills:testing-smtp-smuggling-and-email-spoofingfrom security-agent-skills
Tests email authentication setups for SPF, DKIM, and DMARC gaps that allow sender spoofing, including misaligned signatures, unprotected subdomains, and SMTP smuggling via end-of-data desync between mail servers.
Ships in security-agent-skills. 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 authentication is a stack of three records that only stops spoofing if all three are present, aligned, and enforced - and even then only if every server on the delivery path agrees where one message ends and the next begins. The failures are quiet: a policy published but set to take no action, a signature that validates a domain that is not the visible sender, a subdomain with no policy, and the boundary desync where two servers parse the end-of-data sequence differently, letting a forged message ride inside a legitimate one and pass every check. You find them by testing what actually gets delivered and trusted, not by reading the records and assuming they hold.
Test mail authentication and delivery only for domains and servers you own or are authorized to assess, sending only to mailboxes you control. Spoofed mail to third parties is out of scope and often unlawful. If you can't name the authorization, stop.
Map the mail path and the records. Identify the servers a message crosses inbound and outbound, and retrieve the domain's sender-authentication records: the authorized-senders policy, the signing setup, and the alignment-and-reporting policy. Note the published enforcement action and whether it is set to reject, quarantine, or merely observe. The path and the records together define what should stop a forgery.
Check enforcement, not just presence. A record that exists but sets its action to none, or a reporting policy in monitor mode, authenticates nothing in practice. Confirm the policy instructs receivers to actually reject or quarantine failures, and that receivers on the path honor it. Present-but-permissive is the most common gap.
Check alignment between the envelope and the visible sender. Authentication that passes for a domain the recipient never sees does not stop a spoof of the domain they do. Verify that the authorized-senders check and the signature align with the header sender the mailbox displays, not only with the envelope or a signing domain the user never reads. A pass without alignment is a bypass.
Check subdomains and absent policy. A strict policy on the root domain does not cover a subdomain that publishes none, and many receivers treat an absent policy as no enforcement. Test spoofing from a subdomain and from cousin names to find where the policy stops covering.
Test the end-of-data boundary desync. Craft a message whose end-of-data sequence is interpreted as the message end by one hop but not the other, so content after it is parsed by the next hop as a new, separate message. If the smuggled message asserts a sender from a domain the receiving hop trusts and it passes authentication, the boundary desync defeats the whole stack. Test the accepted variations of the terminating sequence between the inbound and outbound servers.
Confirm and record. Confirm by delivering, to a mailbox you control, a message that displays a forged sender and passes the domain's authentication - through a non-enforced policy, an alignment gap, an unprotected subdomain, an open relay, or a boundary desync. Kill the lead if policy is enforced and aligned across the root and subdomains, relay is closed, and both hops parse the message boundary identically. Record with the exact message, the path, and the auth verdict the recipient saw.
Confirm. The domain publishes all three records, but the alignment-and-reporting policy is set to take no action on failure. A message with a forged header sender from the domain, failing alignment, is delivered to a controlled mailbox and shown as authentic because no receiver enforces the failing policy. Confirmed spoofing through a non-enforced policy,
high, remediation = move the policy to reject after confirming legitimate senders are aligned, and cover subdomains with an explicit policy.Kill. All three records are present, the policy enforces reject and is honored on the path, signature and authorized-senders both align with the visible header sender, root and subdomains carry enforcing policy, relay is closed to unauthenticated senders, and the inbound and outbound hops parse the end-of-data sequence identically so no boundary desync is possible. Every spoof and smuggle attempt is rejected or shown as failing. Killed,
kill_reason= "enforced, aligned policy across root and subdomains, relay closed, consistent message-boundary parsing between hops."
You need the inbound and outbound mail path, the domain's authentication records and their enforcement actions, the ability to send crafted test messages into the path, and controlled mailboxes to observe the verdict the recipient sees. The test is behavioral: send the aligned and misaligned, root and subdomain, relayed, and boundary-desync variants and read what is accepted and how it is authenticated. Reading the records tells you the intent; delivering the messages tells you the truth.
auditing-saml-and-oidc-flows - the other federation-and-identity surface, where signatures and audiences
are confused much as sender alignment is here.enumerating-snmp-exposure - a sibling network-service audit in the same lane, for management exposure.testing-request-smuggling - the same desync idea at the web layer: two parsers disagreeing on where one
message ends.mapping-attack-surface - inventory the mail servers and records before testing them.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive.Other plugins' skills for the same job