Defense Evasion (TA0005)(external, opens in a new tab or window)
Privilege Escalation (TA0004)(external, opens in a new tab or window)
text code block:process where host.os.type == "macos" and event.type in ("start", "process_started") and process.name == "scp" and process.args like~ "StrictHostKeyChecking=no" and process.command_line : ("scp *localhost:/*", "scp *127.0.0.1:/*") and not process.args : "vagrant@*127.0.0.1*"
Install detection rules in Elastic Security
Detect Potential Privacy Control Bypass via Localhost Secure Copy in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).