Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a script called match-2-yara #1703

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

jconnor0426
Copy link

Overview

This PR creates a new script that takes CAPA rule match information and creates code-based YARA rules around them.

The script will enable users to hunt for code reuse of interesting functions in samples they are reviewing.

Features

  • Supports PE files (x86/x64/.NET)
  • Generate Code Based YARA rules with detailed comments for a single file
  • Generate Code Based YARA rules based on similarity between multiple files

Requirements

This script requires the installation of two additional python libraries:

  • mkyara
  • yaramod

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed

@jconnor0426
Copy link
Author

Ready for Review

pyproject.toml Show resolved Hide resolved
scripts/match-2-yar.py Outdated Show resolved Hide resolved
scripts/match-2-yar.py Outdated Show resolved Hide resolved
scripts/match-2-yar.py Outdated Show resolved Hide resolved
scripts/match-2-yar.py Outdated Show resolved Hide resolved
scripts/match-2-yar.py Outdated Show resolved Hide resolved
tests/test_scripts.py Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants