Skip to content

Commit

Permalink
Build new yara_python.zip with hash support
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Byers committed Aug 23, 2017
1 parent 2d93266 commit b6b0022
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -14,8 +14,9 @@ quickly contain the threat before it spreads.
## Features
* **Built with Amazon Web Services (AWS):** An AWS account is all you need to deploy BinaryAlert.
* **Broad YARA Support:** Add your own YARA rules and/or automatically clone them from third-party
repos. Both the [`PE`](http://yara.readthedocs.io/en/latest/modules/pe.html) and
[`math`](http://yara.readthedocs.io/en/latest/modules/math.html) modules are supported.
repos. [`PE`](http://yara.readthedocs.io/en/latest/modules/pe.html),
[`math`](http://yara.readthedocs.io/en/latest/modules/math.html), and
[`hash`](http://yara.readthedocs.io/en/v3.6.3/modules/hash.html) YARA modules are supported.
* **Real-Time:** Files uploaded to BinaryAlert (S3 bucket) are immediately queued for analysis.
* **Serverless:** All computation is handled by [Lambda](https://aws.amazon.com/lambda/)
functions. No servers to manage means stronger security and automatic scaling!
Expand Down
8 changes: 7 additions & 1 deletion lambda_functions/analyzer/README.md
Expand Up @@ -17,7 +17,7 @@ and install `yara-python`:
```
$ sudo su
# yum update
# yum install gcc python35-devel.x86_64 python35-pip.noarch
# yum install gcc openssl-devel.x86_64 python35-devel.x86_64 python35-pip.noarch
# python3
>>> import pip
>>> pip.main(['install', '--upgrade', 'pip'])
Expand All @@ -30,5 +30,11 @@ $ sudo su
# cp /usr/lib64/libpython3.5m.so.1.0 .
# zip -r yara_python_VERSION.zip *
```

Some notes:
* Python3.6 is not currently available in the public Lambda AMI. You can either manually install
Python3.6 from source or (what's done here) include the required Python3.5 bytecode in the zipfile.
* The openssl development libraries are required to support the "hash" module.

Then replace [`yara_python_3.6.3.zip`](yara_python_3.6.3.zip) in the repo with the newly generated
package from the EC2 instance and update the filename in [`manage.py`](../../manage.py).
Binary file modified lambda_functions/analyzer/yara_python_3.6.3.zip
Binary file not shown.

0 comments on commit b6b0022

Please sign in to comment.