SaaS Propagation Cyber Risk: Kill Switches for Security and Observability Agents

SaaS Propagation Cyber Risk: Kill Switches for Security and Observability Agents

๐Ÿ‘5views

SaaS propagation cyber risk is the chance that an attacker compromises a vendor platform and uses its trusted agents or tokens to reach every customer at once. Because EDR, observability and management agents run with root or kernel privilege and call home over allowlisted traffic, defenders need kill switches and ways to detect a rogue vendor.

SaaS Propagation Cyber Risk: Kill Switches for Security and Observability AgentsAndrew Baker's Technology Blog Posts, 02/Dec/2026
https://andrewbaker.ninja/2026/12/02/saas-propagation-cyber-risk-kill-switches-for-security-and-observability-agents/

Article Summary
  • 1.
    What it is
    SaaS propagation cyber risk is the danger that attackers target vendor hubs behind EDR, observability, scanning and remote management agents instead of attacking you directly. The post reviews SolarWinds, Kaseya, Salesloft Drift and CrowdStrike, then covers kill switches and detecting a rogue vendor.
  • 2.
    Why it matters
    Segmentation cuts internal paths, but every privileged agent still talks outbound to one vendor control plane shared with thousands of companies. The article argues most organisations have not designed for that shared corridor.
  • 3.
    Key takeaway
    Segmentation tightens the doors between your rooms, while the vendor hub quietly runs a corridor through all of them.
5,776 words ยท ~29 min read

If you have done the hard and unglamorous work of segmenting your estate this year, splitting production from non production, pulling environments off the public internet and tightening security groups so that one compromised workload cannot wander into the next account, then you have genuinely raised the cost of lateral movement inside your own walls. The uncomfortable follow on question is what a capable attacker does next, and I think the answer becomes fairly obvious once you say it out loud: they stop attacking you directly and start attacking the software as a service (SaaS) platforms that every one of your segments already trusts. Your endpoint detection and response (EDR) agent, your observability agent, your vulnerability scanner and your remote management tooling all sit on every host, almost all of them run with root or kernel privilege, and every one of them phones home to a hub that is shared with thousands of other companies. Compromise that hub and you do not breach one bank, you inherit every customer at once, which in my view makes these vendors the highest value targets in the entire ecosystem.

This post works through that argument, looks at the incidents that show it is not theoretical, and then gets practical about two things I think most organisations have not properly designed for: kill switches for the agents they run everywhere, and some way of noticing when a trusted vendor has gone rogue.

1. Segmentation pushes the attacker up the stack

Segmentation is fundamentally about cutting paths. You draw boundaries between accounts, networks and environments so that a foothold in one place does not translate into a foothold everywhere, and tools like my own sg-tightener exist precisely to automate the closing of paths between workloads that nobody needs. The problem is that every privileged agent you deploy creates a path that crosses those boundaries by design, because the agent in your production account, the agent in your non production account and the agent in your payments account all talk outbound to the same vendor control plane. From the attacker’s point of view the vendor is the single node that is connected to all of your segments, and to all of every other customer’s segments as well.

Your network controls generally will not see this as a path at all, because it is outbound encrypted traffic on port 443 to an allowlisted vendor domain, which is exactly the traffic your firewall team was asked to permit. The connection is initiated from the inside, it is long lived, and it carries instructions back in the other direction: new agent versions, new detection content, configuration changes and, for a lot of products, remote commands. Segmentation tightens the doors between your rooms, while the vendor hub quietly runs a corridor through all of them.

%%{init: {"theme":"base","themeVariables":{"primaryColor":"#1e3a8a","primaryTextColor":"#ffffff","primaryBorderColor":"#ffffff","lineColor":"#f59e0b","textColor":"#ffffff","edgeLabelBackground":"#111827","clusterBkg":"#0f172a","clusterBorder":"#f59e0b","fontSize":"16px"}}}%%
flowchart TB
  V["Vendor control plane<br/>shared by thousands of customers"]:::hub
  subgraph YOU["Your estate: segmented"]
    A1["Prod account<br/>EDR and APM agents"]:::seg
    A2["Non prod account<br/>EDR and APM agents"]:::seg
    A3["Payments account<br/>EDR and APM agents"]:::seg
  end
  subgraph OTHERS["Every other customer"]
    B1["Customer B"]:::other
    B2["Customer C"]:::other
    B3["Customer D and onwards"]:::other
  end
  A1 -- "outbound 443, allowlisted" --> V
  A2 -- "outbound 443, allowlisted" --> V
  A3 -- "outbound 443, allowlisted" --> V
  V -. "updates, config, remote commands" .-> A1
  V -. "updates, config, remote commands" .-> A2
  V -. "updates, config, remote commands" .-> A3
  V -. "same channel" .-> B1
  V -. "same channel" .-> B2
  V -. "same channel" .-> B3
  classDef hub fill:#b91c1c,stroke:#ffffff,color:#ffffff,stroke-width:2px
  classDef seg fill:#1e3a8a,stroke:#ffffff,color:#ffffff
  classDef other fill:#374151,stroke:#ffffff,color:#ffffff

