mandiant / mandiant/capa

Add support for scripting language

Open
#779 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

### Summary

Ability to use capa against text based script files such as VBScript / JScript etc. Furthermore this could then easily be used for extracted macros and other text-based file

### Motivation

Very common use-case for droppers

## Additional context

Once deobfuscated, these scripts contains plain text strings that can be used to capture their capabilities by matching against strings.

For example a simple check for of string such as "vssadmin.exe", "taskkill" can already provide a very good overview of the capability.

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

No files, tests, or entry points are named. Start by locating capa’s input and string-matching paths for executable analysis, then define how VBScript, JScript, extracted macros, and other text-based files should be accepted; done would require tests demonstrating capability matches for strings such as "vssadmin.exe" and "taskkill".

Written by the indexing model from the issue text.

Assessment

Tech stack
python
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.