TL;DR
In this case study of in-app blocking, a poisoned Keras model started a shell inside an inference service that never received attacker traffic. Miggo denied that one launch, and the service kept serving.
Patching takes weeks, and until it lands the vulnerable function keeps running in production. Most runtime security tools can tell you that an attacker exploited a vulnerability in that window. Far fewer can stop the exploit inside the running application, and fewer still can do it without a code change or a restart. The gap is widest for attacks that never arrive as a request at all. The payload comes in on a model file, an upload or a queue message and detonates later in a different process, so there is nothing at the perimeter to block. Miggo closes it by blocking the one operation the exploit needs at the moment the vulnerable code tries to perform it. The clearest way to show how this works is with a real case.
The Model File That Ran a Shell
Keras is a popular deep-learning library. One of its core features is loading models from keras files, which can arrive from both trusted and untrusted sources. CVE-2025-1550 breaks through its safety mode.
A .keras model is a zip archive, containing a config.json which describes the model's layers. By editing the config, an attacker can invoke any Python module and function, with any arguments, and Keras calls it during the load. Keras version 3.9.0 fixed the flaw until two bypasses (CVE-2025-8747 and CVE-2025-9906) forced a second fix in 3.11.0.
Here’s how an attacker can exploit this kind of vulnerability:
- An attacker pushes a model to wherever the team stores models: a registry, a bucket or a fine-tuning job's output path.
- Because the
kerasmodel is a zip, nothing inspecting the transfer can read the poisoned config inside it. - Hours later, a different process on a different machine calls
Model.load_model. - Keras resolves the attacker's function and calls it, starting a shell inside the inference service.
The process that was exploited never received attacker traffic, so there was no request to block.
Miggo blocks it anyway. Loading a model never legitimately starts a shell, so when the Keras deserialization path tries to launch one, Miggo denies that launch. The model load fails, and the inference service keeps serving.

What you are seeing: Miggo DeepTracingTM for the blocked attack. The process tree shows the model file being opened and then the shell launch marked Blocked. The highlighted stack frame is Keras's Functional.process_layer, the code path that asked for the shell.
PyTorch had the same flaw in CVE-2025-32434: torch.load reached code execution despite its safety features. The industry treats model files as data, but they are archives that another process opens later.
Keras is not a one-off. Models, uploads, archives and queue messages all carry payloads that a different process opens later, when there is no request left to inspect. The rest of this post covers how Miggo blocks these exploits inside the app, which attack classes request inspection misses, why it is safe to turn on, and what is available today. The running application is one of the places where the Autonomous Mitigation loop deploys protections, alongside the edge rules it generates, for defense in depth.
Blocking the Operation and Not the Request
In the defense-in-depth model, every layer we add is another one an attacker must defeat in order to achieve their goal. Request-based controls judge what arrives. Miggo’s sensor judges what the application does next. It sits at the boundary between the application and the operating system, so it sees what an exploit is attempting to make the application do: Launching a process when it expected to load a model, writing a webshell, or reading a secret file outside the application’s control. This is the step where Miggo intervenes.
Every mitigation matches three things:
- The operation: what the workload is about to do.
- The condition: what makes it dangerous, such as a file opened through a path that climbs out of its directory.
- The function: which application code made the request.
Opening files is a file uploader's whole job, but the same uploader opening a file through a path traversal means an attacker is steering it. Miggo denies this specific file write without interrupting other legitimate uploads the server is handling.
Miggo can understand which writes are safe and which aren’t by understanding both how applications are built and how vulnerabilities are made. By operating the Predictive Vulnerability Database we have learned which flows vulnerabilities pass through and what form they take.
From there, we make distinct kinds of mitigations:
- Published CVEs go through Miggo’s Mitigation Lab, creating both tailor-made WAF rules and sensor detections. This gives security teams the auditability and assurance that they have time to deal with attacks until they can patch.
- Attacks like deserializations pass through predictable flows. With a library of general mitigations, entire swaths of exploits can be detected and blocked in both new CVEs and in your first-party code that AI attackers can discover and exploit.
Where Request Inspection Can't Reach
Edge rules stop what they can read on the wire, and Miggo generates those rules too. Two classes of attack never appear there.
The payload isn't in an HTTP body. Body inspection thins out quickly beyond HTTP, and a workload that speaks gRPC internally often carries payloads that no one reads. Miggo doesn't look at the delivery. It looks at the function and the operation, whichever protocol delivered the payload.
The exploit fires later, somewhere else. A file is uploaded now and parsed tomorrow in a different process. Encryption, time and process boundaries separate the request that carried the payload from the code in which it detonates. By the time the vulnerable function reaches for the operation, the payload has been decrypted, and the timing no longer matters.
So Miggo places each rule where it works: at the edge when the exploit is visible in traffic, inside the app when it isn't, and in both places for defense in depth.
Why It's Safe to Turn On
Mitigation with runtime protection is the critical way to handle these exploits. Past tools blocked customers, crashed processes and demanded code changes, so teams bought them and left them in monitoring mode. Miggo answers the availability question first.
Nothing goes into the application. There is no library or agent in the process, no code change or restart, and no proxy in front of traffic. The application runs the same binary it ran before Miggo.
A wrong decision costs one operation. A false positive is one denied action inside one request, rather than a dropped connection or a restarted pod. The application sees the operating system's standard "operation not permitted" error, the same one a missing file permission returns. Well-built applications already handle it as a failed operation and carry on.
Your service doesn't depend on Miggo. Miggo is not in the critical path, so if the sensor restarts, upgrades or loses its control plane, the application doesn't notice. Coverage and sensor health stay visible, so you always know which workloads are protected.
You decide where it blocks. Miggo already knows what runs: which workloads contain which vulnerable functions, and which of those functions execute in production. It shows where a rule would raise coverage. Every rule starts in detect mode, so you see what it would have denied in your own traffic. Blocking is opt-in, on the workloads you choose.
Low resource overhead. Safe to turn on with minimal impact, using under 1% CPU and less than 500 MB resident memory across the full fleet.
What's Available Today
In-app blocking is available to Miggo customers now in beta. It covers:
- Code execution: shells and interpreters launched by application code that should never launch them, including deserialization, template injection paths and XSLT injections leading to code execution.
- File access: reads and writes outside the paths the code should reach, such as path traversal and archives that extract outside their folder. This includes web shells, which are caught the moment they are written to disk, before they run and before anyone calls them, as well as Local File Inclusion(LFI) attacks that are caught the moment they are being executed.
- Network access: outbound connections the code should never make, such as server-side request forgery (SSRF), data exfiltration to attacker hosts and Remote File Inclusion (RFI)
- Vulnerable functions of specific CVEs, including CVEs in AI and ML libraries.
Close the Patch Gap Inside the App
A CVE lands on a Tuesday. The fix exists, but upgrading a fleet takes a quarter, and the vulnerable function keeps running in production the whole time. That is the patch gap. Detection tells you that an attacker exploited it before you patched. In-app blocking is one of the key parts to closing the gap: Miggo knows which function runs, what it is about to do and what is wrong with it, and it takes away only that one operation.
That turns "we can't upgrade yet" back into an engineering schedule rather than an open exploitability window. Book a demo to see Miggo block exploits on your own workloads.



.webp)
