rule Webworm_Custom_SoftEther_VPN_Bridge
{
    meta:
        author = "Tia N. List"
        date = "2026-11-21"
        status = "experimental"
        description = "Hunts the custom SoftEther VPN Bridge 4.44 build (build 9807) that Rapid7 attributes with moderate confidence to the China-aligned Webworm actor. The sample carries a PDB path with the source tree directory name tripled, which stock upstream builds do not produce, plus the bridge PDB file name. Derived from case analysis (Rapid7, 19 November 2026) - NOT validated against a live sample."
        reference = "https://www.rapid7.com/blog/post/tr-spying-on-governments-no-malware-custom-webworms-toolkit-softether-bridge/"
        falsepositives = "A locally rebuilt or heavily relocated SoftEther source tree could produce nested folder names in its PDB path; confirm against the compiled version constants and configuration extraction before attributing"
    strings:
        $pdb_nested = "SoftEtherVPN_Stable\\SoftEtherVPN_Stable\\SoftEtherVPN_Stable" ascii
        $pdb_file = "vpnbridge.pdb" ascii
        $ver = "4.44" ascii
        $build = "9807" ascii
    condition:
        $pdb_nested and $pdb_file and any of ($ver, $build)
}
