Monday, November 21, 2022

Security Incident Response in the Cloud: A Few Ideas

This quick blog is essentially a summary of our (joint with Marshall from Mandiant) Google Cloud Next 2022 conference presentation (video)…


This quick blog is essentially a summary of our (joint with Marshall from Mandiant) Google Cloud Next 2022 conference presentation (video) and a pointer to a just-released podcast on the same topic — security incident response (IR) in public cloud.

In our Next presentation, we only had 18.5 minutes to present a few fun and insightful things about security incident response in the cloud.

Here’s what we decided. We focused on three challenges that we observed with organizations preparing for security incident response in the cloud, these are:

  • Skills: Cloud IR requires both solid security incident response skills and equally solid cloud native technologies skills
  • Joint nature: Many (but not all) cloud incidents will involve a CSP, 
    and many will involve a client, a cloud provider and one or more security service providers
  • Data: In many cases, telemetry, logs, traces data won’t be available or won’t be available via familiar mechanisms.

Next, we decided to focus on critical differences as well as similarities — no less critical — between security incident response on premise and in public cloud.

Now, if you want a one — line summary, the similarities mostly stem from the facts that the threat actors ultimately need to achieve their goals, and that responders need to know the environment to respond well (Duh, no brainer? Perhaps, but it affects how you do IR).

Here are the similarities:

  • Data preservation requirements.
  • Comprehensive understanding of the environment.
  • Standard investigative techniques have not changed.
  • Log data needs to be retained, normalized, and analyzed. Time Zones and time skew must be addressed.
  • Each incident is different.

Similarly, the differences mostly stem from the fact that cloud technology is often different, and operational practices for the teams behind called environments are different as well. As a side note, while people want to focus on logs from cloud services and containers, the fact that environments are just run differently, and jointly with your cloud provider partner, and that affects IR quite a lot.

Here are the differences:

  • Ephemeral & dynamic nature of the cloud.
  • Deep technical expertise of cloud native services required.
  • Different baseline and norms.
  • Log data retention, understanding, context and volume
  • Reliant on CSP & customer for relevant data.

Please watch the video and listen to the podcast. By the way, they cover completely different things, and in the podcast specifically, we share some deep secrets of how Google does IR in the cloud …

Related blogs on cloud security:


Originally published at Medium.

Security Incident Response in the Cloud: A Few Ideas

This quick blog is essentially a summary of our (joint with Marshall from Mandiant) Google Cloud Next 2022 conference presentation (video)…


This quick blog is essentially a summary of our (joint with Marshall from Mandiant) Google Cloud Next 2022 conference presentation (video) and a pointer to a just-released podcast on the same topic — security incident response (IR) in public cloud.

In our Next presentation, we only had 18.5 minutes to present a few fun and insightful things about security incident response in the cloud.

Here’s what we decided. We focused on three challenges that we observed with organizations preparing for security incident response in the cloud, these are:

  • Skills: Cloud IR requires both solid security incident response skills and equally solid cloud native technologies skills
  • Joint nature: Many (but not all) cloud incidents will involve a CSP, 
    and many will involve a client, a cloud provider and one or more security service providers
  • Data: In many cases, telemetry, logs, traces data won’t be available or won’t be available via familiar mechanisms.

Next, we decided to focus on critical differences as well as similarities — no less critical — between security incident response on premise and in public cloud.

Now, if you want a one — line summary, the similarities mostly stem from the facts that the threat actors ultimately need to achieve their goals, and that responders need to know the environment to respond well (Duh, no brainer? Perhaps, but it affects how you do IR).

Here are the similarities:

  • Data preservation requirements.
  • Comprehensive understanding of the environment.
  • Standard investigative techniques have not changed.
  • Log data needs to be retained, normalized, and analyzed. Time Zones and time skew must be addressed.
  • Each incident is different.

Similarly, the differences mostly stem from the fact that cloud technology is often different, and operational practices for the teams behind called environments are different as well. As a side note, while people want to focus on logs from cloud services and containers, the fact that environments are just run differently, and jointly with your cloud provider partner, and that affects IR quite a lot.

