High severityET MALWAREActive in PcapHub scans

ET MALWARE JS/Nemucod.M.gen downloading EXE payload

SID 2021954 · rev 3 · classtype trojan-activity

What this signature means

A malware rule: it flags traffic produced by a known malicious program, such as a check-in with its operator, a payload download or data being sent out.

Generated from the rule itself: its category, classtype and metadata. Nothing here is guessed.

What it watches

HTTP traffic from an outside host to a monitored host, in an established connection, from server to client.

It fires when

  • the transferred file contents contains "MZ" (within 2 bytes of the previous match)
  • a byte-level check on the payload (byte_jump)
  • the transferred file contents contains "PE|00 00|" (bytes between | | are hexadecimal) (within 4 bytes of the previous match)

What Emerging Threats says

  • Emerging Threats rates it major.
  • Attributed to the JS Nemucod M gen malware family.

Good to know

  • Only fires when an earlier rule in the same flow set the flag ET.nemucod.exerequest, so it depends on another signature matching first.
  • Active in PcapHub's scan set: every uploaded capture is checked against it.

Public captures that trigger it1

Rule

alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ET MALWARE JS/Nemucod.M.gen downloading EXE payload"; flow:established,to_client; flowbits:isset,ET.nemucod.exerequest; file.data; content:"MZ"; within:2; byte_jump:4,58,relative,little; content:"PE|00 00|"; fast_pattern; distance:-64; within:4; reference:url,www.certego.net/en/news/italian-spam-campaigns-using-js-nemucod-downloader/; reference:md5,0bc86ab7ead67e264531ccb16c3c529a; classtype:trojan-activity; sid:2021954; rev:3; metadata:created_at 2015_10_15, malware_family JS_Nemucod_M_gen, signature_severity Major, updated_at 2024_03_14;)

Emerging Threats Open. Rule created Oct 15, 2015. Last revised by ET Mar 14, 2024. Text on PcapHub refreshed 7mo ago.