SYMBOLCOMMON_NAMEaka. SYNONYMS
win.edam (Back to overview)

Edam

aka: SECONDBEST
VTCollection    

According to Orange Cyberdefense, Edam is written in C++ and its PDB path indicates it is called "droper_dll". It is capable of establishing persistence by setting up a Run key as Setting App which points towards its own file and then of downloading from another C2 a final stage using HTTP GET.

References
2024-12-05 ⋅ Orange Cyberdefense ⋅ Alexandre Matousek, Marine PICHON
Edam Dropper
Edam Emmenhtal
2024-11-28 ⋅ StrikeReady ⋅ StrikeReady Labs
RU APT targeting Energy Infrastructure (Unknown unknowns, part 3)
Edam Emmenhtal
Yara Rules
[TLP:WHITE] win_edam_auto (20260917 | Detects win.edam.)
rule win_edam_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.edam."
        info = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.6.0"
        signator_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.edam"
        malpedia_rule_date = "20260916"
        malpedia_hash = "53a643781c18e08f4a50949af60172d837a0b6f6"
        malpedia_version = "20260917"
        malpedia_license = "CC BY-SA 4.0"
        malpedia_sharing = "TLP:WHITE"

    /* DISCLAIMER
     * The strings used in this rule have been automatically selected from the
     * disassembly of memory dumps and unpacked files, using YARA-Signator.
     * The code and documentation is published here:
     * https://github.com/fxb-cocacoding/yara-signator
     * As Malpedia is used as data source, please note that for a given
     * number of families, only single samples are documented.
     * This likely impacts the degree of generalization these rules will offer.
     * Take the described generation method also into consideration when you
     * apply the rules in your use cases and assign them confidence levels.
     */


    strings:
        $sequence_0 = { 57 e8???????? 84c0 8b4514 59 7409 8b3485c4ef4400 }
            // n = 7, score = 100
            //   57                   | push                edi
            //   e8????????           |                     
            //   84c0                 | test                al, al
            //   8b4514               | mov                 eax, dword ptr [ebp + 0x14]
            //   59                   | pop                 ecx
            //   7409                 | je                  0xb
            //   8b3485c4ef4400       | mov                 esi, dword ptr [eax*4 + 0x44efc4]

        $sequence_1 = { 83c404 8975a8 8b4db0 c645fc04 85c9 }
            // n = 5, score = 100
            //   83c404               | add                 esp, 4
            //   8975a8               | mov                 dword ptr [ebp - 0x58], esi
            //   8b4db0               | mov                 ecx, dword ptr [ebp - 0x50]
            //   c645fc04             | mov                 byte ptr [ebp - 4], 4
            //   85c9                 | test                ecx, ecx

        $sequence_2 = { 8b048560b74500 89540818 33c0 5f 5e 5b }
            // n = 6, score = 100
            //   8b048560b74500       | mov                 eax, dword ptr [eax*4 + 0x45b760]
            //   89540818             | mov                 dword ptr [eax + ecx + 0x18], edx
            //   33c0                 | xor                 eax, eax
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   5b                   | pop                 ebx

        $sequence_3 = { c7463414ad4400 57 ff7634 c6463c01 }
            // n = 4, score = 100
            //   c7463414ad4400       | mov                 dword ptr [esi + 0x34], 0x44ad14
            //   57                   | push                edi
            //   ff7634               | push                dword ptr [esi + 0x34]
            //   c6463c01             | mov                 byte ptr [esi + 0x3c], 1

        $sequence_4 = { 8bec 6aff 68???????? 64a100000000 50 b8b8100000 e8???????? }
            // n = 7, score = 100
            //   8bec                 | mov                 ebp, esp
            //   6aff                 | push                -1
            //   68????????           |                     
            //   64a100000000         | mov                 eax, dword ptr fs:[0]
            //   50                   | push                eax
            //   b8b8100000           | mov                 eax, 0x10b8
            //   e8????????           |                     

        $sequence_5 = { 0f872b020000 8bd0 52 e8???????? 83c404 84db }
            // n = 6, score = 100
            //   0f872b020000         | ja                  0x231
            //   8bd0                 | mov                 edx, eax
            //   52                   | push                edx
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   84db                 | test                bl, bl

        $sequence_6 = { 83e03f 6bc830 894de0 8b049d60b74500 0fb6440828 }
            // n = 5, score = 100
            //   83e03f               | and                 eax, 0x3f
            //   6bc830               | imul                ecx, eax, 0x30
            //   894de0               | mov                 dword ptr [ebp - 0x20], ecx
            //   8b049d60b74500       | mov                 eax, dword ptr [ebx*4 + 0x45b760]
            //   0fb6440828           | movzx               eax, byte ptr [eax + ecx + 0x28]

        $sequence_7 = { 8b4b04 894f04 8b01 ff5004 8b4df0 c745fc01000000 85c9 }
            // n = 7, score = 100
            //   8b4b04               | mov                 ecx, dword ptr [ebx + 4]
            //   894f04               | mov                 dword ptr [edi + 4], ecx
            //   8b01                 | mov                 eax, dword ptr [ecx]
            //   ff5004               | call                dword ptr [eax + 4]
            //   8b4df0               | mov                 ecx, dword ptr [ebp - 0x10]
            //   c745fc01000000       | mov                 dword ptr [ebp - 4], 1
            //   85c9                 | test                ecx, ecx

        $sequence_8 = { 8b7508 33db 895df0 85f6 7460 }
            // n = 5, score = 100
            //   8b7508               | mov                 esi, dword ptr [ebp + 8]
            //   33db                 | xor                 ebx, ebx
            //   895df0               | mov                 dword ptr [ebp - 0x10], ebx
            //   85f6                 | test                esi, esi
            //   7460                 | je                  0x62

        $sequence_9 = { 7603 6a26 58 0fb60c85aebf4400 }
            // n = 4, score = 100
            //   7603                 | jbe                 5
            //   6a26                 | push                0x26
            //   58                   | pop                 eax
            //   0fb60c85aebf4400     | movzx               ecx, byte ptr [eax*4 + 0x44bfae]

    condition:
        7 of them and filesize < 807936
}
[TLP:WHITE] win_edam_w0   (20241206 | DLL that creates runkey, contacts bestone.php, download & exec payload)
rule win_edam_w0 {
    meta:
        description = "DLL that creates runkey, contacts bestone.php, download & exec payload"
        researcher = "Alexandre MATOUSEK"
        source = "OCD"
        creation_date = "02/12/2024"
        os = "Windows"
        category = "Trojan"
        threat_name = "Windows.Trojan.EdamDropperDLL"
        samples = "244e004ac7149e2631d68cba947cfd3d5d5352536ecb352c410b6e80e09d874a, d4daf30ceee80c4f639f3aff6abeb95e7fbf11e125fb90f8972b7a92e22d22e5"
        source = "https://raw.githubusercontent.com/cert-orangecyberdefense/edam/refs/heads/main/yara%20Edam"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.edam"
        malpedia_rule_date = "20241206"
        malpedia_hash = ""
        malpedia_version = "20241206"
        malpedia_license = "CC BY-SA 4.0"
        malpedia_sharing = "TLP:WHITE"
    strings:
        $persist1 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" wide fullword
        $persist2 = "Successfully added to startup:" wide fullword
        $persist3 = "SettingsApp" wide
        $persist4 = "SettingsAdd" wide
        $exec = "Failed to call the DLL function." fullword
        $net = "bestone.php"
        $export = "DoUpdateInstanceEx"
        $pdb = "C:\\Users\\user\\documents\\visual studio 2015" nocase
    condition:
        uint16(0) == 0x5A4D and 2 of ($persist*) and ($exec or $net or $export or $pdb)
}
Download all Yara Rules