Atlantiraptor Docs

Windows.Events.Mutants

Type: Client event (monitoring) · Author: Jos Clephas - @DfirJos

Watches for new Mutants in the Windows object manager namespace and alerts on detections.

Precondition: SELECT * FROM info() WHERE OS =~ "windows"

Parameters

Name Type Default Description
processRegex regex . A regex applied to process names.
Period int 120
MutantNameRegex regex EvilMutant
AlertName string Suspicious mutex created
DiffSense string added
enrich bool N Enrich mutex with process information. Closely monitor the performance impact if you enable this.

Source

Defined in artifacts/definitions/Windows/Events/Mutants.yaml.

name: Windows.Events.Mutants
description: |
  Watches for new Mutants in the Windows object manager namespace and
  alerts on detections.

author: Jos Clephas - @DfirJos

type: CLIENT_EVENT

precondition:
  SELECT * FROM info() WHERE OS =~ "windows"

parameters:
  - name: processRegex
    description: A regex applied to process names.
    default: .
    type: regex
  - name: Period
    type: int
    default: 120
  - name: MutantNameRegex
    default: EvilMutant
    type: regex
  - name: AlertName
    default: "Suspicious mutex created"
  - name: DiffSense
    default: added
  - name: enrich
    description: Enrich mutex with process information. Closely monitor the performance impact if you enable this.
    type: bool
    default: N

sources:
    - query: |

        LET processes = SELECT Pid AS ProcPid, Name AS ProcName, Exe
        FROM process_tracker_pslist()
        WHERE ProcName =~ processRegex
          AND int(int=ProcPid) > 0

        LET query_mutant = SELECT *
        FROM winobj()
        WHERE Type = "Mutant"
          AND Name =~ MutantNameRegex

        LET query_enriched = SELECT * FROM foreach(
          row=processes,
          query={
            SELECT ProcPid, ProcName, Exe, Type, Name, Handle
            FROM handles(pid=int(int=ProcPid), types="Mutant")
          })
        WHERE Type = "Mutant" AND Name =~ MutantNameRegex

        LET query_diff = if(condition=enrich, then=query_enriched, else=query_mutant)

        SELECT *, alert(name=AlertName, Name=Name, Type=Type, Exe=Exe) as AlertSent
        FROM diff(query=query_diff, period=Period, key="Name")
        WHERE Diff = DiffSense

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.