Malicious Git Config sshCommand Modification for Code Execution on Linux

PremiumReviewedSigma · High · v1
Product
linux
Category
process_creation
Author
HuntRule
Published
2026-11-05
Updated
2026-11-05

ATT&CK techniques

Initial Access → Execution
  1. Recon

  2. Resource Dev

  3. Persistence

  4. Priv Esc

  5. Defense Evasion

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule detects command line modification of the git config sshCommand parameter which the Gogs CVE-2025-8110 zero-day exploitation writes through a symlink to achieve arbitrary command execution on the Gogs host. Setting sshCommand in a repository config is a known RCE primitive and is highly suspicious on a Git service host.

Related detections9 linkedT1059 — drag to rearrange
Suspicious Reconnaissance Commands Spawned by Node.js Runtime on Linux
Suspicious Selenium Grid Binary Location RCE via Python Interpreter on Linux
Possible Ivanti EPMM Unauthenticated RCE via featureusage Expression Language Injection (via webserver)
Malicious Python pth Site Hook Written via FortiWeb Fabric Connector SQL Injection (via file_event)
Malicious Command Shell Spawned by SQL Server via Process Creation (via process_creation)
Suspicious Reconnaissance and Payload Download by Node Web Process
Malicious Text4Shell Apache Commons Text Interpolation Payload in HTTP Request
Possible Apache ActiveMQ RCE via Jolokia addNetworkConnector (via webserver)
Possible LiteLLM Unauthenticated Command Execution via MCP Test Endpoints (via webserver)
Malicious Git Config sshCommand Modification for Code Execution on Linux
Pivot detection · T1059 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.