A security check that says "no issues" only speaks for what it looked at
DEV Community

A security check that says "no issues" only speaks for what it looked at

This is part 14 of the series "Protect Your Own Service Yourself - Self-Defense Security in the Age of AI."

Do the checks you can yourself; when it's hard, EarthLink Network can run the assessment for you, and fix the gaps you can't fix on your own.

Series contents

  • Anyone can attack now, with AI - check your own site first
  • What attackers now hold: when AI runs the attack itself
  • Before you start: the whole picture of checking, and how to test without breaking production
  • Testing from the outside (1): setup and the first run
  • Testing from the outside (2): attack tools and legitimate scanners find different things
  • Checking the code you wrote: static analysis
  • Checking the parts you depend on: libraries and packages
  • Checking your infrastructure settings for gaps
  • Collect every result in one place and decide what to fix first (coming soon)
  • How to fix what you found: three ways (coming soon)
  • When you cannot fix it yourself: a maintenance contract (coming soon)
  • Keep checking automatically every day - from building to protecting (coming soon)
  • PHP from Ubuntu can be patched while php -v shows an older version: check your OS vendor's advisory
  • A security check that says "no issues" only speaks for what it looked at (this article)
  • When AI sorts your vulnerabilities, a blank must not become a "no" (coming soon)
  • Before you connect an AI tool to your accounts, check the access against the job (coming soon)

The short version

In Strix, an open-source AI security agent, the code that decides whether to fail your CI build never asks whether the scan finished. With zero findings, it passes.

Our AI employee pulled the pass/fail logic out of three security products and fed it made-up inputs. Besides Strix, the security-guidance plugin for Claude Code gave no warning on an aliased pickle import, and the OSS Scanner enrollment check passed a config pointing at a Dockerfile that does not exist.

Each one did exactly what it was built to do. When AI reports "no issues", ask what went in, how far it got, and what was not run.

Before you read on

This is part of my series Protect Your Own Service Yourself, on reading the results of security checks. You can follow it without the earlier parts.

Strix: an empty report passes the build

Strix is the agent we used in part 4 of this series to test a copy of our own service. It can fail your build when it finds something serious. In headless mode, --fail-on high makes it exit with code 2 when a finding is rated high or above.

Our AI office took Strix 1.7.0, as installed, and pulled out the one function that makes that call. Here it is, unchanged. Look at the inputs. A list of findings and a threshold. Nothing else. If the list is empty, the answer is "pass" before anything else is checked.

We ran the function, still unmodified, against eight made-up reports. No scan was run.

Most of this is good design. A severity the gate cannot rank, like mystery, fails rather than slipping through as low. A report with no severity field at all also fails. HIGH with stray spaces is normalized and fails as high.

There is one subtle split. none is a known level below info, so with a high threshold it passes. A missing severity field fails under the same threshold. With no threshold at all, even none fails, because then any finding fails.

Write an acceptance rule like "findings without a severity pass" and you will disagree with the tool. Report "a critical issue was found" when the build failed on an unknown value, and you will be wrong the other way.

What the gate does not see

Strix has a cost cap, --max-budget-usd. Its help text says the scan "stops cleanly" when the cap is reached. Strix does record how a run ended, but the build decision reads only the list of findings.

So a green build means "nothing at or above the threshold was found." It does not mean "the target was scanned to the end."

security-guidance: the edit-time warning matches text

security-guidance is the official Claude Code plugin for security review. Its README describes three layers:

  • Pattern warnings: on every edit, the change is matched against about 25 known-dangerous patterns
  • LLM diff review: when Claude finishes a turn, a model reads the diff
  • Agentic commit review: on git commit, a reviewer reads related files and traces data flow

We tested only the first layer. The official rules and matching function were run on their own, with no model called, against five short made-up snippets. None of the code was executed.

import pickle followed by pickle.loads got a warning, as it should. Loading untrusted pickle data can run arbitrary code.

import pickle as p followed by p.loads got nothing. The rule is a regular expression looking for the text pickle.loads. The same line inside a Markdown file got nothing too, because the rule only applies to Python files.

An invoice lookup that returns any invoice by ID, with no ownership check, also passed. Whether the check lives somewhere else cannot be told from these two lines. The README assigns exactly this kind of issue (IDOR, auth bypass) to the commit review layer.

So silence from the edit-time layer means "none of the known patterns appeared as written." It does not mean the code is safe. And "one warning out of five inputs" is not a miss rate. The inputs were picked to show the edges, not to sample real code.

OSS Scanner: the enrollment check never opens your Dockerfile

OSS Scanner is a service by Anthropic that scans critical open-source repositories for vulnerabilities. Projects enroll by opening a pull request that adds a project.yaml, and the official repository publishes tools/validate.py to check that file.

We passed seven made-up configs to its check_config function. Nothing was submitted, and no code was sent anywhere.

Four configs were rejected, each with a clear message: a missing contact, a Dockerfile in two places, disabled: "false" as text instead of a boolean, and an encrypted report combined with CC addresses.

Two passed that would never build. One points at missing/Dockerfile, which does not exist. The other is a Dockerfile containing a sentence of English. The file header says the tool "runs offline". It checks how the config is written. It does not fetch the repository or build anything.

That is not a bug. Checking a config and building from it are different jobs. The mistake would be reporting "enrollment check passed" as "ready to enroll."

What to ask for along with "no issues"

All three checks were correct within their scope. Here is what each pass actually says:

  • Strix build gate: no finding at or above the threshold. Silent on whether the scan finished.
  • security-guidance edit-time warning: no known pattern written in that exact form. Silent on whether the code is safe.
  • OSS Scanner enrollment check: the config follows the rules. Silent on whether the files exist or build.

When AI runs security checks for you, have every report carry three things next to the verdict:

  • What went in: which files, pages and rules
  • How far it got: finished, or stopped partway
  • What was not run: the checks and steps skipped this time

With those three, nobody reads a pass as more than it is, and people can spend their time on what has not been checked yet.

The more checks you automate, the more one-word verdicts you will receive. Set the rule before that happens.

Terms

CI: a system that runs tests and checks automatically on every code change. When it fails, the change does not move forward.

Severity: how serious a finding is. In Strix, critical, high, medium, low and info, with none below them.

Exit code: the number a program returns when it ends. 0 means success; anything else fails the CI step.

pickle: Python's built-in way to save and load objects. Loading untrusted pickle data can run arbitrary code.

IDOR: insecure direct object reference. Fetching someone else's record just by changing an ID.

AI office: the AI employees we run in-house. These trials were run by its blog researcher on made-up inputs.

In this series, in an age when attack tools are free and one click away for anyone, I show step by step how to check your own service yourself and close the gaps before someone else finds them. The target is always our own service; the series does not cover attacking anyone else's site.

If running the checks yourself is hard, EarthLink Network can do the assessment for you. Found a gap you can't fix? We'll handle the fix. Feel free to reach out.

If this was useful, please like and follow. Our products are listed at https://www.eln.ne.jp/products

EarthLink Network builds its own products to run the whole company on AI - each one born from a need along the way. See the full index of what we build: → The 18 products EarthLink Network builds in-house

For more about the company and each product, visit www.eln.ne.jp .

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.