Here are the differences:

  • Ephemeral & dynamic nature of the cloud.
  • Deep technical expertise of cloud native services required.
  • Different baseline and norms.
  • Log data retention, understanding, context and volume
  • Reliant on CSP & customer for relevant data.

Please watch the video and listen to the podcast. By the way, they cover completely different things, and in the podcast specifically, we share some deep secrets of how Google does IR in the cloud …

Related blogs on cloud security:


Originally published at Medium.

Thursday, November 17, 2022

More SRE Lessons for SOC: Simplicity Helps Security

As we discussed in our blogs, “Achieving Autonomic Security Operations: Reducing toil”, “Achieving Autonomic Security Operations…


As we discussed in our blogs, “Achieving Autonomic Security Operations: Reducing toil”, “Achieving Autonomic Security Operations: Automation as a Force Multiplier,” “Achieving Autonomic Security Operations: Why metrics matter (but not how you think)”, and the latest “More SRE Lessons for SOC: Release Engineering Ideas” your Security Operations Center (SOC) can learn a lot from what IT ops discovered during the Site Reliability Engineering (SRE) and DevOps revolution.

Let’s dive into another fascinating area of SRE wisdom that is deceptively simple — the principle of … simplicity (SRE book, Chapter 9 “Simplicity”). Say what? This sounds abstract and philosophical, how can it help my SOC today? Well, let’s find out!

The first point they make is a reminder of what makes it all exciting: “Software systems are inherently dynamic and unstable.” But SREs have it easy, here in our beloved realm of cyber, we don’t just have “systems that are inherently dynamic and unstable” but also attackers that affect them in a set of dynamic, beautiful (sometimes ugly) and unpredictable ways. 10X fun assured! So, yes, this is a big part of why security is fun, but also tricky. This means we need simplicity even more.

But what is simplicity? Phil’s 8 megatrends blog reminds us about this by calling one of his cloud megatrends “Simplicity: Cloud as an abstraction machine.” Specifically:

“A common concern about moving to the cloud is that it’s too complex. Admittedly, starting from scratch and learning all the features the cloud offers may seem daunting. Yet even today’s feature-rich cloud offerings are much simpler than prior on-prem environments — which are far less robust. […]
Cloud is only going to get simpler because the market rewards the cloud providers for abstraction and autonomic operations. In turn, this permits more scale and more use, creating a relentless hunt for abstraction. […]
The increased simplicity and abstraction permit more explicit assertion of security policy in more precise and expressive ways applied in the right context. Simply put, simplicity removes more potential surprise — and security issues are often rooted in surprise.”

Thus, removing surprises and reducing unique/broken/snowflake systems and silo’d processes will make security (and SOC in particular) easier. SREs have already figured much of this out.

To dive into the details, they say that their “job is to keep agility and stability in balance in the system.” For us in security, another (tricky) dimension gets added: the threat. Occasionally, compliance gets blended in too, and that may push the organization to old, ultimately more fragile ways of doing things (as a side note, compliance that reduces security by pushing for outdated approaches is a real thing). Fragile systems (and processes) + threats + regulations = a lot of complexity. And a complex system is always hard to monitor for threats, which are then also hard to investigate, making SOC life a pain.

Also, SREs say that “reliable processes tend to actually increase developer agility.” We wish we can always say that secure processes do the same. And, how about that, many actually do! Here at Google we have many examples of something that is secure and good for developers and good for business. Think well-implemented zero trust, that helps users, simplifies IT and reduces risk. It also makes the job of a SOC easier. Anyhow, we digress a bit…

Let’s look at more manifestations of the SRE principle of simplicity. Now, this is really juicy: “Essential complexity is the complexity inherent in a given situation that cannot be removed from a problem definition, whereas accidental complexity is more fluid and can be resolved with engineering effort.” This line alone is magical for the SOC!

I’ve always said, for example, that SIEM is complex, largely because its mission is complex. Now, if your SIEM vendor makes SIEM as complex as the mission, but not more complex, you may have a winner. Ideally, it should make it simpler, but frankly it won’t make it simple. Because it is simply not! However, excessive and removable complexity is a dire enemy of security.

