1. Resources
  2. Identity Threats
  3. Active Directory

Passwords in Active Directory Attributes (description, info)

Also known as: Password in description field, Passwords in user comments, Secrets in DNS TXT records, Description attribute password

Any domain user can read the description, info and comment attributes of every account over LDAP and find passwords that help desk staff and administrators typed there.

Platform
Active Directory
Impact
Medium
Last updated
Attack difficulty
Low
Detection difficulty
High
Privileges required: Any authenticated identity
Any authenticated domain account with LDAP access to a domain controller. The attributes are readable by all authenticated users by default.
What the attacker gains
Cleartext passwords of the user, service or administrator accounts whose notes fields contain them.
Threat groups
NIMBUS MANTICOREVolt TyphoonAPT41BlackByteBRONZE BUTLERChimeraDragonflyFIN13FIN6FIN7Fox KittenINC RansomKe3changLAPSUS$and 16 more in MITRE ATT&CKGroups that MITRE ATT&CK records using T1552, T1087.002.

How it works

Active Directory user, computer and group objects have free-text attributes that exist for humans: description, info (the Notes box on the Telephones tab of Active Directory Users and Computers) and comment. Support staff use them as handover notes. A new starter's first password, the password of a shared mailbox, the credentials of a service account that "everyone needs" end up typed there, and then stay for years.

These attributes are ordinary directory data. By default every authenticated user can read them for every object in the domain with one LDAP query, so the readers of the note are everyone in the domain, not the colleague it was meant for. No exploit and no special right is involved.

Three things make findings ambiguous, for the attacker and for the defender who runs the same search:

  • Labels and attributes differ. The Notes box writes info, not description, and an export from an identity system may rename columns again. A search has to cover the LDAP attribute names, not the labels.
  • Free text is not labeled. A ticket reference or an asset tag can look like a password. A value has to be tested before it counts as a credential.
  • Reading an export is not reading the directory. A CSV of user descriptions on a share shows what the exporting account could read at export time.

Provisioning systems add to the problem: a script that creates accounts and writes "Initial password: ..." to description produces a fresh finding with every new hire, and puts the text back after someone cleans it up.

Variant: secrets in DNS records

The same habit shows up in DNS. A TXT record can hold any character string, and administrators sometimes use one to pass a key, a token or a note between systems. In AD-integrated DNS the records are directory objects (dnsNode objects under the MicrosoftDNS container of the DNS application partitions), and by default any authenticated user can list and read them over LDAP, not only resolve names one at a time. A secret in a TXT record is therefore readable both by anyone who can resolve the name and by any domain user who enumerates the zone.

ATT&CK mapping

ATT&CK has no sub-technique for credentials kept in directory attributes or DNS records. This page maps to the parent technique Unsecured Credentials (T1552) and to Domain Account discovery (T1087.002) for the enumeration. Credentials In Files (T1552.001) fits only when the material really came from a file, for example an exported user list or a zone file. Record where the value was actually stored and how it was reached before assigning a sub-technique.

Prerequisites

  • A valid domain account of any privilege level, and LDAP access (TCP 389 or 636) to a domain controller.
  • An object whose free-text attribute contains a password that is still valid.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Query the attributes

From a domain-joined Windows host with the ActiveDirectory module:

