mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 07:21:43 +00:00
Update pe.yar
This commit is contained in:
parent
7c8fd0cd45
commit
1e16ff9483
|
@ -1,34 +0,0 @@
|
|||
rule eicar_av_test {
|
||||
/*
|
||||
Per standard, match only if entire file is EICAR string plus optional trailing whitespace.
|
||||
The raw EICAR string to be matched is:
|
||||
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
|
||||
*/
|
||||
|
||||
meta:
|
||||
description = "This is a standard AV test, intended to verify that BinaryAlert is working correctly."
|
||||
author = "Austin Byers | Airbnb CSIRT"
|
||||
reference = "http://www.eicar.org/86-0-Intended-use.html"
|
||||
|
||||
strings:
|
||||
$eicar_regex = /^X5O!P%@AP\[4\\PZX54\(P\^\)7CC\)7\}\$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!\$H\+H\*\s*$/
|
||||
|
||||
condition:
|
||||
all of them
|
||||
}
|
||||
|
||||
rule eicar_substring_test {
|
||||
/*
|
||||
More generic - match just the embedded EICAR string (e.g. in packed executables, PDFs, etc)
|
||||
*/
|
||||
|
||||
meta:
|
||||
description = "Standard AV test, checking for an EICAR substring"
|
||||
author = "Austin Byers | Airbnb CSIRT"
|
||||
|
||||
strings:
|
||||
$eicar_substring = "$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!"
|
||||
|
||||
condition:
|
||||
all of them
|
||||
}
|
25
app/assets/yar/pe.yar
Normal file
25
app/assets/yar/pe.yar
Normal file
|
@ -0,0 +1,25 @@
|
|||
import "pe"
|
||||
|
||||
rule single_section
|
||||
{
|
||||
condition:
|
||||
pe.number_of_sections == 1
|
||||
}
|
||||
|
||||
rule control_panel_applet
|
||||
{
|
||||
condition:
|
||||
pe.exports("CPlApplet")
|
||||
}
|
||||
|
||||
rule is_dll
|
||||
{
|
||||
condition:
|
||||
pe.characteristics & pe.DLL
|
||||
}
|
||||
|
||||
rule is_pe
|
||||
{
|
||||
condition:
|
||||
pe.is_pe
|
||||
}
|
Loading…
Reference in New Issue
Block a user