APM in the diagram is application performance monitoring, the in process tracing side of observability products, which matters because those tracers sit inside your applications and see request payloads, headers and sometimes secrets as they pass through.

2. We have already seen this film several times

None of this is new as a pattern, which is part of why I think it will accelerate. What has changed is that the inside of most serious organisations is getting harder, so the relative attractiveness of the shared hub keeps going up.

SolarWinds is the canonical example. Malicious code was injected into builds of the Orion monitoring platform released between March and June 2020, and SolarWinds initially reported that up to 18,000 customers may have installed a tainted version. The detail I find more instructive is from the company’s later investigation, which used DNS data to estimate that fewer than 100 customers had servers that actually communicated with the threat actor. In other words the attacker used the vendor for mass distribution and then chose targets selectively, which is exactly how you would use a hub if you had one.

Kaseya in July 2021 showed the same thing with a remote monitoring and management (RMM) product. The REvil group exploited a vulnerability in Kaseya’s VSA servers (CVE-2021-30116) and used the product’s own legitimate distribution mechanism to push ransomware through the hosts it managed. Kaseya put the impact at around 60 of its customers, mostly managed service providers (MSPs), and fewer than 1,500 downstream businesses, and the company’s response included shutting down its own SaaS servers, which is itself a kill switch, just one operated by the vendor rather than the customer.

The Salesloft Drift breach in 2025 moved the propagation channel from code to credentials. According to Salesloft’s own account, an attacker had access to its GitHub account from as early as March 2025 and eventually stole OAuth tokens for Drift integrations from its cloud environment. OAuth (open authorization) tokens are the delegated access keys that let one SaaS product act inside another, and between 8 and 18 August those tokens were used to pull data from the Salesforce instances of more than 700 organisations, bypassing multi factor authentication (MFA) entirely because a valid token simply is the authentication. Salesforce itself was not exploited. The same shape then repeated with Gainsight in November 2025 and with Klue in 2026. It is worth noticing how many of the Drift victims were security vendors themselves.

CrowdStrike in July 2024 was not an attack, and I want to be precise about that because it gets misrepresented. A defect in a Rapid Response Content update, Channel File 291, crashed Windows hosts running the Falcon sensor, and CrowdStrike’s own root cause analysis states the bug was not exploitable by a threat actor. The reason it belongs in this post is that it measured the bandwidth of a vendor push channel with kernel privilege: the bad content was live for 78 minutes, from 04:09 to 05:27 UTC, and in that window Microsoft estimated that 8.5 million Windows devices were affected. A malicious payload delivered through an equivalent channel would have comparable reach, and it would almost certainly be designed not to announce itself with a blue screen.

{
  "type": "bar",
  "data": {
    "labels": [
      "Salesloft Drift 2025: organisations accessed via stolen OAuth tokens (700+)",
      "Kaseya VSA 2021: downstream businesses hit (fewer than 1,500)",
      "SolarWinds Orion 2020: customers that may have installed the tainted build (up to 18,000)"
    ],
    "datasets": [
      {
        "label": "Organisations reached from a single vendor compromise (approximate, as reported)",
        "data": [700, 1500, 18000],
        "backgroundColor": ["#f59e0b", "#ef4444", "#3b82f6"]
      }
    ]
  },
  "options": {
    "indexAxis": "y",
    "plugins": { "legend": { "display": false }, "title": { "display": true, "text": "One compromise, many victims (log scale)" } },
    "scales": { "x": { "type": "logarithmic", "title": { "display": true, "text": "Organisations (log scale)" } } }
  }
}

The numbers above are not directly comparable, since one counts installations, one counts encrypted businesses and one counts organisations whose data was accessed, but they all describe the same economics: one point of compromise, an audience in the hundreds or thousands. JPMorganChase’s chief information security officer (CISO), Patrick Opet, made essentially this argument in his April 2025 open letter to suppliers, where he described SaaS as having become the default delivery model and warned that it embeds concentration risk, with modern OAuth style integrations dismantling the boundaries that used to sit between third parties and a firm’s internal resources.

3. Take an honest inventory of what runs everywhere

