mandiant/capa-rules

rule idea: zlib fast inflate

Open

#494 opened on Nov 4, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees) (234 forks)github user discovery
good first issuerule idea

Repository metrics

Stars
 (721 stars)
PR merge metrics
 (PR metrics pending)

Description

see source: https://github.com/madler/zlib/blob/master/contrib/masmx86/inffas32.asm

I've seen this code used in shellcode; we can hit on the hard-coded strings or the assembly itself.

strings:

  • Fast decoding Code from Chris Anderson
  • invalid literal/length code
  • invalid distance code
  • invalid distance too far back

Contributor guide