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/
Metadata
Release files for malware-atlas 0.2.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| malware_atlas-0.2.15.tar.gz | 23.0 kB | Without provenance | Details for malware_atlas-0.2.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| malware_atlas-0.2.15-py3-none-any.whl | Python 3 | none | any | Details for malware_atlas-0.2.15-py3-none-any.whl |
Total release size: 39.4 kB
Release files / malware_atlas-0.2.15.tar.gz
| Download URL | malware_atlas-0.2.15.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f52adc498b6e481c091a037039e918617bbb6df2932be66f1c9bf1197cfa3dfa
|
|
BLAKE2b-256 checksum How to use checksums |
2a48c1b59262fc33a206a845511c5830f87c8047bf6651fe9a6b940bff1675df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / malware_atlas-0.2.15-py3-none-any.whl
| Download URL | malware_atlas-0.2.15-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32bf25290ac449c19c1da129e3084ad2b82cdeaff1dea2589bf317558cd13b8e
|
|
BLAKE2b-256 checksum How to use checksums |
114f670ed916d0094ee18210764ff732a8cf534e4aeab5832d3572580cad73a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for malware-atlas 0.2.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.