Archive Collected Data: Archive via Library T1560.002

Tactic: Collection

An adversary may compress or encrypt data that is collected prior to exfiltration using 3rd party libraries. Many libraries exist that can archive data, including Python rarfile, libzip, and zlib. Most libraries include functionality to encrypt and/or compress data.

Events covered

1 catalog event is tagged with this technique by at least one rule.

ProviderEventTitle
SysmonEvent ID 7Image loaded

Authoring guide

Patterns shared across the 3 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (10 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
EventType2eq 2connection_attempted, load
CommandLine1contains 1, match 1Compress-Archive, [Convert]::ToBase64String, base64
ParentCommandLine1contains 1@modelcontextprotocol, agentgpt, anthropic
ScriptBlockText1eq 1, in 1compress-archive, compressionlevel, compressionmode
dest_ip1is_not_null 1
dll.name1eq 1System.IO.Compression.FileSystem.ni.dll, System.IO.Compression.ni.dll
event.category1eq 1process
event.type1eq 1start
parent_process_name1in 1, starts_with 1Cursor Helper, Cursor Helper (Plugin), Jan
process_name1in 1, starts_with 17z, 7za, 7zr

Top indicator values (94 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
CommandLinecontains
base64
111
CommandLinecontains
buffer.from
1
CommandLinecontains
gzip
1
CommandLinecontains
tarfile
1
CommandLinecontains
zipfile
1
CommandLinecontains
zlib
12
CommandLinematch
Compress-Archive
1
CommandLinematch
[Convert]::ToBase64String
12
EventTypeeq
connection_attempted
125
EventTypeeq
load
19
ParentCommandLinecontains
@modelcontextprotocol
12
ParentCommandLinecontains
agentgpt
12
ParentCommandLinecontains
anthropic
1
ParentCommandLinecontains
autogpt
12
ParentCommandLinecontains
babyagi
12
ParentCommandLinecontains
cohere
1
ParentCommandLinecontains
crewai
12
ParentCommandLinecontains
haystack
12
ParentCommandLinecontains
langchain
12
ParentCommandLinecontains
llama-index
12
ParentCommandLinecontains
mcp-server
12
ParentCommandLinecontains
mistral
1
ParentCommandLinecontains
ollama
1
ParentCommandLinecontains
openai
1
ParentCommandLinecontains
semantic-kernel
12
ScriptBlockTexteq
compress-archive
1
ScriptBlockTextin
compressionlevel
1
ScriptBlockTextin
compressionmode
1
ScriptBlockTextin
io.compression.brotlistream
1
ScriptBlockTextin
io.compression.deflatestream
12

Exclusions (43 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
user.ideq
S-1-5-18
2
Imagewildcard
?:\program files (x86)\*
1
Imagewildcard
?:\program files\*
1
Imagewildcard
?:\programdata\microsoft\windows defender advanced threat...
1
Imagewildcard
?:\windows\microsoft.net\framework*\mscorsvw.exe
1
Imagewildcard
?:\windows\system32\inetsrv\w3wp.exe
1
Imagewildcard
?:\windows\system32\sdiagnhost.exe
1
Imagewildcard
?:\windows\syswow64\inetsrv\w3wp.exe
1
ScriptBlockTexteq
ansible.moduleutils.backup
1
ScriptBlockTexteq
compress-archive -path 'c:\programdata\lenovo\udc\diagnostics\latest
1
ScriptBlockTexteq
copyright: (c) 2017, ansible project
1
dest_ipcidr_match
10.0.0.0/8
1
dest_ipcidr_match
100.64.0.0/10
1
dest_ipcidr_match
127.0.0.0/8
1
dest_ipcidr_match
169.254.0.0/16
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Elastic 3 rules