● Saudi Aramco · ICS Pentesting

ICS Pentesting Tool

Software for penetration testers and IT security teams: a comprehensive set of advanced features that lets even less experienced specialists act like the attacker — and protect the world’s largest oil producer.

This case is under NDA

Enter the password to see the content.

ICS Pentesting tool poster: software for penetration testers and IT security teams

Problem background

There is an acute shortage of qualified personnel in the information security market. According to research, the staff shortage has been the number one problem since 2017, and it got much worse at the start of the COVID-19 pandemic. Companies all over the world started working remotely, and cyber security people became categorically scarce. Worse still, a lack of specialists combined with vulnerabilities in a company’s systems can affect relations between countries. One of the fundamental and critical areas for the whole world is oil production, and my client — Saudi Arabia — is one of the three most important players in the world’s supply of heating oil.

They need a lot of information security specialists. It is impossible to quickly train many new high-level IS specialists just by throwing money at it — the time to learn and gain decent experience is too long, and the business doesn’t have that time. The threat is right here, right now. The other option is to hand most of the responsibilities to an automated system in which even less qualified experts can work. That’s where I started. Since we’ve already jumped to the solution, let’s look at the steps.

Client

Saudi Aramco, formerly the Arabian-American Oil Co., is the world’s largest oil producer. Officially known as Saudi Arabian Oil Company, it is primarily state-owned and based in Dhahran, Saudi Arabia. It is the world’s most profitable company, eclipsing even tech giants such as Apple and Alphabet’s Google — check the market cap. To work effectively with this client, I brought together all the key areas of software development:

Design & Research, Information Security, Development and Business overlapping — it’s a match

Research and strategy

The company has many areas of interest, but in industrial information security the asset to protect is the production function itself — as long as it works correctly, all is well. We need to protect the function, not just look for open ports. That is why continuity matters more to us than confidentiality. We ran stakeholder interviews to open lines of communication and align the team on a shared vision. By analysing competitors, we uncovered potential UX opportunities. And we did user research to make sure we fully understood customers’ needs and challenges, so there would be fewer revisions and less wasted time further down the road.

Our main focus, though, was the SMEs (subject-matter experts) — getting the specifics of their work. For example: should we notify about something critical that has already been solved automatically, or not? The answer can save a company a lot of resources. I conducted many interviews and compiled a table of recommendations on which correlation rules to apply to which type of attack. Eventually I was able to identify the right notification threshold for each specific vulnerability in the system. Here it is for Honeywell and Yokogawa assets:

Detection threshold: true negative, false negative, false positive, true positiveShifted detection threshold reducing false negatives

Recommended sensitivity per MITRE ATT&CK for ICS tactic

So if an anomaly-based IDPS is over-sensitive (many false positives) or under-sensitive (few true positives), an automated AI system — reinforcement learning, for example — can be used to optimise its performance. I also found out it’s not only about oil. We had to keep in mind other areas too:

  • Mining
  • Metallurgy
  • Cement
  • Chemicals
  • Pulp and paper
  • Energy
  • Transport
  • APCS (automated process control systems)
  • Water supply
  • Waste recycling and incineration

We also created personas of the enemy. Attackers fall into two groups: intelligence services and criminals. Criminals are simpler — they don’t have many resources, although there are exceptions, like Fxmsp. We also have to keep in mind that some countries actively provide resources to hacker groups to solve political issues. But in general, anyone can attack. Even your 12-year-old nephew.

Hypotheses

The main idea is to simplify the cyber operator’s job in several ways:

  • filter out actions that aren’t applicable, based on what has been collected and discovered about the scenario
  • recommend the most suitable actions for the context
  • track and monitor the risks

We decided to start with a low-level expert system that assists the operator in discovering and modelling the environment (typically IT infrastructure), collecting facts and — based on them — recommending what is doable and foreseeable to reach the goal of the mission. Our system has to work on big data. For example, here are the data statistics for just one branch of the company:

Automation statistics for one branch: 109, 217 and 344

Despite all the research, I missed some details at the very first stage — when we were setting the goal for the first year of work on the project:

How we changed the original goal, and the first conflicts

Limitations: do not diminish functionality

There were problems at the level of communication as well — between managers, and between departments.

It’s time for leadership

As a result, we went back to an earlier step of the business process… and no, it’s not «client needs». In our case energy is at the head of everything: no power, nothing works. The second major change was the shift to the idea that security is a process, not a product. Information security is part of functional safety — they are interlinked. Functional safety is about preventing accidents, and it is the responsibility of those in charge of the process, not of the security specialists. The upshot is that security is complex and involves many decision makers. These key ideas became the foundation of the product.

Here are some research findings that helped me communicate and defend my vision of the product to all stakeholders.

Unstructured findings turned into structured insights

Like it? Some more:

Research findings: budgets, OT and IT, attack surface

Survey results and charts

CJM

Even people on the client side aren’t always well versed in their own field, which makes collecting data very difficult. Fortunately, we had people from the industry. We also concluded that it’s easier to teach an ACS person about cryptography than a cryptographer about industrial systems.

