Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://trustedsec.com/blog/notepad-plugins-plug-and-payload Content Categories: Based on the analysis, this content was categorized under "Windows Hardening -> Windows Local Privilege Escalation / Persistence (new page): "Notepad++ Plugin (DLL) Autoload for Execution & Persistence" or alternatively "Generic Hacking / Persistence -> Application plugin/DLL autoload persistence"". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
This post explains (1) how Notepad++’s plugin architecture works at a low level (plugins are Windows DLLs autoloaded from disk), and (2) how red teams can operationalize that design for reliable code execution inside the Notepad++ process by building plugins—first a minimal educational example, then a weaponized reflective DLL loader plugin. It also frames the technique in the context of the Notepad++ updater infrastructure breach that could have enabled delivery of backdoored updates, resulting...
🔧 Technical Details
Notepad++ plugin autoload as an execution/persistence primitive: Because Notepad++ loads every plugin DLL found under its
pluginssubfolders during startup, an attacker who can write a DLL into a user-writable Notepad++ installation (portable build or copied install in a writable directory) can achieve automatic code execution insidenotepad++.exeon launch/restart. Execution can occur fromDllMainon load and/or from Notepad++-recognized exported callbacks called during initialization (e.g.,setInfo(),getName(),getFuncsArray()), and ongoing user-driven execution can be triggered via event handlers likebeNotified()or message handling viamessageProc().In-process reflective DLL loading via a plugin: Implement a Notepad++ plugin that accepts a DLL source (local file path or URL), reflectively maps the DLL into the current process memory, and then calls an exported functio...
🤖 Agent Actions
Summary:
Files Modified/Added:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.