Has used the following command to compress collected data: pv -s "$(du -sb exfil | awk '{print $1}')" | zstd -3 -T0 -o exfil.tar.zst .1
Archive via Library T1560.002
- Tactic
- Collection
- Platforms
- Linux, macOS, Windows
- Version
- 1.0
- Created
- 20 February 2020
- Last modified
- 24 October 2025
Archive via Library MITRE reference T1560.002
3 groups have been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
Malware IndiaIndia saves information gathered about the victim to a file that is compressed with Zlib, encrypted, and uploaded to a C2 server.12
Has used RAR to compress, encrypt, and password-protect files prior to exfiltration.1
All 3 groups for this technique
13 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Can zlib-compress data prior to exfiltration.1
Has compressed collected files with zLib.1
Can invoke the Common.Compress method to compress data with the C# GZipStream compression class.1
Has compressed data using the aPLib compression library.1
Has the ability to use the open source libraries XZip/Xunzip and zlib to compress files.1
Compressed collected data using zlib.1
All 13 software entries for this technique · 6 newest in this preview
Offense vs defense T1560.002
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
Archive via Library detection strategy DET0268
MITRE names one behaviour worth catching for this technique and breaks it into 3 analytics, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detect Archiving via Library (T1560.002)
AN0747 · Windows
Detects adversarial archiving using libraries (zlib, zip APIs) invoked by scripts or binaries. Correlates process executions of Python, PowerShell, or custom .NET binaries with DLL/module loads linked to compression libraries, followed by archive file creation.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Module LoadDC0016 | WinEventLog:Sysmon | EventCode=7 |
| Process CreationDC0032 | WinEventLog:Security | EventCode=4688 |
| File CreationDC0039 | WinEventLog:Sysmon | EventCode=11 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| LibraryAllowlist | Known business applications using compression libraries. |
| SuspiciousExtensions | Archive extensions considered sensitive in monitored environments. |
| TimeWindow | Correlation window between script/library invocation and file creation. |
AN0748 · Linux
Detects adversarial archiving by scripts or binaries calling compression libraries (libzip, zlib, bzip2). Correlates execution of Python, Perl, or compiled binaries with dynamic linking to archiving libraries and creation of compressed files in /tmp or user directories.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Module LoadDC0016 | auditd:MMAP | load: Loading of libzip.so, libz.so, or libbz2.so by processes not normally associated with archiving |
| File CreationDC0039 | auditd:FILE | create: Creation of .zip, .gz, .bz2 files in /tmp, /var/tmp, or /home directories |
| Command ExecutionDC0064 | auditd:SYSCALL | execve: Execution of python, perl, or custom binaries invoking compression libraries |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| MonitoredLibraries | List of shared objects linked to compression/encryption. |
| ArchivePaths | Directories where archive creation is flagged as anomalous. |
| EntropyThreshold | Entropy level used to distinguish encryption from normal compression. |
AN0749 · macOS
Detects malicious archiving via system or third-party libraries (libz, libarchive) invoked by Python, Swift, or Objective-C binaries. Correlates unified logs of library loads with creation of compressed or encrypted archives (.zip, .gz, .bz2, .dmg).
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Module LoadDC0016 | macos:unifiedlog | Loading of libz.dylib, libarchive.dylib by non-standard applications |
| Process CreationDC0032 | macos:unifiedlog | Execution of Python, Swift, or other binaries invoking archiving libraries |
| File CreationDC0039 | macos:unifiedlog | Creation of .zip, .gz, .dmg archives in /Users, /tmp, or application directories |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| AllowedProcesses | Applications allowed to load compression libraries (e.g., backup agents). |
| UserContext | Flag archiving under privileged or system accounts as suspicious. |
| FileExtensionFilter | Targeted monitoring of sensitive file formats or compressed containers. |
Tests from Atomic Red Team (MIT licence) · technique definition