The most useful exercise I know for this is a simple thought experiment. Assume that tomorrow morning an attacker has full control of each vendor’s console, one vendor at a time, and ask what they can do inside your estate from there. Not what the vendor’s marketing says the product does, but what the control plane is technically capable of instructing the agent to do. When you work through it, three properties drive almost all of the risk: the privilege the agent runs with, whether the vendor has a channel to change the agent’s behaviour or issue commands without your involvement, and whether the vendor holds credentials that work inside your environment.

Agent classTypical examplesTypical privilegeWhat a compromised console can do
EDRCrowdStrike Falcon, SentinelOne, Microsoft DefenderKernel or rootPush content the kernel component interprets; run remote commands and scripts; isolate hosts from the network, which is an instant fleetwide denial of service
Observability and APMDatadog, Instana, Dynatrace, New RelicRoot for system probes; in process for tracersUpgrade and reconfigure agents remotely; change what is collected; read request payloads and anything secret that leaks into traces and logs
Vulnerability scanningQualys, Tenable, Rapid7Root, often with stored scan credentialsUse the stored credentials; read a complete map of every unpatched weakness you have
Endpoint and remote managementIntune, Jamf, AWS Systems Manager, RMM toolsSYSTEM or root by designInstall and run anything, which is precisely the Kaseya model
SaaS to SaaS integrationsDrift style chat, CRM and sales toolingOAuth tokens into your data platformsQuery and export data at API speed without touching your network at all

The remote command capabilities are worth looking at concretely, because they are features rather than bugs. CrowdStrike’s Real Time Response (RTR), for example, lets an authorised operator run commands, executables and custom scripts on Windows, macOS and Linux hosts, and its admin API supports executing administrator commands in batch across many hosts. Datadog’s Remote Configuration lets you remotely upgrade agents from version 7.66 and remotely configure them from 7.73. These are genuinely useful capabilities that defenders rely on during incidents, and I am not arguing against them. I am arguing that each one is a fleetwide remote execution or reconfiguration channel whose security is exactly as good as the vendor’s own security, plus the security of whichever of your administrators has a console login.

4. Doomsday scenarios: when the software factory is the hub

Everything so far has been about agents that watch your estate. There is a second class of SaaS hub that is arguably more dangerous, because it does not watch your estate, it builds and changes it. Source control, continuous integration and continuous delivery (CI/CD) platforms, infrastructure as code (IaC) services and package registries sit upstream of everything you run, and in most organisations they hold the most powerful credentials anywhere in the company. If you want a sense of how bad a compromise of one of these platforms could be, it is worth running a few deliberately pessimistic thought experiments, because the incidents we have already had suggest they are less far fetched than they sound.

The rehearsals have happened at smaller scale. In 2021 attackers modified Codecov’s Bash Uploader script so that it sent the environment variables of customers’ CI jobs to a server they controlled, which in practice meant cloud keys, deploy keys and tokens, and it went undetected for about two months until a customer noticed the script’s checksum no longer matched. In January 2023 CircleCI told every customer to rotate any and all secrets stored in CircleCI after malware on one engineer’s laptop stole a session that had already passed two factor authentication, and the company later confirmed some customers’ AWS tokens had been compromised. In March 2025 the tj-actions/changed-files GitHub Action, used in more than 23,000 repositories, had its existing version tags repointed to a malicious commit that dumped secrets from runner memory into build logs; teams that had pinned the action to a specific commit hash were unaffected. Later in 2025 the Shai-Hulud worm went a step further, stealing developer and CI credentials, publishing itself into more npm packages, and pushing GitHub Actions workflows into victims’ repositories to exfiltrate their secrets, which is about as close to a self propagating SaaS supply chain attack as we have seen.

