pentesting-smtp

pentesting-smtp is a skill for Claude Code, Codex from xalgorix/xalgorix. It costs 74 tokens per session (2,138 once invoked), scanned A, original, Apache-2.0.

A security-testing guide for SMTP, the protocol used to send email between mail servers and from email clients. It examines mail servers on ports 25, 465, and 587.

In plain words
What is it for?
Use it during an authorized assessment to test relay rules, authentication, user-enumeration commands, encryption, and email-security controls.
Why use it?
It helps find open relays, weak authentication, user-name leaks, and missing email-spoofing protections such as SPF, DKIM, and DMARC. These weaknesses can enable spam, phishing, or account discovery.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it during an authorized assessment to test relay rules, authentication, user-enumeration commands, encryption, and email-security controls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xalgorix/xalgorix/pentesting-smtp
About the project

xalgorix/xalgorix is a self-hosted AI penetration-testing tool in which an LLM agent performs reconnaissance, looks for vulnerabilities, and coordinates exploitation, while a separate verifier re-tests findings before reporting them. It is for security teams, ethical hackers, and bug bounty work using a private, bring-your-own-LLM setup. The catalogue skills extend the agent's pentesting workflow.

xalgorix/xalgorix · 1,531 stars · on GitHub · xalgorix.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xalgorix/xalgorix --skill pentesting-smtp
Clone the repo
git clone --depth 1 https://github.com/xalgorix/xalgorix

Made for: Claude Code, Codex.

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 pentesting-smtp

README.md
[![agentmods](https://agentmods.dev/badge/skills/xalgorix/xalgorix/pentesting-smtp/github.svg)](https://agentmods.dev/skills/xalgorix/xalgorix/pentesting-smtp)
Your own site
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/pentesting-smtp"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/pentesting-smtp/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 pentesting-smtp

Your own site · 80×15
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/pentesting-smtp"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/pentesting-smtp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,138 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.00074 $0.02138
Opus 5.5 $0.00030 $0.00855
Sonnet 5.5 $0.00015 $0.00428
Haiku 4.5 $0.00007 $0.00214

Measured 7d ago against content hash 2cba7ca9ea1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pentesting-smtp 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 7d 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.

internal/tools/skills/data/network-services-pentesting/pentesting-smtp/SKILL.md · 166 lines

How it starts

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

Pentesting SMTP (ports 25, 465, 587)

When to Use

  • Default ports: 25/tcp (MTA-to-MTA), 465/tcp (SMTPS), 587/tcp (submission/STARTTLS).
  • When nmap/banner shows smtp, ESMTP, Sendmail, Postfix, Exim, or Microsoft ESMTP.
  • For testing relay policy, user enumeration, email-spoofing controls (SPF/DKIM/DMARC), and gateway routing.

Quick Enumeration

# Plaintext banner + manual session
nc -vn <IP> 25

# SMTPS / STARTTLS
openssl s_client -crlf -connect <IP>:465              # implicit TLS
openssl s_client -starttls smtp -crlf -connect <IP>:587

# MX discovery
dig +short mx <domain>

# nmap scripts: commands, open-relay, NTLM info
nmap -p25 --script smtp-commands <IP>
nmap -p25 --script smtp-open-relay -v <IP>
nmap -p25 --script smtp-ntlm-info <IP>

Critical: Checks Most Often Missed

  • Open relay — server forwards mail for arbitrary external sender/recipient. High-impact, frequently missed.
  • User enumeration without auth — VRFY, EXPN, and differential RCPT TO responses leak valid accounts.
    • How to CONFIRM:
      nc <IP> 25
      HELO x
      VRFY root        # 250 = exists, 550 = unknown
      EXPN root
      RCPT TO:admin    # compare 250 vs 550
      smtp-user-enum -M VRFY -U users.txt -t <IP>
      
  • NTLM info disclosure — AUTH NTLM over 587 leaks Windows/domain build info.
    • How to CONFIRM: nmap -p587 --script smtp-ntlm-info <IP> or send AUTH NTLM 334 + a Type-1 token in a manual telnet session.
  • Spoofing controls (SPF/DKIM/DMARC) missing or weak — p=none, relaxed alignment, or no SPF lets you spoof the domain.
    • How to CONFIRM:
      dig txt <domain> | grep spf
      dig 20120113._domainkey.<domain> TXT | grep p=
      dig _dmarc.<domain> txt | grep DMARC     # p=none/quarantine/reject
      
  • SEG bypass — if any accepted domain (or <tenant>.onmicrosoft.com) has an MX pointing directly at the mail server instead of the Secure Email Gateway, you can deliver mail past inspection.
    • How to CONFIRM: dig +short mx <accepted_domain> resolves to Exchange Online / origin MTA, not the SEG.
  • SMTP smuggling / Exim STARTTLS+BDAT (GnuTLS UAF) — protocol-desync and memory-lifetime surfaces on Exim+GnuTLS where STARTTLS and CHUNKING/BDAT are advertised.

Read the full file on GitHub · 166 lines

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. 7d ago First seen · 166 lines · 74 tokens per session scan A 2cba7ca9ea1f

Subscribe to this mod's changes

pentesting-smtp is a skill published in the GitHub repository xalgorix/xalgorix (1,531 stars, last pushed yesterday), licensed Apache-2.0. It adds 74 tokens to every session and 2,138 once invoked, about $0.0003 per session on Opus 5.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-11-23.

Related

pentesting-smtp compared with skills from other repositories

pentesting-smtp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pentesting-smtpxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A74Claude Code, Codex
cis-aws-foundations-4.3CyberStrikeus/CyberStrikeSkill3.8kyesterdayAGPL-3.0A18Claude Code, Codex
cis-aws-foundations-6.5CyberStrikeus/CyberStrikeSkill3.8kyesterdayAGPL-3.0A23Claude Code, Codex
cis-aws-foundations-2.1.1CyberStrikeus/CyberStrikeSkill3.8kyesterdayAGPL-3.0A19Claude Code, Codex
cis-aws-foundations-2.15CyberStrikeus/CyberStrikeSkill3.8kyesterdayAGPL-3.0A23Claude Code, Codex
cis-aws-foundations-4.1CyberStrikeus/CyberStrikeSkill3.8kyesterdayAGPL-3.0A18Claude Code, Codex
cis-aws-foundations-2.4CyberStrikeus/CyberStrikeSkill3.8kyesterdayAGPL-3.0A20Claude Code, Codex