Put another way, detection is hard, but some tools make it harder. Don’t use those, use the ones that don’t add complexity.Push back when accidental complexity is introduced” as SREs say. We definitely need to fight this battle in the SOC.

Further, if SREs say that “every new line of code written is a liability”, then in the SOC every detection rule is. You deploy this detection, and then you create work, toil in some cases, for you or your colleagues who have to respond to the resulting alerts. Think about it! The way to make this work, rather than fail, is to have a solid lifecycle for all detection content, in my view. Then every line you add delivers more value than liability, even if liability is never 0.

“The ability to make changes to parts of the system in isolation is essential to creating a supportable system.” So? To me, a bad “integrated” platform is worse than two good tools that can hook into each other via APIs. This is why I think best of breed ultimately won in security and suites and broad over-promising platforms lost (although this point is frankly very contentious, so let me quickly shuffle away from this particular argument…)

“Simplicity is an important goal for SREs, as it strongly correlates with reliability: simple software breaks less often and is easier and faster to fix when it does break. Simple systems are easier to understand, easier to maintain, and easier to test.” And of course simple systems and processes are easier to secure and monitor for threats. Now, some readers may say “but wait, I am a bank with 300 years of history, every process I have is complex, not simple.” Sure, but you still get to “push back when accidental complexity is introduced.” If your IT is inherently complex, the fight for reducing “excessive and removable” complexity is needed more, not less.

Naturally, simpler systems in your SOC help even more. Do you really need this rule with 5 correlated states or a playbook with 30 decision boxes? And if you have to make a 30 box alert triage process flowchart, then don’t make a 70 box flowchart?

To summarize, they say “software simplicity is a prerequisite to reliability.” We can add: also for security and threat “detectability” and “investigability” (can we just say observability?).

So, your mission, should you choose to accept it, is to push unneeded complexity out of your SOC. Where does complexity hide in your SOC? In detection content? Playbooks? Escalation processes? Workflows that involve other teams? Metrics and associated data collection? This is where you go and look at reducing the complexity.

Finally, “For SREs, simplicity is an end-to-end goal: it should extend beyond the code itself to the system architecture and the tools and processes used to manage the software lifecycle.“ I wish we had this for security and SOC in particular.

P.S. So I reread this post a few times (well, OK, more than a few times) and it still looks more conceptual than practical. So, perhaps one practical tip: when you encounter or create a SOC process, or a piece of technology in or around your SOC, think “does this add complexity?” and “is this complexity truly necessary?” If YES and NO, then think how to do things differently. If YES and YES, then think if the second question answer really is a YES…

Related blog posts:


Originally published at Medium.

Friday, November 11, 2022

Use Cloud Securely? What Does This Even Mean?!

An influential Gartner paper stated many years ago that “Clouds Are Secure: Are You Using Them Securely?”


An influential Gartner paper stated many years ago that “Clouds Are Secure: Are You Using Them Securely?”

So began the legend of cloud security vs secure clouds.

When I was an analyst, we sometimes had to discuss with clients whether various providers of public cloud services are “secure.” Over time, these discussions dwindled to a small trickle as clients ultimately saw enough evidence that cloud infrastructure is indeed radically more secure than most data centers. Admittedly, I still meet an occasional character who does not believe this, but I assure you, it is the truth. Moreover, cloud infrastructure is getting more secure all the time. However, security issues with client cloud environments did not dwindle to a corresponding trickle, and show few signs of such “dwindling.”

In fact, this situation led to the following truism: “Through 2025, 99% of cloud security failures will be the customer’s fault.” (source, also Gartner)

Thus, the explanation was always that the clouds are secure, but clients are not using them securely, and so they are to blame for the outcomes. As one of my current colleagues said on a call “this sounds a bit ‘blamy’” … and, yeah, it sure does.

So, what does USE CLOUD SECURELY mean in practical terms?

What entails secure use of the cloud?

What should one actually do to use the cloud securely?

What should one not do to use the cloud securely?

