3109 words
16 minutes

Shadow AI and Local LLMs: IBM Granite 4.2 Tested on 20 DevOps Questions

By Senior Developer Advocate · Docker Captain · CNCF Ambassador · IBM Champion
Cinematic AI render of a woman in a pale pink blazer typing on a laptop at a sunlit desk by a window, a pink neon line on the wall behind her

One in five organizations in IBM’s 2025 breach study had a breach because of shadow AI. IBM’s answer is small open models that a company runs itself, so I ran its newest ones on my Mac and asked them 20 everyday DevOps questions.

Shadow AI means AI tools people use at work without approval. Most often it’s a public chatbot. Someone pastes a log, a config or a piece of code into it to get help faster, even if the company rules say not to.

Banning chatbots doesn’t fix that. IBM offers another option: small open models that run inside the company. I ran IBM’s newest models, Granite 4.2, with Docker Model Runner on my own Mac to see what that option costs. The best of my four setups got 97% of its answers right. It also took 16 seconds per answer on average.

What IBM’s report found#

Every year IBM publishes a report on how much data breaches cost companies. It’s called Cost of a Data Breach, and the Ponemon Institute does the research. The 2025 edition looked at breaches at 600 organizations between March 2024 and February 2025. It was also the first edition to study the security and governance of AI, shadow AI included.

One in five organizations in the report had a breach because of shadow AI.

Organizations with a lot of shadow AI paid on average 670,000 dollars more per breach than organizations with little or none. The average breach worldwide cost 4.44 million dollars.

63% of the breached organizations had no AI governance policy, or were still writing one. Among the organizations that had a policy, only 34% regularly checked whether people used AI tools nobody approved.

So in most of these companies there was either no rule, or a rule that nobody regularly checked.

IBM published the 2026 edition in July, and its global average went up to 4.99 million dollars. The shadow AI numbers in this article are from the 2025 edition.

Why banning chatbots doesn’t help much#

People don’t use a public chatbot because they want to break rules. They use it because it helps them finish the task faster. If the company bans it and gives nothing else, the task is still there, and people keep using the chatbot, just quietly.

This happened before with file sharing and personal email. Back then it was called shadow IT.

I think the better answer is an approved tool that is easy to use. With AI, that tool also has to keep the data inside the company. That means a model that runs on the company’s own computers, on a laptop or on a company server.

IBM’s small open models#

IBM makes a family of open models called Granite. While a lot of the industry builds bigger and bigger models, IBM keeps releasing small ones.

A few things about Granite matter for this use case. You can download the models and run them anywhere. They come under the Apache 2.0 license, so companies can use them at work.

IBM says Granite was the first open model family to get ISO 42001 certification. ISO 42001 is a standard for how an organization manages AI, so the certificate is about the way IBM builds and looks after its Granite language models.

IBM also signs the model files and publishes the signature next to them on Hugging Face, so you can check that a file came from IBM. IBM still calls the signing feature experimental, and further down I look at what it covers today.

The newest Granite language models are Granite 4.2. IBM released them on August 25, 2026, in three sizes: 3 billion parameters, 8 billion and 30 billion. Granite 4.2 can reason step by step before it answers. IBM calls this thinking. It’s on by default, and you can turn it off for faster answers. There’s also a low-effort mode in between, which I didn’t include in my test.

There’s a link to IBM Bob here, which I wrote about in my last article. In the cloud version of Bob, a company can’t choose or restrict which models see its code. Since September 24, companies can also run Bob themselves on Red Hat OpenShift, and then the company brings the model. It can be a frontier model through the company’s own cloud account, or an open model on its own GPUs. For that fully local route IBM supports two models today, NVIDIA Nemotron 3 Ultra and Poolside Laguna S 2.1. Granite isn’t one of them. Still, IBM’s own coding tool now has a way to keep the model under the company’s control.

How I tested it#

I ran Granite 4.2 on my Mac, an M4 Pro with 48 gigabytes of memory, with Docker Model Runner in Docker Desktop. I tested the 3B and the 8B. I didn’t test the 30B. I used the default versions as Docker Hub served them on November 23, 2026. They are compressed to 4 bits to make them smaller and faster, and the full-size versions may answer a bit differently.

A tag on Docker Hub can move, so I wrote down the exact versions and the digests of the two models I tested.

Docker Desktop 4.99.0, Docker Model Runner 1.2.9
ai/granite4.2:3b
sha256:6d2789648647f7cfeb1874fb5b5de6a6ef6d1225f834e204f550a1026c4c7911
ai/granite4.2:8b
sha256:6b36b724b215ff64749aea2e6f70307a9cb7818db3255f4e7e099052eb5948c3

