Skip to content

Instantly share code, notes, and snippets.

@dfirence
Last active August 20, 2025 13:26
Show Gist options
  • Save dfirence/dc8a3b7202c42cf1da0811e3b2717618 to your computer and use it in GitHub Desktop.
Save dfirence/dc8a3b7202c42cf1da0811e3b2717618 to your computer and use it in GitHub Desktop.
{
"rule": {
"id": "01d29b48-ff6f-11eb-b81e-acde48001123",
"name": "7zip CommandLine To SMB Share Path",
"description": "The following analytic detects the execution of 7z or 7za processes with command lines pointing to SMB network shares. It leverages data from Endpoint Detection and Response (EDR) agents, focusing on process names and command-line arguments. This activity is significant as it may indicate an attempt to archive and exfiltrate sensitive files to a network share, a technique observed in CONTI LEAK tools. If confirmed malicious, this behavior could lead to data exfiltration, compromising sensitive information and potentially aiding further attacks.",
"logic": "| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process_name =\"7z.exe\" OR Processes.process_name = \"7za.exe\" OR Processes.process_name = \"7zr.exe\" OR Processes.original_file_name = \"7z.exe\" OR Processes.original_file_name = \"7za.exe\" OR Processes.original_file_name = \"7zr.exe\") AND (Processes.process=\"*\\\\C$\\\\*\" OR Processes.process=\"*\\\\Admin$\\\\*\" OR Processes.process=\"*\\\\IPC$\\\\*\") by Processes.action Processes.dest Processes.original_file_name Processes.parent_process Processes.parent_process_exec Processes.parent_process_guid Processes.parent_process_id Processes.parent_process_name Processes.parent_process_path Processes.process Processes.process_exec Processes.process_guid Processes.process_hash Processes.process_id Processes.process_integrity_level Processes.process_name Processes.process_path Processes.user Processes.user_id Processes.vendor_product | `drop_dm_object_name(Processes)` | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `7zip_commandline_to_smb_share_path_filter`",
"risk_score": 0,
"severity": "",
"meta": {
"_type": "Hunting",
"author": "Teoderick Contreras, Splunk",
"entities": [
"endpoint.processes",
"processes.action",
"processes.dest",
"processes.original_file_name",
"processes.parent_process",
"processes.parent_process_exec",
"processes.parent_process_guid",
"processes.parent_process_id",
"processes.parent_process_name",
"processes.parent_process_path",
"processes.process",
"processes.process_exec",
"processes.process_guid",
"processes.process_hash",
"processes.process_id",
"processes.process_integrity_level",
"processes.process_name",
"processes.process_path",
"processes.user",
"processes.user_id",
"processes.vendor_product"
],
"mitre": "T1560.001",
"note": "The detection is based on data that originates from Endpoint Detection and Response (EDR) agents. These agents are designed to provide security-related telemetry from the endpoints where the agent is installed. To implement this search, you must ingest logs that contain the process GUID, process name, and parent process. Additionally, you must ingest complete command-line executions. These logs must be processed using the appropriate Splunk Technology Add-ons that are specific to the EDR product. The logs must also be mapped to the `Processes` node of the `Endpoint` data model. Use the Splunk Common Information Model (CIM) to normalize the field names and speed up the data modeling process.",
"product": {
"company": "splunk",
"name": "Splunk Enterprise:Splunk Enterprise Security:Splunk Cloud"
},
"source": {
"file": "7zip_commandline_to_smb_share_path.yml",
"path": "community\\3p\\splunk\\content\\detections\\endpoint\\7zip_commandline_to_smb_share_path.yml",
"repo": "https://github.com/splunk/security_content.git"
},
"tags": [
"analytic_story: ransomware",
"asset_type: endpoint",
"data_source: crowdstrike processrollup2",
"data_source: sysmon eventid 1",
"data_source: windows event log security 4688",
"security_domain: endpoint"
],
"time": {
"created": "2025-05-01",
"deprecated": "",
"updated": ""
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment