SYMBOLCOMMON_NAMEaka. SYNONYMS
win.lightwork (Back to overview)

LIGHTWORK

VTCollection    

According to Mandiant, LIGHTWORK is a disruption tool written in C++ that implements the IEC-104 protocol to modify the state of RTUs over TCP. It crafts configurable IEC-104 ASDU messages, to change the state of RTU IOAs to ON or OFF. This sample works in tandem with PIEHOP, which sets up the execution.

References
2023-05-25 ⋅ Mandiant ⋅ Corey Hildebrandt, Daniel Kapellmann Zafra, Keith Lunden, Ken Proska, Nathan Brubaker, Rushikesh Nandedkar
COSMICENERGY: New OT Malware Possibly Related To Russian Emergency Response Exercises
LIGHTWORK PIEHOP
Yara Rules
[TLP:WHITE] win_lightwork_auto (20260917 | Detects win.lightwork.)
rule win_lightwork_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.lightwork."
        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.lightwork"
        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 = { 885001 90 5d c3 55 89e5 8b4508 }
            // n = 7, score = 100
            //   885001               | mov                 byte ptr [eax + 1], dl
            //   90                   | nop                 
            //   5d                   | pop                 ebp
            //   c3                   | ret                 
            //   55                   | push                ebp
            //   89e5                 | mov                 ebp, esp
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]

        $sequence_1 = { 39c2 7c07 b800000000 eb75 837d0800 750f c7042410000000 }
            // n = 7, score = 100
            //   39c2                 | cmp                 edx, eax
            //   7c07                 | jl                  9
            //   b800000000           | mov                 eax, 0
            //   eb75                 | jmp                 0x77
            //   837d0800             | cmp                 dword ptr [ebp + 8], 0
            //   750f                 | jne                 0x11
            //   c7042410000000       | mov                 dword ptr [esp], 0x10

        $sequence_2 = { 0fb6c0 c1e018 0145f4 8b4508 8b55f4 89500c 8b4518 }
            // n = 7, score = 100
            //   0fb6c0               | movzx               eax, al
            //   c1e018               | shl                 eax, 0x18
            //   0145f4               | add                 dword ptr [ebp - 0xc], eax
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   8b55f4               | mov                 edx, dword ptr [ebp - 0xc]
            //   89500c               | mov                 dword ptr [eax + 0xc], edx
            //   8b4518               | mov                 eax, dword ptr [ebp + 0x18]

        $sequence_3 = { e8???????? 83f87e 0f878d260000 8b0485a0414100 ffe0 c745f001000000 }
            // n = 6, score = 100
            //   e8????????           |                     
            //   83f87e               | cmp                 eax, 0x7e
            //   0f878d260000         | ja                  0x2693
            //   8b0485a0414100       | mov                 eax, dword ptr [eax*4 + 0x4141a0]
            //   ffe0                 | jmp                 eax
            //   c745f001000000       | mov                 dword ptr [ebp - 0x10], 1

        $sequence_4 = { 890424 e8???????? e9???????? 8b450c 83c002 0fb600 3c0b }
            // n = 7, score = 100
            //   890424               | mov                 dword ptr [esp], eax
            //   e8????????           |                     
            //   e9????????           |                     
            //   8b450c               | mov                 eax, dword ptr [ebp + 0xc]
            //   83c002               | add                 eax, 2
            //   0fb600               | movzx               eax, byte ptr [eax]
            //   3c0b                 | cmp                 al, 0xb

        $sequence_5 = { 83ec10 c745fc00000000 eb1c 8b550c 8b45fc 01d0 }
            // n = 6, score = 100
            //   83ec10               | sub                 esp, 0x10
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0
            //   eb1c                 | jmp                 0x1e
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]
            //   01d0                 | add                 eax, edx

        $sequence_6 = { 83e0f0 89c2 8b4508 885010 8b4508 c9 c3 }
            // n = 7, score = 100
            //   83e0f0               | and                 eax, 0xfffffff0
            //   89c2                 | mov                 edx, eax
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   885010               | mov                 byte ptr [eax + 0x10], dl
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   c9                   | leave               
            //   c3                   | ret                 

        $sequence_7 = { e8???????? 8b4508 8b550c 8910 8b4508 d94510 d9580c }
            // n = 7, score = 100
            //   e8????????           |                     
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]
            //   8910                 | mov                 dword ptr [eax], edx
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   d94510               | fld                 dword ptr [ebp + 0x10]
            //   d9580c               | fstp                dword ptr [eax + 0xc]

        $sequence_8 = { 894508 837d0800 7426 8b4508 890424 e8???????? 8b4508 }
            // n = 7, score = 100
            //   894508               | mov                 dword ptr [ebp + 8], eax
            //   837d0800             | cmp                 dword ptr [ebp + 8], 0
            //   7426                 | je                  0x28
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   890424               | mov                 dword ptr [esp], eax
            //   e8????????           |                     
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]

        $sequence_9 = { c74008???????? 8b4508 c7400479000000 90 5d c3 55 }
            // n = 7, score = 100
            //   c74008????????       |                     
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   c7400479000000       | mov                 dword ptr [eax + 4], 0x79
            //   90                   | nop                 
            //   5d                   | pop                 ebp
            //   c3                   | ret                 
            //   55                   | push                ebp

    condition:
        7 of them and filesize < 1132544
}
Download all Yara Rules