Now scale those up to the platforms themselves. These are hypotheticals, and I am not suggesting any of these providers is weak, only that each is a hub of exactly the kind this post is about:

  1. GitHub itself. Assume an attacker gains write access to GitHub’s own control plane. Every repository’s contents and history become readable, including the secrets people swear they never committed. Workflow files can be modified, so the next build of thousands of products silently includes the attacker’s code, signed by each company’s own release process. Self hosted runners, which typically sit inside customer networks and poll GitHub outbound for jobs, can be handed jobs that execute inside those networks with whatever cloud role the runner holds. Most worrying of all, many organisations let GitHub Actions authenticate to AWS, Azure or Google Cloud using OpenID Connect (OIDC), where the cloud provider trusts tokens signed by GitHub’s issuer. If that issuer’s signing capability were ever compromised, an attacker could in principle mint tokens claiming to be any repository and assume deployment roles in every cloud account that trusts it, with no stolen customer secret required at all.
  2. A hosted CI/CD platform. CI platforms hold the keys that turn source code into production. Compromise one and you hold deploy credentials, signing keys and cloud tokens for every customer at once, and you can alter build steps so that malicious artefacts flow through each customer’s own pipeline and arrive in production looking entirely legitimate. The CircleCI incident is the gentle version of this scenario; the severe version is one where nobody notices for two months, as happened with Codecov.
  3. Jenkins and similar tools. Jenkins is mostly self hosted, which removes the central runtime hub, but it does not remove the supply chain. Plugins come from a central update centre, and a Jenkins controller is often the single most privileged machine in a company, holding credentials for source control, artefact repositories, cloud accounts and production servers. A malicious plugin release that instances pulled automatically would turn thousands of independently run controllers into a coordinated network overnight, which is the Kaseya pattern in a different costume.
  4. Hosted Terraform and IaC platforms. A hosted Terraform service runs plan and apply with credentials that can create, modify or destroy almost anything in your cloud estate. An attacker in that control plane would not need malware at all: a quietly modified apply could open security groups, attach an extra trusted principal to an IAM role, disable logging or delete backups, all of which looks like ordinary infrastructure change and lands with the permissions your platform team deliberately granted. This is also the scenario where segmentation is least helpful, because the IaC platform is the thing that defines your segmentation in the first place.
  5. Package registries. npm, PyPI, Maven Central and container registries are the hubs behind the hubs. Shai-Hulud showed how stolen publish tokens let malware spread from package to package without any further effort from the attacker, and a compromise of a registry’s own infrastructure would let an attacker skip the stealing step entirely.

The common thread is that these platforms do not need to cross your network boundaries to hurt you, because you have already given them the authority to change what sits on both sides of every boundary. Most of the defences are the same principles applied to the software factory:

  1. Pin third party actions, plugins and dependencies to immutable commit hashes or digests, and pull them through a mirror and artefact repository you control rather than straight from the internet; the tj-actions teams that pinned were untouched.
  2. Scope OIDC trust tightly, conditioning cloud roles on specific repositories, branches and deployment environments rather than trusting an entire organisation, and keep the most powerful roles out of CI entirely.
  3. Run self hosted runners as ephemeral, single job instances in isolated accounts with least privilege roles, so a hostile job lands somewhere disposable rather than somewhere central.
  4. Remove long lived secrets from CI wherever possible, and treat any that remain as exposed on the day your CI vendor announces an incident.
  5. Put a human or an independent policy check in front of production applies and releases, using an approval path that does not itself depend on the CI platform.
  6. Make sure you could build and ship an emergency fix if your source control or CI provider were unavailable or untrusted for a week, because the day you need that capability is not the day to start designing it.

5. Blast radius is only half the problem: propagation velocity

Most third party risk conversations stop at blast radius, meaning how much of your estate a vendor can touch. That matters, but the dimension that actually decides whether you survive a rogue vendor is time. The CrowdStrike numbers make the point better than any argument could: averaged across the 78 minute window, the faulty content took down more than a million machines every ten minutes, and nobody at any customer had to do anything for that to happen. If a vendor can change your whole estate in minutes and your process for cutting that vendor off takes an hour, a change ticket and a bridge call, then your kill switch is a recovery tool rather than a containment tool, whatever the policy document calls it.

I would therefore suggest measuring each privileged vendor against five numbers, and being honest about the ones you cannot currently measure at all:

MetricWhat it measures
Propagation radiusHow much of your infrastructure the vendor can affect from its control plane
Propagation velocityHow quickly a vendor initiated change can reach that whole radius
Detection latencyHow long it takes you to notice abnormal vendor behaviour
Containment latencyHow long it takes you to actually sever the vendor’s ability to act
Recovery latencyHow long it takes to restore trusted protection afterwards

The uncomfortable comparison is between the second number and the fourth. If propagation velocity is measured in seconds and containment latency is measured in tens of minutes, the gap between them is the window an attacker gets to operate in, and for most organisations I suspect that gap is far larger than anyone has written down. Closing it means the early stages of containment cannot depend on a human decision; the freeze in particular needs to be something that fires automatically on a defined signal, with humans deciding whether to escalate rather than whether to start.

6. Why I think the central hub model starts to break

If you follow the attacker’s economics through, the vendor hub is the highest return target available: one compromise, thousands of estates, and traffic that every victim has explicitly allowlisted. As the inside of regulated organisations gets more segmented, and as AI assisted vulnerability discovery makes it cheaper to find the one weakness in a vendor’s own build pipeline or token store, I expect more effort to flow towards these hubs rather than less. My prediction is that over the next few years, regulated buyers will increasingly refuse any SaaS product whose architecture includes a central hub with a propagation pathway into customer environments, and will insist that the product is deployed and controlled inside their own accounts.