# Accounts whose notes fields mention a password
Get-ADUser -LDAPFilter '(|(description=*pass*)(description=*pwd*)(info=*pass*)(info=*pwd*)(comment=*pass*))' `
    -Properties description, info, comment |
    Select-Object SamAccountName, Enabled, description, info, comment

# Everything that has any text at all, for manual review
Get-ADUser -LDAPFilter '(|(description=*)(info=*)(comment=*))' -Properties description, info, comment |
    Select-Object SamAccountName, description, info, comment |
    Export-Csv -NoTypeInformation notes.csv

# Computer and group objects carry the same attributes
Get-ADComputer -LDAPFilter '(description=*)' -Properties description | Select-Object Name, description
Get-ADGroup -LDAPFilter '(|(description=*)(info=*))' -Properties description, info | Select-Object Name, description, info

A keyword filter misses passwords written without a label, so operators usually pull every non-empty value and read through the list. Built-in accounts and groups have standard descriptions that can be skipped.

From Linux, ldapsearch does the same with a simple bind:

ldapsearch -x -H ldap://192.0.2.10 -D 'alice@corp.example.com' -W \
    -b 'DC=corp,DC=example,DC=com' \
    '(&(objectCategory=person)(objectClass=user)(|(description=*)(info=*)(comment=*)))' \
    sAMAccountName description info comment

NetExec has a module that reads user descriptions and looks for password-like content:

# All user descriptions that look interesting
nxc ldap 192.0.2.10 -u alice -p '<password>' -M get-desc-users

# Only descriptions that contain a given string
nxc ldap 192.0.2.10 -u alice -p '<password>' -M get-desc-users -o FILTER=pass

The module's PASSWORDPOLICY option keeps only strings that meet Windows complexity requirements, and MINLENGTH sets the minimum length to consider.

2. Check DNS records

A known name is checked with an ordinary lookup:

Resolve-DnsName -Name 'app-config.corp.example.com' -Type TXT -Server 192.0.2.10

To find TXT records without knowing their names, the attacker enumerates the AD-integrated zone over LDAP as a normal domain user. adidnsdump is the public tool for this: it lists the dnsNode objects of a zone and decodes their records.

3. Validate and use

Each candidate is tested once against the account it sits on. Values in a description are often the account's first password, so the accounts most likely to work are the ones whose pwdLastSet is close to whenCreated: the password was never changed after the note was written.

Impact

The attacker gains the accounts whose passwords were written down: credential theft by reading. Most findings are standard user accounts, which is why the impact is rated medium, but the same search regularly turns up service accounts, shared administrative accounts and break-glass notes, and one of those is enough for lateral movement or privilege escalation.

The query also hands over the full account list with descriptions, which tells the attacker which accounts are service accounts, which belong to administrators and which systems they serve. That is reconnaissance for Kerberoasting and password spraying even when no password is found. Related places where passwords are left readable: GPP passwords and credentials in SYSVOL scripts and file shares.

OPSEC and artifacts

  • One broad query or many narrow ones. A single search for every user with a description is fast and looks like the directory queries that many applications run. Narrow, paged queries from an expected host draw even less attention. Domain controllers do not log attribute reads by default, so in most environments the read leaves no event.
  • Read auditing. Event 4662 records a read of an object only where Audit Directory Service Access is enabled and the object has a matching audit entry (SACL). Auditing reads of description on all users is too noisy to be practical, which is why operators consider this step safe.
  • LDAP query telemetry. Domain controllers can log expensive or inefficient searches in the Directory Service log (event 1644) when the diagnostic level is raised, and Microsoft Defender for Identity and some EDR products record LDAP search filters. A filter such as (description=*pass*) is distinctive where that telemetry exists.
  • The bind itself. The LDAP bind is an authentication: a Kerberos service ticket request for ldap/DC01 or an NTLM logon on the domain controller, from the attacker's host.
  • DNS enumeration. Listing a zone over LDAP is a directory read like any other. Resolving one TXT record is a normal DNS query, visible only in DNS query logs if they are collected.
  • Use of the password. The first logon with a harvested account from a new source address is the trace that standard logging does record.

Detection

Detection on the read is weak, so work from both ends:

  • Find the passwords first. Run the queries above on a schedule and treat each hit as an exposed credential. This is the control that matters.
  • Watch the writes. With Audit Directory Service Changes enabled and an audit entry on user objects, event 5136 records every change to description and info, including the new value and who wrote it. A provisioning account that writes these attributes on every new user is a process to fix.
  • Decoy account. A user whose description contains a plausible password that is not its real one. A failed logon for that account is an alert.
  • DNS record changes. New or changed records in AD-integrated zones are covered by the AD-integrated DNS record abuse rules.
// Who writes to the notes attributes, and how often
WindowsEvent
| where EventID == 5136 and Provider == "Microsoft-Windows-Security-Auditing"
| extend Attribute = tostring(EventData.AttributeLDAPDisplayName),
         Writer = tostring(EventData.SubjectUserName)
| where Attribute in~ ("description", "info", "comment")
| summarize Changes = count() by Computer, Writer, Attribute, bin(TimeGenerated, 1h)

A replacement writes two records, one for the deleted value and one for the added value, so the count is of audit records, not of objects. The query leaves out AttributeValue on purpose: projecting it copies any password in the text into the SIEM. The audit policy guide covers the subcategory and the audit entries that event 5136 needs.

Mitigation

  • Remove the passwords and change them. Clearing the attribute does not undo earlier reads. Every domain user could read the value for as long as it was there.
  • Fix the source. If a provisioning script or an identity system writes the text, it will write it again on the next cycle. Change the process so that first passwords reach the user another way, and require a change at first logon.
  • Define what the fields are for. Decide what description and info may contain, and restrict who can write them to the people and systems that need to.
  • Give shared and local accounts a managed password. Windows LAPS removes the need to note a local administrator password anywhere, and a secret store does the same for shared accounts.
  • Keep secrets out of DNS. Review TXT records in AD-integrated zones and who is allowed to create records. A removed record can stay in resolver caches for the length of its TTL.
  • Make the search part of routine hygiene. Run it as a recurring identity hygiene review, next to the read-only assessment that the Active Directory hardening guide starts with.

Detection rules for this attack

Log events to collect

FAQ

Who can read the description attribute of a user?

By default, every authenticated user and computer in the domain. The description, info and comment attributes are ordinary directory data, not protected secrets, and a normal LDAP query returns them for all accounts at once.

Which attributes should be checked for passwords?

Start with description, info (shown as Notes in Active Directory Users and Computers) and comment on user, computer and group objects. Then check any free-text attribute that your provisioning or help desk process writes to, and TXT records in AD-integrated DNS zones.

Can reading these attributes be detected?

Rarely. An LDAP search that returns descriptions looks like the queries that many applications make all day, and domain controllers do not log attribute reads by default. Detection works better on the other side: find the passwords yourself, and alert when someone writes password-like text to these attributes.

Which ATT&CK technique covers this?

The parent technique Unsecured Credentials (T1552), together with Domain Account discovery (T1087.002) for the query. Credentials In Files (T1552.001) applies only when the value was actually taken from a file, such as an exported user list or a zone file, because a directory attribute or a DNS record is not a file.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.