mandiant / mandiant/capa

support unnamed exports

Open
#499 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
Python
Stars
6.2k
Forks
726
Avg merge
11d 11h
Merged PRs (30d)
7

Description

Taking a peek at the extractors it looks like `capa` assumes exports are named, but what about unnamed exports (by ordinal only)? We support matching imports by ordinal, should we also support matching exports by ordinal?

My vote is yes for completeness e.g. `- export: #1`.

We don't mention anything about this in the rule format documentation so I'm unsure without doing additional digging.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the extractors and the existing import-matching behavior for ordinal-only references, then inspect the rule format documentation. Determine whether ordinal-only exports should use syntax such as `- export: #1`; done means the behavior is supported consistently and the rule format documentation explains it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, reverse-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.