Detection rules › Sigma

HackTool - LaZagne Execution

Status
experimental
Severity
medium
Log source
product windows, category process_creation
Author
Nasreddine Bencherchali, Swachchhanda Shrawan Poudel (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the execution of the LaZagne. A utility used to retrieve multiple types of passwords stored on a local computer. LaZagne has been leveraged multiple times by threat actors in order to dump credentials.

MITRE ATT&CK coverage

TacticTechniques
Credential AccessNo specific technique

Event coverage

Rule body yaml

title: HackTool - LaZagne Execution
id: c2b86e67-b880-4eec-b045-50bc98ef4844
status: experimental
description: |
    Detects the execution of the LaZagne. A utility used to retrieve multiple types of passwords stored on a local computer.
    LaZagne has been leveraged multiple times by threat actors in order to dump credentials.
references:
    - https://github.com/AlessandroZ/LaZagne/tree/master
    - https://thedfirreport.com/2022/05/09/seo-poisoning-a-gootloader-story/
    - https://cloud.google.com/blog/topics/threat-intelligence/alphv-ransomware-backup/
    - https://securelist.com/defttorero-tactics-techniques-and-procedures/107610/
    - https://github.com/CyberMonitor/APT_CyberCriminal_Campagin_Collections/raw/800c0e06571993a54e39571cf27fd474dcc5c0bc/2017/2017.11.14.Muddying_the_Water/muddying-the-water-targeted-attacks.pdf
author: Nasreddine Bencherchali, Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2024-06-24
modified: 2025-10-07
tags:
    - attack.credential-access
logsource:
    product: windows
    category: process_creation
detection:
    selection_img_metadata:
        Image|endswith: '\lazagne.exe'
    selection_img_cli:
        # Note: This selection can be prone to FP. An initial baseline is required
        Image|contains:
            - ':\PerfLogs\'
            - ':\ProgramData\'
            - ':\Temp\'
            - ':\Tmp\'
            - ':\Users\Public\'
            - ':\Windows\Temp\'
            - '\$Recycle.bin'
            - '\AppData\'
            - '\Desktop\'
            - '\Downloads\'
            - '\Favorites\'
            - '\Links\'
            - '\Music\'
            - '\Photos\'
            - '\Pictures\'
            - '\Saved Games\'
            - '\Searches\'
            - '\Users\Contacts\'
            - '\Users\Default\'
            - '\Users\Searches\'
            - '\Videos\'
            - '\Windows\addins\'
            - '\Windows\Fonts\'
            - '\Windows\IME\'
        CommandLine|endswith:
            - '.exe all'
            - '.exe browsers'
            - '.exe chats'
            - '.exe databases'
            - '.exe games'
            - '.exe git'
            - '.exe mails'
            - '.exe maven'
            - '.exe memory'
            - '.exe multimedia'
            # - '.exe php' # Might be prone to FP
            # - '.exe svn' # Might be prone to FP
            - '.exe sysadmin'
            - '.exe unused'
            - '.exe wifi'
            - '.exe windows'
    selection_cli_modules:
        CommandLine|contains:
            - ' all '
            - ' browsers '
            - ' chats '
            - ' databases '
            - ' games '
            - ' mails '
            - ' maven '
            - ' memory '
            - ' multimedia '
            - ' php '
            - ' svn '
            - ' sysadmin '
            - ' unused '
            - ' wifi '
    selection_cli_options:
        CommandLine|contains:
            - '-1Password'
            - '-apachedirectorystudio'
            - '-autologon'
            - '-ChromiumBased'
            - '-coreftp'
            - '-credfiles'
            - '-credman'
            - '-cyberduck'
            - '-dbvis'
            - '-EyeCon'
            - '-filezilla'
            - '-filezillaserver'
            - '-ftpnavigator'
            - '-galconfusion'
            - '-gitforwindows'
            - '-hashdump'
            - '-iisapppool'
            - '-IISCentralCertP'
            - '-kalypsomedia'
            - '-keepass'
            - '-keepassconfig'
            - '-lsa_secrets'
            - '-mavenrepositories'
            - '-memory_dump'
            - '-Mozilla'
            - '-mRemoteNG'
            - '-mscache'
            - '-opensshforwindows'
            - '-openvpn'
            - '-outlook'
            - '-pidgin'
            - '-postgresql'
            - '-psi-im'
            - '-puttycm'
            - '-pypykatz'
            - '-Rclone'
            - '-rdpmanager'
            - '-robomongo'
            - '-roguestale'
            - '-skype'
            - '-SQLDeveloper'
            - '-squirrel'
            - '-tortoise'
            - '-turba'
            - '-UCBrowser'
            - '-unattended'
            - '-vault'
            - '-vaultfiles'
            - '-vnc'
            - '-winscp'
    condition: 1 of selection_img_* or all of selection_cli_*
falsepositives:
    - Some false positive is expected from tools with similar command line flags.
# Note: Increase the level to "high" after an initial baseline
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_img_* or all of selection_cli_*

Stage 1: selection_img_metadata

selection_img_metadata:
    Image|endswith: '\lazagne.exe'

Stage 2: selection_img_cli

selection_img_cli:
    Image|contains:
        - ':\PerfLogs\'
        - ':\ProgramData\'
        - ':\Temp\'
        - ':\Tmp\'
        - ':\Users\Public\'
        - ':\Windows\Temp\'
        - '\$Recycle.bin'
        - '\AppData\'
        - '\Desktop\'
        - '\Downloads\'
        - '\Favorites\'
        - '\Links\'
        - '\Music\'
        - '\Photos\'
        - '\Pictures\'
        - '\Saved Games\'
        - '\Searches\'
        - '\Users\Contacts\'
        - '\Users\Default\'
        - '\Users\Searches\'
        - '\Videos\'
        - '\Windows\addins\'
        - '\Windows\Fonts\'
        - '\Windows\IME\'
    CommandLine|endswith:
        - '.exe all'
        - '.exe browsers'
        - '.exe chats'
        - '.exe databases'
        - '.exe games'
        - '.exe git'
        - '.exe mails'
        - '.exe maven'
        - '.exe memory'
        - '.exe multimedia'
        - '.exe sysadmin'
        - '.exe unused'
        - '.exe wifi'
        - '.exe windows'

Stage 3: selection_cli_modules

selection_cli_modules:
    CommandLine|contains:
        - ' all '
        - ' browsers '
        - ' chats '
        - ' databases '
        - ' games '
        - ' mails '
        - ' maven '
        - ' memory '
        - ' multimedia '
        - ' php '
        - ' svn '
        - ' sysadmin '
        - ' unused '
        - ' wifi '

Stage 4: selection_cli_options

selection_cli_options:
    CommandLine|contains:
        - '-1Password'
        - '-apachedirectorystudio'
        - '-autologon'
        - '-ChromiumBased'
        - '-coreftp'
        - '-credfiles'
        - '-credman'
        - '-cyberduck'
        - '-dbvis'
        - '-EyeCon'
        - '-filezilla'
        - '-filezillaserver'
        - '-ftpnavigator'
        - '-galconfusion'
        - '-gitforwindows'
        - '-hashdump'
        - '-iisapppool'
        - '-IISCentralCertP'
        - '-kalypsomedia'
        - '-keepass'
        - '-keepassconfig'
        - '-lsa_secrets'
        - '-mavenrepositories'
        - '-memory_dump'
        - '-Mozilla'
        - '-mRemoteNG'
        - '-mscache'
        - '-opensshforwindows'
        - '-openvpn'
        - '-outlook'
        - '-pidgin'
        - '-postgresql'
        - '-psi-im'
        - '-puttycm'
        - '-pypykatz'
        - '-Rclone'
        - '-rdpmanager'
        - '-robomongo'
        - '-roguestale'
        - '-skype'
        - '-SQLDeveloper'
        - '-squirrel'
        - '-tortoise'
        - '-turba'
        - '-UCBrowser'
        - '-unattended'
        - '-vault'
        - '-vaultfiles'
        - '-vnc'
        - '-winscp'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLineends_with
  • .exe all
  • .exe browsers
  • .exe chats
  • .exe databases
  • .exe games
  • .exe git
  • .exe mails
  • .exe maven
  • .exe memory
  • .exe multimedia
  • .exe sysadmin
  • .exe unused
  • .exe wifi
  • .exe windows
CommandLinematch
  • all
  • browsers
  • chats
  • databases
  • games
  • mails
  • maven
  • memory
  • multimedia
  • php
  • svn
  • sysadmin
  • unused
  • wifi
  • -1Password
  • -ChromiumBased
  • -EyeCon
  • -IISCentralCertP
  • -Mozilla
  • -Rclone
  • -SQLDeveloper
  • -UCBrowser
  • -apachedirectorystudio
  • -autologon
  • -coreftp
  • -credfiles
  • -credman
  • -cyberduck
  • -dbvis
  • -filezilla
  • -filezillaserver
  • -ftpnavigator
  • -galconfusion
  • -gitforwindows
  • -hashdump
  • -iisapppool
  • -kalypsomedia
  • -keepass
  • -keepassconfig
  • -lsa_secrets
  • -mRemoteNG
  • -mavenrepositories
  • -memory_dump
  • -mscache
  • -opensshforwindows
  • -openvpn
  • -outlook
  • -pidgin
  • -postgresql
  • -psi-im
  • -puttycm
  • -pypykatz
  • -rdpmanager
  • -robomongo
  • -roguestale
  • -skype
  • -squirrel
  • -tortoise
  • -turba
  • -unattended
  • -vault
  • -vaultfiles
  • -vnc
  • -winscp
Imageends_with
  • \lazagne.exe
Imagematch
  • :\PerfLogs\ corpus 10 (sigma 10)
  • :\ProgramData\ corpus 3 (sigma 3)
  • :\Temp\ corpus 13 (sigma 13)
  • :\Tmp\
  • :\Users\Public\ corpus 15 (sigma 15)
  • :\Windows\Temp\ corpus 9 (sigma 9)
  • \$Recycle.bin corpus 2 (sigma 2)
  • \AppData\ corpus 7 (sigma 7)
  • \Desktop\ corpus 7 (sigma 7)
  • \Downloads\ corpus 10 (sigma 10)
  • \Favorites\ corpus 6 (sigma 6)
  • \Links\
  • \Music\ corpus 4 (sigma 4)
  • \Photos\
  • \Pictures\ corpus 5 (sigma 5)
  • \Saved Games\
  • \Searches\
  • \Users\Contacts\ corpus 2 (sigma 2)
  • \Users\Default\ corpus 4 (sigma 4)
  • \Users\Searches\ corpus 2 (sigma 2)
  • \Videos\ corpus 4 (sigma 4)
  • \Windows\Fonts\ corpus 2 (sigma 2)
  • \Windows\IME\ corpus 2 (sigma 2)
  • \Windows\addins\ corpus 4 (sigma 4)