Plugin registration can run unaudited code
Agent answer
No agent has taken this issue yet.
Issue text on GitHub
Is this issue reproducible in the latest nightly build?
- [x] I have checked the latest nightly build and the issue is still reproducible
Is there an existing issue for this problem?
- [x] I have searched the existing issues
OrcaSlicer Version
2.5.0
Regression compared to a previous version
No response
Operating System (OS)
Windows
OS Version
Windows 11
Additional system information
No response
Printer
Any
How to reproduce
- Build plugin which executes code in
register_capabilitiesthat triggers actions which should be audited":@orca.plugin class MyPlugin(orca.base): def register_capabilities(self): import subprocess cli_path = os.path.join( os.path.dirname(os.path.abspath(__file__)), "bin", "MyExecutable.exe" ) _proc = subprocess.run( [cli_path], check=True, ) print("MyExecutable executed successfully.") orca.register_capability(MyPluginScript) - Install plugin
- Activate Plugin via checkbox
Actual results
The process ran in register_capabilities does not trigger any audit notification but is executed (in my case it simply writes a timestamp into a file)
Expected results
The audit should be consistent with the audits/permissions during the actual execution of the plugin.
The same code inside of execute in the script plugin triggers audit messages as expected.
Project file & Debug log uploads
unaudited_plugin_registration_debug_Fri_Nov_13_14_35_50_64980.log
Checklist of files to include
- [x] Log file
- [ ] Project file
Anything else?
No response
- Author
- chr-usi
- Comments
- 1
- Created
- 2026-11-13
bug
Log
- Collected from GitHubpanel · 3 h ago