flare-floss
flare-floss copied to clipboard
Indicate .NET, packed or other binaries FLOSS doesn't handle well
Warn users similar to capa. Arose in issue #346
could use capa for this
Hey @williballenthin, could you please link some resources to reference for the implementation of dotnet detection (such as the capa PR that added this)? I think we could extend the language_identifier
module to detect dotnet binaries as well.
Maybe we could use the CLR header in the .text section of dotnet PE files (I read about it from here: https://www.red-gate.com/simple-talk/blogs/anatomy-of-a-net-assembly-pe-headers/). Still not sure about how to get the version though.
Yes, good idea. capa uses dnfile for this: https://github.com/mandiant/capa/blob/master/capa/features/extractors/dotnetfile.py#L184-L185. There was a discussion on recognizing the version, but it was deemed challenging IIRC. Just identifying .NET binaries would be a great start though.