Beacon Detection

Little becon detection analytic that the Ricks created

Primary Question

Using the analytics discussed in this paper: Is the (Detecting Cobalt Strike beacons in NetFlow data) whitepaper does there appear to be Cobalt Strike BEACON behavior occurring within the environment?

Data Collection Technique

Port Mirror/SPAN to Network Security Monitor(ZEEK)

Data Sources

UPSTREAM DEPENDENCIES: None

DATA SOURCES:

  • Zeek::conn.log

Input Data

Source IP, Destination IP, responding bytes, destination port, protocol, time

Analytic / Algorithm / Process

Search for connections with a value greater than 10, a standard deviation for responding bytes less than 100, and identify flows with a periodicity similar to beconing

Analytic Execution

Enter the query into a Splunk search and adjust the time-range as desired. It is recommended to search at 7 day intervals and to focus on 1 port at a time if there is a large ammount of data. Adjust the query to blacklist certain IPs or fields as needed.

Code Splunk >= 8

Code Splunk < 8

Dashboard

Output Data Format

Splunk table of events with hosts who have a perodocity similar to a beacon. Looking at unique tuples returned in a separate search can be used to verify the results.

Analytic Flags / Alert Message

The output does not guarentee that the tuple is a beacon, only that it behaves like a beacon. Would not recommend generating an alert for this query. Recommended to integrate this into a dashboard on Splunk.

How to Interpret the Results

Identify tuples within the returned table and further analyze the IP and traffic to determine if the flow is in fact malicious traffic.

Performance Constraints

Search size of returned events may exceed max_mem_usage_mb = 500 max_mem_usage_mb provides a limitation to the amount of RAM, in megabytes (MB), a batch of events or results will use in the memory of a search process.

Lessons Learned

  • This analytic does not return only malcious traffic as the report mentions. When incorperated in an enterprise SIEM, there were a lot of results that appeared to be normal/good traffic.

  • This analytic has not been validated in a large-scale enterprise environment yet. FP rate unknown

Last updated

Was this helpful?