Linux: Unauthorized use of OpenSSL for password hash generation
Adversaries may utilize the OpenSSL utility to generate password hashes for creating unauthorized local accounts or modifying existing credentials to maintain persistence on compromised Linux systems.
Triage facts
Revision 1- Applicability
- Linux
- Evidence
- Unknown
- Severity
- Medium
- Action
- Monitor or close
- Sources
- 1 public source
- Freshness
- Revision 1Oct 23, 14:41 UTC
- Detection
- 1 rule
- Source quality
- A2Likely
The OpenSSL command-line utility provides functionality for cryptographic operations, including the generation of password hashes via the 'passwd' subcommand. Attackers frequently leverage this capability during post-exploitation to manipulate local accounts, such as creating new privileged users or resetting passwords for existing accounts to ensure continued access to the target host.
Impact
Successful exploitation allows for persistent unauthorized access to the Linux system. This facilitates account manipulation (T1098) and local account creation (T1136.001), potentially enabling attackers to bypass standard authentication controls or establish backdoors.
Recommendation
Deploy process-creation monitoring to capture 'openssl' executions. Baseline all administrative scripts and service accounts that legitimately use 'openssl passwd' for provisioning or system maintenance to reduce noise. Investigate any instances where this command is executed by non-administrative users or from unexpected parent processes.
Threat Hunt
Search for historical execution of 'openssl passwd' to identify baseline activity vs anomalies
Data: Process command line logs
Mitigations
Review user account activity and verify all created accounts are authorized
T1136.001
Detection coverage 1
Detect Suspicious OpenSSL Password Hash Generation
mediumDetects the use of the openssl binary with the passwd argument to generate password hashes, excluding help flags, which may indicate unauthorized account manipulation or persistence efforts.
Detection queries are available on the platform. Get full rules →