I wrote 20 questions of the kind engineers paste into chatbots every day: 7 about Kubernetes, 5 about Docker, 5 about git and 3 about Linux. For example: a pod is stuck in CrashLoopBackOff, which two commands do you run first? Roll a deployment back to the previous version. Delete a branch on the remote. Find files over 100 megabytes. Every question asked for commands only, no explanations.

I asked each question to four setups: the 3B and the 8B, each with thinking on and off. Each setup got every question three times, because models don’t answer the same way every time. That’s 60 answers per setup, and 240 in total. Every answer had a limit of 4,096 tokens with thinking on and 1,024 with thinking off, and thinking counts toward that limit.

A script checked the answers, so I didn’t grade them by eye. It checked two things. First, whether the answer had the command that actually solves the task. Second, whether the answer used a command or an option that doesn’t exist. For that, the script compared every kubectl, docker and git command in the answer with the real help of those tools on my Mac: kubectl 1.36, Docker CLI 29.9 and git 2.50. Then I read every answer the script marked as wrong, to make sure the script itself wasn’t wrong.

Later I added a third check: whether the first command in the answer was the right one. A person in a hurry copies the first command.

The questions, the scripts and all 240 answers are in a public repository on GitHub.

This is what the script counted.

SetupRight command in the answerFirst command rightMade-up command or optionAverage timeMedian time
3B, thinking off75%68%12%1.4 s0.2 s
3B, thinking on90%90%5%9.6 s5.3 s
8B, thinking off87%73%7%3.2 s0.8 s
8B, thinking on97%97%0%16.4 s10.6 s

Each setup gave 60 answers, so 75% means 45 correct answers and 97% means 58.

The two columns overlap a little. In 7 of the 240 answers the model gave both a made-up command and the right one. I counted those answers as correct and also as made-up: 4 for the 3B without thinking, 1 for the 3B with thinking, 2 for the 8B without thinking and none for the 8B with thinking.

What the numbers show#

Thinking helps a lot, and it’s expensive. For the 3B it took correct answers from 75% to 90% and cut made-up commands from 12% to 5%. But the 3B wrote about seven times more tokens with thinking on, and the average answer went from 1.4 seconds to almost 10.

At first the 8B without thinking looks about as good as the 3B with thinking, and faster: 87% against 90%, with made-up commands in 7% of its answers against 5%, in 3.2 seconds against 9.6 on average. The first command tells a different story. Without thinking, the 8B put another command first in 8 of the answers I had counted as correct, so its first command was right 73% of the time. For the 3B with thinking that number stays at 90%. The 3B without thinking drops from 75% to 68%. With thinking on, both models put the right command first every time they had it.

The 8B with thinking was the only setup with no made-up commands at all, and it got 97% right. The price is time: 16 seconds on average, and some answers took over 40 seconds.

The mistakes were confident. The 3B without thinking invented a kubectl rollout rollback command, which doesn’t exist. The right one is kubectl rollout undo. It also invented an option for git reset called keep-staged, where the real option is called soft.

made up: kubectl rollout rollback deployment/api
real: kubectl rollout undo deployment/api
made up: git reset --keep-staged HEAD~1
real: git reset --soft HEAD~1

The answers looked like normal commands, and nothing in them said “I’m not sure”.

The worst answers weren’t the made-up ones. A made-up command fails with an error, and a real command runs. I asked how to restart the pods of a deployment without changing its manifest. Two of the three answers from the 8B without thinking deleted the deployment. One of them gave the right command on the next line, so my first check counted it as correct.

Simple tasks were fine everywhere. All four setups got the Linux questions right, and also simple ones like scaling a deployment or copying a file out of a container. The mistakes were in tasks with a catch: the one Docker command that cleans up everything at once, saving untracked files in git, or finding out why a pod keeps crashing.

Thinking can also run out of room. Three times the model spent its whole 4,096 tokens on thinking and gave no answer at all: twice the 3B and once the 8B. All three were Docker questions. Two were the one command that cleans up everything at once, and the third was about a container’s environment variables. Without thinking, six answers reached their 1,024 tokens too, but by then the model had already answered and was only adding more text, so I graded them like the rest.

