Suspicious SSH Key and Bash History Credential Access

PremiumReviewedSigma · Medium · v1
Product
linux
Category
process_creation
Author
HuntRule
Published
2026-11-04
Updated
2026-11-04

ATT&CK techniques

Cred Access
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule detects reading or copying of SSH private keys and shell history files using common file utilities. Wiz Research observed the Summer 2023 cryptojacking actors harvesting bash_history and SSH credentials for lateral movement, making this access to sensitive files worth investigating.

Related detections9 linkedT1552.004 — drag to rearrange
Malicious SharePoint spinstall0 Webshell Dropped in LAYOUTS Directory (CVE-2025-53770)
Suspicious Shadow File Exfiltration Over Dev TCP on Linux via Process Creation (via process_creation)
Suspicious Process Memory Read from Proc Mem for Secret Extraction
Suspicious Double Base64 Decoded Payload Piped to Shell in CI (reviewdog Supply Chain)
Suspicious Object Access to DPAPI Machine Keys and System Protect Directories (via security)
Suspicious macOS Local Credential Validation via dscl authonly
Suspicious Credential File Harvesting of NPM Claude and SSH Secrets
Suspicious SharpDPAPI Machine Masterkey Extraction (via process_creation)
Suspicious Credential File Discovery via Find on Linux
Suspicious SSH Key and Bash History Credential Access
Pivot detection · T1552.004 · 9 related

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