You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because cab_file checks for both a MSCF magic at the top, but also anywhere in a PE file, Windows-based compression utilities are likely to match. I expect that the second condition is an attempt to match self-extracting archives. ScanLibarchive can extract some self-extracting CAB files.
rule cab_file {
meta:
type = "archive"
strings:
$a = { 4D 53 43 46 00 00 00 00 }
condition:
$a at 0 or
( uint16(0) == 0x5A4D and $a )
}
Environment details
Operating System: Ubuntu 22.04
Architecture: x64
Steps to reproduce
Download a copy of 7za.exe
Upload to Strelka UI
Observe cab_file and ScanLibarchive in the output event.
Expected behavior
Sample file should match only mz_file/application/x-dosexec flavors.
Screenshots
Release
Release: 0.23.03.14
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
When analyzing 7za.exe with Strelka, the
cab_file
flavor is applied, leading to it being processed by ScanLibarchive erroneously.c136b1467d669a725478a6110ebaaab3cb88a3d389dfa688e06173c066b76fcf 7za.exe
Because
cab_file
checks for both aMSCF
magic at the top, but also anywhere in a PE file, Windows-based compression utilities are likely to match. I expect that the second condition is an attempt to match self-extracting archives. ScanLibarchive can extract some self-extracting CAB files.Environment details
Steps to reproduce
cab_file
andScanLibarchive
in the output event.Expected behavior
Sample file should match only
mz_file
/application/x-dosexec
flavors.Screenshots
Release
Additional context
The text was updated successfully, but these errors were encountered: