Data Exfiltration

Detects patterns for collecting and exfiltrating sensitive data

18 rules in data_exfiltration.yml

CRITICAL: 2 | HIGH: 10 | MEDIUM: 6

Rule IDSeverityTitleDescriptionRefs
mega_cmd_exfiltrationCRITICALMEGA.nz CLI Data TransferUses MEGAcmd tools to upload or download data to/from MEGA.nz cloud storage
rclone_data_syncCRITICALRclone Cloud Data SyncUses rclone to copy or sync data to remote cloud storage, a top exfiltration tool
azcopy_data_transferHIGHAzCopy Azure Blob Transferazcopy copy/sync/make/remove/list targets *.blob.core.windows.net. azcopy bypasses Azure’s audit-rich Storage SDK and is a known exfiltration tool in cloud-attacker playbooks.
credential_file_searchHIGHCredential File Searchfind -name searches for SSH keys (id_rsa/id_dsa/id_ecdsa/id_ed25519), PEM/p12/pfx files, or credentials/config filenames - the canonical reconnaissance step before credential theft.
credential_grep_and_sendHIGHCredential Grep and Sendgrep -r searches for password/secret/key strings and pipes the output to curl. The shape extracts and immediately exfiltrates any plaintext credentials it finds.
croc_file_transferHIGHCroc Encrypted File TransferUses croc to transfer files between computers with end-to-end encryption
database_dump_creationHIGHDatabase Dump Creationmysqldump/pg_dump/mongodump output is redirected to a file. Dumps materialize the entire database in plaintext and need to be staged in an access-controlled location, never alongside the playbook.
magic_wormhole_transferHIGHMagic Wormhole Encrypted TransferUses magic-wormhole to securely transfer files between computers via one-time codes
network_data_exfiltrationHIGHNetwork Data Exfiltration via Shell Pipe-To-NetworkA shell task chains a packet-capture or file-read tool into a network-send tool - the classic exfil primitive. Matches tcpdump -w file && curl file, cat file | nc host port, socat FILE:/path TCP:host:port, dd if=disk | gzip | openssl enc | curl, and similar pipelines. MITRE T1048 (Exfiltration Over Alternative Protocol) and T1041 (Exfiltration Over C2 Channel). Pure nc -l listener or socat syslog forwarders are NOT flagged - the pipeline-to-network-egress shape is.
rclone_config_setupHIGHRclone Remote ConfigurationConfigures rclone remote storage backends which could be used for exfiltration
remote_copy_sensitive_dataHIGHRemote Copy of Sensitive Datascp/rsync/curl -T/wget –post-file targets a path containing ‘credentials’, ‘secrets’, ‘keys’, or ‘passwords’. Sensitive files should never traverse the wire without encryption and scoped IAM.
sensitive_file_collectionHIGHSensitive File CollectionCollecting sensitive system files that could contain secrets
archive_creation_suspiciousMEDIUMSuspicious Archive Creationtar/zip/7z archives a sensitive system directory (/etc, /home, /root, /var, /opt) into a single file - the staging shape used to prepare data for exfiltration.
environment_variable_harvestingMEDIUMEnvironment Variable Harvestingenv|grep is filtered against PASSWORD/SECRET/TOKEN/KEY/API. The shape harvests environment-resident credentials before they can be redacted from process state.
log_file_collectionMEDIUMLog File Collectioncat/tail/head/grep targets /var/log/auth*, /var/log/secure, or /var/log/messages. These files contain authentication events and PII subject to GDPR/HIPAA handling rules.
network_configuration_collectionMEDIUMNetwork Configuration Collection Redirected to FileA shell task runs a network-reconnaissance command (netstat, ss, ip route/addr/link, ifconfig, arp, route) and redirects its output into a file via >/>>. The combination - enumerate local network state + persist to a file - matches MITRE T1016 (System Network Configuration Discovery) / T1049 (System Network Connections Discovery) staging behaviour often seen in pre-exfil reconnaissance. Pure read-only invocations (netstat -an with no redirect) do not match.
process_list_collectionMEDIUMProcess List CollectionCollecting process lists that may reveal sensitive information
python_http_server_exfilMEDIUMPython HTTP Server for File ServingRuns Python’s built-in HTTP server which can serve local files to remote hosts