Home / Uncategorized / Complexity Science in Cyber Security

Complexity Science in Cyber Security

Complexity Science in Cyber Security: Computers and the Internet have become indispensable for homes and organizations alike. The dependence on them increases by the day, be it for household users, in mission-critical space control, power grid management, medical applications or for corporate finance systems. But also in parallel are the challenges related to the continued and reliable delivery of service which is becoming a bigger concern for organizations. Cybersecurity is at the forefront of all threats that the organizations face, with a majority rating it higher than the threat of terrorism or a natural disaster.

In spite of all the focus Cybersecurity has had, it has been a challenging journey so far. The global spend on IT Security is expected to hit $120 Billion by 2017 [4], and that is one area where the IT budget for most companies either stayed flat or slightly increased even in the recent financial crises [5]. But that has not substantially reduced the number of vulnerabilities in software or attacks by criminal groups.

The US Government has been preparing for a “Cyber Pearl Harbour” [18] style all-out attack that might paralyze essential services, and even cause physical destruction of property and lives. It is expected to be orchestrated from the criminal underbelly of countries like China, Russia or North Korea.

Complexity Science in Cyber Security

There is a need to fundamentally rethink our approach to securing our IT systems. Our approach to security is siloed and focuses on point solutions so far for specific threats like antiviruses, spam filters, intrusion detections, and firewalls. But we are at a stage where Cyber systems are much more than just tin-and-wire and software.

They involve systemic issues with a social, economic and political component. The interconnectedness of systems, intertwined with a people element makes IT systems un-isolable from the human element. Complex Cyber systems today almost have a life of their own; Cyber systems are complex adaptive systems that we have tried to understand and tackle using more traditional theories.

2. Complex Systems – an Introduction

Before getting into the motivations of treating a Cyber system as a Complex system, here is a brief of what a Complex system is. Note that the term “system” could be any combination of people, process or technology that fulfills a certain purpose. The wristwatch you are wearing, the sub-oceanic reefs, or the economy of a country – are all examples of a “system”.

In very simple terms, a Complex system is any system in which the parts of the system and their interactions together represent a specific behavior, such that an analysis of all its constituent parts cannot explain the behavior. In such systems, the cause and effect can not necessarily be related and the relationships are non-linear – a small change could have a disproportionate impact. In other words, as Aristotle said: “the whole is greater than the sum of its parts”.

Complex Systems

One of the most popular examples used in this context is of an urban traffic system and the emergence of traffic jams; analysis of individual cars and car drivers cannot help explain the patterns and emergence of traffic jams.

While a Complex Adaptive System (CAS) also has characteristics of self-learning, emergence, and evolution among the participants of the complex system. The participants or agents in a CAS show heterogeneous behavior. Their behavior and interactions with other agents continuously evolving. The key characteristics for a system to be characterized as Complex Adaptive are:

  • The behavior or output cannot be predicted simply by analysing the parts and inputs of the system
  • The behavior of the system is emergent and changes with time. The same input and environmental conditions do not always guarantee the same output.
  • The participants or agents of a system (human agents in this case) are self-learning and change their behavior based on the outcome of the previous experience

Complex processes are often confused with “complicated” processes. A complex process is something that has an unpredictable output, however simple the steps might seem. A complicated process is something with lots of intricate steps and difficult to achieve pre-conditions but with a predictable outcome. An often used example is: making tea is Complex (at least for me… I can never get a cup that tastes the same as the previous one), building a car is Complicated. David Snowden’s Cynefin framework gives a more formal description of the terms.

Complex Systems

Complexity as a field of study isn’t new, its roots could be traced back to the work on Metaphysics by Aristotle. Complexity theory is largely inspired by biological systems and has been used in social science, epidemiology, and natural science study for some time now.

It has been used in the study of economic systems and free markets alike and gaining acceptance for financial risk analysis as well (Refer my paper on Complexity in Financial risk analysis here ). It is not something that has been very popular in the Cybersecurity so far, but there is growing acceptance of complexity thinking in applied sciences and computing.

3. The motivation for using Complexity in Cyber Security

IT systems today are all designed and built by us (as in the human community of IT workers in an organization plus suppliers) and we collectively have all the knowledge there is to have regarding these systems. Why then do we see new attacks on IT systems every day that we had never expected, attacking vulnerabilities that we never knew existed?

One of the reasons is the fact that any IT system is designed by thousands of individuals across the whole technology stack from the business application down to the underlying network components and hardware it sits on. That introduces a strong human element in the design of Cybersystems and opportunities become ubiquitous for the introduction of flaws that could become vulnerabilities.

Complexity in Cyber Security