The market is already moving in this direction, although for slightly different reasons. Datadog now offers bring your own cloud (BYOC) log management, Grafana Labs offers a BYOC deployment that runs in the customer’s AWS or Google Cloud account, and a number of newer observability startups are built BYOC first. The caveat is important, though, and it is where I think a lot of buyers will fool themselves. Most BYOC offerings today are designed around data residency and cloud cost rather than control. Grafana’s model, as its CTO described it, treats the customer’s cloud account as another region of Grafana Cloud operated by Grafana’s own engineers, and Datadog’s BYOC Logs remains fully integrated with the Datadog SaaS platform for querying. That is perfectly reasonable for what those products are trying to do, but it means BYOC moves the data plane into your account while the control plane, meaning who can change the software that runs there, may still sit with the vendor. If the vendor’s deployment pipeline can push to every BYOC customer at once, you have rebuilt the hub with extra steps.

So the property I would actually ask for is not “runs in my account”, it is that nothing the vendor does can reach my estate without passing through a gate that I own. In practice that breaks down into a handful of concrete requirements:

  1. Agents and detection content are pulled from a repository that I mirror and control, never pushed directly from the vendor, so a new version only exists in my estate after it has landed in my mirror.
  2. I can pin versions and choose my own deployment rings. CrowdStrike, to its credit, added content pinning and staged early adopter and general availability options after July 2024, and this should be table stakes for every vendor.
  3. Artefacts are signed, and I verify those signatures against keys and manifests I hold before anything is promoted. Signatures are necessary but they are not proof of safety: SolarWinds showed that a compromised build pipeline will happily produce malicious software that is legitimately signed. Promotion therefore also needs independent verification, behavioural testing in an isolated canary environment that has no route to production, and a deliberate soak period before an artefact moves into wider rings.
  4. There is no standing inbound command channel. Remote response features are disabled by default and enabled per incident through an approval that sits on my side, not the vendor’s.
  5. Credentials are scoped per tenant and short lived, so a breach of the vendor’s environment does not yield tokens that work in my accounts, which was the entire mechanism of the Drift campaign.
  6. Telemetry leaves through a pipeline I own, so I can cut it without touching the agents themselves.

There is a fair counterargument to all of this, and it deserves a proper answer rather than a footnote. The central hub is also what lets a vendor respond to a new threat across millions of endpoints within hours, and handing every customer full control over promotion risks slow patching, inconsistent protection and a great deal of operational overhead, much of which will fall on the organisations least equipped to carry it. I do not think the answer is to decentralise everything. The architecture I would argue for is centralised intelligence with independently controlled execution: the vendor keeps doing what it is genuinely good at, which is research, detection engineering and building content at global scale, while the decision about when that content executes inside a given estate, and the ability to stop it, belongs to the customer. Customers who want the vendor to push straight through can still choose that, but it should be a choice they make deliberately rather than the only architecture on offer.

7. Designing kill switches you will actually use

A kill switch that has never been tested is really just a hope, and a kill switch that requires a committee at three in the morning is not much better. The design principle I keep coming back to is that the switch has to live in infrastructure you control, such as your egress proxies, your firewalls, your DNS resolvers and your identity provider, rather than in the vendor’s console, because the scenario you are designing for is precisely the one where the vendor’s console cannot be trusted.

It also helps to think in graduated tiers rather than a single big red button, because cutting off an EDR product during an active attack has a real cost, and you want to be able to stop change without necessarily going blind.

%%{init: {"theme":"base","themeVariables":{"primaryColor":"#1e3a8a","primaryTextColor":"#ffffff","primaryBorderColor":"#ffffff","lineColor":"#f59e0b","textColor":"#ffffff","edgeLabelBackground":"#111827","fontSize":"16px"}}}%%
flowchart LR
  S["Signal: vendor breach report,<br/>unexplained fleetwide change"]:::sig --> F["Tier 1: Freeze<br/>block updates and remote config,<br/>telemetry still flows"]:::t1
  F --> M["Tier 2: Mute<br/>deny all egress to vendor,<br/>local protection keeps running"]:::t2
  M --> E["Tier 3: Evict<br/>disable or remove agent<br/>using escrowed tokens"]:::t3
  S --> R["In parallel: revoke vendor<br/>API keys, OAuth grants,<br/>cross account roles"]:::rev
  classDef sig fill:#374151,stroke:#ffffff,color:#ffffff
  classDef t1 fill:#1e3a8a,stroke:#ffffff,color:#ffffff
  classDef t2 fill:#b45309,stroke:#ffffff,color:#ffffff
  classDef t3 fill:#b91c1c,stroke:#ffffff,color:#ffffff
  classDef rev fill:#065f46,stroke:#ffffff,color:#ffffff

