SHOW:
|
|
- or go back to the newest paste.
| 1 | - | /* Scroll down to find a YARA rule set to detect Regin Backdoor samples |
| 1 | + | /* These rules match on all stage 1 samples from the Symantec report. Tested on Windows 7 x64, Windows 2003 and Windows 2008 R2 - known to generate False Positives on Windows XP. Please check out this URL for a report with Yara rules for the other stages: https://securelist.com/files/2014/11/Kaspersky_Lab_whitepaper_Regin_platform_eng.pdf */ |
| 2 | ||
| 3 | - | Update 11.03.15 17:15 |
| 3 | + | |
| 4 | - | New False Positive: |
| 4 | + | |
| 5 | - | 54263888c64a7f010d3b5e399369b0f3ff3af0a0de8adb502b98277533e4d45f - Windows Serial Driver |
| 5 | + | |
| 6 | author = "@Malwrsignatures - included in APT Scanner THOR" | |
| 7 | - | Update 12.01.15 11:30 |
| 7 | + | |
| 8 | - | New False Positive: |
| 8 | + | |
| 9 | - | 519a0d7ebc75dcf65c80d61f952768e49c33c5c7c320a4cc4b4a12a0e9f3337d - SP1.CAB MSDN Disc 3498 (Microsoft) |
| 9 | + | |
| 10 | hash3 = "d240f06e98c8d3e647cbf4d442d79475" | |
| 11 | - | Update 09.01.15 16:15 |
| 11 | + | |
| 12 | - | New False Positive: |
| 12 | + | |
| 13 | - | 9009ca5c5f6e2c7a776896e406805bc4c627028ce90d8fe566a6b2190c7e0106 - Windows Media Connect, code_page: Korean |
| 13 | + | |
| 14 | ||
| 15 | - | Update 01.01.15 22:11 |
| 15 | + | |
| 16 | - | New False Positive: |
| 16 | + | |
| 17 | - | 581730d7cce49af90efad5f904ce205ee7123e6c0d206867fb8ad22559fa0556 - Windows Media Component Setup Application |
| 17 | + | |
| 18 | $s4 = "\\system32" fullword ascii | |
| 19 | - | Update 29.12.14 11:35 |
| 19 | + | |
| 20 | - | New False Positive: |
| 20 | + | |
| 21 | - | b04a85ef2edbc5ac7b312e9d57b533d9d355d0c7cbbd24a8085c6873baf9411f - Windows SCSI Driver |
| 21 | + | |
| 22 | $s8 = "windows" fullword ascii | |
| 23 | - | Update 23.12.14 15:50 |
| 23 | + | |
| 24 | - | New False Positive: |
| 24 | + | |
| 25 | - | 0099940a366b401f30faaf820f4815083778383a2b1e9fab58e16d10b8965e3f - USB Scanner Driver |
| 25 | + | |
| 26 | condition: | |
| 27 | - | Update 15.12.14 11:15 |
| 27 | + | |
| 28 | - | Updated ReginScanner on Github (0.7: Filtered False Positive Hashes) |
| 28 | + | |
| 29 | - | https://github.com/Neo23x0/ReginScanner |
| 29 | + | |
| 30 | ||
| 31 | - | Update 06.12.14 11:00 |
| 31 | + | |
| 32 | - | New False Positives SHA256s and Updated Yara rule "Regin_Sample_1" |
| 32 | + | |
| 33 | - | a26db2eb9f3e2509b4eba949db97595cc32332d9321df68283bfc102e66d766f - Windows Serial Driver |
| 33 | + | |
| 34 | - | 18cd54d163c9c5f16e824d13c411e21fd7616d34e9f1cf2adcbf869ed6aeeed4 - CD Tower Web Client |
| 34 | + | |
| 35 | date = "23.11.14" | |
| 36 | - | Update 03.12.14 18:10 |
| 36 | + | |
| 37 | - | Updated false positives |
| 37 | + | |
| 38 | hash3 = "b29ca4f22ae7b7b25f79c1d4a421139d" | |
| 39 | - | Update 02.12.14 09:15 |
| 39 | + | |
| 40 | - | Added new and yet unknown Regin sample found via Virustotal with SHA256 |
| 40 | + | |
| 41 | - | 627dc5599c28de3c494496399b39f3aac7049586e72cbdb08bea01bf40166c23 |
| 41 | + | |
| 42 | hash7 = "187044596bc1328efa0ed636d8aa4a5c" | |
| 43 | - | Update 28.11.14 14:00 |
| 43 | + | |
| 44 | - | False Positive detected. Microsoft XP USB Scanner Driver. See false positive hash list below. |
| 44 | + | |
| 45 | - | Updated rule "Regin_APT_KernelDriver_Generic_B" to exclude string that appears in Windows XP usb scanner driver. |
| 45 | + | |
| 46 | hash11 = "ba7bb65634ce1e30c1e5415be3d1db1d" | |
| 47 | - | Update 28.11.14 09:00 |
| 47 | + | |
| 48 | - | Check out ReginScanner to scan for multiple IOCs at once. It does not ship with the Kaspersky Yara rules. You should include them manually. (see the link below) |
| 48 | + | |
| 49 | - | https://github.com/Neo23x0/ReginScanner |
| 49 | + | |
| 50 | $m0 = { 4d 5a 90 00 03 00 00 00 04 00 00 00 ff ff 00 00 b8 }
| |
| 51 | - | Update 27.11.14 |
| 51 | + | |
| 52 | - | I added a new signature set targeting new samples or samples that were not detected by the generic rules. |
| 52 | + | |
| 53 | $s3 = "INIT" fullword ascii | |
| 54 | - | Tested on: |
| 54 | + | |
| 55 | - | - Windows 7 x64 |
| 55 | + | |
| 56 | - | - Windows 2003 |
| 56 | + | |
| 57 | - | - Windows 2008 R2 |
| 57 | + | |
| 58 | $v3 = "KeServiceDescriptorTable" fullword ascii | |
| 59 | - | False Positives: |
| 59 | + | |
| 60 | - | The signatures are known to generate False Positives on certain Windows XP USB scanner drivers. (see list below for hashes) |
| 60 | + | |
| 61 | $w2 = "\\SystemRoot" fullword ascii | |
| 62 | - | Please check back with an MD5/SHA1/SHA256 hash if you found a sample that has Antivirus hits and is not in this list. |
| 62 | + | |
| 63 | ||
| 64 | - | Known sample list - SHA256: |
| 64 | + | |
| 65 | - | 20831e820af5f41353b5afab659f2ad42ec6df5d9692448872f3ed8bbb40ab92 |
| 65 | + | |
| 66 | - | 225e9596de85ca7b1025d6e444f6a01aa6507feef213f4d2e20da9e7d5d8e430 |
| 66 | + | |
| 67 | - | 392f32241cd3448c7a435935f2ff0d2cdc609dda81dd4946b1c977d25134e96e |
| 67 | + | |
| 68 | - | 40c46bcab9acc0d6d235491c01a66d4c6f35d884c19c6f410901af6d1e33513b |
| 68 | + | |
| 69 | - | 4139149552b0322f2c5c993abccc0f0d1b38db4476189a9f9901ac0d57a656be |
| 69 | + | |
| 70 | - | 4e39bc95e35323ab586d740725a1c8cbcde01fe453f7c4cac7cced9a26e42cc9 |
| 70 | + | |
| 71 | - | 5001793790939009355ba841610412e0f8d60ef5461f2ea272ccf4fd4c83b823 |
| 71 | + | |
| 72 | - | 5c81cf8262f9a8b0e100d2a220f7119e54edfc10c4fb906ab7848a015cd12d90 |
| 72 | + | |
| 73 | - | 627dc5599c28de3c494496399b39f3aac7049586e72cbdb08bea01bf40166c23 |
| 73 | + | |
| 74 | - | 7553d4a5914af58b23a9e0ce6a262cd230ed8bb2c30da3d42d26b295f9144ab7 |
| 74 | + | |
| 75 | - | 7d38eb24cf5644e090e45d5efa923aff0e69a600fb0ab627e8929bb485243926 |
| 75 | + | |
| 76 | - | 8098938987e2f29e3ee416b71b932651f6430d15d885f2e1056d41163ae57c13 |
| 76 | + | |
| 77 | - | 8389b0d3fb28a5f525742ca2bf80a81cf264c806f99ef684052439d6856bc7e7 |
| 77 | + | |
| 78 | - | 8d7be9ed64811ea7986d788a75cbc4ca166702c6ff68c33873270d7c6597f5db |
| 78 | + | |
| 79 | - | 9cd5127ef31da0e8a4e36292f2af5a9ec1de3b294da367d7c05786fe2d5de44f |
| 79 | + | |
| 80 | - | 9ddbe7e77cb5616025b92814d68adfc9c3e076dddbe29de6eb73701a172c3379 |
| 80 | + | |
| 81 | - | a0d82c3730bc41e267711480c8009883d1412b68977ab175421eabc34e4ef355 |
| 81 | + | |
| 82 | - | a0e3c52a2c99c39b70155a9115a6c74ea79f8a68111190faa45a8fd1e50f8880 |
| 82 | + | |
| 83 | - | a6603f27c42648a857b8a1cbf301ed4f0877be75627f6bbe99c0bfd9dc4adb35 |
| 83 | + | |
| 84 | - | a7493fac96345a989b1a03772444075754a2ef11daa22a7600466adc1f69a669 |
| 84 | + | |
| 85 | - | a7e3ad8ea7edf1ca10b0e5b0d976675c3016e5933219f97e94900dea0d470abe |
| 85 | + | |
| 86 | - | a7e3ad8ea7edf1ca10b0e5b0d976675c3016e5933219f97e94900dea0d470abe |
| 86 | + | |
| 87 | - | b12c7d57507286bbbe36d7acf9b34c22c96606ffd904e3c23008399a4a50c047 |
| 87 | + | |
| 88 | - | b755ed82c908d92043d4ec3723611c6c5a7c162e78ac8065eb77993447368fce |
| 88 | + | |
| 89 | - | c0cf8e008fbfa0cb2c61d968057b4a077d62f64d7320769982d28107db370513 |
| 89 | + | |
| 90 | - | cca1850725f278587845cd19cbdf3dceb6f65790d11df950f17c5ff6beb18601 |
| 90 | + | |
| 91 | - | df77132b5c192bd8d2d26b1ebb19853cf03b01d38afd5d382ce77e0d7219c18c |
| 91 | + | |
| 92 | - | e1ba03a10a40aab909b2ba58dcdfd378b4d264f1f4a554b669797bbb8c8ac902 |
| 92 | + | |
| 93 | - | e420d0cf7a7983f78f5a15e6cb460e93c7603683ae6c41b27bf7f2fa34b2d935 |
| 93 | + | |
| 94 | - | ecd7de3387b64b7dab9a7fb52e8aa65cb7ec9193f8eac6a7d79407a6a932ef69 |
| 94 | + | |
| 95 | - | f1d903251db466d35533c28e3c032b7212aa43c8d64ddf8c5521b43031e69e1e |
| 95 | + | |
| 96 | - | f89549fc84a8d0f8617841c6aa4bb1678ea2b6081c1f7f74ab1aebd4db4176e4 |
| 96 | + | |
| 97 | - | fd92fd7d0f925ccc0b4cbb6b402e8b99b64fa6a4636d985d78e5507bd4cfecef |
| 97 | + | |
| 98 | - | fe1419e9dde6d479bd7cda27edd39fafdab2668d498931931a2769b370727129 |
| 98 | + | |
| 99 | ||
| 100 | - | Heavily encrypted - use Hash instead of a Yara rule to detect these samples: |
| 100 | + | |
| 101 | - | d42300fea6eddcb2f65ffec9e179e46d87d91affad55510279ecbb0250d7fdff |
| 101 | + | |
| 102 | condition: | |
| 103 | - | Known False Positives: |
| 103 | + | |
| 104 | - | 6e5ebbc8b70c1d593634daf0c190deadfda18c3cbc8f552a76f156f3869ef05b - Microsoft USB Scanner Driver |
| 104 | + | |
| 105 | - | 7565e7de9532c75b3a16e3ed0103bc092dbca63c6bdc19053dfef01250029e59 - NSRL listed |
| 105 | + | |
| 106 | - | a26db2eb9f3e2509b4eba949db97595cc32332d9321df68283bfc102e66d766f - Windows Serial Driver |
| 106 | + | |
| 107 | - | 18cd54d163c9c5f16e824d13c411e21fd7616d34e9f1cf2adcbf869ed6aeeed4 - CD Tower Web Client |
| 107 | + | |
| 108 | - | 0099940a366b401f30faaf820f4815083778383a2b1e9fab58e16d10b8965e3f - USB Scanner Driver |
| 108 | + | |
| 109 | - | b04a85ef2edbc5ac7b312e9d57b533d9d355d0c7cbbd24a8085c6873baf9411f - SCSI Driver Windows |
| 109 | + | |
| 110 | - | 581730d7cce49af90efad5f904ce205ee7123e6c0d206867fb8ad22559fa0556 - Windows Media Component Setup Application |
| 110 | + | |
| 111 | - | 519a0d7ebc75dcf65c80d61f952768e49c33c5c7c320a4cc4b4a12a0e9f3337d - SP1.CAB MSDN Disc 3498 (Microsoft) |
| 111 | + | |
| 112 | - | 54263888c64a7f010d3b5e399369b0f3ff3af0a0de8adb502b98277533e4d45f - Windows Serial Driver |
| 112 | + | date = "25.11.14" |
| 113 | score = 70 | |
| 114 | - | Please check out this URL for the Kaspersky report with more specific Yara rules: |
| 114 | + | |
| 115 | - | https://securelist.com/files/2014/11/Kaspersky_Lab_whitepaper_Regin_platform_eng.pdf |
| 115 | + | |
| 116 | - | */ |
| 116 | + | |
| 117 | $s1 = "_vsnwprintf" fullword ascii | |
| 118 | $s2 = "Root Agency" fullword ascii | |
| 119 | $s3 = "Root Agency0" fullword ascii | |
| 120 | $s4 = "StartServiceCtrlDispatcherA" fullword ascii | |
| 121 | $s5 = "\\\\?\\UNC" fullword ascii | |
| 122 | $s6 = "%ls%ls" fullword wide | |
| 123 | condition: | |
| 124 | all of them and filesize < 15KB and filesize > 10KB | |
| 125 | } |