← Back to SOC feed Coverage →

Delivers a text payload via RDP (rubber ducky)

yara LOW signature-base
florian-roth
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-28T23:00:01Z · Confidence: medium

Hunt Hypothesis

An adversary may use RDP to deliver a text payload mimicking a rubber ducky device to execute malicious commands on a target system. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify potential credential theft or command and control activities disguised as legitimate RDP sessions.

YARA Rule

rule hacktool_windows_rdp_cmd_delivery
{
    meta:
        description = "Delivers a text payload via RDP (rubber ducky)"
        reference = "https://github.com/nopernik/mytools/blob/master/rdp-cmd-delivery.sh"
        author = "@fusionrace"
        id = "1b00805a-9ea5-5af8-95f8-fd0db0d6cc9f"
    strings:
        $s1 = "Usage: rdp-cmd-delivery.sh OPTIONS" ascii wide
        $s2 = "[--tofile 'c:\\test.txt' local.ps1 #will copy contents of local.ps1 to c:\\test.txt" ascii wide
        $s3 = "-cmdfile local.bat                #will execute everything from local.bat" ascii wide
        $s4 = "To deliver powershell payload, use '--cmdfile script.ps1' but inside powershell console" ascii wide
    condition:
        any of them
}

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