Now, what this test is not. It’s 20 questions I wrote myself, on one Mac, with 4-bit versions of the models. The script checks that the key command is there and that the commands and long options exist. It doesn’t check short options, the ones with one dash and one letter, and it doesn’t run the commands on a real cluster. So these numbers show the trade-offs between the setups. They aren’t a ranking of models.

What a local model costs#

The first cost is accuracy. Even the best setup in my test got one answer in thirty wrong, and the 3B without thinking got one in four wrong. A person has to read any command before it runs, and with a small model that matters even more.

The second cost is time. In this test, turning thinking on added about as much accuracy as moving to the bigger model: 9 more correct answers out of 60 for the 3B and 6 for the 8B, against 7 and 4 for the move from the 3B to the 8B. With 60 answers per setup, a difference of two or three answers is too small to rank the two. The wait is not small: thinking made the average answer five to seven times slower, and the median answer more than ten times slower. On my Mac the 3B wrote about 85 to 95 tokens a second and the 8B about 40 to 45. For a quick question in a chat, 10 or 20 seconds of waiting is long enough that people will notice.

Hardware is the easy part for one engineer. On Docker Hub, the default 3B takes about 2.2 gigabytes, the 8B about 5.4 and the 30B almost 18. For a team of fifty with different laptops, it’s easier to run the bigger model on one shared server.

And someone has to own it. Someone has to decide which model is approved, update it, and keep it running. A chatbot in a browser tab doesn’t need any of this, which is part of why people choose it.

Handling the approved model like an approved image#

Ownership is the reason I ran Granite through Docker Model Runner and not another tool.

Most companies already have a place for approved software: their container registry. Docker Model Runner packages models as OCI artifacts, the same standard container images use. According to Docker’s docs, you can pull and push models to Docker Hub or any OCI-compliant registry. So a company can keep its approved model in its own registry, next to its approved images. The team picks the Granite version and size it tested and publishes it under the company’s name. Everyone then pulls the same model.

In commands, that’s a pull, a tag and a push. This is a sketch based on the publish example in Docker’s docs, and the registry address in it stands for your own registry.

Terminal window
docker model pull ai/granite4.2:8b
docker model tag ai/granite4.2:8b \
registry.example.com/platform/granite4.2:8b-2026-11
docker model push registry.example.com/platform/granite4.2:8b-2026-11

A tag in your own registry changes only when your team changes it. Tags on Docker Hub do change. Every Granite 4.2 tag there was updated on November 20, 2026.

If you want the license file inside the package, docker model package can add it. You give it the model file itself, for example the 4-bit file from IBM’s Hugging Face repository, and the Apache 2.0 license text. Another sketch, with flags from Docker’s reference:

Terminal window
docker model package \
--gguf "$(pwd)/granite-4.2-8b-Q4_K_M.gguf" \
--license "$(pwd)/LICENSE" \
--push registry.example.com/platform/granite4.2:8b-2026-11

I also looked at what IBM’s signature covers. On November 23, 2026, the default 3B and 8B on Docker Hub were IBM’s own 4-bit files: they had the same SHA-256 hashes as the files in IBM’s Hugging Face repositories. Each of those repositories has a signature file, and it lists a hash for every model file.

For the 3B, the hashes in the signature match the files, including the one Docker Hub serves. For the 8B they don’t. The signature there is dated September 2. The 4-bit file is from August 21, and its hash isn’t the one in the signature. The same is true for all 15 model files in that repository, and for 15 of the 16 in the 30B repository.

I compared hashes. I didn’t run IBM’s verification steps. But a file whose hash isn’t the one in the signature can’t pass that check. So on that day the signature told me something about the 3B and nothing about the 8B and the 30B. Check again on the day you approve a model, because files and signatures both change. I reported it to IBM in discussions on the 8B repository and the 30B repository, and the script I used is in the test repository.

Model Runner also serves models through an API in the same format as OpenAI’s and Ollama’s. Many tools that work with cloud chatbots can use the local model after a small change in their settings. In Docker Desktop you turn on host access once, then check that the local endpoint answers:

Terminal window
docker desktop enable model-runner --tcp 12434
curl http://localhost:12434/engines/v1/models

Then choose an OpenAI-compatible provider in the tool’s settings and give it the local base URL. Model Runner doesn’t check API keys, so any placeholder works where the tool asks for one.

http://localhost:12434/engines/v1

The easier the approved model is to connect, the more people will use it.

Model Runner also works with Docker Engine on Linux, with NVIDIA, AMD or Vulkan GPUs. That’s how the bigger model can run on one shared company server. On Docker Engine it listens on port 12434 by default, and Docker’s docs say the Model Runner API is not authenticated. Anyone who can reach it can load models and send prompts. So keep that server on a network only your team can reach, or put something in front of it that checks who is asking.

