Skip to content

Siemphony is in beta and still being built. How a rule earns its badge.

Siemphony’s repertoire

Nltest execution enumerating domain trust relationships

Matches nltest.exe run with a trust-enumeration switch, the CLI leg of AN0016 and the one MITRE calls out by name as adversary tradecraft. The rule is written on Sysmon EventID 1 (`Image`, `CommandLine`) rather than the brief's Security 4662 alternative, because 4662 requires a SACL on the directory object and records the access, not the command that made it. This selector cannot see the other two paths the same analytic names: PowerShell's Get-ADTrust/GetAllTrustRelationships cmdlets and a direct DSEnumerateDomainTrusts()/LDAP call from a compiled tool leave no nltest process at all, so a quiet result here says nothing about those. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0007, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full description

The detection

The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.

detection.yml

title: Nltest execution enumerating domain trust relationshipsid: eec1a4d7-5b35-49a8-8cec-8c3b5037b672status: experimentaldescription: |  Matches nltest.exe run with a trust-enumeration switch, the CLI leg of AN0016  and the one MITRE calls out by name as adversary tradecraft. The rule is  written on Sysmon EventID 1 (`Image`, `CommandLine`) rather than the brief's  Security 4662 alternative, because 4662 requires a SACL on the directory  object and records the access, not the command that made it. This selector  cannot see the other two paths the same analytic names: PowerShell's  Get-ADTrust/GetAllTrustRelationships cmdlets and a direct  DSEnumerateDomainTrusts()/LDAP call from a compiled tool leave no nltest  process at all, so a quiet result here says nothing about those.  UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0007, not hand-written and not tested by its author. Any lab result is on this rule's own page.references:  - https://attack.mitre.org/techniques/T1482  - https://attack.mitre.org/detectionstrategies/DET0007author: Siemphony pipeline (machine-derived from MITRE ATT&CK v19.2)date: 2026-08-16tags:  - attack.discovery  - attack.t1482logsource:  category: process_creation  product: windowsdetection:  selection_image:    Image|endswith: '\nltest.exe'  selection_switch:    CommandLine|contains:      - '/domain_trusts'      - '/trusted_domains'      - '/all_trusts'  condition: selection_image and selection_switchfalsepositives:  - "Active Directory administrators and helpdesk staff running nltest by hand to troubleshoot a broken trust or confirm a domain controller can reach a trusted forest — the exact switches this rule matches are the ones a runbook tells them to use."  - "Scheduled AD health-check and monitoring scripts (SCOM management packs, in-house PowerShell) that shell out to nltest /domain_trusts on a timer to verify trust health across a forest."level: medium

Sentinel · KQL

Run this as a search.

DeviceProcessEvents| where (FolderPath endswith "\\nltest.exe" and (ProcessCommandLine contains "/domain_trusts" or ProcessCommandLine contains "/trusted_domains" or ProcessCommandLine contains "/all_trusts"))

Splunk · SPL

Run this as a search.

index=* (Image="*\\nltest.exe" AND (CommandLine="*/domain_trusts*" OR CommandLine="*/trusted_domains*" OR CommandLine="*/all_trusts*"))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE (TO_LOWER(process.executable) LIKE "*\\\\nltest.exe" AND (TO_LOWER(process.command_line) LIKE "*/domain_trusts*" OR TO_LOWER(process.command_line) LIKE "*/trusted_domains*" OR TO_LOWER(process.command_line) LIKE "*/all_trusts*"))

Wazuh · XML rule

Deploy to your manager — this is a rule, not a search.

<group name="sigma,windows,process_creation,">  <!-- Rule ids must be unique on your manager; 100000+ is the user range. -->  <rule id="100000" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)\\nltest\.exe$</field>    <field name="CommandLine" type="pcre2">(?i)(/domain_trusts|/trusted_domains|/all_trusts)</field>    <description>Nltest execution enumerating domain trust relationships</description>    <mitre>      <id>T1482</id>    </mitre>  </rule></group>

Verdicts · reactions · comments

Community

Verdicts from engineers who actually deployed it, and the conversation around it.

Log in to react
Not yet reported on

Nobody has run this in a real environment and said what happened.

Verdicts from engineers who deployed it

0 cast

No verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.

Log in to report a verdict.

Log in to join the discussion.

No comments yet. Someone who deploys this will have something to say about it.