Most organizations have multiple layers of defense for their critical systems (layers of firewalls, IDS, hardened O/S, strong authentication etc), but attacks still happen. More often than not, computer break-ins are a collision of circumstances rather than a standalone vulnerability being exploited for a cyber-attack to succeed. In other words, it’s the “whole” of the circumstances and actions of the attackers that cause the damage.

3.1 Reductionism vs Holism approach

Reductionism and Holism are two contradictory philosophical approaches for the analysis and design of any object or system. The Reductionists argue that any system can be reduced to its parts and analyzed by “reducing” it to the constituent elements; while the Holists argue that the whole is greater than the sum so a system cannot be analyzed merely by understanding its parts [10].

Reductionists argue that all systems and machines can be understood by looking at its constituent parts. Most of the modern sciences and analysis methods are based on the reductionist approach, and to be fair they have served us quite well so far.

Reductionism vs Holism approach

By understanding what each part does you really can analyse what a wristwatch would do, by designing each part separately you really can make a car behave the way you want to, or by analyzing the position of the celestial objects we can accurately predict the next Solar eclipse. Reductionism has a strong focus on causality – there is a cause to an effect.

But that is the extent to which the reductionist viewpoint can help explain the behavior of a system. When it comes to emergent systems like the human behavior, Socio-economic systems, Biological systems or Socio-cyber systems, the reductionist approach has its limitations. Simple examples like the human body, the response of a mob to a political stimulus, the reaction of the financial market to the news of a merger, or even a traffic jam – cannot be predicted even when studied in detail the behavior of the constituent members of all these ‘systems’.

We have traditionally looked at Cybersecurity with a Reductionist lens with specific point solutions for individual problems and tried to anticipate the attacks a cyber-criminal might do against known vulnerabilities. It’s time we start looking at Cybersecurity with an alternate Holism approach as well.

3.2 Computer Break-ins are like pathogen infections

Computer break-ins are more like viral or bacterial infections than a home or car break-in. A burglar breaking into a house can’t really use that as a launch pad to break into the neighbors. Neither can the vulnerability in one lock system for a car be exploited for a million others across the globe simultaneously.

They are more akin to microbial infections in the human body, they can propagate the infection as humans do; they are likely to impact large portions of the population of a species as long as they are “connected” to each other and in case of severe infections the systems are generally ‘isolated’; as are people put in ‘quarantine’ to reduce further spread .

Computer Break-ins

Even the lexicon of Cyber systems uses biological metaphors – Virus, Worms, infections etc. It has many parallels in epidemiology, but the design principles often employed in Cyber systems are not aligned to the natural selection principles. Cyber systems rely a lot on the uniformity of processes and technology components as against diversity of genes in organisms of a species that make the species more resilient to epidemic attacks.

The Flu pandemic of 1918 killed ~50M people, more than the Great War itself. Almost all of humanity was infected, but why did it impact the 20-40yr olds more than others? Perhaps a difference in the body structure, causing a different reaction to an attack?

Complexity theory has gained great traction and proven quite useful in epidemiology, understanding the patterns of spread of infections and ways of controlling them. Researchers are now turning towards using their learnings from natural sciences to Cybersystems.

4. Approach to Mitigating security threats

Traditionally there have been two different and complementary approaches to mitigate security threats to Cyber systems that are in use today in most practical systems.

4.1 Formal validation and testing

This approach primarily relies on the testing team of any IT system to discover any faults in the system that could expose a vulnerability and can be exploited by attackers. This could be functional testing to validate the system gives the correct answer as it is expected, penetration testing to validate its resilience to specific attacks, and availability/ resilience testing. The scope of this testing is generally the system itself, not the frontline defenses that are deployed around it.

Formal validation and testing

This is a useful approach for fairly simple self-contained systems where the possible user journeys are fairly straightforward. For most other interconnected systems, formal validation alone is not sufficient as it’s never possible to ‘test it all’.

Test automation is a popular approach to reduce the human dependency of the validation processes, but as Turing’s Halting problem of Undecidability proves – it’s impossible to build a machine that tests another one in all cases. Testing is only anecdotal evidence that the system works in the scenarios it has been tested for, and automation helps get that anecdotal evidence quicker.

4.2 Encapsulation and boundaries of defense

For systems that cannot be fully validated through formal testing processes, we deploy additional layers of defenses in the form of Firewalls or network segregation or encapsulate them into virtual machines with limited visibility of the rest of the network etc. Other common techniques of additional defense mechanism are Intrusion Prevention systems, Anti-virus etc.

This approach is ubiquitous in most organizations as a defense from the unknown attacks as it’s virtually impossible to formally ensure that a piece of software is free from any vulnerability and will remain so.

