Add "Plugin" column to sigma list targets and sigma list pipelines#87
Merged
thomaspatzke merged 3 commits intomainfrom Apr 3, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/SigmaHQ/sigma-cli/sessions/ba0da45e-4bc2-48de-88f1-4cb5e11a1846 Co-authored-by: thomaspatzke <1845601+thomaspatzke@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add package name to sigma list command output
Add "Plugin" column to Apr 3, 2026
sigma list targets and sigma list pipelines
Member
|
@copilot The name shown in the "Package" column is the name of the Python package, not the name of the identifier of the Sigma plugin. The plugin name should be shown instead, e.g. splunk instead of pySigma-backend-splunk. |
…ge name Agent-Logs-Url: https://github.com/SigmaHQ/sigma-cli/sessions/5f95be44-fd6c-48ca-97c8-91041626a62c Co-authored-by: thomaspatzke <1845601+thomaspatzke@users.noreply.github.com>
Contributor
Author
Fixed in be13a27. The "Plugin" column now extracts the plugin identifier directly from the module namespace ( |
thomaspatzke
approved these changes
Apr 3, 2026
thomaspatzke
approved these changes
Apr 3, 2026
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.
sigma list targetsandsigma list pipelinesexposed backend/pipeline identifiers with no way to trace them back to the installed plugin. This made it impossible to programmatically determine which plugin to uninstall (e.g.,elasticsearchinstallslucene,eql,esql,elastalert— none of which map back toelasticsearchin the list output).Changes
sigma/cli/list.py_plugin_id_from_module()— extracts the Sigma plugin identifier from a module name by reading the namespace component (e.g.sigma.backends.splunk.backend→splunk)_get_backend_plugin_id()and_get_pipeline_plugin_id()— resolve a backend class or pipeline callable/instance to its Sigma plugin identifier; handles@Pipeline-decorated instances via the.funcattribute_pipeline_plugin_idsat module load time before the pipeline resolver discards callable/module metadatalist_targetsandlist_pipelinestable output showing the Sigma plugin identifier (e.g.splunk,elasticsearch,windows)tests/test_lists.pytest_targets_has_plugin_columnandtest_pipelines_has_plugin_columnverifying the column header is present and non/avalues appear when plugins are installedExample output