capa
capa copied to clipboard
dotnet: handle dotnet resources
- [x] need to learn how to parse them (dnfile)
- [x] need to learn how to reason about them
- [ ] need to extract features for them
resource parsing was recently added to dnfile so we can check off the first item, see https://github.com/malwarefrank/dnfile/pull/46
malwarefrank has a good breakdown of .NET resources here.
Here are my thoughts on opportunities to emit features/reasoning from .NET resources:
- emit resource names as a new
resource
feature (extend to other platforms?) - emit a new
characteristic('has resource')
or similar (extend to other platforms?) - emit
characteristic('embedded pe')
for both raw resource and applicable resource set types - emit
class
andnamespace
features from types defined in resource sets
Thoughts @mr-tz and @williballenthin ?
All of these sound good to me. For 2. we currently have a rule contain a resource (.rsrc) section
which is noisy. With these improvements we may be able to better filter out standard resources (manifests) and write better rules for resource names/types.