Encapsulation and boundaries of defense

Approaches using Complexity sciences could prove quite useful complementary to the more traditional ways. The versatility of computer systems makes them unpredictable, or capable of emergent behavior that cannot be predicted without “running it”. Also running it in isolation in a test environment is not the same as running a system in the real environment that it is supposed to be in, as it’s the collision of multiple events that causes the apparent emergent behavior (recalling holism!).

4.3 Diversity over Uniformity

Robustness to disturbances is a key emergent behavior in biological systems. Imagine a species with all organisms in it having the exact same genetic structure, same body configuration, similar antibodies, and immune system – the outbreak of a viral infection would have wiped out a complete community. But that does not happen because we are all formed differently and all of us have different resistance to infections.

Similarly, some mission-critical Cybersystems, especially in the Aerospace and Medical industry, implement “diversity implementations” of the same functionality and centralized ‘voting’ function decides the response to the requester if the results from the diverse implementations do not match.

Diversity over Uniformity

It’s fairly common to have redundant copies of mission-critical systems in organizations, but they are homogenous implementations rather than diverse – making them equally susceptible to all the faults and vulnerabilities as the primary ones. If the implementation of the redundant systems is made different from the primary – a different O/S, different application container or database versions – the two variants would have a different level of resilience to certain attacks. Even a change in the sequence of memory stack access could vary the response to a buffer overflow attack on the variants highlighting the central ‘voting’ system that there is something wrong somewhere.

As long as the input data and the business function of the implementation are the same, any deviations in the response of the implementations is a sign of potential attack. If a true service-based architecture is implemented, every ‘service’ could have multiple (but a small number of) heterogeneous implementations and the overall business function could randomly select which implementation of a service it uses for every new user request. A fairly large number of different execution paths could be achieved using this approach, increasing the resilience of the system.

Multi-variant Execution Environments (MVEE) have been developed, where applications with the slight difference in implementation are executed in lockstep and their response to a request is monitored. These have proven quite useful in intrusion detection trying to change the behavior of the code, or even identifying existing flaws where the variants respond differently to a request.

On similar lines, using the N-version programming concept an N-version antivirus was developed at the University of Michigan that had heterogeneous implementations looking at any new files for corresponding virus signatures. The result was a more resilient anti-virus system, less prone to attacks on itself and 35% better detection coverage across the estate.

4.4 Agent-Based Modelling (ABM)

One of the key areas of study in Complexity science is Agent-Based Modelling, a simulation modeling technique.

Agent-Based Modelling is a simulation modeling technique used to understand and analyze the behavior of Complex systems, specifically Complex adaptive systems. The individuals or groups interacting with each other in the Complex system are represented by artificial ‘agents’ and act by a predefined set of rules. The Agents could evolve their behavior and adapt as per the circumstances. Contrary to the Deductive reasoning that has been most popularly used to explain the behavior of social and economic systems, Simulation does not try to generalize the system and agents’ behavior.

ABMs have been quite popular to study things like crowd management behavior in case of a fire evacuation, the spread of epidemics, to explain market behavior and recently financial risk analysis. It is a bottom-up modeling technique wherein the behavior of each agent is programmed separately and can be different from all other agents. The evolutionary and self-learning behavior of agents could be implemented using various techniques, Genetic Algorithm implementation is one of the popular ones.

Agent-Based Modelling (ABM)

Cyber systems are interconnections between software modules, a wiring of logical circuits, microchips, the Internet and a number of users (system users or end users). These interactions and actors can be implemented in a simulation model in order to do what-if analysis, predict the impact of changing parameters and interactions between the actors of the model.

Simulation models have been used for analyzing the performance characteristics based on application characteristics and user behavior for a long time now – some of the popular Capacity & performance management tools use the technique. Similar techniques can be applied to analyze the response of Cyber systems to threats, designing a fault-tolerant architecture and analyzing the extent of emergent robustness due to the diversity of implementation.

One of the key areas of focus in Agent-Based modeling is the “self-learning” process of agents. In the real world, the behavior of an attacker would evolve with experience. This aspect of an agent’s behavior is implemented by a learning process for agents, Genetic Algorithm’s being one of the most popular techniques for that. Genetic Algorithms have been used for designing automobile and aeronautics engineering, optimizing the performance of Formula One cars and simulating the investor learning behavior in simulated stock markets (implemented using Agent-Based models).

So these are the Complexity Science in Cyber Security.

 

About aqeel

Check Also

Use of Taps and Span Ports in Cyber Intelligence Applications

Use of Taps and Span Ports in Cyber Intelligence Applications: Cyber warfare is unfortunately no …

Leave a Reply

Your email address will not be published. Required fields are marked *