If you landed here without reading Part 1 of this article, I recommend you head there and give it quick read ;)

Blind Threat Hunting?

Let’s continue where we left off. The cyber security industry largely regards Threat Hunting as the art of seeking threats that we don’t know we don’t know (unknown unknowns). An example of this would be the activity of a threat actor that has dwelled in your network for months, exfiltrating data and disseminating back doors, unknown to your cyber team, avoiding the vast majority of your security controls. Common lore states that this is some of the most difficult and complex tasks that can be undertaken by a security team.

Following the knowledge matrix explained in Part 1, we can’t rely on:

  1. standard detection rules based off known attacker techniques, the domain of known knowns.
  2. IOCs, IOA (indicators of attack) and other derivative indices that are the result of novel research into zero-days and general threat actor TTPs, usually requiring higher degrees of expertise for their implementation, the domain of known unknowns.

So then, which types of activities would threat hunting perform, avoiding the use of known detection rules, IOCs, IOA, and generally, any form of structured evidence of system intrusions? Let’s not forget: we are supposed to not know that we don't know these things (unknown unknowns). It’s like looking for unseen (unknown) unseen (unknowns) objects. We could imagine such a process would hypothetically go this way:

  1. Leveraging available datasets, threat hunters would craft queries that explore the data in a heuristic way: statistical analysis, stacking methods, unsupervised machine learning algorithms (K-Means clustering, Hierarchical clustering, Neural networks, etc.). Let’s remember: in this hypothetical world of “unknown unknowns”, we don’t know what we are looking for, so we can only rely on data visualization and manipulation techniques hoping this will surface suspicious patterns. In other words: we will know it when we see it, not before. Hold on, I know you are thinking about the consequences of this statement, let’s keep pulling on this thread.

  2. Let’s say that as a result of our efforts, for an “n” period of time, some suspicious patterns are revealed. How did we determine these were “suspicious”, as opposed to “normal”, is not something we will explore in this article1. Let’s just assume we did find “suspicious” events which are indicative of threat actor activity.

  3. A deeper investigation into the events uncovered via threat hunting would eventually reveal the presence of a threat actor, and DFIR would unravel the system of backdoors and past activity performed by the intruder.

Revisiting the narrative

This tale sounds nice right? Well let’s now deconstruct this narrative with a few observations:

  • In the real world, how would you ever justify such a programme to the decision makers that make budgets for such tasks? We are basically asking them to trust an open ended process with a loosely coupled orientation based on playing with data in various ways with the hope we will strike gold and find “suspicious stuff”

  • The hypothetical approach described above completely dismisses the collective knowledge ammased and structured by the cyber community. Complicated, ordered cyber threat knowledge like MITRE ATT&CK would go unnoticed since we are only looking for “unknown unknowns”. By definition, there is no amount of previously organized knowledge that can help you anticipate these types of eventualities.This approach obviates deeply complex, highly structured, crowd sourced, community-validated insight into attacker tactics, techniques and procedures (TTPs) which organizes past knowledge into useful semantic categories. In other words, the search for the unknown unknowns repels any attempt at leveraging any form of structured knowledge that would constrain the open-ended nature of this approach.

  • Considering that most of the open-ended nature of data exploration in the search for unknown-unknowns is purely reliant on the ability of the algorithms to reveal underlaying patterns, and the ability of the human analyst to recognize what is anomalous and what is normal, how can the threat hunting process transition into an iterable state? How will the combined effect of machine assisted analysis and human experience be repeatable and transmissible to other analysts? In other words, how can we avoid building castles out of air?

  • Due to the above points, how would you measure progress or stagnation, advancement or retreat? How is ROI calculated under these circumstances?

As you can see, when attempting to be true to the concept of unknown unknowns we may set unrealistic expectations and end up with unwanted consequences that are either inconsistent with the goals of threat hunting or make no sense in real world scenarios.

Epistemic Confusion

The confusion here is epistemological. That is, the repeated, industry-driven and unquestioned use of the knowledge matrix popularized in the military world has permeated the cyber industry in a very automated way.

To solve this epistemological confusion we must understand a very important dimension of knowledge: knowledge is bounded and permeated by time. The act of knowing is a state of tension, where the knower perceives an object as different from itself. This object is posited in a differential relationship that allows “it” to be “known” by “someone”. So instead of talking about “knowns” or “unknowns” we should talk about already known or so far unknown (not yet known) things. The different aspects of these things are progressively revealed given enough exposure to time and our ability to sense emergent relationships.

However, as we stated above, we can’t talk about knowledge without considering the dimension of time. Time brings to the table many properties of knowledge that would otherwise not have a place: eventuality (occurrences that can be either anticipated or not), emergence (occurrences that are the result of the complex interaction of elements, both known or unknown), awareness (we can’t be aware of all variables at the same time, our awareness window is limited), bounded applicability (knowledge is limited in its applicability to a particular domain, but its applicability can change over time), etc.

Let’s imagine how our knowledge matrix would look like now:

When adding time to the mix, we can resignify the classic Rumnsfeld knowledge matrix and talk about the different dimensions of time as they pertain to the way we describe our knowledge:

  • PAST. The descriptive dimension of things already know or used to know.

    • known or unknown events: this is like describing our state of knowledge about something in the past, “back then, we ignored that we didn’t know about this or that”
  • PRESENT. The descriptive dimension of the knower who is always situated in the present moment.

    • aware or unaware events: what is your current state of awareness in relation to the actual variables required to generate accurate forecasts? what is your current state of awareness about your past knowledge?
  • FUTURE. The descriptive dimension of anticipation, our way to describe things in terms of likelihood, probability and possible scenarios.

    • predictable or unpredictable events: what are the predictable scenarios you can consider based on past knowledge and present awareness?

A more complete version of a knowledge model would look like this then:

When the old model talks about “known unknowns” or “unknown unknowns” it is basically talking about our state of awareness in relation to things of the world. From this perspective, “unknown unknowns” actually means things that are not predictable because we are not aware of the them. Only things we are aware of can be, in consequence, predictable with a certain degree of certainty. This awareness is affected by circumstances and time. It is our relation with the systems we interact with (be them computer systems, society systems, environmental systems, etc.) that reveals what is considered known or unknown.

These interactions are always constrained by systemic conditions that create patterns in complex ways. The existence of these patterns is what makes collective efforts like MITRE ATT&CK possible: repetition and anticipation of human behaviour constrained by available hacking tools and vulnerable systems, encoded in the form of tactics, techniques and procedures.

  1. Moreover, how did we even determine that these “anomalous” patterns were representative of suspicious cyber attack activities, as opposed to other system anomalies that are not the consequence of intentional threat actor activities? This is another question we will not dive into in this article, but sounds like fun material for another rumbling. ↩︎