email-infrastructure

email-infrastructure is an agent for Claude Code from ASCIT31/Dark-Moon. It costs 61 tokens per session (9,163 once invoked), scanned A, original, GPL-3.0.

An automated security-testing agent for email infrastructure, the servers and protocols that send, receive, and store email. It covers Microsoft, Postfix, Exim, Dovecot, SMTP relays, and email-authentication records.

In plain words
What is it for?
It is for testing Autodiscover, EWS, OWA, ECP, SMTP, SPF, DKIM, DMARC, and mailbox data exposure.
Why use it?
It helps identify weaknesses in mail servers, relays, authentication settings, and mailbox data handling.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit It is for testing Autodiscover, EWS, OWA, ECP, SMTP, SPF, DKIM, DMARC, and mailbox data exposure.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ascit31/dark-moon/email-infrastructure
About the project

DarkMoon is an open-source tool that uses autonomous AI agents to perform authorized penetration tests, which are security assessments that search for and demonstrate vulnerabilities in computer systems. It targets web and API services, cloud environments, Active Directory, Kubernetes, CI/CD systems, and AI/LLM applications, using a local language model behind a privacy gateway. The catalogue entries are agents for carrying out parts of these assessments and integrations for running the tool.

ASCIT31/Dark-Moon · 1,199 stars · on GitHub · dark-moon.org

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.

Clone the repo
git clone --depth 1 https://github.com/ASCIT31/Dark-Moon

Made for: Claude Code.

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 email-infrastructure

README.md
[![agentmods](https://agentmods.dev/badge/agents/ascit31/dark-moon/email-infrastructure/github.svg)](https://agentmods.dev/agents/ascit31/dark-moon/email-infrastructure)
Your own site
<a href="https://agentmods.dev/agents/ascit31/dark-moon/email-infrastructure"><img src="https://agentmods.dev/badge/agents/ascit31/dark-moon/email-infrastructure/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 email-infrastructure

Your own site · 80×15
<a href="https://agentmods.dev/agents/ascit31/dark-moon/email-infrastructure"><img src="https://agentmods.dev/badge/agents/ascit31/dark-moon/email-infrastructure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,163 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00061 $0.09163
Opus 5.5 $0.00024 $0.03665
Sonnet 5.5 $0.00012 $0.01833
Haiku 4.5 $0.00006 $0.00916

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

Security

Grade A, and why

email-infrastructure scanned grade A with 2 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.

Sends data to an external URLlowData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

darkmoon_execute_command(command="bash -c 'timeout 25 curl -sk https://<host>/autodiscover/autodiscover.xml -H \"Content-Type: text/xml\" -d \"<Autodiscover xmlns=\\\"http://schemas.microsoft.com/exchange/autodiscover/ou

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Use curl, dig, jq, naabu, zgrab2, nuclei, netexec and impacket scripts.
conf/agents/email-infrastructure.md · 579 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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 Changed · +55 lines 415530aa6ba0
  2. 2mo ago First seen · 524 lines · 61 tokens per session scan A d34ec1bea575

Subscribe to this mod's changes

email-infrastructure is an agent published in the GitHub repository ASCIT31/Dark-Moon (1,199 stars, last pushed 7d ago), licensed GPL-3.0. It adds 61 tokens to every session and 9,163 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

api-spec-writer

Produces api-requirements.md from an approved plan. Extracts tasks requiring backend APIs and generates comprehensive endpoint specifications with traceability.

closedloop-ai/claude-plugins · 31 tokens

scg-mapper

Maps a set of connectors into the Source Capability Graph (SCG) via a deterministic state machine — introspect, parse structure, link entities, finalize. Indexes reachability only, never the data behind it.

bearlike/Assistant · 48 tokens

api-documenter

Create OpenAPI/Swagger specs, generate SDKs, and write developer documentation. Handles versioning, examples, and interactive docs. Use PROACTIVELY for API documentation or client library generation.

echoVic/blade-code · 43 tokens

network-recon-agent

Network reconnaissance subagent for red-run. Performs host discovery, port scanning, service enumeration, and quick-win checks as directed by the orchestrator. Has access to nmap via MCP server — no sudo handoff needed. Use when the orchestrator needs to scan a target or subnet.

blacklanternsecurity/red-run · 62 tokens

timps_ai_workflow_orchestrator

Turn a plain-English multi-step workflow into executable code for LangGraph, Temporal, or Claude-Flow — plus a Mermaid diagram and tests. Use the timpsaiworkfloworchestrator MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 67 tokens

sn-investigator

Read-only ServiceNow investigator. Use proactively to answer a question about a ServiceNow instance — why a record looks the way it does, what automation runs on a table, where a field or script is used, why a flow failed — without filling the main conversation with raw records. Returns a short report with its…

IvanBBaev/servicenow-mcp-ai · 68 tokens