Unusual Process Network Connection

Identifies network activity from unexpected system applications. This may indicate adversarial activity as these applications are often leveraged by adversaries to execute code and evade detection.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2020/02/18"
  3integration = ["endpoint", "windows"]
  4maturity = "production"
  5updated_date = "2024/05/21"
  6
  7[rule]
  8author = ["Elastic"]
  9description = """
 10Identifies network activity from unexpected system applications. This may indicate adversarial activity as these
 11applications are often leveraged by adversaries to execute code and evade detection.
 12"""
 13from = "now-9m"
 14index = [
 15    "winlogbeat-*",
 16    "logs-endpoint.events.process-*",
 17    "logs-endpoint.events.network-*",
 18    "logs-windows.sysmon_operational-*",
 19]
 20language = "eql"
 21license = "Elastic License v2"
 22name = "Unusual Process Network Connection"
 23note = """## Triage and analysis
 24
 25### Investigating Unusual Process Network Connection
 26
 27This rule identifies network activity from unexpected system utilities and applications. These applications are commonly abused by attackers to execute code, evade detections, and bypass security protections.
 28
 29#### Possible investigation steps
 30
 31- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
 32- Investigate other alerts associated with the user/host during the past 48 hours.
 33- Investigate the target host that the process is communicating with.
 34- Assess whether this behavior is prevalent in the environment by looking for similar occurrences across hosts.
 35
 36### False positive analysis
 37
 38- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
 39
 40### Response and remediation
 41
 42- Initiate the incident response process based on the outcome of the triage.
 43- Isolate the involved hosts to prevent further post-compromise behavior.
 44- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
 45- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
 46- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
 47- Review the privileges assigned to the user to ensure that the least privilege principle is being followed.
 48- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
 49"""
 50risk_score = 21
 51rule_id = "610949a1-312f-4e04-bb55-3a79b8c95267"
 52severity = "low"
 53tags = [
 54    "Domain: Endpoint",
 55    "OS: Windows",
 56    "Use Case: Threat Detection",
 57    "Tactic: Defense Evasion",
 58    "Resources: Investigation Guide",
 59    "Data Source: Elastic Defend",
 60    "Data Source: Sysmon",
 61]
 62type = "eql"
 63
 64query = '''
 65sequence by process.entity_id
 66  [process where host.os.type == "windows" and (process.name : "Microsoft.Workflow.Compiler.exe" or
 67                  process.name : "bginfo.exe" or
 68                  process.name : "cdb.exe" or
 69                  process.name : "cmstp.exe" or
 70                  process.name : "csi.exe" or
 71                  process.name : "dnx.exe" or
 72                  process.name : "fsi.exe" or
 73                  process.name : "ieexec.exe" or
 74                  process.name : "iexpress.exe" or
 75                  process.name : "odbcconf.exe" or
 76                  process.name : "rcsi.exe" or
 77                  process.name : "xwizard.exe") and
 78     event.type == "start"]
 79  [network where host.os.type == "windows" and (process.name : "Microsoft.Workflow.Compiler.exe" or
 80                  process.name : "bginfo.exe" or
 81                  process.name : "cdb.exe" or
 82                  process.name : "cmstp.exe" or
 83                  process.name : "csi.exe" or
 84                  process.name : "dnx.exe" or
 85                  process.name : "fsi.exe" or
 86                  process.name : "ieexec.exe" or
 87                  process.name : "iexpress.exe" or
 88                  process.name : "odbcconf.exe" or
 89                  process.name : "rcsi.exe" or
 90                  process.name : "xwizard.exe")]
 91'''
 92
 93
 94[[rule.threat]]
 95framework = "MITRE ATT&CK"
 96[[rule.threat.technique]]
 97id = "T1127"
 98name = "Trusted Developer Utilities Proxy Execution"
 99reference = "https://attack.mitre.org/techniques/T1127/"
100
101
102[rule.threat.tactic]
103id = "TA0005"
104name = "Defense Evasion"
105reference = "https://attack.mitre.org/tactics/TA0005/"

Triage and analysis

Investigating Unusual Process Network Connection

This rule identifies network activity from unexpected system utilities and applications. These applications are commonly abused by attackers to execute code, evade detections, and bypass security protections.

Possible investigation steps

  • Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
  • Investigate other alerts associated with the user/host during the past 48 hours.
  • Investigate the target host that the process is communicating with.
  • Assess whether this behavior is prevalent in the environment by looking for similar occurrences across hosts.

False positive analysis

  • This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.

Response and remediation

  • Initiate the incident response process based on the outcome of the triage.
  • Isolate the involved hosts to prevent further post-compromise behavior.
  • Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
  • Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
  • Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
  • Review the privileges assigned to the user to ensure that the least privilege principle is being followed.
  • Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).

Related rules

to-top