Naturally, I tried this first:

(source)

The results were interesting, but they mostly reinforced my impression that there is a wide confusion in the industry about what “use cloud securely” really means.

Next, I tried reading a whole load of materials such as “How to Make Cloud More Secure Than Your Own Data Center” , “Staying Secure in the Cloud Is a Shared Responsibility”, “Hybrid Cloud Security Best Practices” (and dozens of others, list available upon request, much of the content is paywalled, analysts need to eat).

This brought some clarity, but also an intense feeling of “it depends.” While not contesting this, I think answering this question with “do proper risk management for cloud environments” or “deploy appropriate security controls” is still not helpful for many. Some others said that this is just about the clients doing what is on their side of the shared responsibility model. However, we all know how well this works out in some cases.

A good (if a bit negative) frame emerged: “unless you are doing X, you are NOT using cloud securely” which for some values of X rings very true

A few islands of agreement emerged as well. These include:

  • You probably need to know what you have in the cloud (obviously, if you don’t, you are not using cloud securely)
  • You need a degree of awareness of real cloud threats and you need to know what threat model
  • You need to configure things securely (and actually know what this means), keep secure defaults, etc
  • You must get cloud IAM right for you (whatever that means, specifically), because ultimately you decide who can access your cloud, and not the provider.
  • You do need to detect threats against your cloud environment, your provider will help but ultimately you know your threat model better

Beyond the above, things start to look more fuzzy and agreement over what “use cloud securely” seems harder to reach.

So, conclusions:

  1. Before we scream at the clouds, we need more consensus and more certainty about what “use cloud securely” means in practical terms.
  2. Yet even after we achieve 1), there will be a lot of “it depends” (such as on risk appetite) left over; providers can help, but not magically do this (even though cloud providers can do more than what we do know, perhaps?)

Thoughts? Reactions?

Definitely expect more on this in the near future!

Related posts:


Originally published at Medium.

Monday, November 07, 2022

Anton’s Security Blog Quarterly Q4 2022

Great blog posts are sometimes hard to find (especially on Medium), so I decided to do a periodic list blog with my favorite posts of the…


Great blog posts are sometimes hard to find (especially on Medium), so I decided to do a periodic list blog with my favorite posts of the past quarter or so.

Here is the next one. The posts below are ranked by lifetime views. This covers both Anton on Security and my posts from Google Cloud blog, and our Cloud Security Podcast too (subscribe).

Top 5 most popular posts of all times (these ended up being the same as last quarter):

  1. “Security Correlation Then and Now: A Sad Truth About SIEM”
  2. “Can We Have “Detection as Code”?”
  3. “New Paper: “Future of the SOC: SOC People — Skills, Not Tiers”
  4. “New Paper: “Future of the SOC: Forces shaping modern security operations”
  5. “Beware: Clown-grade SOCs Still Abound”

Top 5 posts with the most Medium fans (these are also the same as last quarter):

  1. “Security Correlation Then and Now: A Sad Truth About SIEM”
  2. “Beware: Clown-grade SOCs Still Abound”
  3. “Can We Have “Detection as Code”?”
  4. “Why Is Threat Detection Hard?”
  5. “Stop Trying to Take Humans Out of SOC … Except … Wait… Wait… Wait…”

Top 5 Cloud Security Podcast by Google episodes:

  1. Episode 1“Confidentially Speaking”
  2. Episode 2 “Data Security in the Cloud”
  3. EP47 “Megatrends, Macro-changes, Microservices, Oh My! Changes in 2022 and Beyond in Cloud Security”
  4. Episode 3 Automate and/or Die?
  5. EP75 How We Scale Detection and Response at Google: Automation, Metrics, Toil

Random fun new posts:

  1. ”Why Your Security Data Lake Project Will … Well, Actually …”
  2. “Detection as Code? No, DETECTION AS COOKING”
  3. ”On Trust and Transparency in Detection”

Now, fun posts by topic.

Security operations / detection & response:

Data security:

Cloud security:

Enjoy!

Previous posts in this series:


Originally published at Medium.

Dr Anton Chuvakin