Potential Persistence Via Notepad++ Plugins


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

Query · sigma

selection:
  TargetFilename|contains: \Notepad++\plugins\
  TargetFilename|endswith: .dll
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
condition: selection and not 1 of filter_*

Known false positives

  • Possible FPs during first installation of Notepad++
  • Legitimate use of custom plugins by users in order to enhance notepad++ functionalities
Raw source Potential Persistence Via Notepad++ Plugins · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
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

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.