sigma-server-ops-ssh
Fail
Audited by Gen Agent Trust Hub on Feb 25, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The helper script
scripts/collect_sigma_diagnostics.shis vulnerable to shell command injection because it does not sanitize parameters before interpolating them into a shell command. - Evidence: The script uses a here-doc (
cat <<RCMD) to construct a command string for execution on a remote host. Variables$SERVICE,$SINCE, and$LINESare resolved from AI-provided input and placed directly into the command string. An attacker could provide a service name like"; rm -rf / #"to execute arbitrary commands on the remote system. - [REMOTE_CODE_EXECUTION]: The skill allows for code execution on both remote and local systems through the manipulation of SSH parameters.
- Evidence: The
HOSTparameter provided by the user is passed directly to thesshcommand inscripts/collect_sigma_diagnostics.sh. If a user provides an input like-oProxyCommand=calc.exeas the host, it could lead to local command execution on the system running the agent. - [DATA_EXFILTRATION]: The skill is designed to retrieve and display system logs, creating a risk of sensitive data exposure.
- Evidence: The workflows in
references/workflows/01-quick-health-check.mdand02-error-triage.mdcollect logs viajournalctl. While there is a guardrail to redact secrets, this relies on the LLM's non-deterministic ability to identify sensitive data in raw logs, which may fail to catch credentials, tokens, or PII. - [PROMPT_INJECTION]: The skill has an unsafe indirect injection surface where untrusted user input is interpolated into critical tool execution paths.
- Evidence: The skill ingests user-provided values for
host,service,since, andlines(defined inSKILL.md) and passes them to internal bash scripts without any validation or boundary markers. This allows data provided in a chat context to influence the logic of the underlying operating system commands.
Recommendations
- AI detected serious security threats
Audit Metadata