# kerberos trust abuse

> Exploit Kerberos trusts, MIT krb5 on Linux, and cross-forest SID History while bypassing common tool limitations.

kerberos trust abuse is a paid AI agent skill on Agensi by NZ1Labs, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $11 (one-time purchase)
- Creator: [NZ1Labs](https://www.agensi.io/creators/nz1labs)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.1
- Last updated: 2026-11-17
- Security: scan passed (2026-11-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/kerberos-trust-abuse
- Tags: security, kerberos, pentesting, active-directory, linux, impacket

## About this skill

### The problem

Kerberos exploitation often stalls when transitioning between Linux and Windows, or when moving across forest boundaries. Standard tools frequently fail on clock skew, PAC reconstruction, or missing referral support in Impacket.

### What it does

- Automates the `ksu` root escalation path on domain-joined Linux hosts using world-readable keytabs.
- Manages cross-forest movement using SID History injection and manual inter-realm TGT forging.
- Provides monkey-patches for Impacket to handle clock skew, `SeBackupPrivilege` (Backup Intent), and referral chasing.
- Fixes GSSAPI/LDAP canonicalization errors that prevent enumeration from Linux pivots.
- Handles the technical implementation of "Golden Tickets" for cross-realm service access.

### Frameworks & tools

MIT krb5, Impacket, SSSD, Samba-tool, and OpenLDAP.

### Why this beats prompting it yourself

This skill handles the "silent failures" that standard LLMs miss, such as Impacket's `CCache.loadFile` classmethod trap and PAC stripping at external trust boundaries. It provides specific environment-variable hooks and Python patches that are necessary when the target KDC is only reachable via SOCKS/SSH.

### Use cases

- Escalating to root on a Linux server by creating a matching AD user via LDAP.
- Accessing resources in a partner forest when Impacket returns `KDC_ERR_WRONG_REALM`.
- Bypassing DACLs using `SeBackupPrivilege` over an SMB session.
- Synchronizing Kerberos timestamps to match drifting Domain Controllers without changing the host clock.

### Known limitations

Requires authorized access to trust keys or keytabs. Server 2025 PAC hardening requires a real principal RID for forged tickets.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the kerberos trust abuse skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill handle Kerberos errors that standard tools usually fail on?

This skill automates complex Kerberos attacks like SID History injection and inter-realm TGT forging, while providing specific patches for Impacket and MIT krb5 to overcome common errors like clock skew and referral failures.

### Does this skill support cross-platform exploitation between Linux and Windows?

Yes, it is designed for hybrid environments and includes specific methods for escalating privileges on domain-joined Linux hosts using ksu and world-readable keytabs.

### What technical assets are included in the purchase?

You receive a comprehensive toolkit containing specialized Python patches, environment configuration hooks, and step-by-step guidance for bypassing PAC hardening and trust boundaries.

### Which AI agents or frameworks can I use with this skill?

The skill is compatible with AI agents capable of executing Python and interacting with CLI tools like Impacket, SSSD, and Samba-tool.

### Are there any specific environment requirements or limitations I should be aware of?

While it automates many complex tasks, you still need authorized access to trust keys or keytabs, and it requires a valid principal RID for targets running Windows Server 2025 due to recent PAC hardening.

### How are updates handled for new Active Directory security patches?

This skill is regularly updated to include the latest patches for Impacket and workarounds for new Windows security updates, such as changes to Kerberos authentication in Server 2025.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