Customer journey maps for the red team, blue team, purple team, government and incident response

The CJM helped us identify implicit insights. In energy, for example, everything is based on fairly simple Ohm’s law (not an insight :). On the surface there are electro-mechanical relays with zero attack surface, but there is also telemechanics — the very shield that controls power volumes. Only then come computers and networks: bus processes, bus stations, networks within the network, and typical solutions; telecom cabinets, video surveillance, metering and data monitoring. That meant dealing with completely new roles we hadn’t considered before. Where there used to be a relay specialist, there is now also a DCS specialist, an IT specialist and an IS specialist. Who else should we talk to? More room for interviews…

Design

We finally kicked off the interface design phase with a Brand Attributes Workshop. It helped the team agree on common terminology for the visual design language. Based on moodboards, we created mid- to high-fidelity mockups to define the purpose of colour, shape, fonts and icons. The final outcome was a detailed, pixel-perfect interface design, including all screens, elements, states and animations.

Main page and project page

Based on the research and strategy phase, we fleshed out the application’s core elements: information architecture, user flows and wireframes. With usability heuristics in mind, we developed the best possible layout for every key use case. For detailed, professional work with large amounts of data there are two key approaches: graphs and tables. Let’s start with graphs.

UX of the network graph

Node graph

Every stakeholder wants to see data in a table and also as a graphical representation. I paid special attention to interactive graphs. Interactive diagrams are the most challenging task in a modern web browser — the most complex component you can think of on the web (our version runs perfectly even on Intel HD graphics, with WebGL + PIXI). More complex than games, with an infinite number of potential use cases. Of course, I did a lot of iterations and research to refine the UX and the functionality.

Since a graph visualisation is such a complex component, I prototyped and tested almost every new feature. During usability testing we kept looking for the best technical solution and went over potential uses.

Node graph iterations

Testing the animation of a specific device group on the network:

Testing how to highlight selected network devices:

And I always keep performance in mind:

Performance does not drop: large networks rendered smoothly

Tables

Now let’s talk about how we made our tables the best among products of our class. The table is usually the main focus of the page. Tables are visually quite heavy on purpose, but they are never the only visual means of conveying information (WCAG 2.0, 1.4.1). We don’t use vertical dividers, and we have great respect for vertical alignment. Everything is flexible and customisable, yet it’s convenient to work with even without any customisation.

The table is one of the three most complex components of the system. It displays a set of structured data across two or more rows in a scannable way, and I tried to make it as flexible as possible for our customers. And yes, I use zebra stripes, even though they’re not so modern and trendy — our customers prefer them. Of course, our tables fully follow the WCAG 2.0 keyboard accessibility guidelines and include a description of the keyboard interactions.

Table anatomy and states

Resizable columns? Of course! There are so many screen resolutions on the market today, from 640px to 8096px, and the table adapts to absolutely any of them. Draggable columns? Sure, done.

Cards or rows? Both!

List of playbooks

We were targeting specialists with a lower professional level. But at the pilot launch we noticed that even high-level experts wanted to perform tasks through our interface — it’s just faster and more convenient. Sounds good, but it made my work harder: it’s difficult to combine UX patterns for experts and novices in one system.

What is a playbook? A playbook is a step-by-step manual with many branches of decision-making — in our case, an automated one. It’s a ready-made multi-step script that adapts to a specific situation and lets the user exploit a vulnerability in one click, or perform any other operation, such as deploying a server or installing software. Playbooks are, of course, based on CVE and CPE, and they also rely on indicators of compromise (IOC).

We created an auto-generated interface, so the operator always has a convenient form to customise a playbook if needed.

List of playbooks, as cards and as rows

A small use case: a network activity monitoring tool sends us an incident notification. In networks, we can come across indications like these, which we can investigate as part of a forensic examination of the incident:

  • detection of network probes, signature matches, etc.
  • unusual connections, activity or traffic profiles; new protocols or unusual protocol states and transitions
  • increased log data from network devices, and alarms from the IDPS

Then, as a second step, indicators of compromise appear in computer systems, for example:

  • unexpected authentication, access, modifications, etc.
  • performance issues (including crashes and reboots)
  • incomplete or missing system or application log files, unfamiliar processes running, and changes to file systems, permissions or sizes

If a condition from the first block is met, followed by one from the second, a set of matching playbooks is generated. The operator simply selects the device in the graph and runs the playbook they need. Many of them are based on CVE and CPE.

CVE and CPE

Playbook features

Terminal

Black and white themes

Components

Storybook

I paid great attention to every component. Of course, all animations are adapted for both light and dark themes. For example, the date range picker:

UI kit

Failed idea: an offensive and defensive solution to fight APTs

Final product: a flexible solution to respond quickly to any threat

Since nothing in the world lasts forever, we regularly ran surveys on the following questions:

  • Is the employee trained to use the solution?
  • Is technical support for users organised?
  • Is technical support monitored?
  • What is the procedure for responding to computer incidents?
  • How is the effectiveness of protection audited regularly?

The result of my work in numbers:

Results in numbers: 42, ×3, 383 and 850

← All cases