email-security
Skill22 starsChanged 6 months agoMITView on GitHub
Email infrastructure security audit. Tests SPF, DKIM, DMARC configuration, open relay, email spoofing resilience, S/MIME, MTA-STS, TLS-RPT, and SMTP security.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- chunkydotdev/email-skillstheir own version, first seen Sep 29, 2026
- zhaoxuya520/reverse-skilltheir own version, first seen Sep 22, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- Asaiuta/reverse-workbench-skilltheir own version, first seen Aug 14, 2026
- xAmirHamza77/ReverseOps-Skilltheir own version, first seen Aug 2, 2026
Used with
Projects with it also use browser-extension-reverse, cloud-k8s and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
xAmirHamza77Skillbrowser-extension-reverse
Use for authorized reverse engineering of browser extensions (Chrome/Firefox) including manifest analysis, background workers, and extension-based credential or traffic logic recovery.
Also in 3 projects that use this
xAmirHamza77Skillcloud-k8s
Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.
Also in 3 projects that use this
- +10 more from xAmirHamza77
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- zhaoxuya520/reverse-skill★ 40ksame name
- chunkydotdev/email-skills★ 5same name
- Asaiuta/reverse-workbench-skill★ 4same name
- xAmirHamza77/ReverseOps-Skill★ 4same name
- conjure-3301/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository353 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bb-hugeSkill
- 2fa-multi-factor-bypassSkill
- 401-403-bypass-techniquesSkill
- Access Control — Complete Deep DiveSkill
- active-directory-acl-abuseSkill
- active-directory-asreproastingSkill
- active-directory-certificate-servicesSkill
- active-directory-dcsync-attackSkill
- active-directory-full-attack-chainSkill
- active-directory-golden-ticketSkill
- active-directory-kerberoastingSkill
- active-directory-kerberos-attacksSkill
- ad-asreproast-attackSkill
- ad-assessmentSkill
- ad-cs-esc1-abuseSkill
- ad-dcsync-attackSkill
- ad-pass-the-hashSkill
- advanced-sql-injection-sqliSkill
- ai-agent-tool-abuse-and-privilege-escalationSkill
- ai-data-extraction-via-ssrfSkill
- ai-data-poisoning-model-skewingSkill
- ai-data-poisoningSkill
- ai-jailbreak-obfuscation-ciphersSkill
- ai-jailbreak-prompt-injectionSkill
- ai-jailbreak-system-promptsSkill
- aikido-triageSkill
- ai-ml-securitySkill
- ai-pair-hunting-with-claudeSkill
- ai-prompt-leakingSkill
- ai-redteamSkill
- ai-report-writing-guardrailsSkill
- amend-skillSkill
- amsi-bypassSkill
- analyze-cveSkill
- android-apk-reverse-engineeringSkill
- android-pentesting-tricksSkill
- anti-debugging-techniquesSkill
- api-auth-and-jwt-abuseSkill
- api-authentication-bypassSkill
- api-authorization-and-bolaSkill
- api-enumeration-fuzzing-discoverySkill
- api-mass-assignment-exploitationSkill
- api-rate-limit-bypass-techniquesSkill
- api-recon-and-docsSkill
- api-secSkill
- api-securitySkill
- API Testing — Deep DiveSkill
- arbitrary-write-to-rceSkill
- authbypass-authentication-flawsSkill
- auth-bypassSkill
- Authentication — Complete Deep DiveSkill
- auth-secSkill
- authz-bypassSkill
- av-edr-evasion-techniquesSkill
- aws-cloud-penetration-testingSkill
- aws-cognito-abuseSkill
- aws-iam-privilege-escalationSkill
- aws-imdsv2-ssrf-bypassSkill
- aws-metadata-ssrf-exploitationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 3 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Read this before executing any workflow phase.
- Very specific: line 32
Logging: Before invoking any skill above, call session(action="set_skill", …
- Very specific: line 83
Call session(action="start", options={...}) with target domain, depth, and limits
- Very specific: line 84
Call report(action="dashboard", data={"port": 7777}) — live findings tracker
- Very specific: line 85
Call report(action="note", data={...}) — record target domain, known mail provider
- Distinctive: line 121
Start with common selectors, then expand if needed.
- Very specific: line 126
If no selectors found, try brute-forcing with a wordlist or checking email headers from the domain for the s= tag:
- Distinctive: line 160
If the mail is accepted for delivery to an external domain, this is a Critical finding.
- Very specific: line 204
Call report(action="diagram", data={...}) with email infrastructure:
- Very specific: line 218
Call report(action="note", data={...}) with email security summary:
- Very specific: line 233
Call session(action="complete", options={...}) with summary
- Very specific: line 257
Mermaid syntax rules: use flowchart TD, quote labels, no em-dashes, short alphanumeric node IDs
- Very specific: line 258
Call session(action="stop_kali") at the end if kali(command=...) was used
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Email Infrastructure Security Audit
You are an expert email security auditor. Your goal: comprehensively assess the email infrastructure of a target domain — authentication mechanisms (SPF/DKIM/DMARC), transport security (STARTTLS/MTA-STS), relay configuration, spoofing resilience, and user enumeration — and report all weaknesses with remediation guidance.
Request: $ARGUMENTS
CHAIN COMMITMENTS — DECLARE BEFORE STARTING
Read this before executing any workflow phase. Commit to MANDATORY chains before your first tool call.
| Trigger | Chain | Mandatory? | Claude Code | opencode |
After session(action="complete") | /gh-export | OPTIONAL — user request only | Skill(skill="gh-export") | cat ~/.config/opencode/commands/gh-export.md |
| SMTP/STARTTLS weakness found | /ssl-tls-audit | OPTIONAL | Skill(skill="ssl-tls-audit") | cat ~/.config/opencode/commands/ssl-tls-audit.md |
| Email credentials found | /credential-audit | OPTIONAL | Skill(skill="credential-audit") | cat ~/.config/opencode/commands/credential-audit.md |
| Architecture review requested | /threat-modeling | OPTIONAL | Skill(skill="threat-modeling") | cat ~/.config/opencode/commands/threat-modeling.md |
Logging: Before invoking any skill above, call session(action="set_skill", options={"skill":"<name>","reason":"<why>","chained_from":"<this-skill>"}) — this writes the SKILL_CHAIN entry to pentest.log.
Tools Available
| Tool | Use for |
session(action="start", options={...}) | Define target, scope, depth, and hard limits — always call this first |
session(action="complete", options={...}) | Mark the scan done and write final notes |
kali(command=...) | Kali tools: swaks, dig, nmap, smtp-user-enum, openssl s_client |
scan(tool="nmap", ...) | SMTP service detection and NSE scripts |
http(action="request", ...) | Check MTA-STS policy, web-based mail config |
report(action="finding", data={...}) | Log confirmed vulnerabilities to findings.json |
report(action="diagram", data={...}) | Save email infrastructure diagrams |
report(action="dashboard", data={"port": 7777}) | Serve dashboard.html at localhost:7777 |
report(action="note", data={...}) | Write reasoning notes to session log |
Testing Matrix
| Category | Tests | Tools | Severity if failed |
| SPF | Record exists, syntax valid, not too permissive (+all), include chain | dig | High if missing/misconfigured |
| DKIM | Selector discovery, key size, algorithm | dig | High if missing |
| DMARC | Record exists, policy (none/quarantine/reject), rua/ruf reporting | dig | High if p=none or missing |
| STARTTLS | SMTP STARTTLS supported, certificate valid | openssl, nmap | Medium |
| MTA-STS | Policy published, mode (enforce/testing/none) | http(action="request", ...) | Low-Medium |
| TLS-RPT | TLSRPT DNS record for failure reporting | dig | Low |
| Open relay | Test if server relays mail for external domains | swaks | Critical |
| Spoofing | Send spoofed email, check if accepted/rejected | swaks | High |
| User enumeration | VRFY, EXPN, RCPT TO response differences | smtp-user-enum | Medium |
| SMTP banner | Information disclosure in banner | nmap | Low |
Depth Presets
| Depth | What runs | Default limits | ||
quick | SPF + DKIM + DMARC + MX lookup | $0.05 | 5 min | 5 calls |
standard | Quick + STARTTLS + MTA-STS + open relay test + spoofing test | $0.15 | 15 min | 12 calls |
thorough | Standard + user enumeration + full SMTP audit + TLS cert analysis | unlimited | unlimited | unlimited |
Workflow
Phase 0 — Scope & Setup
- Call
session(action="start", options={...})with target domain, depth, and limits - Call
report(action="dashboard", data={"port": 7777})— live findings tracker - Call
report(action="note", data={...})— record target domain, known mail provider
Phase 1 — DNS Record Analysis
Run in parallel:
kali(command="dig DOMAIN MX +short")
kali(command="dig DOMAIN TXT +short | grep -i spf")
kali(command="dig _dmarc.DOMAIN TXT +short")
kali(command="dig _mta-sts.DOMAIN TXT +short")
kali(command="dig _smtp._tls.DOMAIN TXT +short")SPF analysis:
| Finding | Severity |
| No SPF record | High |
+all mechanism | Critical — anyone can send as this domain |
~all (softfail) | Medium — should be -all |
| Too many DNS lookups (>10) | Medium — SPF permerror |
include: chain too deep | Low |
DMARC analysis:
| Finding | Severity |
| No DMARC record | High |
p=none | High — no enforcement |
p=quarantine | Medium — should be reject for mature domains |
No rua= reporting | Medium — no visibility into failures |
pct= < 100 | Low — partial enforcement |
DKIM — discover selectors:
Start with common selectors, then expand if needed. Selector naming is organization-specific — these are examples, not an exhaustive list:
kali(command="for sel in default google selector1 selector2 k1 k2 k3 mail dkim s1 s2 s1024 s2048 smtp protonmail mandrill mxvault; do R=$(dig ${sel}._domainkey.DOMAIN TXT +short 2>/dev/null); [ -n \"$R\" ] && echo \"$sel: $R\"; done")If no selectors found, try brute-forcing with a wordlist or checking email headers from the domain for the s= tag:
kali(command="swaks --to test@DOMAIN --server MX_HOST 2>&1 | grep -i 'dkim-signature' | grep -oP 's=\\K[^;]+'")Phase 2 — SMTP Service Analysis (standard+)
SMTP service detection:
scan(tool="nmap", target=MX_HOST, options={"ports": "25,465,587", "flags": "--script smtp-commands,smtp-enum-users,smtp-open-relay,smtp-ntlm-info -sV"})STARTTLS check:
kali(command="echo 'QUIT' | openssl s_client -connect MX_HOST:25 -starttls smtp -brief 2>/dev/null | head -20")
kali(command="echo 'QUIT' | openssl s_client -connect MX_HOST:587 -starttls smtp -brief 2>/dev/null | head -20")Check certificate:
kali(command="echo 'QUIT' | openssl s_client -connect MX_HOST:25 -starttls smtp 2>/dev/null | openssl x509 -noout -subject -issuer -dates -fingerprint 2>/dev/null")Phase 3 — Open Relay Testing (standard+)
Test open relay with swaks:
kali(command="swaks --to test@example.com --from spoofed@DOMAIN --server MX_HOST --timeout 10 2>&1 | tail -20")If the mail is accepted for delivery to an external domain, this is a Critical finding.
Phase 4 — Spoofing Resilience (standard+)
Test email spoofing:
kali(command="swaks --to real-user@DOMAIN --from ceo@DOMAIN --server MX_HOST --header 'Subject: Test Spoofing Resilience' --body 'This is a spoofing test.' --timeout 10 2>&1 | tail -20")Test from external server (bypasses internal relay):
kali(command="swaks --to real-user@DOMAIN --from ceo@DOMAIN --header 'Subject: External Spoof Test' --body 'External spoofing test.' --timeout 10 2>&1 | tail -20")Phase 5 — User Enumeration (thorough)
SMTP user enumeration:
kali(command="smtp-user-enum -M VRFY -U /usr/share/seclists/Usernames/top-usernames-shortlist.txt -t MX_HOST 2>/dev/null | head -30")
kali(command="smtp-user-enum -M RCPT -U /usr/share/seclists/Usernames/top-usernames-shortlist.txt -D DOMAIN -t MX_HOST 2>/dev/null | head -30")Phase 6 — MTA-STS Policy Check (standard+)
Fetch MTA-STS policy:
http(action="request", url="https://mta-sts.DOMAIN/.well-known/mta-sts.txt", method="GET")Verify:
- Policy mode:
enforce,testing, ornone - MX entries match actual MX records
- max_age is reasonable (86400+)
Phase 7 — Report & Wrap-Up
- Call
report(action="diagram", data={...})with email infrastructure:
flowchart TD
Sender["External Sender"] --> DNS["DNS Lookup"]
DNS --> SPF["SPF: v=spf1 ... -all"]
DNS --> DKIM["DKIM: selector._domainkey"]
DNS --> DMARC["DMARC: p=reject"]
Sender --> MX["MX: mail.domain.com"]
MX --> TLS["STARTTLS: TLS 1.2+"]
MX --> Filter["Spam/Phishing Filter"]
Filter --> Inbox["User Inbox"]
MX --> MTASTS["MTA-STS: enforce"]- Call
report(action="note", data={...})with email security summary:
Email Security Assessment Summary:
Domain: [domain]
Mail provider: [provider]
SPF: [status and policy]
DKIM: [status, selectors found]
DMARC: [status, policy, reporting]
STARTTLS: [yes/no, TLS version]
MTA-STS: [mode]
Open relay: [yes/no]
Spoofing: [resilient/vulnerable]
User enumeration: [possible/blocked]- Call
session(action="complete", options={...})with summary
Chaining Other Skills
| Skill | When to invoke |
/osint | Email addresses discovered — expand OSINT reconnaissance |
/credential-audit | SMTP credentials needed — test authentication |
/ssl-tls-audit | STARTTLS weaknesses found — deep TLS assessment |
/gh-export | When user asks to file GitHub issues |
Rules
session(action="start", options={...})is mandatory — never run any other tool before it- Batch independent DNS lookups — SPF, DKIM, DMARC, MTA-STS can all run in parallel
- Test spoofing carefully — only send test emails to authorized addresses
- Call
report(action="finding", data={...})for every confirmed weakness — include the DNS record and specific misconfiguration - SPF + DKIM + DMARC must all be present — missing any one is a finding
- Use
report(action="note", data={...})liberally — document DNS records and analysis decisions - Never fabricate findings — only report what tool output confirms
- Mermaid syntax rules: use
flowchart TD, quote labels, no em-dashes, short alphanumeric node IDs - Call
session(action="stop_kali")at the end ifkali(command=...)was used
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

