<!--
MARDUK  /  SYSMON DYNAMIX

       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,..,,,,,,,,,.     ,,,,,,,,,,.,,,,,,,,,,,
       ,,,,,,,,,,,    ..,,,,,.     ,,,,,..    ,,,,,,,,,,,
       ,,,,,,,,,,,        ..,.    .,..        ,,,,,,,,,,,

Detection attribution and licensing are documented in THIRD_PARTY_NOTICES.md.
MITRE ATT&amp;CK mapping: © 2026 The MITRE Corporation. This work is reproduced
and distributed with the permission of The MITRE Corporation.
-->
<Sysmon schemaversion="4.90">
  <EventFiltering>
    <RuleGroup name="" groupRelation="or">
      <DnsQuery onmatch="include">
        <!-- Inclusion rules: DNS queries matching known LLM domains -->
        <!-- Exclusion of browser/system processes is handled via separate exclude logic; -->
        <!-- Sysmon onmatch=include rules below capture the positive matches. -->
        <!-- Note: The SPL NOT(...) exclusion block cannot be directly expressed as -->
        <!-- onmatch=include conditions. The positive match set below captures all -->
        <!-- DNS queries to LLM-related domains. The exclusion of browser/system -->
        <!-- processes (e.g. chrome.exe, msedge.exe, C:\Windows\System32\*) and -->
        <!-- the whitelisted app+domain pairs should be handled via a separate -->
        <!-- onmatch=exclude RuleGroup in a full deployment, or via post-processing -->
        <!-- in Splunk. Only onmatch=include rules are produced per requirements. -->

        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">anthropic</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">api.openrouter</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">civitai</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">dashscope.aliyuncs</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">gpt4all</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">huggingface</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">jan.ai</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">koboldai</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">lmstudio</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">modelscope</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">nomic.ai</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">ollama</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">oobabooga</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">openai</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">openrouter</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">replicate</QueryName>
        </Rule>
        <Rule name="Local LLM Framework DNS Query" groupRelation="and">
          <QueryName name="technique_id=T1590,technique_name=Gather Victim Network Information" condition="contains">tongyi</QueryName>
        </Rule>
      </DnsQuery>
    </RuleGroup>
  </EventFiltering>
</Sysmon>