# ESC9 Smartcard Logon

> Get a no-SID certificate and turn it into an interactive smartcard RDP session.

ESC9 Smartcard Logon 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: $4 (one-time purchase)
- Creator: [NZ1Labs](https://www.agensi.io/creators/nz1labs)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/esc9-smartcard-logon
- Tags: security, active-directory, pentesting

## About this skill

For accounts marked `SMARTCARD_REQUIRED`, a plain client-auth certificate earns `KDC_ERR_POLICY`. The fix is a template flagged `CT_FLAG_NO_SECURITY_EXTENSION` — no SID — so AD must trust `altSecurityIdentities` instead. This skill enrols it, maps it without destroying the mapping that already worked, and drives the RDP logon.

The part nobody writes down: **a wrong PIN reaches LogonUI and then dies with `ERRINFO_LOGOFF_BY_USER` about forty seconds later.** People chase session timeouts for hours. That signature is a PIN/cert failure, and this skill says so up front.

## Requires

- Python 3.10+
- certipy
- freerdp3-x11
- enrolment rights on the template

## Known limitations

Needs enrolment rights on a Smartcard Logon template and the correct smartcard PIN for the interactive session.

## 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 ESC9 Smartcard Logon 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

### Why does it log off immediately?

Wrong PIN. LogonUI then Welcome then ERRINFO_LOGOFF_BY_USER is the PIN signature, not a timeout.

### Why no SID in the certificate?

That is the point of ESC9 — without it the KDC falls back to altSecurityIdentities.

---

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.