Security teams will ask what Docker sends out. Docker’s docs say Model Runner never collects prompt content, responses or personal information. With Send usage statistics turned on in Docker Desktop, it sends model names and a few technical details, like the user agent and whether a request came from the host or from a container. You can turn that setting off. On Docker Engine, Model Runner sends requests to Docker Hub that let Docker track model names, whatever your settings are.

Docker doesn’t collect your prompts, but Model Runner can show you the ones it served: docker model requests fetches the requests and the responses. On a shared server, that makes the server one more place where sensitive logs live, so protect it like one.

What I’d recommend to a team#

  • Give people an approved local model for the sensitive work: logs, configs, code that can’t leave the company. Make it easy to find, and share the base URL so people can plug it into the tools they already use.
  • Keep thinking on for any command you are going to run, on the 3B and on the 8B. If you turn it off for speed, read the whole answer, because the right command was often the second one.
  • Put the approved model in your own registry under a tag your team controls, so everyone uses the same file.
  • Run the bigger model on a shared server instead of on every laptop, and keep its API on a network only your team can reach.
  • Make sure a person reads every command an AI suggests before it runs. This applies to cloud models too.
  • Check whether people still use unapproved tools. In IBM’s 2025 report, only a third of the organizations with an AI policy did.

A local model will be weaker than the best cloud models. My test covered short command questions only, not reading logs or configs. For those questions, with thinking on, the answers were good enough to be useful, and the data stayed on my machine.

Does your company have an approved AI tool for production logs? Tell me in the comments.

Sources#


Tatiana Mikhaleva

Docker CaptainCNCF AmbassadorIBM Champion

DevOps.Pink — Signal over noise in cloud-native & AI.

I'm a Docker Captain, CNCF Ambassador, IBM Champion, AWS Community Builder and a GitKraken, Cypress, Notion and Platform Engineering ambassador. Vendors don't review my posts; sponsored posts say so at the top. Referral links are labeled as such and earn me a commission.

Pink Signal

The cloud-native stack, without the gatekeeping

Docker, Kubernetes, and the agentic-AI era — hands-on and clearly explained, for engineers who actually ship. Pink Signal lands in your inbox when there's something worth knowing.

Related Posts

Same category
  1. 1
    Amazon Q - The AI DevOps Tool That Fixes AWS Headaches
    AI & MLOps · Amazon Q is AWS's AI assistant that helps DevOps engineers fix cloud issues faster with smart, context-aware insights and automation.
  2. 2
    Docker MCP - How GPT Agents Now Use Slack, GitHub, Stripe & More
    AI & MLOps · Learn how Docker and MCP let GPT agents use tools like Slack, GitHub, and Stripe — turning AI from smart talkers into real-world doers.
  3. 3
    How Generative AI Actually Understands You
    AI & MLOps · Discover how generative AI understands text, images, video, and sound — explained simply with real examples of tokens, chunks, and embeddings.
  4. 4
    How AI Models Are Really Trained - From Idea to Reality
    AI & MLOps · Learn how AI models are trained step by step — from data prep to deployment. Simple, beginner-friendly guide with real-life examples.

Random Posts

Random
  1. 1
    Git Merge Conflicts for Beginners - What to Do When Your Branches Have Beef
    DevOps & Cloud · Learn how to fix Git merge conflicts step-by-step. A fun, beginner-friendly guide to resolving and avoiding conflict errors in your branches.
  2. 2
    The Terminal Was Never the Point: Managing Parallel AI Coding Agents
    DevOps & Cloud · Claude Code, Codex, and Copilot agents now edit your repo in parallel, and a terminal shows one at a time. Why visual Git tooling became the control tower.
  3. 3
    How Docker Works Under the Hood - A Girly Tech Deep Dive
    DevOps & Cloud · Under the Hood of Docker - What Really Happens When You Run docker run?
  4. 4
    Helm in Kubernetes - What It Is and Why You Need It
    DevOps & Cloud · Helm simplifies Kubernetes deployments. Learn what it is, how it works, and why it's essential for managing scalable apps and infrastructure.
Shadow AI and Local LLMs: IBM Granite 4.2 Tested on 20 DevOps Questions
https://devops.pink/shadow-ai-local-llm-granite-docker-model-runner/
Author
Tatiana Mikhaleva
Published
2026-11-23
License
CC BY-NC-SA 4.0