The first tier is a freeze, where you stop the vendor changing anything while leaving telemetry flowing outward. That means blocking the update and remote configuration channels and pinning versions. Some of this exists already: Datadog lets you disable Remote Configuration at the API key level or on individual agents, and EDR platforms generally let you move hosts into an update policy that holds them on a known version. The weakness is that if those controls only exist inside the vendor’s console, an attacker in that console can reverse them, which is why the agent level setting, or a network block on the update endpoints, is the version that actually counts. There is a real technical limitation here as well. Some products multiplex telemetry, configuration and commands over the same long lived encrypted connection to the same endpoints, in which case no conventional firewall or proxy can block the instructions while letting the telemetry through, and a freeze collapses into a mute. Rather than weakening the case for kill switches, that limitation is one of the strongest arguments for demanding architectural changes from vendors, specifically separate and documented endpoints for telemetry, configuration, updates and commands, so that each can be cut independently.

The second tier is a mute, where you deny all egress to the vendor at your proxy and firewall layer. You lose central visibility and alerting from that vendor, but in most EDR designs the local prevention engine keeps enforcing the last policy it received, so you are not entirely unprotected, and you should keep local logs flowing to your own storage so you retain evidence. Blocking at DNS alone, using something like Route 53 Resolver DNS Firewall in AWS, is a useful first move but is not sufficient on its own, because established connections and cached addresses will survive it, so the firewall rules need to exist alongside it.

The third tier is eviction, actually disabling or removing the agent. For observability agents this is relatively straightforward through your own configuration management. For EDR it is deliberately hard, because tamper protection exists to stop malware from doing exactly this, and that cuts both ways. If the only copy of your uninstall or maintenance tokens lives in the vendor console you have just decided not to trust, you have no exit, so those tokens need to be escrowed in your own vault, out of band, before you ever need them.

Running alongside all three tiers is revocation: rotating the API keys and secrets you have issued to the vendor, revoking OAuth grants into your SaaS platforms, and disabling any cross account IAM (identity and access management) roles the vendor is allowed to assume. Each tier should have a named owner, a clear trigger, and a decision that has been preapproved at executive level so that nobody is drafting a business case during the incident. Most importantly, each one should be rehearsed in a simulation, because the first time you discover that muting your observability vendor also breaks your on call paging is not a discovery you want to make for real.

Who protects the kill switch?

The question that is easiest to skip is what happens when the thing you are trying to kill interferes with the mechanism designed to kill it. A privileged agent with root on every host, or a vendor console with administrative reach into your cloud accounts, may well be able to tamper with local controls, edit configuration, or suppress the signals that would trigger containment. The kill switch is therefore critical security infrastructure in its own right, and an attacker who understands your design will treat it as a high value target, so it needs to be built on the assumption that every privileged vendor is already hostile:

  1. It sits behind an identity and authentication boundary that is independent of every vendor it can act against, so a compromised vendor console or vendor run identity integration cannot authenticate to it.
  2. It uses separate administrative credentials that are not shared with day to day operations and that no vendor agent can read on any host.
  3. Its actions and decisions are written to immutable audit storage that neither the vendor nor a compromised operator can alter.
  4. Enforcement happens in network infrastructure that the vendor’s agents do not run on and cannot configure, so the block holds even if every host is compromised.
  5. Destructive actions, particularly eviction, require dual authorisation, while the freeze can fire automatically, because a fast reversible action and a slow irreversible one deserve different controls.
  6. It has no dependency on the vendor being reachable, cooperative or already isolated in order to work.

8. How do you spot that a vendor has gone rogue?

This is the genuinely hard part, because the malicious activity comes from a trusted, signed, allowlisted process that your EDR is not going to flag, and in the EDR’s own case it is the process doing the flagging. The general answer is that you have to observe the observers from a vantage point they do not control, and look for a handful of signals that are hard for a compromised vendor channel to avoid producing.

The first signal is change without a change. Any new agent version, new content or configuration change that does not correspond to something in your own mirror, your ring schedule or the vendor’s published release notes should be treated as an incident until proven otherwise. This is the biggest practical benefit of the pull from mirror model, because it turns “the vendor pushed something” from an invisible event into a detectable one.

