ATLAS - Malware Analysis Description
Project description
ATLAS
According to Merriam-Webster:
atlas noun
at·las | at-ləs
1. capitalized : a Titan who for his part in the Titans' revolt against the gods is forced by Zeus to support the heavens on his shoulders
3. a : a bound collection of maps often including illustrations, informative tables, or textual matter
ATLAS is an analysis description of malware or kill-chain. Malware is a combination of techniques crafted for a purpose. With an ATLAS rule, these techniques and capabilities are like LEGO pieces. In this way, it tries to help malware researchers to focus single piece at a time and nothing more. ATLAS interpretation of the rule does the rest. It also removes the language boundaries. Different pieces can be written in other script languages.
If these techniques are transformed into LEGO pieces properly, it eventually creates a memory. Then, the total time to write an ATLAS rule will decrease.
meta:
name: "rtf_template_injection"
description: "A rule to extracts rtf template injection"
reference: "https://www.proofpoint.com/us/blog/threat-insight/injection-new-black-novel-rtf-template-inject-technique-poised-widespread"
version: "1.0"
scripts:
# import re
# import base64
# def run(data: bytes) -> str:
# result = ''
# encoded_template_pattr = "XHtcXFwqXFx0ZW1wbGF0ZVxzKyguKylccypcfQ=="
# result = re.search(base64.b64decode(encoded_template_pattr), data).group(1).decode()
# return result
s1: "aW1wb3J0IHJlCmltcG9ydCBiYXNlNjQKIApkZWYgcnVuKGRhdGE6IGJ5dGVzKSAtPiBzdHI6CiAgICByZXN1bHQgPSAnJwoKICAgIGVuY29kZWRfdGVtcGxhdGVfcGF0dHIgPSAiWEh0Y1hGd3FYRngwWlcxd2JHRjBaVnh6S3lndUt5bGNjeXBjZlE9PSIKICAgIHJlc3VsdCA9IHJlLnNlYXJjaChiYXNlNjQuYjY0ZGVjb2RlKGVuY29kZWRfdGVtcGxhdGVfcGF0dHIpLCBkYXRhKS5ncm91cCgxKS5kZWNvZGUoKQoKICAgIHJldHVybiByZXN1bHQ="
chain:
file_read:
input: $param.file
func: file_read_bin
template_extract:
input:
- $scripts.s1
- $file_read
func: python_executor
download:
input: $template_extract
func: download_from_remote_server
save_template:
input:
- $download
- "template_"
func: save_file_bytes
When the above rule is processed by ATLAS:
- It reads the file according to command-line argument,
- Then runs the python script that is defined in scripts section,
- Tries to downloads the template from the matched pattern,
- And saves the downloaded data to the disk.
Installation
Install using Python's PIP:
pip install malware-atlas
Clone directly from Github:
git clone https://github.com/malware-atlas/atlas
Usage
The HelloWorld rule can be used to test the installation.
To test it as a stand-alone tool:
atlas -a HelloWorld.atl
Or it can be used as a package:
>>> from atlas import atlas
>>> atl = atlas("HelloWorld.atl")
>>> atl.execute()
True
To discover the full potential of the ATLAS, you could check the documentation: https://malware-atlas.readthedocs.io/en/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file malware_atlas-0.2.15.tar.gz
.
File metadata
- Download URL: malware_atlas-0.2.15.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52adc498b6e481c091a037039e918617bbb6df2932be66f1c9bf1197cfa3dfa |
|
MD5 | af645923f469def7933bfe8f2efeef6d |
|
BLAKE2b-256 | 2a48c1b59262fc33a206a845511c5830f87c8047bf6651fe9a6b940bff1675df |
File details
Details for the file malware_atlas-0.2.15-py3-none-any.whl
.
File metadata
- Download URL: malware_atlas-0.2.15-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32bf25290ac449c19c1da129e3084ad2b82cdeaff1dea2589bf317558cd13b8e |
|
MD5 | 8b2c0878175ca7596cac9e16e8ec1a31 |
|
BLAKE2b-256 | 114f670ed916d0094ee18210764ff732a8cf534e4aeab5832d3572580cad73a7 |