> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/reference-and-developer-docs/reference/xdm-fields-for-mapping-authentication-events/authentication-mapping-advanced-classification-and-deep-dives.md).

# Authentication mapping: Advanced classification and deep dives

Learn more about technical conventions and implementation logic for complex authentication scenarios in Cortex XSIAM.

This section provides technical conventions and implementation logic for complex authentication scenarios. Use this guide to ensure that identity classification and entity relationships are modeled correctly for the identity analytics engine.

### Standard implementation rules

When a mandatory field is missing from your source log, apply these treatments in order. Padding is the LAST resort and should only be used when the information is truly unavailable and cannot be constructed.

1. **MAP**: Directly use the source field if it carries the required value.
2. **DERIVE**: Construct the value from other available fields.
   * **UPN construction**: For device-local accounts without a domain, synthesize the UPN using the `<account>@localhost` convention.
   * **Privilege banding**: Map numeric vendor levels to XDM constants (such as TACACS+ Level 15+ maps to `XDM_CONST.PRIVILEGE_LEVEL_ADMIN`).
3. **PAD**: Use semantically empty placeholders only if derivation is impossible.
   * **Permitted**: `to_integer(0)` for ports, `""` for target IP, and `XDM_CONST.IP_PROTOCOL_IP` for transport.
   * **Prohibited**: Never pad `xdm.target.resource.name` or `xdm.source.ipv4`. If the target is unknown, let the field resolve to null.

### Technical modeling by log family

#### Windows logon and Kerberos

* **Entity mapping**: `TargetUserName` and `TargetDomainName` represent the source user. `IpAddress` and `IpPort` represent the source endpoint.
* **Logon types**: Map Windows numeric LogonTypes to the corresponding `xdm.logon.type` constants (such as, 2 to `INTERACTIVE`, 3 to `NETWORK`).
* **Kerberos details**: Map encryption types and Status hex codes to the appropriate `xdm.auth.kerberos_*` sub-fields.

#### AAA Gateways (TACACS+, RADIUS, Cisco ISE)

These logs involve a **three-party topology** that must be modeled accurately:

* **Principal**: The user being authenticated (`xdm.source.user.upn`).
* **Source**: The IP of the user's physical workstation (`xdm.source.ipv4`).
* **Target**: The network device or console being managed (`xdm.target.ipv4` and `xdm.target.resource.name`).

#### Cisco Wireless (WLC)

* **Population differentiation**: WLC distinguishes between administrative operators and wireless network clients. These must be mapped to distinct `xdm.source.user.user_type` values to ensure management activity is not merged with client traffic.
* **Security enforcement signals**: Critical records such as `CLIENT_SHUNNED` or `SECURITY_VIOLATION` represent active enforcements and must be included in the authentication story, regardless of their raw severity level.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsiam/reference-and-developer-docs/reference/xdm-fields-for-mapping-authentication-events/authentication-mapping-advanced-classification-and-deep-dives.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
