← Back to SOC feed Coverage →

A simple and easy to use keylogger for macOS.

yara LOW signature-base
florian-rothinfostealer
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at signature-base →
Retrieved: 2026-05-28T11:00:00Z · Confidence: medium

Hunt Hypothesis

A simple and easy to use keylogger for macOS detects potential adversary behavior where an attacker may be capturing user input to exfiltrate sensitive information. SOC teams should proactively hunt for this behavior in their Azure Sentinel environment to identify early signs of credential theft or data exfiltration attempts.

YARA Rule

rule hacktool_macos_keylogger_caseyscarborough
{
    meta:
        description = "A simple and easy to use keylogger for macOS."
        reference = "https://github.com/caseyscarborough/keylogger"
        author = "@mimeframe"
        id = "191efd22-3f9e-57da-992f-3cc2ab6ecdfa"
    strings:
        $a1 = "/var/log/keystroke.log" wide ascii
        $a2 = "ERROR: Unable to create event tap." wide ascii
        $a3 = "Keylogging has begun." wide ascii
        $a4 = "ERROR: Unable to open log file. Ensure that you have the proper permissions." wide ascii
    condition:
        2 of ($a*)
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 4 string patterns in its detection logic.

References

False Positive Guidance

Original source: https://github.com/Neo23x0/signature-base/blob/main/vendor/yara/airbnb_binaryalert.yar