The second is behavioural drift in the agent process itself. An observability agent that starts spawning shells or interpreters, writing outside its install directory, opening new listening ports or connecting to destinations outside its documented intake endpoints is behaving differently from its baseline, and that difference is observable from the host’s own process and network tables. EDR agents legitimately do far more on a host, so for them the more useful signal is the command channel: every RTR session, remote script execution and policy change should be exported continuously from the vendor’s audit API into your own security information and event management (SIEM) platform, and any session that cannot be tied to a ticket should page someone. Export it continuously, because an attacker with console access may also be able to tamper with the console’s own history.

The third is fleetwide simultaneity. Humans and most malware move host by host, whereas vendor channels move everything at once, so the same anomaly appearing across hundreds of hosts within the same minute is a strong indicator that something arrived through a central channel. Correlating on timing across the fleet is cheap and surprisingly effective.

The fourth is canaries. Plant canary credentials, such as fake cloud access keys, on hosts in locations that only something with agent level access would plausibly read. A canary token fires when it is used rather than when it is read, so legitimate scanning does not trigger it, but an attacker harvesting credentials through a compromised agent very likely will.

The last is to accept that vendor status pages are not a detection mechanism. Many Drift victims learned about their exposure from the news and from peers rather than from their own monitoring, which is a good argument for participating actively in your sector’s information sharing groups and for agreeing breach notification timelines contractually rather than hoping for them.

As a starting point for the host level signals, here is a small script that baselines what your privileged agents look like on a Linux host (which binaries are running and their hashes, and which networks they talk to), then alerts on anything new or anything missing, and flags any agent that has spawned a shell or interpreter. I want to be clear that this is an educational proof of concept that shows the logic, not a production security control. It takes periodic snapshots, so it will miss short lived activity between runs. It runs on the same host as an agent that has root, so a compromised agent could in principle tamper with it or with its baseline, which is why the script can check its baseline against a hash you store somewhere else. Collapsing addresses to /24 networks will still produce false positives against dynamic cloud and content delivery infrastructure, and you will need to adjust the install paths for the agents you actually run.

cat > agent_watch.sh << 'EOF'
#!/usr/bin/env bash
# agent_watch.sh: educational proof of concept, not a production control.
# Baseline, then check, what privileged SaaS agents on a Linux host are doing:
# which binaries are running (and their hashes), which networks they talk to,
# and whether they have spawned shells or interpreters.
#
# Usage: sudo ./agent_watch.sh baseline
#        sudo EXPECTED_BASELINE_SHA=<sha256 stored off host> ./agent_watch.sh check
#
# Limitations: periodic snapshots miss short lived activity; a root level
# agent could tamper with this script or its state; /24 baselining is noisy
# against dynamic cloud endpoints. Keep the baseline hash off the host.
set -uo pipefail

MODE="${1:-check}"
STATE_DIR="${STATE_DIR:-/var/lib/agent_watch}"
BASELINE="$STATE_DIR/baseline.txt"
EXPECTED_BASELINE_SHA="${EXPECTED_BASELINE_SHA:-}"

# Install paths of the agents you run; adjust for your estate
AGENT_PATHS=(
  "/opt/CrowdStrike/"
  "/opt/datadog-agent/"
  "/opt/instana/"
)

# Children an EDR or observability agent should rarely need to spawn.
# Legitimate remote response sessions will trip this, which is the point:
# every hit should map to a ticket.
SUSPECT_CHILDREN="sh bash dash zsh python python3 perl ruby curl wget nc ncat socat"

mkdir -p "$STATE_DIR"
chmod 700 "$STATE_DIR"
CURRENT="$(mktemp)"
trap 'rm -f "$CURRENT" "$CURRENT.sorted"' EXIT
ALERTS=0

alert() {
  echo "ALERT: $*"
  ALERTS=$((ALERTS + 1))
}

