mandiant / mandiant/capa

feature: function count

Open
#543 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

```yaml
rule:
meta:
name: contain few functions
examples:
- 068a76d4823419b376d418cf03215d5c
features:
- count(function): 10 or less
```

Is something like this possible or would we need a new feature?

Would it be worth adding? Currently I can only think of using this for packer detection.

EDIT: also for anti-disassembly, see PMA chapter 15

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

The issue names no files, tests, or entry points. Start by reviewing how capa currently parses and evaluates rule features, then assess whether function counting fits the proposed YAML syntax. Done means the scope and expected behavior for packer and anti-disassembly detection are agreed and covered by validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, yaml
Domain
reverse-engineering, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.