Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion data/yara/CAPE/Stealc.yar
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "pe"
rule Stealc
{
meta:
Expand All @@ -9,7 +10,9 @@ rule Stealc
$nugget1 = {68 04 01 00 00 6A 00 FF 15 [4] 50 FF 15}
$nugget2 = {64 A1 30 00 00 00 8B 40 0C 8B 40 0C 8B 00 8B 00 8B 40 18 89 45 FC}
condition:
uint16(0) == 0x5A4D and any of them
uint16(0) == 0x5A4D
and not (pe.imports("tier0.dll") or pe.imports("msdart.dll"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability, it would be helpful to add a comment explaining why tier0.dll and msdart.dll are being excluded. This provides context for future developers who might wonder about this condition and prevents accidental removal. The pull request description mentions this is to reduce false positives, which is great information to capture in the code itself.

        // Exclude common FPs from legitimate software (e.g., Valve Source Engine games).
        and not (pe.imports("tier0.dll") or pe.imports("msdart.dll"))

and any of them
}

rule StealcV2
Expand Down
Loading