for path in "${AGENT_PATHS[@]}"; do
  for pid in $(pgrep -f "$path" 2>/dev/null); do
    exe="$(readlink -f "/proc/$pid/exe" 2>/dev/null)" || continue
    name="$(basename "$exe")"
    hash="$(sha256sum "$exe" 2>/dev/null | awk '{print $1}')"
    echo "BIN $name $exe $hash" >> "$CURRENT"

    # Established connections for this process; IPv4 peers collapsed to /24
    # so that normal load balancer rotation does not flood the diff
    ss -Htnp state established 2>/dev/null | grep "pid=$pid," | \
    while read -r _ _ _ peer _; do
      port="${peer##*:}"
      ip="${peer%:*}"
      ip="${ip#[}"; ip="${ip%]}"; ip="${ip#::ffff:}"
      if [[ "$ip" =~ ^([0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+$ ]]; then
        ip="${BASH_REMATCH[1]}.0/24"
      fi
      echo "NET $name $ip $port"
    done >> "$CURRENT"

    # Log the child's name and binary path only, never its arguments,
    # because command lines often carry tokens and passwords
    for child in $(pgrep -P "$pid" 2>/dev/null); do
      cname="$(ps -o comm= -p "$child" 2>/dev/null)"
      for s in $SUSPECT_CHILDREN; do
        if [[ "$cname" == "$s" ]]; then
          cexe="$(readlink -f "/proc/$child/exe" 2>/dev/null)"
          alert "$name (pid $pid) spawned $cname (pid $child, $cexe)"
        fi
      done
    done
  done
done

sort -u "$CURRENT" > "$CURRENT.sorted"

case "$MODE" in
  baseline)
    cp "$CURRENT.sorted" "$BASELINE"
    chmod 600 "$BASELINE"
    echo "Baseline written to $BASELINE ($(wc -l < "$BASELINE") entries)"
    echo "Store this hash off host and pass it as EXPECTED_BASELINE_SHA:"
    sha256sum "$BASELINE" | awk '{print $1}'
    ;;
  check)
    if [[ ! -f "$BASELINE" ]]; then
      echo "No baseline found; run: sudo $0 baseline" >&2
      exit 2
    fi
    if [[ -n "$EXPECTED_BASELINE_SHA" ]]; then
      actual="$(sha256sum "$BASELINE" | awk '{print $1}')"
      if [[ "$actual" != "$EXPECTED_BASELINE_SHA" ]]; then
        alert "baseline file hash mismatch, possible tampering ($actual)"
      fi
    else
      echo "WARN: EXPECTED_BASELINE_SHA not set; baseline integrity not verified" >&2
    fi
    # New entries: binaries, hashes or destinations not seen at baseline
    while read -r line; do
      alert "new since baseline: $line"
    done < <(comm -13 "$BASELINE" "$CURRENT.sorted")
    # Missing entries: an agent stopped, was replaced, or stopped reporting
    while read -r line; do
      alert "missing since baseline: $line"
    done < <(comm -23 "$BASELINE" "$CURRENT.sorted")
    if [[ "$ALERTS" -eq 0 ]]; then
      echo "OK: agents match baseline"
      exit 0
    fi
    exit 1
    ;;
  *)
    echo "Usage: $0 baseline|check" >&2
    exit 2
    ;;
esac
EOF
chmod +x agent_watch.sh

Run the baseline after a known good deployment, store the hash it prints somewhere the host cannot write to, then run the check on a schedule and ship its output to your SIEM. A new binary hash that does not correspond to a version you promoted through your own mirror, a new network destination for an agent that has talked to the same intake endpoints for months, or an agent that has quietly disappeared, is exactly the kind of quiet signal a compromised vendor channel would produce. Missing entries will also fire on legitimate upgrades and on connections that happened to be idle during the snapshot, so expect to tune it. A stronger production version would take its telemetry from an independent runtime monitor and keep its baselines outside the host entirely, but the logic is the same, and the essential property holds either way: the watcher is not the vendor’s own agent.

9. The questions I would put to every vendor

If you want to turn all of this into something actionable this quarter, I would start by putting the same handful of questions to every vendor whose agent runs across your estate, and treating vague answers as an answer in themselves.

  1. Can your console run arbitrary code or commands on my hosts, and can I disable that capability in a way that your console cannot turn back on?
  2. Can I pin agent and content versions, and pull them from my own repository rather than having you push them to me?
  3. Who inside your company can push changes to my fleet, and what approvals and separation of duties sit in front of that?
  4. Where are my credentials and tokens stored, and would a breach of your environment expose anything that works inside my accounts?
  5. If you are breached, how quickly will you tell me, and what is the kill procedure you have actually tested with customers?
  6. If you offer BYOC, does it move the control plane into my account, or only the data?

10. Closing thought

Segmentation makes the inside of your estate meaningfully harder to move through, and that is exactly why the vendor hub becomes the bridge over the moat. I do not think centralised SaaS disappears overnight, and the operational convenience is real, but I do expect regulated buyers to start insisting on centralised intelligence with customer controlled execution, and I expect the vendors that offer that first to win the banks. In the meantime, the most useful mental shift is to treat every agent you run everywhere as a potential insider with root on every box, and to design so that one of your vendors going rogue becomes a bad day you have rehearsed for rather than an extinction level event you read about in the news. If your security vendor can change every machine in your enterprise faster than you can stop it, you have outsourced more than your security; you have outsourced control of your enterprise.

Sources

Leave a comment

Your email address will not be published. Your first comment is held for approval.