Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.45 KB

030.md

File metadata and controls

43 lines (30 loc) · 1.45 KB

Day 30 - Internet Short Files & Batch Scripts

After taking a nice long break from both work and #100DaysOfYara lets resume with a rule to detect .url shortcut files that link to a batch script.

Researchers reported that Qakbot distributed .url files last week:

Yara Rule

Here's the yara rule I wrote for detecting suspicious shortcut files!

rule sus_url_shortcut_bat {
  meta:
    author = "Colin Cowie"
    description = "Detects shortcut url files"
    reference  = "https://isc.sans.edu/diary/29592"
  strings:
  	$shortcut = "[InternetShortcut]" // matches abc
    $url = "URL="
    $bat = ".bat"
  condition:
  	$shortcut at 0
    and all of them
    and filesize<1KB
}

Results

Retrohunting with this rule found a wide variety of results!

Some of the results are legitment files used for product registriation such as:

There were however a lot of malicious results that made use of the DiscordCDN such as this fake crack script that trolls the victim:

Screenshot of a batchscript that displays a trolling message about being an idiot

References