Detection rules › Sigma

Potential Persistence Via Notepad++ Plugins

Status
test
Severity
medium
Log source
product windows, category file_event
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects creation of new ".dll" files inside the plugins directory of a notepad++ installation by a process other than "gup.exe". Which could indicates possible persistence

MITRE ATT&CK coverage

TacticTechniques
PersistenceNo specific technique

Event coverage

ProviderEventTitle
SysmonEvent ID 11FileCreate

Rule body yaml

title: Potential Persistence Via Notepad++ Plugins
id: 54127bd4-f541-4ac3-afdb-ea073f63f692
status: test
description: Detects creation of new ".dll" files inside the plugins directory of a notepad++ installation by a process other than "gup.exe". Which could indicates possible persistence
references:
    - https://pentestlab.blog/2022/02/14/persistence-notepad-plugins/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-06-10
modified: 2025-09-01
tags:
    - attack.persistence
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|contains: '\Notepad++\plugins\'
        TargetFilename|endswith: '.dll'
    filter_gup:
        Image|endswith: '\Notepad++\updater\gup.exe'
    filter_install:
        # This filter is for Sigma dataset you could remove it or change when using the rule in your own env
        Image|startswith: 'C:\Users\'
        Image|contains: '\AppData\Local\Temp\'
        Image|endswith:
            - '\target.exe'
            - 'Installer.x64.exe'
    filter_main_installer:
        Image|contains: '\npp.'
        Image|endswith: '.exe'
        TargetFilename:
            - 'C:\Program Files\Notepad++\plugins\NppExport\NppExport.dll'
            - 'C:\Program Files\Notepad++\plugins\mimeTools\mimeTools.dll'
            - 'C:\Program Files\Notepad++\plugins\NppConverter\NppConverter.dll'
            - 'C:\Program Files\Notepad++\plugins\Config\nppPluginList.dll'
    condition: selection and not 1 of filter_*
falsepositives:
    - Possible FPs during first installation of Notepad++
    - Legitimate use of custom plugins by users in order to enhance notepad++ functionalities
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_*

Stage 1: selection

selection:
    TargetFilename|contains: '\Notepad++\plugins\'
    TargetFilename|endswith: '.dll'

Stage 2: not filter_*

filter_gup:
    Image|endswith: '\Notepad++\updater\gup.exe'
filter_install:
    Image|startswith: 'C:\Users\'
    Image|contains: '\AppData\Local\Temp\'
    Image|endswith:
        - '\target.exe'
        - 'Installer.x64.exe'
filter_main_installer:
    Image|contains: '\npp.'
    Image|endswith: '.exe'
    TargetFilename:
        - 'C:\Program Files\Notepad++\plugins\NppExport\NppExport.dll'
        - 'C:\Program Files\Notepad++\plugins\mimeTools\mimeTools.dll'
        - 'C:\Program Files\Notepad++\plugins\NppConverter\NppConverter.dll'
        - 'C:\Program Files\Notepad++\plugins\Config\nppPluginList.dll'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
Imageends_withInstaller.x64.exe
Imageends_with\target.exe
Imagematch\AppData\Local\Temp\
Imagestarts_withC:\Users\
TargetFilenameeqC:\Program Files\Notepad++\plugins\Config\nppPluginList.dll
TargetFilenameeqC:\Program Files\Notepad++\plugins\NppConverter\NppConverter.dll
TargetFilenameeqC:\Program Files\Notepad++\plugins\NppExport\NppExport.dll
TargetFilenameeqC:\Program Files\Notepad++\plugins\mimeTools\mimeTools.dll
Imageends_with.exe
Imagematch\npp.
Imageends_with\Notepad++\updater\gup.exe

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
TargetFilenameends_with
  • .dll corpus 23 (sigma 23)
TargetFilenamematch
  • \Notepad++\plugins\