/* Yara Rule Set Author: Florian Roth Date: 2015-05-05 Identifier: CarbonGrabber */ /* Rule Set ----------------------------------------------------------------- */ rule Rombertik_CarbonGrabber { meta: description = "Detects CarbonGrabber alias Rombertik - file Copy#064046.scr" author = "Florian Roth" reference = "http://blogs.cisco.com/security/talos/rombertik" date = "2015-05-05" hash1 = "2f9b26b90311e62662c5946a1ac600d2996d3758" hash2 = "aeb94064af2a6107a14fd32f39cb502e704cd0ab" hash3 = "c2005c8d1a79da5e02e6a15d00151018658c264c" hash4 = "98223d4ec272d3a631498b621618d875dd32161d" strings: $x1 = "ZwGetWriteWatch" fullword ascii $x2 = "OutputDebugStringA" fullword ascii $x3 = "malwar" fullword ascii $x4 = "sampl" fullword ascii $x5 = "viru" fullword ascii $x6 = "sandb" fullword ascii condition: uint16(0) == 0x5a4d and filesize < 5MB and all of them } rule Rombertik_CarbonGrabber_Panel_InstallScript { meta: description = "Detects CarbonGrabber alias Rombertik panel install script - file install.php" author = "Florian Roth" reference = "http://blogs.cisco.com/security/talos/rombertik" date = "2015-05-05" hash = "cd6c152dd1e0689e0bede30a8bd07fef465fbcfa" strings: $s0 = "$insert = \"INSERT INTO `logs` (`id`, `ip`, `name`, `host`, `post`, `time`, `bro" ascii $s3 = "`post` text NOT NULL," fullword ascii $s4 = "`host` text NOT NULL," fullword ascii $s5 = ") ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;\" ;" fullword ascii $s6 = "$db->exec($columns); //or die(print_r($db->errorInfo(), true));;" fullword ascii $s9 = "$db->exec($insert);" fullword ascii $s10 = "`browser` text NOT NULL," fullword ascii $s13 = "`ip` text NOT NULL," fullword ascii condition: filesize < 3KB and all of them } rule Rombertik_CarbonGrabber_Panel { meta: description = "Detects CarbonGrabber alias Rombertik Panel - file index.php" author = "Florian Roth" reference = "http://blogs.cisco.com/security/talos/rombertik" date = "2015-05-05" hash = "e6e9e4fc3772ff33bbeeda51f217e9149db60082" strings: $s0 = "echo '';" fullword ascii $s1 = "echo '