<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by The Code Curmudgeon on Medium]]></title>
        <description><![CDATA[Stories by The Code Curmudgeon on Medium]]></description>
        <link>https://medium.com/@CodeCurmudgeon?source=rss-ad27a4c06b0f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Z-aVs_1cllWi7Ui9.jpg</url>
            <title>Stories by The Code Curmudgeon on Medium</title>
            <link>https://medium.com/@CodeCurmudgeon?source=rss-ad27a4c06b0f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:29:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@CodeCurmudgeon/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Technical Debt Was Never About Your Scanner]]></title>
            <link>https://medium.com/commit-to-code-quality/technical-debt-was-never-about-your-scanner-5a4cbd973cf9?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a4cbd973cf9</guid>
            <category><![CDATA[code-quality]]></category>
            <category><![CDATA[static-analysis]]></category>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 16:48:04 GMT</pubDate>
            <atom:updated>2026-11-13T16:48:04.868Z</atom:updated>
            <content:encoded><![CDATA[<p><em>And AI just made that obvious.</em></p><p>Pardon me while I step up on one of my soapboxes. Technical debt is one of the most misunderstood ideas in software development, to the point where it’s both critically important and nearly useless. It’s important because every decision you make in a codebase has consequences you’ll be living with later. It’s nearly useless because the term now gets slapped on almost anything a tool can count, and the thing it gets slapped on most often is static analysis output.</p><figure><img alt="A tablet showing a software testing data metrics dashboard. It sits atop a cracking cement block on a barren dirt ground." src="https://cdn-images-1.medium.com/max/1024/1*SjVZJ66Q-ysvpgiyqdo8fQ.jpeg" /></figure><p>You’ve seen it. A dashboard says your project is carrying so many days of technical debt, the number goes up and down with every build, and somebody puts it in a status report. Static analysis findings are good information and worth paying attention to. But they have very little to do with the kinds of technical debt that actually hurt you, and treating that number as your debt balance sends your team off chasing the wrong things.</p><p>I’ve been making this argument in conference talks and webinars for years, usually as a side rant in the middle of a bigger static analysis talk (here’s one from ASQ’s 2015 International Conference on Software Quality, where I go after metrics that have taken on a life of their own: <a href="https://www.youtube.com/watch?v=NBK4gzTbns4">Software Quality Metrics You Can Count On</a>), and for most of that time the static analysis part was the part that mattered most. It still matters. But AI coding assistants have changed the conversation, and the debt I worry about now is a different animal. So it’s time this got its own write-up.</p><h3>What Ward actually meant</h3><p>The term comes from Ward Cunningham, who used it in his 1992 OOPSLA experience report on the WyCash portfolio management system. He was building financial software and needed a way to explain to the business side why the team kept going back and reworking code that already worked. His idea was that shipping first-time code is like going into debt. A little debt speeds you up, as long as you pay it back by rewriting as you learn more about the problem, and the danger is the debt you never repay.</p><p>By 2009 he’d seen enough people misuse the metaphor that he recorded <a href="https://www.youtube.com/watch?v=pqeJFYwnkjE">a short video to set the record straight</a>. A lot of people, he said, had confused it with the idea of writing code poorly now and cleaning it up later. In his words, “I am never in favor of writing code poorly.” What he was in favor of was writing code that reflects your current understanding of the problem, even when that understanding is partial, and keeping it clean enough that you can refactor as your understanding improves.</p><p>So debt in Ward’s sense is the gap between what your code says and what you now know about the problem. And notice that a scanner has no way to see that gap, because it doesn’t live in the code. It lives in your head, or your customer’s head, or your support tickets.</p><h3>Fowler’s quadrant, and where the scanner fits</h3><p>Martin Fowler expanded on this in his <a href="https://martinfowler.com/bliki/TechnicalDebtQuadrant.html">Technical Debt Quadrant</a>, which splits debt along two axes: deliberate or inadvertent, and prudent or reckless. In fairness, Fowler is more generous than Ward about messy code. He’s happy to call a mess debt, he just calls it reckless debt. Fine, I’ll take that framing, because it makes my point for me.</p><p>Static analysis is pretty good at finding the reckless corner of that quadrant, the “we didn’t know better” and “we didn’t have time” code. It’s nearly blind to the prudent corners: the shortcut you took on purpose to hit a release, and the design you only understand properly after living with the system for a year. Fowler makes the point that even excellent teams take on that second kind. You can’t avoid it, you can only notice it and decide what to do about it.</p><h3>It’s a metaphor, not a balance sheet</h3><p>Here’s where I think the trouble starts. Technical debt is a great metaphor for explaining that your decisions have consequences. It’s a terrible analogy if you take it literally, because then you go looking for a ledger, a balance, and a payment schedule, and real technical debt doesn’t work like that. Some of it you’ll live with forever and never repay, and that’s the right call. Some of it is cheap. Some of it is quietly compounding in a corner of the system nobody looks at.</p><p>The whole point of the metaphor was to make you ask what a decision is going to cost you later, and then decide with your eyes open whether it’s worth it. A tool that hands you a number of days skips that conversation entirely, and that conversation was the part that mattered.</p><h3>What the tools actually count</h3><p>So what’s in that technical debt number? Mostly it’s coding-rule violations multiplied by an estimated time to fix each one, plus metrics like cyclomatic complexity. Every minute your team spends chasing those is a minute not spent on new features or on finding real problems, so it’s fair to ask whether the number has earned that time.</p><p>Take complexity. McCabe’s cyclomatic complexity counts the decision paths through a function, and lots of teams set a threshold and fail the build when a function goes over it. Sounds reasonable. Now watch what happens. A developer has a function over the limit, and the fastest way to make the warning go away is to break it into three or four helper functions. Each one passes, the dashboard turns green, and the logic is now spread across five places with more interfaces between them. It’s harder to follow than it was before.</p><p>The complexity didn’t go away. You just can’t see it anymore. That’s my real problem with this particular metric, because in practice it hides complexity at least as often as it removes it. It’s a textbook case of Goodhart’s law, the observation that once a measure becomes a target it stops being a good measure.</p><p>There’s also a decent argument that cyclomatic complexity is mostly measuring size. <a href="https://www.scirp.org/html/779.html">One 2009 study</a> found it tracks lines of code so closely that it has essentially no explanatory power of its own. <a href="https://doi.org/10.1002/smr.1760">A later and larger study</a> of Java methods and C functions pushed back, finding the correlation real but not strong enough to call the two redundant. Either way, if your “complexity” number is driven largely by how long the function is, you’d want to know that before you build release gates around it.</p><h3>The iceberg</h3><p>Static analysis is only the tip of the technical debt iceberg, and that’s not just me saying so. In 2015 a team at Carnegie Mellon’s Software Engineering Institute <a href="https://doi.org/10.1145/2786805.2786848">surveyed 1,831 engineers and architects</a> across three large organizations. Architecture choices came out as the biggest source of technical debt, and the respondents saw rule-violation tools as having minimal value for understanding it. (Granted, it’s only three companies. But it lines up with what I’m seeing.)</p><p>Here’s roughly where the line falls. Each row is the same topic looked at twice, once at the level of the code and once at the level of the decisions behind it, and static analysis only gets to look at the first one.</p><figure><img alt="What static analysis can find in the code versus what it can’t see in the decisions" src="https://cdn-images-1.medium.com/max/1024/1*JbkcbpPJwsxcED1ZGjPA-w.png" /><figcaption>What static analysis finds vs debt</figcaption></figure><p>Using a poor framework for the job is my favorite example, because it can be the most expensive decision in the whole project and there’s no rule for a scanner to fire on. Every line can be clean and conforming and you’ve still built on the wrong foundation.</p><h3>“No debt” doesn’t mean shippable</h3><p>Which brings me to the part that worries me most. A clean static analysis report gets read as proof that the code is in good shape. Zero findings means you followed the rules you configured, and that’s worth something. It doesn’t tell you the architecture will scale, that the requirements were right, or that anyone on the team understands the code well enough to change it next year. I’ve watched teams burn their findings down to zero, declare the debt paid off, and then have the framework choice or a missed requirement sink the next release anyway.</p><h3>Where static analysis earns its keep</h3><p>Don’t misunderstand me, I’m not anti-static analysis. (I’ve spent over 30 years helping people improve their software with it.) Static analysis is good at finding possible bugs and vulnerabilities, and it’s great at enforcing practices, both by prohibiting the bad stuff (don’t build a SQL query directly out of something a user typed) and by requiring the good stuff (sanitize your inputs).</p><p>It’s also one of the best on-the-job training tools you can have. A solid coding standard, enforced from the first day, flags a developer doing something unsafe or unreliable before it turns into a habit. That’s prevention, and it’s the right way to use the tool. You can’t test quality into software, you have to build it in, and enforcing good practice while the code is being written is how you build it in.</p><p>What static analysis isn’t is a technical debt meter. When it gets sold as one it can feel a lot like snake oil, and that does the tool a disservice, because people who get burned by the debt number stop trusting the findings that actually matter.</p><h3>Debt in the age of AI code</h3><p>When I first started talking about this, getting people to stop treating their scanner output as a debt balance was the main event. Now it’s the warm-up act. Everything above is still true, and AI coding assistants have added some new kinds of debt that no scanner was built to catch.</p><p><strong>Comprehension debt.</strong> Code goes into production that nobody on the team really understands. This is closer to what Ward meant than any lint warning, because his whole model depends on refactoring as your understanding improves. If you never had the understanding in the first place, there’s nothing to improve on.</p><p><strong>Decision debt.</strong> There’s a big difference between letting an AI write code for you and letting it choose for you. Assistants pick libraries, patterns, and frameworks based on what’s common in their training data, not on what fits your system. Every one of those is an architecture decision, and more and more of them are getting made by default.</p><p><strong>Rationale debt.</strong> The reason a piece of code looks the way it does used to live in a design doc, a commit message, or at least somebody’s memory. Now it often lives in one developer’s chat history, where nobody else on the team will ever find it.</p><p><strong>Duplication.</strong> An assistant doesn’t know what’s already in your codebase unless you tell it, so instead of reusing the function you already have, it will often write you another one. Sometimes that’s a literal copy of nearby code, and sometimes it’s a brand-new function that does the same job a little differently. <a href="https://www.gitclear.com/ai_assistant_code_quality_2025_research">GitClear’s 2025 code quality report</a> measured the first kind. Across their 2020 to 2024 data they saw a several-fold increase in duplicated code blocks as AI assistants caught on, along with a sharp drop in moved code, which is their signal for refactoring and reuse. (GitClear sells code analytics, and their data shows a trend rather than proof that AI wrote every copy, so weigh it accordingly.) What I can tell you is that real organizations I talk to are actively working to stop it. Static analysis can catch the copy-and-paste kind. The second kind, two functions doing the same thing written two different ways, is much harder for any tool to spot, and it’s the one I’d worry about. The real fix is knowing what you already have, and making sure your assistant knows it too.</p><p><strong>Test debt.</strong> Ask an assistant for unit tests and you’ll often get tests that lock in whatever the code does right now, bugs included. Coverage goes up and the tests prove almost nothing. Goodhart again.</p><p>And then there’s vibe coding. When Andrej Karpathy <a href="https://x.com/karpathy/status/1886192184808149383">coined the term in February 2025</a>, he said himself it was good enough for throwaway weekend projects. That’s actually the debt metaphor used correctly: deliberate, prudent debt you never plan to repay because you’re going to throw the code away. The trouble starts when the weekend project ships.</p><h3>So what should you look at instead?</h3><p>I don’t expect anyone to rip the debt widget off their dashboard. But I’d like to see teams spend less time chasing it and more time on the things that decide whether a codebase stays healthy. A few places to start:</p><ol><li><strong>Review the architecture, not just the code.</strong> Put it on the calendar. Ask what you’ve learned since the design was set, and where the code no longer reflects it. That’s Ward’s debt, and it’s the kind you can actually pay down.</li><li><strong>Revisit your big choices on purpose.</strong> Frameworks, languages, platforms, major dependencies. They’re the most expensive decisions you make and the ones least likely to get a second look.</li><li><strong>Make sure a human can explain it.</strong> For every critical component, someone on the team should be able to walk through how it works without asking the assistant that wrote it.</li><li><strong>Write down why.</strong> Especially when an assistant made the choice. A two-line note in the commit message beats a chat history nobody else can see.</li><li><strong>Watch for duplication.</strong> Especially in AI-assisted code, and especially the kind that isn’t a literal copy: a second function that does what an existing one already does.</li><li><strong>Check that your tests assert something.</strong> A test that can’t fail isn’t telling you anything, no matter what it does to your coverage number.</li><li><strong>Keep static analysis doing what it’s great at.</strong> Enforce your standards, catch the bugs and vulnerabilities, and gate the build so new problems don’t get in.</li></ol><p>So use your static analysis for what it’s good at, and stop reading its output as your debt statement. The debt that’s going to hurt you is in the decisions, and the way you find it is to sit down with your team and ask what you know now that you didn’t know when you wrote the code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a4cbd973cf9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/technical-debt-was-never-about-your-scanner-5a4cbd973cf9">Technical Debt Was Never About Your Scanner</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tests Aren’t Medicine]]></title>
            <link>https://medium.com/commit-to-code-quality/tests-arent-medicine-f0684807a364?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0684807a364</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[functional-safety]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 20:44:39 GMT</pubDate>
            <atom:updated>2026-10-09T14:16:01.758Z</atom:updated>
            <content:encoded><![CDATA[<p>A while back I got into an argument on Twitter (back when it was still called that). Somebody posted that testing is the medicine that makes your application better. I replied that testing is the diagnostics that tell you your application needs medicine. They came back and said no, testing is the medicine, because it fixes the problems you have. Then a few more people chimed in with “testing is both,” which somehow annoyed me more than the original post.</p><p>So let’s take a look at what testing actually does for you and what it doesn’t, because I think the confusion does real damage. Don’t misunderstand me, I’m not saying testing isn’t important. It’s critical, and if you’re not doing enough of it you should go do more. I’m saying that a test, by itself, doesn’t fix anything. It tells you that you have a problem, and that’s all it does.</p><h3>The light on the dash</h3><p>Everybody reaches for the doctor analogy here, but I think your car works better, because a car has a whole range of testing built into it.</p><figure><img alt="Cartoon titled, Tests Aren’t Medicine, showing a side-by-side comparson of the test and the fix" src="https://cdn-images-1.medium.com/max/1024/1*puNZGG3Dw1HS-Ap2rs-JLQ.jpeg" /></figure><p>Low tire pressure is a real problem. The car handles worse, takes longer to stop, and you’re a lot more likely to end up with a blowout. The US government took it seriously enough to pass a law about it. In August 2000 Firestone recalled 6.5 million tires, mostly ones fitted to Ford Explorers, because the treads were peeling off, and a big part of the fight in the congressional hearings that followed was over tire pressure ( <a href="https://money.cnn.com/2000/09/21/companies/ford_hearing/index.htm">Ford told Explorer owners 26 psi, Firestone said 30</a>). Congress passed the TREAD Act that November, and NHTSA eventually <a href="https://www.federalregister.gov/documents/2005/04/08/05-6741/federal-motor-vehicle-safety-standards-tire-pressure-monitoring-systems-controls-and-displays">required a tire pressure monitoring system on every new light vehicle</a> starting in September 2007.</p><p>So think about how tire pressure gets tested over the life of a car. When you bought it, the dealer probably went around with a gauge and made sure all four tires were right. That’s a one-time test, and it’s not nearly enough, because tires leak.</p><p>You could do better by checking the pressure every time you stop for gas, which is the equivalent of running your tests on every build. I don’t do that. You know I don’t do that, so I’m not even going to pretend I do. My dad, maybe, but not me. It’s a good idea and you should do it.</p><figure><img alt="Cartoon titled, Tests Aren’t Medicine, showing a side-by-side comparson of the test and the fix" src="https://cdn-images-1.medium.com/max/300/0*ATM2Vr-4exq7qA2Y.jpg" /></figure><p>And if your car is newer than about 2007, there’s a sensor watching the pressure all the time, with a light on the dash that comes on when it’s low. How much that light tells you depends on the car. Some of them show you the actual pressure in every tire, and some are so simple they don’t even say which tire is low, so you get to walk around the car and find out for yourself (and it’s always the last one you check). So we’ve gone from one-time testing to scheduled testing to continuous testing, which is pretty much the path software has taken over the last twenty years, and everybody feels very modern about it.</p><p>Now you’re driving down the road, the car feels a little squirrely, maybe you notice and maybe you don’t, and the light comes on. Low tire pressure. Great, the test worked. If tests are medicine, you’re done, because the light came on and the problem is handled, so keep driving.</p><p>Nope, it doesn’t work that way. You have to pull over and put air in the tire, or put on the spare, or get it to someone who can patch it. The sensor finished its entire job the moment the light came on, and the tire is exactly as low as it was a second earlier.</p><p>That’s the point. Tests detect problems and let you know they’re there, and they don’t do a single thing about them. Somebody still has to.</p><p>(And yes, I know people who have driven around for months with that light on. That’s a different problem, and it deserves an article of its own.)</p><h3>A green light tells you less than you think</h3><p>The sensor also only knows what it was built to know. The <a href="https://www.federalregister.gov/documents/2005/04/08/05-6741/federal-motor-vehicle-safety-standards-tire-pressure-monitoring-systems-controls-and-displays">federal standard</a> says the light has to come on when a tire is 25 percent or more below the recommended pressure. So when the light is off, you don’t actually know your tires are fine. You know none of them is a quarter low. And the simple system that just says “a tire” gives you a lot less to work with than the one showing all four pressures, even though both meet the same federal rule. The tire sensor also won’t say a word about your oil, because that’s a different sensor. Every test tells you something different, and only the thing it was built to tell you.</p><p>Dijkstra said it better than anybody, back around 1970: “ <a href="https://www.cs.utexas.edu/users/EWD/ewd02xx/EWD249.PDF">Program testing can be used to show the presence of bugs, but never to show their absence!</a> “ When your suite runs green, you don’t know the application is good. You know it isn’t bad in the particular ways you thought to check.</p><h3>“But my tests do make the code better”</h3><p>To be fair to the other side, there are smarter versions of the “tests are medicine” argument than the one I ran into on Twitter, and they deserve an answer.</p><p>If you do test-driven development, you’ll tell me that writing the test first changes the code, because having to make something testable pushes you toward a better design. I agree that happens. But look at what’s doing the work. It’s the thinking you had to do about what the code is supposed to do and how you’d know if it did, and the test is where you wrote that thinking down. The design got better because you thought harder, and the test is the receipt.</p><p>You’ll also say that regression tests keep old bugs from coming back, and that sure sounds preventive. It’s still a detector, though, just one pointed at last year’s mistake. If somebody reintroduces that bug, the regression test doesn’t stop them from writing it. It turns on the light, and somebody still has to go fix it.</p><p>Then there’s the newest version. Hook an agent up to your test suite, and when a test fails the agent patches the code and reruns until everything’s green. Test and fix in one loop, so isn’t that medicine? I’d say it proves my point. Something other than the test did the fixing, and the agent only knows what “fixed” means because the test told it. If the test checks the wrong thing, the agent will keep changing your code until the wrong thing passes. It’s like the mechanic who keeps swapping parts until the check engine light goes off (in the trade they call that firing the parts cannon). Eventually the light does go off, and you’re left with a big bill, a car full of new parts, and no idea whether the thing that was actually wrong ever got fixed.</p><h3>Where this actually hurts</h3><p>Why does any of this matter beyond winning an argument on the internet? Because the medicine mentality is how people end up believing that if they just do enough testing, their software will be safe and secure and reliable. And it won’t be.</p><p>Security is where I see this the worst. Teams treat pen testing and DAST and fuzzing as if they take the place of building secure code. They don’t take the place of anything. They tell you the software has problems, which is valuable and necessary, and then somebody has to fix those problems, and ideally figure out why they keep showing up.</p><h3>Go find the nail</h3><p>Manufacturing figured this out a long time ago. Harold Dodge, who helped invent statistical quality control at Bell Labs, put it as “You can not inspect quality into a product.” Deming spent decades hammering the same idea into American industry: “ <a href="https://deming.org/inspection-is-too-late-the-quality-good-or-bad-is-already-in-the-product/">Inspection is too late. The quality, good or bad, is already in the product.</a> “ Swap “test” for “inspect” and you’ve got this whole article, about forty years late.</p><p>So what do you do when the light comes on? Three things, in order.</p><ol><li><strong>Fix what it found.</strong> In the code, not in the test (unless the light wasn’t supposed to come on in the first place, but again, that’s a different article). Adjusting the test until it goes quiet is the software version of putting a piece of tape over the dash light. (I hope you aren’t doing this.)</li><li><strong>Ask why it happened.</strong> If the same tire keeps going low, at some point you stop topping it up and go find the nail.</li><li><strong>Change how you build so that kind of problem is hard to create in the first place.</strong> Coding standards, static analysis, memory-safe languages, design reviews, whatever closes off that class of mistake before it ever reaches a test.</li></ol><p>Now, I’m not saying prevention is free. Tire makers have been working on airless tires for years (Michelin’s prototype is called Uptis), and you can see the appeal, because a tire with no air in it can’t go flat. But they’re harder to make, they’re going to cost more, and from <a href="https://www.jalopnik.com/1922000/why-cars-dont-have-airless-tires/">what’s been reported so far</a> they ride stiffer, pass along more road noise, and have a harder time getting rid of heat at highway speeds. So you weigh the chance of a flat against all of that, and for most of us today the answer is still a regular tire and a pressure sensor. Software works the same way. Every one of those prevention techniques costs something, whether it’s tooling, training, slower builds, or rewriting code in a new language, so look at the risk, the benefit, and the cost, and spend where it pays off. For a pacemaker or a flight controller, that math comes out very differently than it does for your marketing site.</p><p>Memory-safe languages are the airless tire of software, and the tradeoffs look a lot alike. The upside is huge. The <a href="https://www.chromium.org/Home/chromium-security/memory-safety/">Chromium team says</a> around 70% of their high-severity security bugs are memory safety problems, and <a href="https://www.microsoft.com/en-us/msrc/blog/2019/07/a-proactive-approach-to-more-secure-code">Microsoft has reported about the same</a> for the vulnerabilities in its own products. That won’t be true of everybody’s code, but it shows you how much is on the table. In a language like Rust the compiler stops most of that class of mistake at build time, before there’s anything to test. That’s prevention in its purest form. But it isn’t free either. Somebody has to rewrite or wrap a lot of existing C and C++, your team has to learn a new language, the tooling and certification story for safety-critical work is still catching up, and the moment you call into old C code (or use the unsafe keyword), some of the guarantee goes out the window. And it does nothing at all for logic bugs, so you still need the sensors. Whether it&#39;s worth it for your code is exactly the risk, benefit, and cost question, and that&#39;s a story for another day.</p><p>And then keep testing, because you still need to know when something gets through. Keep the sensors, and keep checking your tires at the gas station if you’re more virtuous than I am. Just don’t confuse the light on the dash with air in the tire.</p><p><em>Originally published at </em><a href="https://codecurmudgeon.com/wp/2026/10/tests-arent-medicine/"><em>https://codecurmudgeon.com</em></a><em> on October 8, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0684807a364" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/tests-arent-medicine-f0684807a364">Tests Aren’t Medicine</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jumping the Goldfish: IoT Insecurity Eight Years Later]]></title>
            <link>https://medium.com/commit-to-code-quality/jumping-the-goldfish-iot-insecurity-eight-years-later-122ffa33eaa5?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/122ffa33eaa5</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 02:26:51 GMT</pubDate>
            <atom:updated>2026-10-02T15:24:05.605Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Collage of photographs showing devices that have been hacked" src="https://cdn-images-1.medium.com/max/800/1*svya40EHq8PxolrCC9QWrg.jpeg" /><figcaption>Things that have been hacked</figcaption></figure><h3>The fish will die</h3><p>Picture the meeting where somebody designs an internet-connected thermometer for a fish tank. Someone asks what the risk is, and the answer is pretty simple: if this thing fails, the fish die. So you put a warning on the box (we’re in California, so there’s going to be a warning on the box anyway), you change “may die” to “will die” so legal is happy, and you’re done. Attack surface considered, liability covered, ship it.</p><p>And honestly, if you’d walked up to your IT team and said “I want to put a thermometer on the network so I can make sure the fish don’t die,” a lot of them would have said yes. You won’t admit it now, but you might have.</p><p>In 2017 the security firm Darktrace <a href="https://www.securityweek.com/hacked-smart-fish-tank-exfiltrated-data-rare-external-destination">described an incident</a> at a North American casino where attackers got in through exactly that kind of fish tank. The tank had sensors connected to a PC that handled temperature, feeding and cleaning, and according to Darktrace, somebody got into the fish tank, used it to move around into other parts of the network, and sent data out. The next year Darktrace’s CEO <a href="https://www.casino.org/news/hackers-stole-las-vegas-casino-high-roller-database-via-its-fish-tank/">told the story at a Wall Street Journal conference in London</a> with the detail that makes it hurt: what went out through the thermometer was the casino’s high-roller database. (The casino has never been named, and everything we know comes from Darktrace, which sells the kind of monitoring that caught it, so take the details with the appropriate grain of salt.)</p><p>So if you’re a high roller, think about the fact that the casino has your data and not just your money, and the data may be worth more than whatever you left on the table. The part that still gets me is that the data went out through the thermometer. A thermometer should send a tiny bit of data, on a schedule, to one place. According to Darktrace’s 2017 threat report, this one sent about 10GB to a device in Finland, over a protocol normally used for audio and video, and that’s exactly what gave it away. Their monitoring flagged the fish tank because it was suddenly moving unusual amounts of data to a destination it had never talked to before. Nobody had thought of the thermometer as a security problem, but its traffic made the problem obvious to anyone who was watching.</p><h3>Jumping the goldfish</h3><p>I told a version of that story in 2018 at Cybersecure LA, a conference where local business leaders work with Pepperdine and government security people. I called the talk “jumping the goldfish,” and I opened by putting a slide full of devices up and asking which of them had been hacked. The answer was all of the above. At the time I kept a running list called the IoT Hall of Shame, and I couldn’t keep up with it, because it was a daily thing. (It’s not current anymore. Keeping up turned out to be a full-time job, and I already have one.)</p><p>The question I heard over and over back then was “why does it matter? It’s just a stupid little light bulb.” And that’s the problem, because the risk analysis for these things almost always asks what the device can do. A light bulb can turn a light off. A thermometer can report the wrong temperature. Who cares? The better question is what the device can reach, and a thermometer on the casino network can reach the casino network.</p><p>Eight years on, some of those stories have aged, some of my predictions came true, and a few details needed fixing, which is what happens when you fact-check something you said live with a microphone in your hand. So here are a few of the stories across different markets, the tactics they have in common, and what to do about it, both if you build these things and if you buy them.</p><h3>Who cares about my X-ray?</h3><p>A family member used to work for a company that did red team work (they attacked people for money, and for a while it ran in the family). We got talking about hospitals once, and the way it was described to me, hospitals think about security like a castle. The bad guys are outside the walls trying to figure out how to get in.</p><p>Around the same time my dad had a heart attack, and I walked into his room and counted four devices with USB ports on them. How often is a nurse in that room? Could somebody get a few minutes alone with one of those devices? Absolutely. I work with the safety-critical software industry, which includes medical device makers, so I knew enough about the infusion pump brands to have an opinion. When the nurse asked what I was doing poking at the pump, I told her that if it had been a particular other brand I’d have asked her to take it out of the room. (I’m not going to tell you which one.)</p><p>The pumps were what I worried about, because they’re right there with the patient and a bad dose is obviously a safety problem. But the data from the time said I was worrying about the wrong box. <a href="https://www.rtinsights.com/medical-iot-needs-stronger-dose-of-security-survey-finds">A 2018 report</a> from ZingBox, a security vendor focused on connected devices, looked at tens of thousands of devices across more than 50 hospitals and found that imaging systems made up 19 percent of the connected medical devices but accounted for 51 percent of the security issues, while infusion pumps accounted for about 2 percent. Imaging machines run lots of network applications, they’re often built on commercial operating systems, and they tend to outlive their support agreements. Nobody thinks of the X-ray machine as the dangerous one. Someone gets a copy of my X-ray, who cares?</p><p>Here’s why you should care anyway, and it has nothing to do with somebody seeing your X-ray. Put a commercial operating system together with a support agreement that ran out years ago, and a lot of those imaging machines are really just old, unpatched Windows PCs with a very expensive peripheral attached. Nobody has to target them. When WannaCry hit in May 2017, it was a worm looking for unpatched Windows anywhere it could find it, and inside hospitals it found plenty, including the imaging gear. The UK’s <a href="https://www.nao.org.uk/reports/investigation-wannacry-cyber-attack-and-the-nhs/">National Audit Office</a> found that at least 81 of the 236 hospital trusts in England’s National Health Service were affected and an estimated 19,000 appointments were cancelled, and besides the office computers it locked up equipment like <a href="https://www.digitalhealth.net/2017/10/wannacry-impact-on-nhs-considerably-larger-than-previously-suggested/">MRI scanners and machines for testing blood and tissue samples</a>. The scanners weren’t the target, they were collateral damage, and that’s worse, because it means a device can take a hospital down without anyone ever thinking about it at all. Castle walls are great at keeping out the big things, like armies and wolves and the neighbor’s dog. They don’t do a thing about cockroaches. Cockroaches are small and nasty, they get in through cracks nobody is watching, and once they’re in, they’re everywhere. WannaCry was a cockroach infestation, and those old imaging machines were the cracks. (The Audit Office also noted that the <a href="https://www.healthcareitnews.com/news/nhs-department-health-warned-get-their-act-together-after-national-audit-office-wannacry">device vendors often weren’t much help</a> with the extermination.) They also got lucky, because a researcher found a kill switch that stopped it from spreading further.</p><p>And my worry about the pumps? It didn’t go away, it just took a while. In 2022, researchers at Palo Alto Networks (who, as it happens, <a href="https://www.paloaltonetworks.com/company/press/2019/palo-alto-networks-completes-acquisition-of-zingbox">bought ZingBox</a>) <a href="https://unit42.paloaltonetworks.com/infusion-pump-vulnerabilities/">looked at 200,000 network-connected infusion pumps</a> and found that 75 percent of them had known security issues. More than half of them were exposed to the same pair of 2019 flaws in VxWorks, an operating system used in a huge number of embedded devices, and one of the two was a buffer overflow. Remember that when we get to the part about how we build software.</p><h3>The tricks are older than the devices</h3><p>The devices change every year, but the ways in keep repeating. Here are the ones that show up over and over in these stories.</p><h3>Chatty devices that trust everybody</h3><p>When I gave the talk I asked how many people in the room had Philips Hue bulbs, and a good quarter of them did. Fewer had ever updated the software inside them. Smart bulbs talk to each other, and in 2017 <a href="https://www.ieee-security.org/TC/SP2017/papers/13.pdf">a group of researchers showed</a> they could put malicious software on a Hue bulb and have it spread to neighboring bulbs, and not just the ones in your house but the ones in your neighbor’s house too, because the bulbs didn’t do much to check who they were talking to. I could pretend to be a bulb and the others would listen to me. Philips fixed the spreading problem, but you could still take over an individual bulb.</p><p>Then in 2020 <a href="https://blog.checkpoint.com/2020/02/05/the-dark-side-of-smart-lighting-check-point-research-shows-how-business-and-home-networks-can-be-hacked-from-a-lightbulb/">Check Point took the next step</a> and went after the Hue bridge. That’s the little hub plugged into your router that the bulbs in your house talk to (or at least are supposed to talk to, instead of chatting over the fence with the neighbor’s bulbs). They took over a bulb, made it act glitchy so the owner would remove it from the app and then pair it all over again, and when the bridge found it again the bulb hit the bridge with one of the oldest tricks in the book, a heap-based buffer overflow (publicly catalogued as CVE-2020–6007, the ID number known vulnerabilities get), and used it to install malware on the bridge.</p><p>If nobody’s ever explained a buffer overflow to you, think of pouring a 16-ounce drink into a 12-ounce cup. The program set aside room for a certain amount of data, the bulb sent more than that, and nothing checked. With a real cup, the extra just makes a mess on the table. In a computer, the extra spills into the memory next door, and if the attacker gets to choose what spills over, they can get the program to run their instructions instead of its own. (The “heap” part just tells you which area of memory the cup was sitting in.) This isn’t some exotic new technique. Writing past the end of a buffer has been one of the most common software weaknesses for decades, and it’s not going away. About a quarter of <a href="https://cwe.mitre.org/top25/archive/2025/2025_cwe_top25.html">MITRE’s 2025 Top 25 list</a> of the most dangerous software weaknesses is buffer overflows and their memory-handling cousins.</p><p>Back to the light bulb. Once they owned the bridge, they were on your home or office network, so from there they went after the computers using EternalBlue, the same exploit WannaCry used. A light bulb took over your network. Newer bulbs don’t have the problem, but if you’ve got old ones, update them, and if they’re too old to update, throw them away. I’m serious about that.</p><p>Devices should be seen and not heard. I don’t mean a light that says “welcome home” when you walk in. I mean how much it talks on the network: how many conversations it has, with whom, and how often. A light bulb really only needs to hear “on” and “off” from one controller. Plenty of devices do a lot more than that. They announce themselves to everything on the network, answer anybody who asks, listen for connections nobody uses, and check in with servers out on the internet. Chatter inside your network means that if anything else on it gets compromised, it can easily find your device and talk to it. Chatter outside your network, heaven forbid, means your device is regularly sending data out of the building to somebody else’s servers, and if that’s normal for it, a little extra data going out is much harder to notice. The more a thing talks, and the less it checks who it’s talking to, the more ways there are in.</p><p>And for the people who think an unusual wireless protocol is protection (the radio signals your bulbs, sensors and gadgets use to talk to each other without wires): security through obscurity doesn’t work, and radio isn’t even obscurity. People have been listening in on radio for as long as there’s been radio, and today an inexpensive receiver plugged into a laptop will do it. You can hide a wire inside a wall, but a radio signal goes right through the wall and out into the street.</p><h3>Something already inside the walls</h3><p>The fish tank, the imaging machines and the Hue bridge all have this in common. Nobody broke through the firewall. They used something that was already trusted and already inside, and then moved around from there. If your security model is a castle, these are the things somebody carried in through the front gate because they looked harmless.</p><h3>Devices pretending to be something else</h3><p>There’s a classic attack where a tiny computer is built to look just like a USB drive. You plug it in, and it tells the computer it’s a keyboard, and then a mouse, and it starts typing and clicking. Walk away from your unlocked laptop for a couple of minutes before the screen saver kicks in, and somebody can plug that in and own your machine. When I plug in a keyboard, I expect it to be a keyboard. If I bought some very cheap thing from somewhere I’ve never heard of, maybe it’s more than a keyboard. Think about where your stuff comes from.</p><p>Which brings me to my favorite phone call. A while back I got a voicemail from someone claiming to be from a government law enforcement agency. I don’t expect a call from law enforcement. That’s just not how they operate, so a voicemail like that has “scam” written all over it. Being the kind of guy I am, I didn’t call the number back. I called the agency’s main line and asked whether that number and that person were real. They were, and the agency told me exactly how to make him authenticate himself, which I did, and he put up with it. (He was asking about a former employee I couldn’t remember, so he went through all that for nothing.)</p><p>While we were chatting about security, he mentioned he’d found a USB drive in the agency’s parking lot that morning, carried it into the building, and plugged it into his computer to see what was on it. A law enforcement officer, in a big government office with an IT department. I asked him if he knew not to do that, and he said he wanted to see if there was something bad on it. Well, that’s one way to find out. Don’t pick up USB drives. I had planned to leave one lying around at the conference that would phone home if anybody plugged it in, just to see, but I decided that was evil. The odds were pretty good, though.</p><h3>Setting up the click</h3><p>A white hat hacker I work with has a favorite spear phishing trick (a scam aimed at one specific person rather than everybody). He sends his target an email with a PDF attachment that’s deliberately broken. There’s no malware in it, so it passes every scanner, it just won’t open. Then he calls and says “hey, I just sent you that invoice, did you get it?” No, it wouldn’t open. “Oh, what version of Acrobat are you using?” Now he sends a second email with an attack built for that exact version, and you’re expecting it, so of course you open it. Notice what happened there. The usual advice is not to open attachments you weren’t expecting, and that’s good advice, but this trick is built to get around it. The first email carries nothing. Its only job is to make the phone call sound reasonable, and the phone call turns the second email from unexpected into expected.</p><p>That’s social engineering, which is about the oldest security attack in the world: talk a person into opening the door for you. No device fixes it, and it’s the same pattern as the parking lot USB drive, where you get somebody inside to carry it in for you. The defense is the one I used on my mysterious law enforcement caller. If somebody contacts you about a file, an invoice or anything else, check them out through a channel you already trust, not the one they handed you.</p><h3>It’s just a tire sensor</h3><p>At the talk I asked who owned a Chrysler product newer than 2014. One guy admitted it. That was the Jeep that Charlie Miller and Chris Valasek took over remotely in 2015, which ended in <a href="https://darkreading.com/vulnerabilities-threats/chrysler-recalls-1-4-million-vehicles-after-jeep-hacking-demo">a recall of 1.4 million vehicles</a>, so the idea that a car can be hacked wasn’t news even then. What interests me more is the little stuff in the car that nobody thinks of as a computer on a network.</p><p>Take tire pressure sensors. They’re required on new cars in the US and Europe because low tires cause accidents, so regulators decided a sensor in every wheel, chattering away over the radio, was worth it. They’re low-power radios, meant to reach only from the wheel to the dashboard, so the thinking was that nobody else could really hear them. And even if somebody did, every brand, and sometimes every model year, spoke a different protocol (its own little radio language), so good luck making sense of it.</p><p>Back in 2010 <a href="https://www.usenix.org/conference/usenixsecurity10/security-and-privacy-vulnerabilities-car-wireless-networks-tire-pressure">researchers from Rutgers and the University of South Carolina</a> showed that the sensors didn’t check who was talking and didn’t scramble their signals, that you could pick up those signals from 40 meters away, and that you could fake them well enough to trigger the low-tire warning in a car moving next to yours on the road. In one case they confused the system so badly the dealer had to replace it. So much for nobody being able to hear them. And it didn’t get better with time. In 2021, <a href="https://cwssp.uccs.edu/sites/g/files/kjihxj2466/files/2021-09/4_Securing%20Tire%20Pressure%20Monitoring%20System%20for%20Vehicular%20Privacy.pdf">researchers at the University of Colorado Colorado Springs</a> went back and found tire sensors on cars from 2013 through 2019 still broadcasting in the clear and readable from 35 meters away, this time with under $50 of radio gear instead of the original team’s $1,500. (That also means your tires can be used to track your car.)</p><p>As for all those different languages, that was never much protection, because an attacker only needs to learn the one your car speaks. And it’s far less true than it used to be. The same 2021 team found that tire sensors across vehicle models use just nine data formats on two radio frequencies, and car makers have been <a href="https://doi.org/10.3390/app13031278">consolidating on common protocols</a> across the rest of the vehicle too. The fallback argument was that the worst case is either a false warning (annoying) or a missed one (maybe dangerous). Who cares?</p><p>A couple of years before the talk I was at an IQPC conference in Berlin and got into a conversation with an engineer from a car maker I won’t name. They’d been advertising a self-inflating tire system, so I asked him whether it worked while the car was moving. Yes. And how fast and how hard could it pump? Pretty fast, with a lot of pressure, because tires heat up when you drive and the pressure changes, and the system has to keep up. So I asked what his system would do if a sensor suddenly reported that a full tire was dropping toward zero. He thought about it for a second and said, well, it would try to fix it, and you could blow the tire right off the car.</p><p>Then I asked whether that was in his hazard analysis, the safety review the car industry’s ISO 26262 standard requires, and what risk level he’d given it. It wasn’t in there. And I want to be fair to him. This wasn’t a lazy engineer or an unserious company. He was a dedicated guy at a company that builds good vehicles, and he saw the problem the moment I asked. Their analysis assumed the sensor was telling the truth, because the sensor is just a sensor. Safety engineering trains you to ask what happens when something breaks. Asking what happens when somebody makes it break on purpose takes a more devious mind. To be clear, I don’t know of anybody who has actually done this, and I’m not saying it would be easy. But faking the sensor had already been demonstrated, and when they thought about what could go wrong, nobody had connected the sensor to the pump.</p><p>That’s the fish tank again, only with more sophisticated people missing it and much higher stakes. And here’s the part that aged well. In 2018, automotive cybersecurity was guidance, not a requirement. SAE had published <a href="https://saemobilus.sae.org/content/J3061_201601/">a recommended practice</a> in 2016, and the US National Highway Traffic Safety Administration had issued <a href="https://butzel.com/alert-The-Imperative-of-Security-by-Design--NHTSA-Releases-Cybersecurity-Best-Practices">voluntary best practices</a> the same year, but nothing made a carmaker do any of it. Since then ISO/SAE 21434 was published in 2021 as the cybersecurity engineering standard for road vehicles, and a United Nations vehicle regulation, <a href="https://www.itemis.com/en/glossary/unece-r155/">UN Regulation 155</a>, made an audited cybersecurity management system mandatory for new vehicle types starting in July 2022, and for all new vehicles starting in July 2024, in the countries that adopted it, including the whole EU. The industry eventually had to be told, by rule, to ask the question I was asking in that hallway.</p><h3>If you build these things</h3><p>I spend my days on security from the inside out, at the code level, and I’ve been on the same soapbox since long before this talk. It’s an old adage that you can’t test quality into a product. Somehow we still think we can test security into one. You can’t. By the time the penetration testers (the people you pay to break in) find the buffer overflow, it’s already in the code, and probably in a few other places they didn’t look.</p><p>Look back at what actually broke in these stories. The Hue bridge fell to a heap-based buffer overflow. More than half of those infusion pumps were exposed to a buffer overflow in their operating system. The tire sensors accepted any data from anybody without checking it. None of that is exotic. It’s the stuff we’ve known how to prevent for decades, which is the frustrating part.</p><p>Think about the little UL mark on almost every electrical thing you own. It means the device was built to engineering standards and isn’t going to shock you under normal conditions. There are standards and lists that do the same job for security, and the point of them is to keep the problem from getting into the code in the first place rather than hunting for it afterward:</p><ul><li>The Common Weakness Enumeration, a shared list of software weakness types, which is the language most vulnerability reports and tools speak. The <a href="https://cwe.mitre.org/top25/archive/2025/2025_cwe_top25.html">CWE Top 25</a> is a reasonable place to start if you don’t know where to start.</li><li><strong>CERT C and CERT C++.</strong> Carnegie Mellon Software Engineering Institute’s secure coding standards, built directly around how code gets exploited.</li><li><strong>OWASP.</strong> The Open Worldwide Application Security Project, best known for its Top 10 lists. The one that matters here is the <a href="https://www.owasp.org/www-project-internet-of-things">OWASP IoT Top 10</a>, the top things to avoid when building, deploying or managing connected devices. Number one is weak, guessable or hardcoded passwords. It’s still the 2018 edition, and most of it still reads like this week’s news.</li><li><strong>UL 2900.</strong> The UL 2900 series covers software cybersecurity for network-connectable products, with parts specific to areas like medical devices. I sat on the UL 2900 board, so I’m biased, but it’s the closest thing to that UL sticker for connected software.</li><li>MISRA’s coding guidelines started in the car industry and are now used in embedded software everywhere. People think of MISRA as a safety standard, and MISRA themselves complained about that perception. In 2016 they published <a href="https://ldra.com/25-years-of-misra-c-making-safety-security-relevant-for-embedded-developers/">Amendment 1 to MISRA C:2012</a>, which added 14 security guidelines (a number of them about tainted data, meaning input you shouldn’t trust), along with guides showing how MISRA lines up with other secure coding rules, including CERT C. That security material is now folded into the consolidated MISRA C:2023 and the current MISRA C:2025, and MISRA C++:2023 picked up the security work too. If you’re writing embedded C or C++ and you’re already doing MISRA for safety, you’re closer to secure code than you think, as long as you’re using the current editions.</li></ul><p>Beyond coding standards, two things would have stopped a lot of these stories. First, devices should check who they’re talking to before they believe anything. A bulb shouldn’t take firmware from another bulb because it asked nicely, and a tire pump controller shouldn’t believe any radio message that claims to be a tire. Second, when you think through how your device could be attacked, don’t stop at what the device does. Ask what it can reach, and what else trusts it. If your sensor feeds something that can blow a tire off a car, the sensor isn’t “just a sensor” anymore, and your hazard analysis should say so.</p><p>(And yes, memory-safe languages take a whole class of these bugs off the table, but that’s a tale for another day.)</p><h3>If you buy these things</h3><p>Most of us aren’t building light bulbs or fish tank thermometers. We’re buying them, plugging them in, and forgetting about them, and that’s where most of the risk actually lives. Here’s what I’d do.</p><p><strong>Keep strangers off your network.</strong> When I asked the room how many people let a visiting friend or relative onto their home Wi-Fi, nearly everybody raised a hand. You’re all so nice. Practically every router sold in the last several years supports a guest network, so use it, for guests and for the gadgets you don’t fully trust. My plan for the lizard’s tank (more on the lizard below) was to put the whole contraption on the guest network, because I didn’t trust it either. At work, segment your network so the cheap stuff can only reach what it needs. Just don’t assume that’s the end of it. The casino actually did this: according to Darktrace, the fish tank had its own private, separate connection, isolated from the rest of the network, and the attackers got through anyway. That’s not a reason to skip it. People can still steal your car, but you should still lock the doors.</p><p><strong>Watch what your devices are saying.</strong> Back in 2011 <a href="https://www.infoworld.com/article/2293704/chinese-hack-on-u-s-chamber-of-commerce-went-undetected-for-6-months.html">the Wall Street Journal reported</a> that Chinese hackers had been inside the U.S. Chamber of Commerce network for months, and after the Chamber cleaned up, it kept seeing strange things. A thermostat in a Chamber-owned townhouse on Capitol Hill was communicating with an internet address in China, and a printer started spitting out pages of Chinese characters. So the Chamber thought it had the problem shut down, and then, by the way, the thermostat is talking to China. Maybe they’d shut it down and maybe they hadn’t. I don’t expect my thermostat to send packets anywhere interesting, and if it starts sending big ones somewhere I’ve never heard of, I want to know. How many of you have ever checked what your thermostat talks to? At the talk, two people raised their hands. Good on them.</p><p>Monitoring is what caught the fish tank, but look at the timing. It caught it after about 10GB had already left the building. Monitoring tells you something is wrong. It doesn’t stop the first gigabytes from going out the door, and it only limits the damage if somebody is watching the alerts and acts on them fast. A high-roller database that’s halfway to Finland is still in Finland.</p><p>So use monitoring to back up something stronger. A thermometer’s normal behavior is easy to describe: small readings, on a schedule, to one place you know. Write that down as the rule, and block everything else where your network meets the internet instead of just flagging it. If the fish tank had only been allowed to talk to its vendor’s server, 10GB to a stranger in Finland wouldn’t have been an alert. It would have been a dropped connection. Segmentation limits what a device can reach, outbound rules limit what it can send, and monitoring catches what slips past both. You want all three, because any one of them alone is how you end up in somebody’s conference talk.</p><p><strong>Ask whether the connection is worth it.</strong> Right before the talk I downloaded a bell app, just to see. You open it, there’s a bell, you shake the phone, the bell rings. That’s the whole app. The top-rated one in the store wanted access to my photos, my files, and my call history. Why does a bell need my call history? No, thank you. For every connected thing, ask yourself whether what the connectivity gives you is worth more than the risk it brings. Sometimes it is. Your kids’ connected toys, though? Just say no. Researchers have found toys that were effectively listening devices, and it gets worse. In 2017 <a href="https://www.engadget.com/2017/02/17/germany-bans-my-friend-cayla-doll/">Germany’s telecom regulator banned a talking doll</a> called My Friend Cayla and told parents to destroy the ones they had, because researchers showed that anyone within Bluetooth range could connect to it, listen to the child playing with it, and talk to that child through the doll. Ugh. I can’t think of a creepier thing to bring into the house.</p><p><strong>Think about where it comes from.</strong> Be careful what you’re buying, where it’s built, how it’s assembled, and who’s standing behind it. The cheapest thing on the marketplace may be cheap for a reason.</p><p><strong>Hold vendors accountable.</strong> Don’t buy devices whose makers won’t tell you how they handle security and updates. If you’ve got one that turns out to be junk, complain, ask for your money back, and tell people. If you buy at work, this is where you ask vendors what’s in their software, how long they’ll patch it, and how they’ll tell you when something’s wrong. Companies that make insecure devices only change when it costs them money, and you’re the one with the money.</p><p>About the lizard. A relative had a bearded dragon, and those need careful temperature control or they die. Naturally I wanted to wire up the tank with thermometers, day and night light cycles, an oxygen sensor, the works, with alerts to my phone. They said no, it’s just a lizard. So we did nothing, the heating element quietly broke during a cold snap, and the lizard died. So I’m not telling you to give up on connected stuff. I’m telling you to connect it on purpose, knowing what it can reach.</p><h3>Regulation or insurance, pick one (they picked both)</h3><p>I closed the 2018 talk by saying we were going to get regulation, and that the real argument was regulation versus insurance. Either you make it legally unviable to ship junk, or you make it financially unviable. Either one works.</p><p>The regulation showed up. <a href="https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=CIV&amp;sectionNum=1798.91.04.">California’s law</a> requiring connected devices to ship without a universal default password took effect in 2020. The UK’s <a href="https://thehackernews.com/2024/04/new-uk-law-bans-default-passwords-on.html">product security law</a> banned default passwords on consumer connected products in 2024, along with requiring a way to report vulnerabilities and a stated minimum update period. The EU’s <a href="https://vinciworks.com/blog/cyber-security-in-2026-the-legislative-shifts-your-compliance-team-should-prepare-for/">Cyber Resilience Act</a> entered into force in December 2024, its vulnerability reporting obligations kicked in just this September, and full compliance, including security by design and the CE mark products need to be sold there, applies from December 2027. Add the UN rule for cars and that’s a lot of rules for something everybody told me was just a stupid little light bulb.</p><p>The insurance part was less of a guess than it sounded. Some of the people in the Cybersecure LA community were cyber insurers, and we’d had long conversations about where their policies were heading. On stage I said that if I were writing cyber insurance policies, I’d exclude anything with a vulnerability published in the National Vulnerability Database that you hadn’t patched, because insurers are in business to make money. Some insurers seem to be doing roughly that. <a href="https://www.insurancebusinessmag.com/au/news/cyber/critical-cms-alert-puts-patching-obligations-under-insurance-spotlight-581995.aspx">Chubb’s Neglected Software Exploit endorsement</a> gives policyholders 45 days to patch a vulnerability once it’s published in that database, after which more and more of the risk shifts to the policyholder at 45, 90, 180 and 365 days. It isn’t universal, and some insurers, <a href="https://www.coalitioninc.com/blog/cyber-insurance/taking-responsibility-in-the-age-of-non-stop-cves">Coalition</a> for one, argue publicly that exclusions like this undermine the point of having insurance. But the idea that “you knew about it and didn’t patch it” will cost you at claim time is no longer hypothetical.</p><p>So the next time somebody tells you it’s just a thermometer, or just a light bulb, or just a tire sensor, don’t ask what it does. Ask what it can reach. Then make sure the answer is “not much.”</p><p>Stay secure out there.</p><p><em>Originally published at </em><a href="https://codecurmudgeon.com/wp/2026/10/jumping-the-goldfish-iot-insecurity-eight-years-later/"><em>https://codecurmudgeon.com</em></a><em> on October 2, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=122ffa33eaa5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/jumping-the-goldfish-iot-insecurity-eight-years-later-122ffa33eaa5">Jumping the Goldfish: IoT Insecurity Eight Years Later</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 Ways to Spot a Cybersecurity Expert (2026 Edition)]]></title>
            <link>https://medium.com/commit-to-code-quality/top-10-ways-to-spot-a-cybersecurity-expert-2026-edition-18687810e9ad?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/18687810e9ad</guid>
            <category><![CDATA[humor]]></category>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[satire]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 23:23:15 GMT</pubDate>
            <atom:updated>2026-09-25T14:26:01.529Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is a rewrite of a list I first published here on February 1, 2017. The original is still up, unedited, </em><a href="https://codecurmudgeon.com/wp/2017/02/top-10-ways-to-spot-a-cybersecurity-expert/"><em>right here</em></a><em>. Some of it held up. Some of it did not, and I’ve said so below.</em></p><p>A friend asked me a question this week. He’d been getting a lot of spam, and he wanted to know the right way to deal with it: report it, reply with “unsubscribe,” or leave it sitting in the inbox undeleted. That last one was in the running because another friend had explained to him, with great confidence, that leaving it alone was the only correct thing to do. Emphatically. As settled fact.</p><p>He asked me because it sounded wrong to him. Hold that thought. I’ll come back to it.</p><p>Notice what happened first, though. Somebody told him. He believed it for a while. And the only reason he got a second opinion is that he happens to know a guy.</p><p>I wrote this list in 2017, as a joke. Nine years later some of it is out of date, a good deal of it isn’t, and I’m not sure which half bothers me more. Old problems are comfortable. I know what they look like. What I didn’t expect was how many of them are still here.</p><p>Here’s the 2026 edition. As before, this is really how to spot someone who is NOT a cybersecurity expert.</p><p>Also, I wasn’t wearing a suit. That’s probably why he trusts me.</p><h3>#10 — Wears a suit and tie</h3><p>Have you ever met someone who <em>really</em> got cybersecurity who was wearing a tie?</p><p>I’ll wait.</p><figure><img alt="Low-angle shot of a business man where a suit and tie and hodling a blackberry. The shot only shows his midsection, not below the waste or above the shoulders." src="https://cdn-images-1.medium.com/max/1024/1*vihHj3U3hic8dmTBITjdNA.jpeg" /><figcaption>The phone stopped working in 2022. He’s still in the meeting.</figcaption></figure><h3>#9 — Carries a phone that stopped getting security updates</h3><p>In 2017 I said a phone more than a year old was a red flag. That one aged badly and I’ll own it. Apple, Google, and Samsung now ship security updates for five to seven years, so a four-year-old phone in the right hands is perfectly respectable.</p><p>The tell was never the age. The tell is a phone that stopped getting patches and a person who has no idea, because he has never once looked.</p><h3>#8 — Still carrying a BlackBerry</h3><p>This was a joke in 2017. It’s an archaeological finding now. BlackBerry shut down the services for its classic devices in January 2022, which means the thing in his jacket pocket is a paperweight with a keyboard.</p><p>He will tell you it’s more secure. It is, in the sense that a car with no engine is harder to steal.</p><h3>#7 — Doesn’t use the command line</h3><p>The reigning champion from the original list, demoted purely on seniority. Everyone with a hacker mentality uses the command line, whatever the operating system. That hasn’t changed at all. It’s just less funny than it used to be, which I suppose is a kind of progress.</p><h3>#6 — Has password opinions from 2005</h3><p>Two beliefs, same vintage. That eight characters is plenty, and that the real strength is in the punctuation: P@ssw0rd! and similar theater.</p><p>NIST has since come down on both. The current guidance says a password standing on its own should be at least 15 characters, and it tells sites to stop imposing composition rules altogether. No more mandatory capital-number-symbol. Length beats gibberish, and a long passphrase you can actually remember beats a short one on a sticky note under the keyboard.</p><p>I’ve been saying this since the first version of this list, and it’s still true.</p><p>Here’s a freebie while we’re here. If a site still demands a capital, a number, and a symbol, it’s running on guidance NIST retired in 2017, the same year I first wrote this list. That tells you something about how much attention anyone there has paid since. Be careful what you keep in that account.</p><h3>#5 — Says “AI-powered” when you ask him how it works</h3><p>Ask three simple questions. What does it actually find? What happens when it’s wrong? Who reads what it produces?</p><p>Someone who has used the thing answers all three in about a minute, and volunteers the part where it’s wrong, because it has annoyed him personally. Someone who has been briefed on the thing says “it’s -powered” again, slightly louder.</p><p>The technology is real. The sentence is not an answer. It’s a dodge.</p><h3>#4 — Thinks the code that arrives by text is the good kind of two-factor</h3><p>That code you get in a text message when you log in is called two-factor authentication. It’s better than no two-factor, so if that’s what your bank offers, turn it on today. It is not what you should be using in 2026.</p><p>Here’s why. The code goes to your phone number, and your phone number can be moved onto somebody else’s phone with a convincing call to your carrier. That’s called a SIM swap, and it has been emptying accounts for over a decade. A passkey, or a code from an app on your phone, doesn’t travel with your number.</p><p>The fake expert doesn’t know there’s a difference. The real one can tell you which of his accounts still fall back to text messages, because those are the accounts he expects to lose.</p><h3>#3 — Won’t touch the airport Wi-Fi, but tapped the link in the “your package is delayed” text on the way to the gate</h3><p>Skipping open Wi-Fi is good hygiene. So is carrying your own charger and finding a wall outlet instead of plugging into the public USB port. So is locking your car, even though your car is a big metal safe with four panes of easy-to-break glass in it.</p><p>A determined attacker beats all three. You do them anyway, because hygiene is cheap and habits are what hold up when you’re tired in an airport at eleven at night.</p><p>But look at what actually happened to him. A text said a package was delayed and needed a small delivery fee. He tapped the link, got a page that looked like the shipping company’s, and typed in a card number. That’s the entire attack. No Wi-Fi, no USB, nothing clever. It works because he was tired, because he really was expecting a package, and because it took four seconds.</p><p>He lectured me about the terminal Wi-Fi and then handed his card to a stranger before we boarded. The precaution wasn’t wrong. It was just the only one he had, and it was pointed in the wrong direction.</p><h3>#2 — Plugged in the USB stick he found in the parking lot</h3><p>“I just wanted to see what was on it.”</p><p>Researchers have been dropping sticks in parking lots and on campuses for years, and a large share of them get picked up and plugged in, by people who will swear they’d never fall for a phishing email. Curiosity is the exploit. There’s no patch for it.</p><p>I have had this conversation with a man whose job title contained the word “cybersecurity,” about a stick he found in the parking lot of a government building. He knew the trick. He had watched it happen on <em>Mr. Robot</em>. He was embarrassed, and he should have been.</p><p>I want to be clear that this is not a story about a stupid person. Knowing an attack and recognizing it while it’s happening to you are two completely different skills, and only one of them shows up on a résumé.</p><h3>#1 — Took the “What’s your superhero name?” quiz, then tagged five friends</h3><p>First pet plus the street you grew up on. Mother’s maiden name plus your first car.</p><p>These are not personality quizzes. They are the security questions your bank still uses to let a stranger reset a password over the phone, and the quiz collects the answers from you, in public, voluntarily, for fun.</p><p>Then it asks you to tag friends so they’ll post theirs. That’s the part that makes it work at scale. He didn’t just hand over his own answers. He recruited.</p><p>The guy who won’t play along isn’t a killjoy. He’s the one who read the questions before answering them.</p><h3>Oh, and just one more thing</h3><p>If he says “cyber” as a noun, turn around and walk the other way.</p><p>“We need more cyber.” “The cyber is a big problem.”</p><p>Nobody who has ever actually fixed anything talks like this. It’s the verbal tell that the speaker was briefed on the subject rather than having worked in it, and everything that follows will be a summary of a summary.</p><p>Here’s the part that isn’t funny. The suit and the vocabulary aren’t incidental to how he got the job, they’re how he got the job. Somebody needed a person who could stand in front of a room and say the word “cyber,” and the résumé that matched was the one that looked the part. And he isn’t merely useless in that chair. He’s a mark. He’s the one who will buy whatever the next fellow in a better suit is selling, with your budget, and put the receipt in a slide deck.</p><p>As always: if he uses a term you don’t know, make him explain it. If he can’t explain it, he probably doesn’t understand it very well.</p><p>You need somebody real in your life for this. Even more than you did in 2017.</p><p>Sorry, just one more last thing. I mean it this time.</p><p>Just delete the spam. Don’t reply, don’t click.</p><p>My friend’s friend wasn’t making it up, by the way. “Don’t reply and don’t click” is good advice. It just decayed, somewhere along the way, into “don’t touch it.” That’s how most bad security advice happens. It’s real advice with the reasoning worn off.</p><p>Stay sharp. Stay safe. And don’t tell anybody the name of your first pet.</p><p><em>Originally published at </em><a href="https://codecurmudgeon.com/wp/2026/09/top-10-ways-to-spot-a-cybersecurity-expert-2026-edition/"><em>https://codecurmudgeon.com</em></a><em> on September 24, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18687810e9ad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/top-10-ways-to-spot-a-cybersecurity-expert-2026-edition-18687810e9ad">Top 10 Ways to Spot a Cybersecurity Expert (2026 Edition)</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your “Smart” Car Is Dumber Than a Horse]]></title>
            <link>https://medium.com/commit-to-code-quality/your-smart-car-is-dumber-than-a-horse-88e1a9001f6f?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/88e1a9001f6f</guid>
            <category><![CDATA[self-driving-cars]]></category>
            <category><![CDATA[autonomous-cars]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 14:16:01 GMT</pubDate>
            <atom:updated>2026-09-11T14:16:01.309Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I originally recorded this piece for </em><a href="https://youtu.be/1xZUpfAoIZM"><em>YouTube</em></a><em> about 6 years ago. I was reading Heinlein and came across the scene described below about horses versus vehicles, and I thought why not take a look at Mustang (horse) vs Mustang (car), just for fun. In some sense things have changed. ADAS systems are more capable with less false positives, but overall we seem no closer to full autonomous driving than we were.</em></p><figure><img alt="Image showing a horse and a car facing off with the caption: Animal Intelligence vs Artification Intelligence" src="https://cdn-images-1.medium.com/max/1024/1*ktyZ4hjjh5crCIuZsz35qw.jpeg" /></figure><p>Autonomous driving is all the rage. Every week, tech marketing teams herald the dawn of fully autonomous freight, while social media endlessly bickers over neural nets and machine vision.</p><p>We like to think mobility is moving faster than ever. But if you look at the fundamental engineering trade-offs we’ve made over the last century, <strong>we haven’t moved forward, we took a massive step backward.</strong></p><p>We spent 100 years building dumber transportation, and now we’re spending billions trying to match what a 19th-century farm animal did right out of the box.</p><h3>The Century-Long Downgrade</h3><p>There is a great scene in Robert A. Heinlein’s <em>Time Enough for Love</em> where a time traveler visits rural America just before World War I. He gives a local country doctor a ride home in his fancy automobile. You’d think the doctor would be thrilled by the modern marvel, but instead, he’s complaining.</p><p>His problem? When he finished a brutal 36-hour shift, he used to climb into his horse-drawn buggy, nod off, and let the horse take him home. The horse knew the route. It didn’t plunge off embankments, it didn’t smash into trees, and if the doctor fell completely asleep at the reins, he still woke up safe in his driveway.</p><p>With the shiny new “horseless carriage,” one second of fatigue meant wrapping the vehicle around an oak tree.</p><p>Sure, a horse is undeniably slower than a modern vehicle. But when you are exhausted at 2:00 AM, arriving safely at 6 miles per hour beats ending up in a ditch at 60. Unfortunately, our modern transportation infrastructure doesn’t give us that choice.</p><p>When we transitioned from horses to internal combustion engines, we removed biological intelligence from the loop and replaced it with an inert hunk of steel that knew absolutely nothing. For over a century, cars have been completely blind and stupid. Today’s push toward “autonomous AI” is just an elaborate, expensive attempt to claw back the baseline situational awareness a country doctor took for granted in 1910.</p><h3>Why Ground Autonomy Is Such a Mess</h3><p>People love to ask: <em>Why have we had reliable aircraft autopilot for decades, while consumer car autonomy still panics over highway paint?</em></p><p>Because flying in clear air is a vastly simpler engineering problem.</p><p>In aviation, the sky is largely empty. You don’t have pedestrians crossing at altitude, no potholes, and no erratic tailgaters. More importantly, the system relies on structured external infrastructure: Instrument Landing Systems (ILS) and precise air traffic telemetry feed the aircraft exact vectors, glide slopes, and corridor boundaries.</p><p>Ground vehicles have none of that. We don’t have transponders embedded in the asphalt guiding our cars down every lane. Instead, we force vehicles — some relying purely on optical cameras, others juggling radar and LiDAR suites — to interpret an inherently hostile environment:</p><ul><li><strong>The Highway (On-Ramp to Off-Ramp):</strong> This is theoretically the “easiest” slice of autonomy, but it’s loaded with caveats. Add torrential rain, sharp curves, stop-and-go speed whips, and aggressive drivers cutting across your nose with inches to spare, and the system easily gets overwhelmed.</li><li><strong>City Surface Streets:</strong> A relentless sensory circus. Traffic signals, unpredictable cyclists, jaywalkers, and someone diving off a curb into traffic to chase a runaway dog or rolling object.</li><li><strong>Edge-Case Chaos:</strong> The absolute death of brittle logic. An optical system mistaking the broad white side of a turning semi-truck for empty horizon, or emergency vehicles blowing through red lights and driving on the wrong side of the road — violating every standard traffic rule the machine expects.</li></ul><h3>Machine Learning vs. Real Intelligence</h3><p>Let’s be clear about the terminology. Modern driving suites aren’t general artificial intelligence. They are narrow machine learning models processing raw sensor streams against fixed parameter thresholds.</p><p>They lack context.</p><p>I’ve seen this firsthand. On the highway with lane-keeping active, my car has spotted a dark patch of fresh asphalt, misidentified it as a catastrophic pothole, and jerked the steering wheel at 65 mph.</p><p>Think about that logic: the vehicle would rather execute an evasive swerve, potentially side-swiping the car in the next lane, than roll over a harmless dark circle on the road. That isn’t intelligence; it’s an algorithmic panic attack.</p><p>A horse may not understand the trailer attached to it, but it possesses hard-coded biological self-preservation. It won’t walk into a ditch, it won’t barrel into another animal, and it certainly won’t jump into oncoming traffic to dodge a shadow.</p><p>Until autonomous platforms can parse basic physical context and self-preservation the way a biological system does, we aren’t engineering super-intelligence. We’re just spending billions trying to upgrade our cars to the common sense of an average 19th-century mare, like, say, a Mustang.</p><p><em>Originally published in 2020 as a </em><a href="https://youtu.be/1xZUpfAoIZM"><em>video</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88e1a9001f6f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/your-smart-car-is-dumber-than-a-horse-88e1a9001f6f">Your “Smart” Car Is Dumber Than a Horse</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accelerating MISRA Compliance Using AI-Augmented Static Analysis]]></title>
            <link>https://medium.com/commit-to-code-quality/accelerating-misra-compliance-using-ai-augmented-static-analysis-6e2237a8743d?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e2237a8743d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[static-analysis]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[automotive]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Fri, 04 Sep 2026 15:34:04 GMT</pubDate>
            <atom:updated>2026-09-04T15:34:04.920Z</atom:updated>
            <content:encoded><![CDATA[<p>The amount of software in cars has risen dramatically over the last several decades driven especially by sophisticated systems such as advanced driver assistance systems (ADAS), infotainment systems, navigation using live GPS and traffic information, software-defined vehicles (SDV), and autonomous driving. The code has grown from less than 100,000 lines to upwards of 100 million lines in a single vehicle.</p><figure><img alt="Graph showing the growth of code in vehicles from 1980s to 2020s" src="https://cdn-images-1.medium.com/max/1024/1*Zf_qE-nAQ9YbPVo1IcLGeQ.jpeg" /></figure><p>This exponential growth in lines of code in vehicles reflects the increasing reliance on software to enhance functionality, safety, and user experience. This, in turn, creates a larger burden to ensure that the vehicle meets safety-critical standards. Automotive software complexity is increasing at an exponential rate. This explosive growth underscores the technological advancements in modern vehicles. It also highlights the escalating challenges in ensuring software safety and compliance, particularly under standards like ISO 26262.</p><p>Ensuring software safety in automotive systems is a complex and resource-intensive endeavor, especially under stringent safety-critical standards. Traditional static analysis plays a pivotal role in validating code for safety compliance by systematically scanning for defects and deviations from established coding guidelines. However, this process is fraught with challenges. It often requires extensive manual review to sift through false positives, demands specialized expertise, and necessitates iterative refinements to align with evolving standards. The substantial effort and time required for these compliance activities can impede rapid development and increase overall costs.</p><p>In response to these challenges, our work explores an innovative, AI-augmented approach to static analysis that leverages large language models (LLMs) to improve code understanding and accelerate the identification and remediation of compliance issues. By integrating AI capabilities, our method enhances the precision of issue detection and facilitates quicker code fixes, offering a more intuitive and context-aware mechanism compared to conventional practices.</p><p>This paper compares an AI-augmented static analysis engine with GitHub Copilot, to demonstrate how LLM-driven techniques can streamline compliance efforts and reduce the manual burden typically associated with achieving ISO 26262 compliance.</p><p><strong>Justification</strong></p><p>The goal of the ISO 26262 standard is to help produce vehicles that are safe and reliable. To test vehicle software, the standard recommends using static code analysis with guidelines like MISRA to identify and prevent issues from entering production. The benefits of such static analysis — such as early detection of errors, reduction in ambiguous behavior, and improved reliability — are implicitly supported by the guidelines.</p><p>Static code analysis, while a critical component for ensuring software safety and compliance, comes with several challenges and associated costs. One of the primary issues is the overwhelming volume of results generated by these tools. Often, a single run of a static analysis tool can produce thousands of warnings and errors. Many are false positives or minor issues that do not directly affect system safety or are of unknown risk and importance.</p><p>This flood of information makes it difficult for engineers to discern which issues are truly critical, thereby increasing the time and effort required to triage and prioritize them. ML-based solutions have proven very effective in automatic violation pre-classification, clustering, and prioritization. AI models help developers focus on the critical items and easily identify those that can be safely ignored or handled later. Parasoft’s research on these techniques has already been productized and confirmed to be beneficial in commercial applications.</p><p>In addition to the challenge of managing a large number of results, understanding the root cause of identified issues and determining the appropriate fixes is often complex. The analysis outputs may not provide enough context or actionable guidance, requiring deep domain expertise and manual code review to interpret the findings correctly. This process is resource-intensive and can lead to increased development costs, as resolving these issues may necessitate extensive rework and additional testing. Overall, while static code analysis is invaluable for early defect detection, its practical implementation can be both laborious and costly, demanding significant investment in time, skilled personnel, and supplementary tool support to achieve effective compliance.</p><p>While organizations are seeing interesting results using LLMs to generate code and tests, we wanted to see how LLMs can improve the workflow for static analysis in a compliance industry like automotive, with strict guidelines and detailed coding standards, by giving specific, detailed fixes to meet the compliance guidelines in the standard.</p><p><strong>Methodology</strong></p><p>The goal of the experiment was to test on a comprehensive set of code examples whether it was possible to consistently produce better recommendations for remediation than using GitHub Copilot. A systematic approach was used to evaluate code violations in 1,856 open-source repositories using an AI-augmented commercial static analysis engine. The static analysis checkers included in the configuration were a combination of security rules from the CWE Top 25 as well as MISRA rules. The violations found were placed in a dataset including static analysis checker ID, filename, file location, violation message, checker description, and where applicable, code flow traces.</p><p>Sample suggestions for fixing the violations were requested using Parasoft’s prompt templates both with and without reasoning, and the GitHub Copilot Fix command within VS Code. Using the VS Code API, we were able to elicit fixes for 432 violations from the dataset using GitHub Copilot.</p><p>Fixes provided by Copilot and the commercial tool were both based on using the GPT-4o-2024–08–06 model. The commercial tool fixes included enhanced prompting behind the scenes without user input including detailed information about the standard and the code itself. Prompt generation is based on using general LLM prompting techniques, reasoning, and proprietary techniques and data inside the commercial tooling, including documentation of the checker, to get an improved fixed recommendation.</p><figure><img alt="Screenshot of Parasoft C/C++test showing flow analysis" src="https://cdn-images-1.medium.com/max/1024/1*z7Yd4neKBk4ED_dR3d0kbQ.jpeg" /></figure><p><strong>Results Assessment</strong></p><p>In order to assess the results in a fair manner, we wanted to do more than just blindly check each recommended code fix and possibly inject human bias into the results. Instead, we used the GPT-4o-2024–08–06 model to evaluate the quality of the fixes. It was given prompts to compare two solutions for fixing a static analysis violation and determine which one was better or if they were equally good. To avoid any bias from the order in which the solutions were presented, each pair of solutions was compared twice, with the order switched each time.</p><p><strong><em>Results</em></strong></p><p>The following tables compare results between the commercial tool and GitHub Copilot. The commercial tool was tested both with additional reasoning questions in the prompts as well as without this additional information. Reasoning questions help to analyze code violations and enhance the model’s fix generation capabilities. The Win Rate is the percentage of fix comparisons where a particular solution was declared best i.e. the Winner.</p><figure><img alt="Image showing three stacked tables displaying GitHub vs Copilot data. Table 1: Results with reasoning prompts. Table 2: Results without reasoning prompts. Table 3: Comparison of win rates for different tools." src="https://cdn-images-1.medium.com/max/1024/1*sj7a10cHXcI5f5pz73PNNw.png" /></figure><p>As you can see, the commercial tool prompts consistently generated better fix recommendations than GitHub Copilot on its own. Both bare and reasoning prompts show better performance, with reasoning prompts performing slightly better. One reason the commercial tool can produce better results is that it has access to more information than Copilot, including things like checker documentation, control flow graphs, and other proprietary violation-related properties. This information is used as part of the prompt to give the LLM better context to craft a complete and accurate solution.</p><figure><img alt="Screenshot of Parasoft C/C++testing showing flow analysis" src="https://cdn-images-1.medium.com/max/1024/1*QWSncwRUuTUeT_fTq2CvoQ.png" /></figure><figure><img alt="Bar graph comparing Copilot vs Parasoft performance" src="https://cdn-images-1.medium.com/max/800/1*sq9_7Zj6naMPykJDvIuWhQ.png" /></figure><p><strong>Security and Privacy</strong></p><p>Off-premises large language models (LLMs) pose significant security and privacy challenges, particularly when organizations are required to share sensitive or proprietary information. When data is transmitted to and processed by external cloud-based LLM services, there is a risk that confidential information — such as trade secrets, intellectual property, or customer data — may be stored or logged by the service provider. This can lead to unintended exposure if the provider’s security measures are inadequate or if there is a breach in the cloud infrastructure. Consequently, organizations must ensure that data encryption is employed both in transit and at rest, and that the third-party vendor adheres to strict data protection regulations and industry best practices.</p><p>In addition to privacy concerns, there are considerable security risks associated with off-premises LLMs. The possibility of adversarial attacks, where malicious actors manipulate prompts or exploit vulnerabilities in the model’s architecture, can lead to unauthorized data access or even compromise the integrity of the model’s outputs. Furthermore, the opaque nature of some cloud-based LLM services may make it difficult to ascertain how data is handled, stored, or potentially repurposed. To mitigate these risks, organizations should conduct thorough security assessments of potential LLM providers, establish robust access controls, and consider hybrid or local on-premises deployment of LLMs for processing highly sensitive information. These measures help safeguard confidential data and ensure compliance with relevant security and privacy standards.</p><p><strong>Summary</strong></p><p>Manual inspection of the sample data revealed that fixes generated with the AI-augmented commercial engine’s prompts are often more complete (e.g., fixing all instances of an issue in adjacent lines), robust (better error handling), and conform to standard practices. We believe that including rule documentation and enforcing chain-of-thought reasoning in the prompts (either through reasoning questions or the structure of bare prompts) helps the model produce better fixes.</p><figure><img alt="Stacked bar chart showing Copilot vs reasoning" src="https://cdn-images-1.medium.com/max/640/1*OrTs-O9JoKOSLzJqMyMQig.png" /></figure><p>We see that using an LLM saves time in understanding a coding violation as well as time in crafting a fix. Additionally, it’s clear that extra effort and information produce a better prompt, which will end up saving time and producing better code. Proper adoption of LLMs as a part of the software compliance strategy can help handle the increasing volume of code in today’s modern vehicles.</p><p><a href="http://www.electronicsworld.co.uk/">www.electronicsworld.co.uk</a></p><p><a href="https://content.yudu.com/web/69r/0A4417d/EWorldMarch26/html/index.html?page=34&amp;origin=reader">Electronics World March 2026 :: 34</a></p><p><em>Originally published at </em><a href="https://content.yudu.com/web/69r/0A4417d/EWorldMarch26/html/index.html?page=34&amp;origin=reader"><em>https://content.yudu.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e2237a8743d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/accelerating-misra-compliance-using-ai-augmented-static-analysis-6e2237a8743d">Accelerating MISRA Compliance Using AI-Augmented Static Analysis</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Development Metrics You Can Count On]]></title>
            <link>https://medium.com/commit-to-code-quality/software-development-metrics-you-can-count-on-7960c101edc3?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7960c101edc3</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Fri, 07 Aug 2026 21:46:58 GMT</pubDate>
            <atom:updated>2026-08-07T21:46:58.618Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I originally gave this talk in 2015 at the ICSQ ASQ conference. It was recorded, so I later put it on </em><a href="https://www.youtube.com/watch?v=NBK4gzTbns4"><em>YouTube</em></a><em> and delivered it a few times as a webinar. It’s over ten years old now, and I don’t think there’s anything fundamentally wrong with the ideas. AI has come along since, and there are always more metrics I haven’t gotten to, but the core argument has held up better than most things I said in 2015. Give it a read and let me know what your least favorite metric is. Or your favorite. — Arthur</em></p><p>I have a love-hate relationship with metrics, and I don’t think I’m alone in that.</p><p>I’ve spent my career on automation and quality improvement, and the moment you take automation and quality seriously you run straight into metrics, because without measurement there’s no way to know whether you actually improved anything. So on one hand, I can’t do the work without them. On the other hand, a lot of metrics are misleading. People pick the wrong ones. They’re confusing. They don’t mean what people think they mean. And so it becomes very easy to reject metrics entirely — “I don’t like metrics, I had a bad experience once” — when the real problem was a lack of education or a bad setup, not the idea of measurement itself.</p><p>That’s the tension I want to work through here: metrics get hated because they get misused, and yet you genuinely can’t make progress without them. So let’s talk about how to spot the dangerous ones, look at a few examples of metrics behaving badly in the real world, and figure out how to use the rest more effectively.</p><p>If you came here for a silver bullet, I’ll save you some time: there isn’t one.</p><h3>Why should I care about metrics?</h3><p>This is where I see people run off the track. Sometimes people are doing metrics for metrics’ sake. If you’re deep in a big organization and your manager said “I need metrics,” then fine, I understand — you produce the number. But if you’re actually trying to <em>manage</em> your quality, you need to know why you’re doing it. A few questions are worth measuring toward:</p><p><strong>What is my quality?</strong> Can I put a number on it? We could argue about that one for the next hour, and I’ll come back to it, but let it percolate.</p><p><strong>What is my risk, and where is my risk?</strong> Not just whether risk exists, but where it lives, so I can go track it down.</p><p><strong>Is it good enough?</strong> Can I ship it? Can I put this in the hands of unsuspecting customers?</p><p>Here’s a thought experiment I like. How many of you have used a Google product? How many have hit a bug in one? How many officially reported that bug to Google? And of those, how many got a real response — a fix, or even a note acknowledging it? The answer, in every room I’ve ever asked, rounds to zero. So does Google actually know whether their software is good enough? Maybe they do, because the products are out there and mostly working. Or maybe they don’t really know at all, and they just ship it and let the world sort it out. It’s an honest question, and the metric “is it good enough” is what’s supposed to answer it.</p><p>I have some scar tissue here. I’m the kind of person who files a <em>good</em> bug report — I once sent Google a test case with sample data against their API showing working code, broken code, exactly what fails and why. Google told me to read the docs. Compare that with a VMware issue I had back when we held all of four licenses, which to a company their size makes me roughly a gnat. I sent them the same kind of report: screen captures, exact steps, “this path always reproduces it, this path sometimes does,” hardware, OS, versions. Three weeks of silence. I’d given up and moved on. Then the phone rings: “We fixed it, do you want the beta or wait for the general release?” Terrible on responsiveness, excellent on actually fixing the bug. Those are two different metrics, and if you only measured one of them you’d rank those two companies exactly backwards.</p><p><strong>Is it done?</strong> In an age where everyone’s chasing more agile, more frequent releases — continuous testing, continuous release, and the holy grail of continuous deployment where I hit a button and it builds, tests, and goes live — you first have to be able to quantify whether you’re actually done. You can’t automate your way to “done” if you can’t define it.</p><p>All of these are things metrics can help you answer, if you choose them well.</p><h3>What metrics actually are</h3><p>If you pull up the textbook definition, a software metric is a quantitative measure of the degree to which a system or process possesses some property. The point is that we’re trying to quantify things in a scientific way — not pulling numbers out of the air and assigning them meaning, but observing and measuring to figure out what’s actually going on.</p><p>The problem is that in the software industry, a <em>few</em> metrics are well researched, a lot are semi-well researched, and a lot of them are just numbers floating around that we all play with anyway. Compared to other engineering disciplines, we’re seriously lacking in standard ways to measure, control, and quantify what we do. As somebody who works across the industry trying to push the state of the art forward, that’s the fun part of the problem — and also a real one. And selfishly: I consume software too. If I can get the industry to produce a better browser, I benefit, because I lost thirty minutes today fighting with one. (I did eventually figure it out. It was bizarre.)</p><h3>Metrics with a capital M</h3><p>One of the stranger things about software metrics is that several of them have taken on a life of their own. “Complexity” means something in plain English, but when software people say complexity they usually mean cyclomatic complexity specifically — Complexity with a capital C. Same with cohesion, coupling, and KLOC. Some of these have real research behind them. Some have a lot of industry papers written by people who happen to sell tools that measure them. (We’ll get to snake oil in a bit.)</p><p>My basic position is this: there are no silver bullets. There’s no single number you can lay on your software that says it’s perfect, safe, done, ready — and no single number that says it’s bad. Anyone selling you that number is selling you something. What we need is a much more nuanced approach.</p><h3>Averages aren’t normal</h3><p>One trap metrics lead you into fast is the average. Averages aren’t normal — very often the average is a number that matches no actual data point in your set. The classic picture is the pond with an average depth of three feet that you can still drown in.</p><figure><img alt="Image showing a young boy in a pond with an average depth of three feet but the water’s still going over his head conveying you can still drown even if you can touch the bottom" src="https://cdn-images-1.medium.com/max/1024/1*zVC0VZSw4o0t0TgWknM3Tg.png" /></figure><p>Averages help you understand a trend, but if you think the average <em>is</em> the value, be careful. The most dangerous place I see this is performance. I had an FDA customer measuring the response time of a customer-facing system — real people checking prescriptions. Their average response time had gone from something like 100 milliseconds to 200. Who cares, right? It’s well under a second, humans don’t notice.</p><figure><img alt="Graph showing response time (y-axis) and request in order of arrival (x-axis)" src="https://cdn-images-1.medium.com/max/1024/1*vL3huHvpB722O3q1X2h0fg.png" /><figcaption><em>The average barely moved — about 100 ms to 200 ms, still comfortably under the SLA — while a handful of requests running 100× slower hid underneath it. The data point that will hurt you isn’t anywhere near the average.</em></figcaption></figure><p>But that doubling should have been alarming, not because of the number itself but because of what was hiding underneath it. When we looked at the actual data, the requests weren’t coming in at a steady 200, 200, 200. They were coming in 100, 100, 100, 10,000. 100, 100, 100, 10,000. The DevOps team looked at the average and said “still within the SLA.” Meanwhile there was a real risk of something responding a thousand times slower than it should, intermittently, in a medical system. That’s the kind of thing an average will happily hide from you.</p><h3>Can you actually measure quality?</h3><p>I sometimes do a whole session just on this, because it’s such a good argument to have. (If you follow me on LinkedIn you’ve seen it play out there.) Can you measure quality?</p><p>One answer is no. You can’t quantify quality directly. I can’t tell you our software’s quality is 14 and Google’s is 7 — those numbers are meaningless.</p><p>But the other answer is yes, in a practical sense. I don’t believe there’s a quality <em>number</em>, but I believe you can internally define what quality means for you. It might be uptime. It might be performance, field bugs, user complaints, repeat sales. You can quantify the <em>effects</em> of your quality and watch whether they’re moving up or down. So you can measure it — you just can’t reduce it to a single score. Hold that thought, because it comes back at the end.</p><h3>What you can actually measure</h3><p>Set aside the exotic metrics for a minute. Here are the ones I bump into most often when I’m working with customers, and what they’re actually good for.</p><p><strong>Code churn.</strong> I edit a file, commit, edit it again, commit again, and again, and again. By itself that might mean nothing — maybe there’s just a lot of change happening. But if one part of the code is churning far more than the rest, why? Is it more error-prone? Cross it against field bugs, and if the error-prone code is also the churning code, churn just led you somewhere useful. Normalize it, find the typical behavior, and watch for the anomalies.</p><p><strong>Field bugs.</strong> People don’t pay enough attention to this one. It usually belongs to QA, who manage it and close it out, but it’s a great indicator of how you’re doing. It doesn’t directly tell you whether customers are happy — that’s a separate metric — but all else equal, I’d rather have fewer field problems than more. And again, the Google point: if Google knew collectively what all of us know about their browser, along with our test cases, they’d be a lot better off.</p><p><strong>Static analysis findings.</strong> I talk about static analysis constantly. In many cases it’s less valuable as a pure bug detector than as one variable in a larger equation that helps you answer “am I done? is it good? is it risky?”</p><p><strong>Test failures.</strong> Not just automated tests — manual tests too. What’s being run? What’s failing, and is it failing regularly or irregularly? Do I have a test that passed for ten years and now fails every time? What functionality did I just lose? A histogram of test failures over time is genuinely interesting, because we all quietly learn to live with a certain level of noise — a failure rate we’ve gotten comfortable with.</p><p>Years ago my brother worked at the same company and wrote our first unit test framework. He added a little scorecard at the end: 50% failures, fire the developer; 70% failures, send it back; 80% failures, ship it. It was a joke, but it points at something real. What’s the metric most companies <em>actually</em> use to decide when to release software? Date. It’s the date. God help us, it should not be the date. (In Google’s defense, date is one metric Google never releases on.)</p><p>There’s a fair counterpoint here, raised in the room: once you’ve automated a test, most failures come from a test bug or a dependency failure, not from the product. That’s exactly my point — there’s a level of noise in tests that we accept, and it’s actually working for us. Declaring “all tests must pass” can be a bad business decision. So can shipping on the date with half the suite failing. You balance it. And what matters most isn’t the absolute number — it’s the <em>change</em>. If my failure rate has sat at 50% for years while I ship successfully and don’t blow up the field, maybe that’s fine. But if it jumps from 50 to 70, I’m concerned. If it drops from 50 to 20, I’m <em>also</em> concerned — I never trust a big change. That’s why layering these histograms on top of each other is so useful: when failures suddenly drop and coverage dropped at the same time, you learn that fewer tests failed only because you tested a lot less code.</p><p><strong>Performance.</strong> Make your software do a set of known, stable things and see how long it takes, so you catch yourself accidentally blowing something up. Years ago we built a runtime Java instrumentation tool that could measure things like how many times an application opens a file. We made up a rule completely arbitrarily — don’t open a file more than ten times — with zero research behind it, just to see. We ran it on Eclipse, and during the 45 seconds from clicking the icon to a usable IDE, the same file opened and closed 500 times. A silly, made-up metric pointed straight at a real problem in the code.</p><p><strong>Counts (lines, files, and so on).</strong> For years, size looked like a promising defect predictor — bigger files, more bugs, and the studies seemed to agree. It doesn’t hold up, and it’s worth being honest about that. Jarrett Rosenberg’s “Some Misconceptions About Lines of Code” (4th International Software Metrics Symposium, 1997) shows that the most-cited version — an inverse relationship where defect <em>density</em> falls as files grow — is an arithmetic artifact of plotting bugs-per-SLOC against SLOC: because you’ve divided by size, the downward slope is baked in before you look at a single real data point. He proves it by generating pure random numbers and watching the same “relationship” appear every time. Size works best, he argues, not as a standalone predictor of quality but as a <em>covariate</em> — a way to adjust other metrics for size. In one of his samples, an apparent link between bugs and the number of functions (r = 0.46) evaporated to almost nothing (r = 0.005) once he corrected for code size; the “signal” had just been bigness all along. Fenton and Neil reach the same place from the other direction: across the wider literature the studies flatly contradict each other — density falling with size, a U-shaped “optimal” size, or no pattern at all — with no general law linking size to defects. Rosenberg’s own diagnosis is the line I’d frame on the wall: familiarity with these metrics “has lulled many researchers into a false sense of understanding about how [they] should be used.” Which is the whole point. A single size number won’t tell you where your bugs are — watch a file that’s ballooned past everything around it, but as a prompt to go look, not a verdict.</p><p><strong>Bug arrival rates.</strong> Again, I can’t tell you your number is good or bad. But look at how and how fast bugs arrive, especially post-release. If one release gives you 10 bugs in the first 48 hours and the next gives you 100, that should trigger a “how did we think this was ready?” Which metric should have caught it? Are we missing a metric? That arrival rate should be roughly consistent, and when it isn’t, you should always have a reason.</p><h3>The varied tool chain</h3><p>One challenge that gets worse as companies get bigger: the tool chain fragments. Companies that grow through acquisition tend to inherit a new workflow, a new process, a new set of tools, and a new set of licenses every time. When you’re using metrics across those teams, it’s genuinely hard to make sure you’re getting the same number, measured the same way, from everyone.</p><p>Take the simplest possible metric: lines of code. I’ve had arguments about what a line of code <em>is</em> for twenty years. Do you count whitespace? Multiple statements on one line — one line or several? A statement that spans several lines — one line or several? Do you count comments? You can argue this forever, and I don’t think any answer is universally right. The only answer that matters is: <strong>do it the same way every time.</strong> If you’re counting lines of code across different teams with different tools, I guarantee you’re comparing apples to oranges.</p><p>The same goes for open source. Some groups run open-source tools, others run proprietary ones, and you have to make sure they’re producing comparable answers.</p><h3>Getting consistent results</h3><p>So how do you get a hold of that? A few things.</p><p><strong>Map the tools.</strong> If one tool counts comments and another doesn’t, and I want the no-comments number, I can usually derive it. It’d be nicer to just use the same tool everywhere, but when I can’t, I can usually find common ground. This gets genuinely tricky in areas like static analysis, where one vendor’s “buffer overflow” and another vendor’s “overflow” can be two completely different things — both correct, different definitions. There’s good work being done here: DHS funded a project from Secure Decisions to map static-analysis security rules to a common core, so that Parasoft rule 17 equals Coverity rule 2 equals Klocwork rule 4, and you get a normalized set of results. Where you can’t change the tooling, get the results to a place where they share a common meaning.</p><p><strong>Get the results in one place, automatically.</strong> Here’s my favorite true-life metrics story. I’m at a bank , in another country, so relax, it’s not your money. Their policy: thou shalt not release code with less than 80% code coverage. That’s an aggressive target if you haven’t been building toward it for years.</p><p>So I’ve got a room of managers and developers, and I start where I always start: are we near it? “Oh yeah, we hit it all the time.” Interesting. Then I do the thing I always do , I split the managers from the people doing the work, and I ask the developers: how many of you are actually getting 80%? No hands. 70? 60? 50? 40? Around the low 30s, hands start going up.</p><p>(Someone in the conference session quite reasonably interrupted here to ask: define code coverage. Fair — at that level, assume it’s in the policy: executed a line, MCDC, function coverage, something specific. And make sure the term is actually agreed upon, because that’s half the problem.)</p><p>So the real number was in the mid-30s. What happened? Each developer measured with whatever tool they had and reported to their manager: 17, 17, 19, 14 — “average is 17, call it 20, we rounded up.” That manager reported 20, 23, 22, 24 up the chain — “average 23, round to 25.” It went through something like eight layers, and each layer added about 5%. Mid-30s at the bottom became 80% at the top, purely through rounding. I won’t tell you which bank.</p><p>If your metrics are collected and rolled up by hand, they’re meaningless, they have to be automated and consistent. By the way, after several weeks working alongside that team, my on-the-ground estimate was that between the manual rounding and the rest of the hand-collection they were burning something like 25 to 30 person-hours per developer per month on it. Call that a practitioner’s estimate from being embedded with them, not an audited figure, but if you’re collecting your metrics by hand, run your own numbers, and you’ll probably reach the same conclusion: figure out why, and stop.</p><p>And <strong>back-fill</strong> the metrics you’re missing in some groups, so you’re comparing the same things everywhere.</p><h3>Displaying metrics so they actually mean something</h3><p>The display of metrics matters as much as the collection. Years ago, when we first tried to quantify our own development process, we built a fancy dashboard with nine little charts on one screen. Customers would ask “what does it mean?” and the honest answer was a paragraph: “well, if this one’s up and that one’s down and this one’s flat, it means such-and-such; but if that one’s also down, it means something else…” That’s a beautiful graphical presentation of <em>raw data</em>. Making a picture of raw data doesn’t stop it being raw. We fell right into that trap.</p><p>So graphics should carry meaning. Pick the shape for a reason. My boss loves pyramids, but you use a pyramid when there’s an actual reason the top should be smaller and less frequent than the bottom. You don’t slap 40 / 20 / 30 / 70 into a pyramid; it means nothing. The graphic should quickly convey the answer to the question you have. A few types are worth knowing:</p><p><strong>Gauges</strong> give a fast read on a single item or a set — my coverage, my failure rate — and you can bake thresholds right in (ship it, don’t ship it).</p><p><strong>Counters</strong> are useful, but I don’t love just throwing a bare number on a screen. If your only story is “if that number’s up and this one’s down, it means…” then show me <em>that</em>, not the number. Percentages of test-failure rates can be meaningful; raw counts of failures may or may not be, depending on your organization. Humans are bad at big numbers — we can picture 100, we get shaky at 1,000, and millions are basically fictional.</p><p><strong>Radar / spider graphs</strong> I’ve become a fan of. We did a nice one for security testing, using US-government data to break vulnerabilities down by the kind of harm they can cause: data loss, unintended access, privacy, denial of service. Now one axis is the type of problem, and on it you can lay a count per type and a severity (critical, high, medium ) all at once. It takes a second or two to learn to read, and then a lot of complex information hits you in a single glance.</p><p>A good question came up on radar graphs: doesn’t the order you go around the circle matter? One permutation hits you right in the eye; another tells you nothing. Yes, and that’s exactly where you go back to <em>why do I have this metric?</em> What is it supposed to mean? Will I be upset if it goes up? If it goes down? If it goes out of whack against this other metric? Arrange it so it shows you that. I once analyzed a competitor’s security dashboards and found three separate dashboards where the same number appeared three times in different presentations, for no reason I could find. Sometimes there <em>is</em> a reason to repeat a value — I’ll put a number next to another so you get “am I good, am I bad, and here’s where I actually am” — but only when “where I am” matters. If it doesn’t, leave it out.</p><figure><img alt="Screenshot of the DTP reporting dashboard displaying static analysis results" src="https://cdn-images-1.medium.com/max/648/1*gCwmvzFBtVjq2jSyDqOB0g.jpeg" /><figcaption>Sample report: a graphic a number, a direction, and how much it moved. (Parasoft DTP)</figcaption></figure><p>There are great books on this, Edward Tufte practically founded the field of data visualization, and I’ve got a shelf of his at home. If you present data and haven’t read <a href="https://amzn.to/4byk0o2"><em>The Visual Display of Quantitative Information</em></a>, start there. The point is that if you gather metrics, you have to report them to someone and present them usefully. An Excel sheet full of numbers isn’t that, because someone downstream will turn it into a graphic, and if they don’t understand what you gathered, the graphic they make will be useless at best and misleading at worst.</p><p>Here’s a small story on picking the number that matters. I once worked with our sales team, and we had two lead sources. One had a terrible data-quality rate — maybe 50% of the numbers were wrong, wrong person, disconnected — but about 20% turned into sales. The other had nearly 100% correct numbers, but only about 2% became sales. Which source did the salespeople prefer? The one where the number was always right. If we’d optimized for “correct phone number” instead of “sales,” we’d have done ourselves an enormous disservice. Measure the thing you actually care about.</p><p>It’s worth researching graphic types beyond bars, lines, and pies — even Excel has genuinely good components now that you can reuse quickly. And on a good report, notice what I keep coming back to: a graphic, a number, a direction (am I going up or down), and a small percentage of how much. Those clues point you toward what to do next.</p><h3>Checking your work</h3><p>How do I know I’ve got the right number? A big one is: is it going in the right direction?</p><p>I had a customer with hardware failures in the field. You know the flow — a machine blue-screens, the user clicks “send report” to Microsoft, Microsoft forwards it to the manufacturer. Their failure number was too high, reasonably enough. So they bought a tool, used it religiously, and the number… went <em>up</em>. The process they put in place had nothing to do with the problem they were trying to solve. The thing they were measuring wasn’t connected to the actual problem.</p><p>So when you start working a number, poke at it. Try to move it. Can I make this statistic better? Maybe not — sometimes that’s hard. But can I make it <em>worse</em>? I know that sounds backwards, but if you can’t make a number better <em>and</em> you can’t make it worse, it’s not the number you think it is. That’s a real test.</p><p><strong>Are you measuring enough?</strong> If I release and my field-bug count suddenly jumps while everything else looks fine, I’m probably missing something. Maybe I didn’t actually watch one of my metrics — or maybe I did everything I always do and I’m still blind to something new. (The signal-processing folks in the room have a name for this: Nyquist — you have to sample at a high enough rate to see what’s really happening.)</p><p><strong>Are the measurements automatic?</strong> Humans are genuinely bad at repetitive tasks that demand consistency, and — counterintuitively — the smarter and more engaged the person, the worse they tend to be at grinding out the same rote measurement identically every time; their attention wanders to the interesting parts. That’s not a job to hand to a person at all. Automate it, so it’s measured the same way every time. Manual estimates are inconsistent, and multiple layers of manual collection compound the rounding errors — which is exactly how a bank rolling its numbers up by hand turned the mid-30s into 80%.</p><h3>The big-data era</h3><p>One concept I like to close the “measuring” section with: we’ve moved into (and perhaps past) a big-data era in a lot of ways, some of them great, some of them just surveillance, whether it’s Google or Apple or Microsoft or the Government. Whatever you think of it, we’ve gotten very good at gathering disparate data and combining it to find new meaning.</p><figure><img alt="Screeshot of Parasoft DTP reporting and analytics showing software testing results" src="https://cdn-images-1.medium.com/max/1024/1*-wvRLdOOhXHiT9Tz9OQTdA.png" /><figcaption>Get the disparate data into one place, then analyze across it (Parasoft DTP)</figcaption></figure><p>In software development, we mostly <em>don’t</em> do that yet. We still manage all this data in silos. So the trick is to get it into one place — a database, a NoSQL store, even a file — and start analyzing across it for the more useful metrics. Get a central hub you can report to, so you can pull real-time feedback and aggregate, correlate, and mine the data into reports, dashboards, tasks, and alerts.</p><p>A caution: a lot of tools give you the <em>illusion</em> of information. Anybody here use Jenkins? Jenkins has lots of cute little reports, and none of them have anything to do with each other. That’s raw data wearing an information costume. If you’re not doing anything yet, start there — get some histograms so you can at least see a single axis — but keep going until the data is actually combined and correlated. Because sometimes a piece of data is for management (“we’re okay to ship / we’re behind / quality is falling”), and sometimes a piece of data should <em>trigger an action</em> (“we changed this code, we had a field bug, so we need to re-run these seventeen tests”). Aggregating and harnessing the data is what turns numbers into those actions.</p><h3>Tips and traps</h3><h3>Names can be misleading</h3><p>Sometimes the name of a metric misleads you, and complexity is the worst offender. Software “complexity” isn’t necessarily complex. There’s a whole school of thought that complicated software is harder to maintain and more likely to fail — which is true — but cyclomatic complexity metrics often show little correlation to either of those things. Cyclomatic complexity is roughly one plus the number of loops plus the number of if-statements. That means clean but long if-then-else code gets flagged as “complex,” while a short line like a = b + c; can be unbelievably complex under the hood if it&#39;s routing through function pointers. Branch count alone doesn&#39;t make code hard to maintain or bug-prone. It <em>is</em> a good indicator of how many tests you&#39;ll need. Just be careful the metric correlates with what you actually care about.</p><h3>Lines of code</h3><p>Useful, but know exactly what you’re measuring. If your line count includes comments and you’re paying bonuses based on lines written, maybe don’t include comments — or maybe you <em>do</em>, because you want better documentation. Either way, decide it on purpose.</p><h3>Who’s the best programmer?</h3><p>Because we started building a central data repository for development, some companies immediately go to: “Great, now tell me who my best programmer is.” If I worked there for two or three weeks I couldn’t tell you — but the people on the team already know. What I <em>can</em> tell you is that it isn’t whoever wrote the most code. It might even be whoever wrote the least.</p><p>Think about two programmers I’ve worked with. One wrote an entire C parser in 90 days, by himself — a sustained 1,000 lines of C a day, completely uncommented and undocumented. A beautiful prototype, as long as you never expected it to work outside the exact test case he used. The other averaged something like eight lines a day, day in and day out: high-performance code, never fails, no bug reports, works in every case. Who’s better? I don’t even want to rank them that way. I used the first guy for prototypes and the second for high-performance production code. If you want to figure out who’s good, you need a genuinely complex metric that incorporates human assessment — not a line count.</p><h3>Complicated versus complex</h3><p>Two words I’ve been throwing around, worth pinning down. <strong>Complicated</strong> means the code is hard to understand. That’s not desirable although sometimes unavoidable, but you should avoid it when you can, because code lives forever and someone else will pick it up. That someone might be you in five years, going “what was I thinking?” (My brother, who wrote a lot of our original code, just deletes the guts of any old method he touches — keeps the signature, rewrites the body, because he’s sure he can do it better today. He’s a better programmer than I am, so maybe he’s right rather than crazy.)</p><figure><img alt="Side-by-side graphs showing simple vs. complex cyclomatic complexity" src="https://cdn-images-1.medium.com/max/1024/1*AlMw2hysTCWrNvUzWTVQMg.png" /><figcaption><em>Same kind of control-flow graph. The left is a function anyone can safely change; the right is where the bugs live. Each number is computed straight from its graph — v(G) = edges − nodes + 2.</em></figcaption></figure><p><strong>Complexity</strong> is really the number of interactions — how many branches, how many possibilities — which is what cyclomatic complexity is getting at. <strong>Coupling</strong> is interdependence: this module leaning on that one, this function calling that one. Too much interdependence is a sign of spaghetti. (We’ve all heard “spaghetti code is bad”; there’s no metric I know of with a one-to-one correlation to spaghetti, but it’d be nice.) <strong>Cohesion</strong> is how well the elements of a module belong together — this group is everything we do for file handling — which signals good layout and design.</p><p>Complexity in concert with coupling and cohesion gives me a much better picture than any of them alone. High complexity <em>and</em> high coupling? Now I probably do have a genuinely complicated problem.</p><h3>Where’s the risk?</h3><p>People try to use metrics to find risk — which component or piece of code is vulnerable, whether “vulnerable” means security, performance, or likelihood of failure. There are interesting ways to calculate it, and none of them is a single number. Static analysis against CWE, the Common Weakness Enumeration — the government’s catalog of software weaknesses — tells you what code is susceptible to a memory overflow, a leak, and so on (weaknesses, not confirmed bugs). Unit test results. Source-control data: is this code churning, does it get fixed and stay fixed, or fixed and re-fixed and re-fixed? By itself, churn is probably a false positive — but high complexity <em>plus</em> code churn is a strong indication of complicated code. And input from QA and manual testing, because “manual testing” should mean a person performs the test by hand, <em>not</em> that you throw away the data. Far too often manual testing happens off to the side and we never actually know what was done.</p><h3>Am I on track?</h3><p>Another thing people want a metric for. But the first question is: what does “done” mean? We ran a continuous-acceleration summit with a bunch of teams about moving to continuous testing, and the first blocker everyone hits is “I don’t have a metric that tells me I’m done.” So define it: have I finished all my requirements? Do I have a way to mark the requirements I’m <em>not</em> going to finish, and am I marking them? Do I have proper tests, proper coverage, and are they passing? Has integration testing happened? You have to nail down “done” before you can even ask “am I almost done.”</p><p>That means connecting your data. Connect to requirements — if requirements live off in their own world and get quietly reinterpreted into sprint work, you’ll never know if you’re done. Connect to source control, so you know what actually got built and what didn’t. Connect to your development-management data — the scrum schedule, who’s working on what, and when.</p><h3>Where are the bugs?</h3><p>People do this less now, but cyclomatic complexity was one of the original offenders. Back in the dark ages, with dinosaur languages like C and Fortran, our debuggers were primitive and the most common one was — and probably still is — the print statement. You’d have a 100,000-line program, a failure would happen in the field, and you had no idea where to even start. So people went looking for tools to point at where a bug might be, and Tom McCabe constantly promoted cyclomatic complexity as exactly that: we’ll show you where the bugs are. That’s crap. No single metric can tell you where the bugs are going to be.</p><p>What we have <em>today</em> is better: runtime debugging and static analysis tools that estimate the probability of bugs. Static analysis is a good pointer. So is enriched, connected data — if I’m tied into bug tracking, source control, and the personnel system, I can say “this file has heavy churn, lots of field bugs, and the person on it is brand new to the team,” and now I have a real hypothesis.</p><p>Testability itself can reveal bugs, which is a fun one. We sell an automated test-generation tool, and over the years I’ve noticed a defining characteristic: well-designed, well-architected code generates tests beautifully, and badly structured code doesn’t at all. So even if you don’t care about auto-generated tests, grab a demo and run it once — if you get 30% or 40%, you probably have a complexity problem. It’s a nice backdoor way to analyze your code. And again: make sure your bug tracking and QA aren’t silos producing information nobody consumes.</p><h3>Coverage metrics</h3><p>We touched on coverage with the bank story, so I’ll just add: there are many ways to measure it — functional, statement, branch, condition, MCDC — and people will come to blows over the right one. Chasing coverage for its own sake is frequently not meaningful. You can have 100% line coverage and barely scratch the surface.</p><p>Someone from the avionics side made this point well: you have to consider the <em>independent</em> effects, because you can execute the same line of code in different machine states and get very different behavior. It’s much more than statement coverage. My position: you should measure coverage, but outside of compliance — if you’re on a Joint Strike Fighter and you <em>must</em> hit 100% MCDC, then you do it — simply <em>improving</em> coverage may not be your best bang for the buck. The bigger question is always what your actual problem is and what the right thing to do about it is.</p><h3>A word on debt</h3><p>This one’s as abused as complexity, so technical-debt fans, feel free to start sharpening your arrows.</p><p>Technical debt as a concept is real. Debt is real. We make decisions every day that mortgage the future of our software — sometimes consciously (“I don’t have time for that framework; security doesn’t matter for an internal-only tool”), sometimes by accident (“we didn’t understand that a memory overflow could lead to a SQL injection”). The problem is that the debt I actually care about isn’t trivial to measure: wrong framework, won’t scale, bad performance, insecure.</p><figure><img alt="Screenshot of an old time sign: The original snake oil. The modern kind quantifies your technical debt to four significant figures." src="https://cdn-images-1.medium.com/max/583/1*yfHoQ7cnxUT6WoJvGyQI2Q.png" /><figcaption><em>The original snake oil. The modern kind quantifies your technical debt to four significant figures.</em></figcaption></figure><p>So here’s how to spot the snake oil. A vendor tells you, “we measured your technical debt, it’s 10,000 hours, but buy our tool and we’ll fix it in eight.” One of those numbers is wrong, or both are. Because if the debt really is what they claim, and it can be fixed in eight hours, then it was eight hours of debt. Debt you can retire in eight hours <em>is</em> eight hours of debt. If I owe someone $1,000 at 5% interest, I don’t care that a loan shark would charge 100%, the 5% is what actually matters. Fix eight hours of real debt for $100? Fine, hand it over. Charge me $100 times 10,000 hours? Maybe not.</p><p>You can’t run static analysis and calculate technical debt. I’ve worked at a static-analysis company for thirty-plus years , it’s what we do, and I won’t produce a technical-debt number, because I don’t believe what static analysis measures correlates with the debt I care about. So watch out for the technical-debt vendors. Believe in the concept of debt, it’s real and it’s important, but also handle it in peer review and in design. Make the decision consciously when you can, knowing you’ll pay later, and put the payoff into the plan before it kills you.</p><h3>A few questions worth keeping</h3><p>The best part of giving this talk live is the arguments afterward, and two of them are worth preserving here.</p><p><strong>How do you measure something that isn’t even quantitative — customer happiness?</strong> This loops right back to “can you measure quality,” and the honest answer is still no, not as a comparable number. But the practical answer is that I’ve got a pragmatic proxy that gets me in the ballpark. I measure customer happiness by the adoption rate of new releases among existing customers, combined with how many people are actively complaining. People <em>not</em> complaining doesn’t mean they’re happy — it means they’re not unhappy, which isn’t the same thing. But when I ship something new and customers grab it and install it right away, that’s a real signal they like the software — as opposed to “it works, don’t touch it, I’m never updating.” I don’t accept “you can’t measure it.” Find indicators, stack them into one picture, and that’s your number — on a scale of <em>nobody really knows</em>, but it’s still useful.</p><p><strong>You keep saying “coverage” in different contexts — what do you mean?</strong> Sometimes coverage is about tests: what lines did I exercise? Sometimes it’s about analysis: did static analysis cover everything? Sometimes it’s about requirements: is there a test for each one? It always means “have I done all of <em>something</em>,” and it’s only meaningful when correlated with something else. When I look at test coverage I want to see 100% <em>requirement</em> coverage — a test per requirement — <em>and</em> real code coverage. And here’s the catch: 100% requirement coverage will almost never give you 100% code coverage, because the code is full of error conditions the requirements never spelled out beyond “thou shalt handle errors.”</p><p>And one more, on the quality of the coverage itself: a lot of tools only tell you a line was <em>reached</em>, not whether your assertions were any good. Which is the thing that actually matters. We have static analysis for unit tests now, and one of the classic findings is a test with no assertion at all. Is a test without an assertion even a test? I’d argue not really. To me a test has exactly two properties: when it passes, it means something, and when it fails, it means something. Lose either one and you’re in serious trouble.</p><h3>Conclusions</h3><p>Three things to take with you:</p><p>Avoid simple metrics for decision-making. The single-number answer is almost always a trap.</p><p>Be sure the metric means what you think it does. Names mislead, definitions drift, and the number rolling up the chain may not be the number you started with.</p><p>And be sure that whatever you’re planning to do will actually move that metric. The tool that made the failure count go up is not a hypothetical.</p><p>There are no silver bullets. But measured consistently, automatically, and with a little skepticism, metrics are still the only way to know whether you’re getting better.</p><h3>A note from 2026: metrics in the GenAI era</h3><p><em>This section wasn’t in the 2015 talk — I’ve added it for the repost.</em></p><p>When I gave this talk, “AI” in software development mostly meant clever static analysis. Now large language models write code, generate tests, review pull requests, and drive agentic loops that edit and re-edit a codebase on their own. That has created a wave of genuinely new signals: the acceptance rate of AI-suggested code, the volume of AI-generated code entering a repository, the churn produced by agent loops iterating toward a fix, and evaluation scores for the models themselves. These are worth measuring, and some of them are useful.</p><p>But everything I argued in 2015 holds up — if anything, more sharply. There is still no single number that tells you your software is good, and the GenAI era has made it dramatically easier to generate impressive-looking numbers and impressive-looking code that don’t hold up under scrutiny. Code churn means something different when a fair amount of it is an agent regenerating a file rather than a person struggling with error-prone logic, so the metric hasn’t disappeared — its interpretation has changed, and you have to re-derive what “normal” looks like before an anomaly means anything. That’s the same discipline the whole talk is about.</p><p>The place I’d apply the most skepticism is model accuracy claims, because that’s where the “striking number that isn’t representative” trap lives now. Headline benchmark figures — the ones that make a model sound nearly human on a task — routinely overstate real-world performance, sometimes by a wide margin, because a clean benchmark is not the messy distribution of work your team actually does. Before you repeat an accuracy number, ask who ran it, on what task distribution, and whether it was a curated benchmark or a real-world evaluation. The gap between the two is often enormous. That’s not an anti-AI position; it’s the same position I took on cyclomatic complexity and technical debt a decade ago. A number is only as good as your ability to say what it means, whether it came from a coverage tool in 2015 or a model card in 2026.</p><p>So use the new metrics. Just don’t let a language model talk you out of the old discipline — pick the metrics that map to your actual business problem, measure them the same way every time, automate the collection, and stay suspicious of any single number that claims to have the whole answer. Especially the striking ones.</p><p><em>Arthur Hicken is the Code Curmudgeon. Find more at </em><a href="https://codecurmudgeon.com/"><em>codecurmudgeon.com</em></a><em> and </em><a href="https://www.parasoft.com/"><em>parasoft.com</em></a><em>. What’s your least favorite metric? Or your favorite? Let me know.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7960c101edc3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/software-development-metrics-you-can-count-on-7960c101edc3">Software Development Metrics You Can Count On</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Shifts the Burden of Security to Development]]></title>
            <link>https://medium.com/commit-to-code-quality/cloud-shifts-the-burden-of-security-to-development-3246e4ab080e?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3246e4ab080e</guid>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devsecops]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 14:31:00 GMT</pubDate>
            <atom:updated>2026-07-10T14:31:00.868Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Originally published in </em>CrossTalk: The Journal of Defense Software Engineering<em>, September/October 2013.</em></strong><em> Republished here with light editorial cleanup; the text is otherwise faithful to the original. Where the piece refers to “recent” events or “emerging” practices, read them as of 2013.</em></blockquote><h3>Cloud Shifts the Burden of Security to Development</h3><p><strong>Arthur Hicken, Parasoft</strong></p><p><strong>Abstract.</strong> The move to the cloud brings a number of new security challenges, but the application remains your last line of defense. Engineers are extremely well poised to perform tasks critical for securing the application — provided that certain key obstacles are overcome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BTIwd8pRmcFcP12UneHkGQ.png" /></figure><h3>Introduction</h3><p>This paper explores three ways to help development bear the burden of security that the cloud places on them:</p><ul><li>Use penetration testing results to help engineers determine how to effectively “harden” the most vulnerable parts of the application.</li><li>Apply the emerging practice of “service virtualization” to provide engineers the test environment access needed to exercise realistic security scenarios from the development environment.</li><li>Implement policy-driven development to help engineers understand and satisfy management’s security expectations.</li></ul><h3>New Risks, Same Vulnerability</h3><p>Before the move to the cloud, few organizations lost sleep over application security because they assumed their internally controlled security infrastructure provided ample protection. With the move to cloud, security concerns are thrust into the forefront as organizations consider how much security control they are willing to relinquish to cloud service providers and what level of exposure they are willing to allow [1].</p><p>The fact of the matter is that with or without the cloud, failure to secure the application always is — and always has been — a dangerous proposition [2]. Even when the bulk of the network security rested under the organization’s direct control, attackers still managed to successfully launch attacks via the application layer. From the 2000 breach at the Australian Taxation office where a hacker accessed tax details on 17,000 businesses [3], to the 2006 incident where Russian hackers stole credit card information from Rhode Island government systems [4], to the recent attack that brought down the NIST vulnerability database [5], it is clear that a deficiency in the application layer can be the one and only entry point an attacker needs.</p><p>Public cloud, private cloud, or no cloud at all, the application is your last line of defense and if you do not properly secure the application, you are putting the organization at risk [6]. Nevertheless, the move to the cloud does bring some significant changes to the application security front:</p><ul><li>Applications developed under the assumption of a bulletproof security infrastructure might need to have their strategies for authorization, encryption, message exchange, and data storage re-envisioned for cloud-based deployment.</li><li>The move to cloud architectures increases the attack surface area, potentially exposing more entry points for hackers. This attack surface area is compounded with more distributed computing technologies, such as mobile, web, and APIs.</li><li>As applications shift from monolithic architectures to composite ones, there is a high degree of interconnectedness with 3rd party services — and a poorly engineered or malfunctioning dependency could raise the security risk of all connected components. For example, a recent attack on Yahoo exploited a vulnerability from a third-party application [7]. The composite application is only as secure as its weakest link.</li><li>As organizations push more (and more critical) functionality to the cloud, the potential impact of an attack or breach escalates from embarrassing to potentially devastating — in terms of safety, reputation, and liability.</li></ul><p>With the move to the cloud placing more at stake, it is now more critical than ever to make application security a primary concern. The industry has long recognized that development can and should play a significant role in securing the application. This is underscored by the DoD’s directive for certifications in the area of software development security (e.g., via CISSP) [8, 9]. <em>[Editor’s note, 2026: The directive referenced here was DoD Directive 8570, which was in force when this article was published. It has since been superseded by DoD Directive 8140 / DoDM 8140.03 (effective February 2023). CISSP remains an approved certification under the newer framework.]</em> Select organizations that have successfully adopted a secure application development initiative have achieved promising results [10]. However, such success stories still remain the exception rather than the rule.</p><h3>Should Development Be Responsible for Application Security?</h3><p>Due to software engineers’ intimate familiarity with the application’s architecture and functionality, they are extremely well-poised to accomplish the various tasks required to safeguard application security. Yet, a number of factors impede engineers’ ability to shoulder the burden of security:</p><ul><li>The organization’s security objectives are not effectively communicated to the development level.</li><li>For engineers to determine whether a particular module they developed is secure, they need to access and configure dependent resources (e.g., partner services, mainframes, databases) for realistic security scenarios — and such access and configurability is not commonly available within the development environment.</li><li>Management often overlooks security when defining non-functional requirements for engineers and planning development schedules; this oversight, paired with the myopic nature of coding new functionality, commonly reduces security concerns to an afterthought.</li><li>Security tests are frequently started at the testing phase, when it is typically too late to make the necessary critical architectural changes.</li></ul><p>In the following sections, we explore how strategies related to penetration testing, service virtualization, and policy-driven development can better prepare engineers to bear the heavy burden of security that accompanies the shift to the cloud.</p><h3>Moving Beyond Penetration Testing: Divide and Conquer</h3><p>Penetration testing is routinely used to barrage the application with attack scenarios and determine whether or not the application can fend them off. When a simulated attack succeeds, you know for a fact that the application has a vulnerability which makes you susceptible to a particular breed of attacks. It alerts you to real vulnerabilities that can be exploited by known attack patterns — essentially sitting ducks in your applications. When a penetration attack succeeds, there is little need to discuss whether it needs to be repaired. It is not a matter of “if”, but rather of “how” and “when.”</p><p>The common reaction to a reported penetration failure is to have engineers patch the vulnerability as soon as possible, then move on. In some situations, taking the path of least resistance to eliminating a particular known vulnerability is a necessary evil. However, relying solely on a “whack a mole” strategy for application security leaves a considerable amount of valuable information on the table — information that could be critical for averting the next security crisis.</p><p>Switching to a non-software example for a moment, consider what happened when the U.S. Army realized how susceptible Humvees were to roadside bombs in the early 2000s. After initial ad-hoc attempts to improve security with one-off fixes (such as adding sandbags to floorboards and bolting miscellaneous metal to the sides of the vehicles), the Army devised add-on armor kits to address structural vulnerabilities and deployed them across the existing fleet [11]. In parallel with this effort, they also took steps to ensure that additional protection was built into new vehicles that were requisitioned from that point forward.</p><p>How does such a strategy play out in terms of software? The first step is recognizing that successful attacks — actual or simulated — are a valuable weapon in determining what parts of your application are the most susceptible to attack. For example, if the penetration tests run this week succeed in an area of the application where penetration tests have failed before — and this is also an area that you have already had to patch twice in response to actual attacks — this module is clearly suffering from some underlying security issues that probably will not be solved by yet another patch.</p><h3>Divide …</h3><p>This is where “divide and conquer” comes into play. If you can zero in on your most vulnerable components, it is much simpler for the engineers tasked with securing the application to devise an effective attack plan.</p><p>The first task is to determine which parts of the application are most prone to security attacks. Since penetration testing is essentially an “outside in” testing strategy (e.g., launching attacks from the UI or API level and examining the response for indications of success or failure), this can be challenging — particularly if your penetration tests are broad rather than targeted. In other words, penetration testing typically tells you that a certain type of attack succeeded, but fails to inform where or how the success was actually achieved.</p><p>One way to better isolate the precise point of failure is to have “runtime error detection” monitor the back-end of the application to report exactly where the attack succeeded. Another way is to use an emerging test environment simulation technique known as Service Virtualization to effectively isolate attacks on a component-by-component basis. This strategy will be discussed in more detail later in this paper (along with other uses of service virtualization for application security purposes).</p><h3>…and Conquer</h3><p>Once you have zeroed in on the application components where you want to focus your application security resources, it is time to conquer those areas by addressing security from the inside out. Since the development team is most familiar with the application internals, these tasks can and should fall under their purview.</p><p>Many organizations are accustomed to relying on penetration testing performed by security specialists as their primary security strategy. However, as application security comes to the forefront with the move to the cloud, it is no longer conscionable to assume that zero successful penetration test attacks indicates a secure application. It is important to recognize that there are two key drawbacks of penetration testing:</p><ul><li><strong>It is reactive:</strong> Penetration testing is a reactive approach, checking whether the application resists a set of known attack patterns. As with anti-virus programs, you are constantly chasing after “flavor of the week” attacks rather than taking a proactive approach of identifying and removing root causes.</li><li><strong>It is incomplete:</strong> Penetration tests uncover problems only in the paths that the tests exercise. Considering that even a relatively small 10,000-line program has 100 million possible execution paths, the opportunities for overlooked vulnerabilities are staggering.</li></ul><p>Fortunately, such drawbacks can be overcome by having development apply two complementary types of static analysis to the modules that your penetration tests identify as being the most vulnerable to security attacks.</p><p>Flow-based static analysis is perfectly suited for quickly exposing security vulnerabilities in large code bases without requiring the definition or execution of a single test case. You can hone in on vulnerabilities like the ones that your penetration tests exposed in this component, or you can scour the component for a broader scope of vulnerabilities that might be of interest.</p><p>Although flow-based static analysis undeniably checks a broader swath of the application than penetration testing feasibly could, it is important to realize that it is not a panacea. It too has some significant shortcomings. Most notably:</p><ul><li>A complex application has a virtually infinite number of paths [12], but flow-based static analysis can traverse only a finite number of paths using a finite set of data. As a result, flow-based analysis inevitably finds only a finite number of vulnerabilities.</li><li>Flow-based static analysis identifies symptoms (where the vulnerability manifests itself) rather than root causes (the code that creates or allows the vulnerability).</li></ul><p>This is where pattern-based static analysis comes in. Pattern-based static analysis exposes root causes rather than symptoms, and can reliably target every single instance of that root cause. For example, if you are relying on flow-based static analysis alone, you will probably find a few instances of SQL Injection vulnerabilities… but you will not find them all. However, if you enforce an input validation rule through pattern-based static analysis that requires wrapping input methods in validation methods — finding and fixing every instance where inputs are not properly validated — you can guarantee that SQL Injection vulnerabilities will not occur because you no longer have a near-infinite number of paths to search.</p><h3>Taking Security to the Next Level with Service Virtualization</h3><p>One emerging trend that empowers engineers to perform additional security verification — from the early phases of the development process and from their traditional development environment — is Service Virtualization. Service virtualization is a method to emulate the behavior of specific components in heterogeneous component-based applications. It is used to provide development and testing teams access to dependent system components that are needed to exercise an application under test (AUT), but are unavailable or difficult-to-access for testing purposes. With the behavior of the dependent components “virtualized,” testing can proceed without having to access the actual live components.</p><p>Service virtualization opens a number of opportunities for enabling engineers to perform earlier and more effective security testing.</p><h3>Begin Security Testing Earlier</h3><p>As applications move to the cloud, tests that validate the security of an end-to-end transaction must pass through more (and more complex) dependencies. Just testing the security of a single transaction often involves interacting with dependencies ranging from mobile applications, databases, mainframes, 3rd party services, internal services, and more. The common approach to testing in such an interconnected environment is to delay testing until all the necessary resources can be accessed at a single point in time. However, such complete access typically comes late…and sometimes never comes at all. With service virtualization emulating the behavior of unavailable or difficult-to-access components, security testing efforts can start significantly earlier — considerably reducing the cost, effort, and resources required to remediate each vulnerability or weakness detected.</p><h3>Isolate Where Attacks Succeed</h3><p>Service virtualization enables testing and validation to be applied at multiple depths and levels. By applying validations and assertions to the messages from the application under test, engineers can isolate and zero in on specific components. They could validate a service’s response for any indication that its security controls are not working properly (or that additional ones should be implemented). For example, they can determine how the exact element they are working on handles an attempted attack such as an SQL injection. This direct validation provides significantly more visibility into the behavior of a particular component than could be obtained via the output of the larger integrated system.</p><h3>Gain Predictable, Complete Environment Access from the Development Desktop</h3><p>After a vulnerability is exposed during penetration testing (or in the field), the software engineers responsible for remediating the problem typically spend considerable effort trying to reproduce the problematic behavior in their own environment so that they can understand it, diagnose the root cause, then verify whether attempted fixes actually resolved the problem.</p><p>When tests are run vs. a simulated test environment, engineers are able to rapidly and accurately replicate the precise conditions that triggered the vulnerability. They can then debug the problem and validate their proposed fixes directly from their desktop. If this debugging and validation involves systems beyond development’s scope of control (e.g., partner services, databases that are difficult to access for testing, mainframes, etc.), development can run vs. simulated instances of these systems so access limitations do not delay or compromise their ability to complete security remediation tasks.</p><p>Moreover, the anytime/anywhere access that service virtualization provides enables the development team to run continuous regression testing. This ensures that the team is alerted if previously remediated security vulnerabilities ever re-surface as the code base evolves.</p><h3>Run Functional Tests vs. Realistic and Extensive Security Scenarios</h3><p>With service virtualization, even team members who are not security experts can take their existing functional test cases and execute them against a broad set of preconfigured security scenarios. Security specialists can pre-configure the environment’s dependencies to emulate different security scenarios that would otherwise be difficult to set up and unfeasible to test against. For instance, with SSL, you could configure acceptable and unacceptable certificates. Or, you could emulate various behaviors related to authorization, authentication, and access controls. You could also configure the dependent system to deliver malicious payloads. This provides very granular control over the security behavior of the dependencies in your environment. Now, as a complement to penetration testing, the team’s standard functional test scenarios can then be run against these different environment configurations.</p><h3>Perform Stateful Security Testing</h3><p>While standard penetration testing simulates attacks through an API in a non-stateful manner, service virtualization lets you emulate attacks at various levels of the system and at different points within a stateful process (e.g., at different points in a logical use case or workflow). This not only broadens your test coverage, but can also expose security vulnerabilities that are manifested only under a certain set of environment conditions — and that would not be apparent with non-stateful penetration testing.</p><h3>Closing the Gap: Putting Policy in Place</h3><p>A third component critical to helping development shoulder the burden of security is “policy-driven development.” The goal here is to ensure that security requirements (and other non-functional requirements) are exposed and measured as aggressively as functional requirements. Adopting a policy-driven development process where expectations are enforced in a standardized way across the development group is a low-hanging fruit for taking the necessary level of control over not only what software is being developed, but also over how that software is being developed.</p><p>The first step in policy-driven development adoption is to define what policies you want to implement. Policies can be formed around any aspect of the development process. To be effective, they must be definable, enforceable, measureable and auditable. You can define as many policies as necessary to help you achieve your goals, but you should start implementing them on a small scale. Introduce a few policies at a time, and as you become proficient with those policies, you can introduce more in small batches. One approach is to start with policies to ensure that new code is built in a way that prevents security weaknesses and vulnerabilities. Another common approach is to begin by focusing on eliminating the highest severity vulnerabilities in the existing code base.</p><p>Next, train software engineers on policies. Beyond documenting the how and the why of your policies, you also want to take steps to ensure that the connection between the two is clear. The absence of training is the Number 1 reason policies fail. If a policy requires code to be structured in a certain way, the engineer may not immediately see the potential for the bug that the structure is intended to prevent. If the engineer does not make the connection during this cycle or even the next few cycles, then the policy looks more like a guideline to him or her, leading typically to an (incorrect) declaration of “false positives.” Thus, the code may not be properly structured before the product goes to market, and vulnerabilities may surface in the field. At this point, the implementation of the policy has failed.</p><p>Finally, use automation to drive a sustainable process. Automating policy monitoring, as well as the process for routinely notifying engineers of violations, ingrains policies into the day-to-day workflow. Without this level of automation, policies will quickly fade and expected behavior will degrade back into recommended rather than mandated behavior. A centralized infrastructure capable of managing policies will go a long way toward realizing the benefits of policy-driven development. Ideally, a single platform that monitors adherence to multiple types of policies and enables effective implementation will be in place to deliver the traceability required for certification and for audit purposes.</p><p>With such a policy-driven process in place, engineers not only know what is expected of them, but receive objective, immediate feedback on whether they are meeting expectations.</p><h3>Postscript (2026): Everything Has Changed and Nothing Has Changed</h3><p>More than a decade on, the core of this argument has aged well: the application is still the last line of defense, the developers who build it are still best placed to secure it, and the same levers — sharper use of testing results, realistic environments to test against, and enforced policy — still carry most of the weight. Plenty of new ideas have arrived since, and several of them rhyme with themes in this piece even where they go beyond it.</p><p>Software bills of materials (SBOMs) speak directly to the composite-application problem from the opening section — you cannot reason about your weakest dependency until you can enumerate your dependencies, and an SBOM is only as useful as the policy you enforce around it. Interactive application security testing (IAST) is a close descendant of the “runtime error detection” monitoring described here: inside-out instrumentation that reports where an attack actually landed. Digital twins carry the service-virtualization idea further — a high-fidelity model of the environment you can attack safely and repeatedly. Memory-safe languages like Rust share the same instinct as pattern-based static analysis: rather than hunting down every instance of a memory-corruption bug, you make the whole class harder to write in the first place — a cousin of the “eliminate the root cause” logic applied here to SQL injection. AI is the real newcomer, and it cuts both ways: it writes more code faster (more attack surface, more to review) and it helps triage findings, but it also raises new questions these older disciplines were not designed to answer. None of it makes the fundamentals obsolete — if anything, more machine-generated code makes automated analysis and enforced policy more valuable, not less. Interesting developments, all of them, and mostly variations on ideas that were already taking shape when this was written. New tools, new processes, new acronyms — but the fundamental job hasn’t moved: write safer code in the first place.</p><h3>References</h3><ol><li>States, Lauren. “Tips for Building a Secure Cloud.” Lauren States — IBM Cloud Computing. IBM DeveloperWorks, 1 Nov. 2010. Web. 03 May 2013. <em>(Original page no longer available.)</em></li><li><a href="https://owasp.org/www-pdf-archive/OWASP_Top_10_-_2010.pdf">“Top 10 2010-Main.”</a> OWASP, n.d. Web. 03 May 2013. <em>[Editor’s note, 2026: The OWASP Top 10 has since been revised several times; the current edition is 2025.]</em></li><li>Maslowski, Jakub. <a href="https://www.zone-h.org/news/id/4669">“10 Reasons Websites Get Hacked,”</a> reason 4: “Insecure direct object reference.” Zone-H.org. Zone-H, 10 Oct. 2007. Web. 03 May 2013.</li><li>Maslowski, Jakub. <a href="https://www.zone-h.org/news/id/4669">“10 Reasons Websites Get Hacked,”</a> reason 2: “Injection flaws.” Zone-H.org. Zone-H, 10 Oct. 2007. Web. 03 May 2013.</li><li>Gross, Grant. <a href="https://www.computerworld.com/article/1529732/u-s-nist-s-vulnerability-database-hacked.html">“U.S. NIST’s Vulnerability Database Hacked.”</a> Computerworld, 14 Mar. 2013. Web. 03 May 2013.</li><li>Schwartz, Matthew. “InformationWeek: The Business Value of Technology.” InformationWeek Security. InformationWeek Security, 7 Apr. 2011. Web. 03 May 2013. <em>(Original page no longer available.)</em></li><li>Kovacs, Eduard. <a href="https://news.softpedia.com/news/Yahoo-Hack-Demonstrates-the-Risks-Posed-by-Third-Party-Code-in-Cloud-Computing-325289.shtml">“Yahoo! Hack Demonstrates the Risks Posed by Third-Party Code in Cloud Computing.”</a> Softpedia, 30 Jan. 2013. Web. 03 May 2013.</li><li>Gilbertson, Daryl. <a href="https://www.sans.org/media/dod8570/dod8570.pdf">DoD Directive (DoDD) 8570 &amp; GIAC Certification.</a> SANS, June 2011. Web. 3 May 2013.</li><li>Grimes, John G. <a href="https://www.cool.osd.mil/usn/ia_documents/DoD_8570.01M.pdf">Information Assurance Workforce Improvement Program (DoD 8570.01-M).</a> DoD, December 19, 2005, rev January 24, 2012. Web. 9 May 2013.</li><li>Maiffret, Marc. “Closing the Door on Hackers.” New York Times, 4 Apr. 2013. Web. 3 May 2013. <em>(Original NYT page no longer available; the piece survives only in third-party reprints.)</em></li><li>Bowman, Tom. <a href="https://www.baltimoresun.com/news/bal-fordstory032704-story.html">“U.S. Scrambles for Armored Cars as Troops Make Do With Sandbags.”</a> Baltimore Sun, 27 Mar. 2004. Web. 03 May 2013.</li><li>The underlying “path math” is: [2n(L1*L2*…*Lx) (V1*V2*…*Vy)]!Where: N is the number of decisions (branches). Ln is the maximum number of times a loop can loop. x is the number of decisions which cause a loop (x ≤ N). Vn is the number of different values each input variable can assume. y is the number of input variables. The factorial (!) is there because the order of running the test cases counts.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3246e4ab080e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/cloud-shifts-the-burden-of-security-to-development-3246e4ab080e">Cloud Shifts the Burden of Security to Development</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IAST vs. SAST: Why Runtime Testing Won’t Secure Your Code]]></title>
            <link>https://medium.com/commit-to-code-quality/iast-vs-sast-why-runtime-testing-wont-secure-your-code-007d3fe5eb8e?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/007d3fe5eb8e</guid>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[static-code-analysis]]></category>
            <category><![CDATA[sast]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 23:02:22 GMT</pubDate>
            <atom:updated>2026-07-03T14:01:03.575Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rC3ea-fquC4amf3b.png" /></figure><h3>You Cannot Detect Your Way to Secure Software</h3><p>Spend enough time in security tool discussions, and you’ll eventually hear the pitch for IAST (interactive application security testing). The argument goes roughly like this: SAST tools generate too much noise, developers ignore the findings, and by the time those findings surface, they’re already expensive to fix. Better to instrument the running application and catch real vulnerabilities as they actually execute, with less noise and better context.</p><p>That critique isn’t entirely wrong. I’ve seen SAST deployed exactly that way, late in the cycle as a security bug finder rather than a code hardening tool. And it does fail exactly that way. But the conclusion that IAST gets around the fundamental problems of SAST is where I’d push back. Hard.</p><p>Here’s the thing: the failure mode being described is a workflow problem, not a tool problem. And IAST has structural problems of its own.</p><p>It requires something to drive it: a test suite, a DAST scanner generating attack traffic, or real users in production. Someone has to instrument the application. The analysis only covers code that is actually exercised-whatever the source of that traffic. By the time it finds anything, the code is already built, integrated, and deployed.</p><p>And more fundamentally, <strong>you cannot detect your way to secure software</strong>. Detection is important. It’s not sufficient.</p><h3>Deming Said It About Manufacturing. It Applies Here Too.</h3><p>W. Edwards Deming’s famous directive, “cease dependence on inspection to achieve quality,” wasn’t a suggestion to stop testing things. It was a challenge to organizations that had substituted end-of-line inspection for actual quality engineering. If you’re catching defects at the end, you already failed upstream. The inspection is just making the failure visible.</p><p>Every discipline that produces things that have to work has internalized this. You do not inspect quality into a bridge after you’ve poured the concrete. You use the right materials, follow the right procedures, and verify at each stage before moving to the next. Software security isn’t different. Or at least, it shouldn’t be.</p><p>Building security in is a discipline. Merely discovering insecure code after the fact is not. Those are categorically different engineering activities, and SAST is the enabler of the former. Treating them as interchangeable is how you end up with a security program that’s permanently in reaction mode-putting out fires and never addressing why they keep starting in the first place.</p><h3>What IAST Can’t See, and What It Costs You</h3><p>IAST instruments a running application and reports vulnerabilities as code is exercised during testing or production. The appeal is real: confirmation that a vulnerability is actually reachable, with runtime context that static tools can’t match. But the structural limitation is equally real: IAST only sees code that executes.</p><p>Most applications have somewhere between 40% and 70% code coverage from their test suites. The code paths handling edge cases, error conditions, legacy features, and rarely used admin interfaces. Precisely the territory that attackers probe systematically may never be touched during test runs.</p><p>There’s a deeper problem underneath that. The people who write test suites are typically not security testers, and security testers typically don’t write unit tests.</p><p>Standard QA doesn’t model attacker behavior. And the people who do model attacker behavior aren’t usually in the business of building the test harness that IAST depends on.</p><p>IAST gives you an accurate picture of vulnerabilities in the code it exercises. It gives you no picture at all of the code it doesn’t. You reduce false positives, but you increase false negatives. The nice thing about false negatives is that they aren’t noisy. The bad thing is that you don’t know when they happen.</p><p>There’s also a practical overhead that often goes undiscussed. All IAST tools need something to drive execution:</p><ul><li>A functional test suite</li><li>A DAST scanner generating attack traffic, what some vendors call “active IAST”</li><li>Real user traffic in production</li></ul><p>Some tools can use any of these. None of them can analyze code that nothing exercises.</p><p>Someone has to instrument the application, maintain that instrumentation across code changes, and ensure whatever is inducing the analysis covers enough of the attack surface to make the results meaningful. The more sophisticated the inducer, the more operational investment is required. Coverage is always proportional to what drives it.</p><p>And there’s the cost dimension. By the time IAST is running, the code is written, integrated, and deployed to at least a test environment-and often to staging or production.</p><p>Most IAST deployments happen in QA or staging, which is where our chart places them. Some vendors explicitly market production deployment. Wherever it runs, the code already exists, and the development context that created it is already receding. The IBM/Ponemon Institute 2024 Cost of a Data Breach Report puts the global average breach cost at $4.88 million, a record high.</p><p>But cost compounds well before production. The same defect costs far more to fix in QA than in the IDE, and far more in staging or production than in QA.</p><figure><img alt="Bar graph titled, Relative Cost to Fix a Security Defect by SDLC Stage showing the sharp increase at each stage. IAST typically operates in the testing phase, where costs are already significantly above the point-of-coding baseline." src="https://cdn-images-1.medium.com/max/600/0*h4Kl9hSDw65f9zwC" /></figure><h3>What Happens When You Find It in Production</h3><p>Some IAST deployments don’t stop at the test environment. Some vendors market production-ready IAST explicitly, with agents running continuously in live systems and reporting vulnerabilities as real traffic exercises the code.</p><p>The appeal is obvious: actual attack surface, real usage patterns, real environment.</p><p>But consider what production discovery actually means for remediation. The code is deployed, and users are depending on it. A fix requires pulling the thread back through development, testing, staging, and redeployment in software that may have changed substantially since the vulnerable version shipped.</p><p>The developer who wrote the code may have moved on to a different sprint, a different project, or a different company entirely. Reconstructing the context needed to fix it correctly is expensive. And in practice, it often doesn’t happen.</p><p>It’s ludicrously common for a vulnerability discovered late to get closed with a comment along the lines of “the code has changed significantly since this was filed” or “unable to reproduce in my environment.” Those aren’t fixes. They’re deferrals dressed up as resolutions. The clock is running against exploitation the entire time.</p><p>The <a href="https://blog.gitguardian.com/uber-breach-2022/">2022 Uber breach</a> illustrates a related problem. Attackers who gained network access discovered a PowerShell script containing hardcoded admin credentials for Uber’s Privileged Access Management system. Those credentials unlocked AWS, GCP, Google Drive, Slack, and SentinelOne.</p><p>The root cause was a coding practice: secrets hardcoded in the source that no runtime tool would ever observe. IAST instruments running applications. A credential sitting in a script doesn’t execute in a test run. SAST, reading the source, would flag it at the moment it was written.</p><p>IAST in production is a safety net. It’s a useful one. But the goal is to need it as rarely as possible, and the way to do that is to prevent the vulnerability from being written in the first place.</p><h3>The Compliance Gap IAST Can’t Close</h3><p>For a significant portion of software being built today, the question isn’t just about finding vulnerabilities. It’s about demonstrating conformance to standards that mandate specific coding practices.</p><ul><li>Automotive software operating under ISO 26262 and <a href="https://www.parasoft.com/solutions/misra/">MISRA C</a>.</li><li>Aerospace systems under DO-178C.</li><li>Medical devices under IEC 62304.</li><li>Defense software under DISA ASD STIG.</li></ul><p>All of these require conformance to coding rules that govern the source code itself.</p><p>IAST cannot tell you whether your C codebase avoids the language constructs prohibited by MISRA. It cannot enforce CERT coding standards. It cannot produce the evidence artifacts that auditors and certification bodies require. These properties exist in the source or they don’t. Only static analysis of the source can verify them. This is not a gap that better instrumentation closes.</p><h3>Why IAST Doesn’t Work for C, C++, Rust, and ADA</h3><p>There is also a more fundamental language barrier.</p><p>IAST works by embedding agents into managed runtime environments, the JVM for Java, the CLR for .NET, and similar platforms.</p><p>C, C++, Rust, and Ada, the languages that dominate safety-critical embedded development, don’t have that kind of instrumentation model.</p><p>There is no IAST agent for bare-metal C running on an automotive ECU, no instrumented runtime for Ada in an avionics system, and no meaningful IAST coverage for the Rust codebases that U.S. government agencies are now actively encouraging for memory-safe systems development.</p><p>For these languages and domains, IAST isn’t a suboptimal choice. It simply isn’t a viable one.</p><p>There’s also a practical performance dimension worth acknowledging. IAST instrumentation introduces measurable runtime overhead in CPU, memory, and latency. How much overhead varies enormously depending on the tool, the application, the workload, and what the instrumentation is monitoring.</p><p>Your mileage will vary, and in some cases will vary by an order of magnitude. For real-time systems or performance-constrained embedded environments, that variability alone disqualifies runtime instrumentation as a primary security strategy, independent of any coverage argument.</p><h3>Evidence Requirements for Safety-Critical Software</h3><p>In safety-critical systems, the false negative problem isn’t an inconvenience. It’s a design requirement.</p><p>When software failure has physical consequences, the question isn’t just whether your security tool finds vulnerabilities. It’s whether you can demonstrate confidence that it hasn’t missed any.</p><p>IAST structurally cannot offer that assurance. It only covers code that was exercised by testers who weren’t modeling attacker behavior during a test run that didn’t reach the edge cases where failures actually hide.</p><p>That’s not a tool configuration problem. It’s an architectural limitation. The only approach that can provide systematic coverage of the full codebase, with documented rule sets and auditable evidence, is static analysis of the source.</p><p>Safety-critical software doesn’t get tested into correctness. It gets built toward it, with analysis running from the first line of code. Parasoft’s static analysis tools, <a href="https://www.parasoft.com/products/parasoft-c-ctest/">C/C++test</a>, Jtest, and dotTEST, cover the standards that matter across C, C++, Java, C#, and VB.NET, including MISRA, AUTOSAR, CERT, CWE, OWASP Top 10, OWASP API Top 10, and DISA ASD STIG.</p><p>For teams in regulated industries, “use IAST instead” isn’t an alternative. It’s a non-answer.</p><h3>Why Good SAST Makes IAST Better</h3><p>None of this is an argument against IAST. If you’re building applications where runtime testing is practical, it’s a genuinely useful layer. It confirms what static analysis predicts and catches issues that static analysis misses, particularly vulnerabilities that only manifest through specific runtime interactions with servers, databases, or third-party services.</p><p>The right response when IAST surfaces a finding isn’t just to patch the specific instance. Fix the instance? Yes. But then trace back to what created the condition in the first place and eliminate it. These are two separate steps.</p><p>The patch closes the immediate exposure. The root cause analysis and whatever coding standard, validation pattern, or static analysis check comes out of it close the door on the whole class of problems.</p><p>That second step is where the real leverage is. When a vulnerability surfaces, the right engineering question isn’t “how do I fix this?” It’s “where else in the codebase is this same condition hiding?”</p><p>That question is one we hear consistently from developers and security teams who are thinking about the problem correctly. A single IAST finding, handled well, becomes the justification for enabling a checker you hadn’t previously run, or for writing a custom checker targeted specifically at the pattern you just found.</p><p>Parasoft supports both:</p><ul><li>An extensive built-in rule library</li><li>The ability to author custom checkers for patterns that are specific to your codebase, architecture, or threat model.</li></ul><p>The finding that surfaces at runtime becomes the input that hardens the static analysis configuration going forward. That’s the feedback loop that actually moves the needle.<br> When SAST is running well, fewer vulnerabilities make it into builds, fewer reach integration, and fewer reach the environments where IAST runs.</p><p>IAST findings become more signal and less noise.</p><p>The team spends less time triaging and more time shipping. The tools aren’t competitors. They’re sequential: prevention upstream, confirmation downstream.</p><h3>SAST, IAST, and AI-Generated Code</h3><p>There’s a question worth raising that doesn’t get enough attention yet.</p><p>What happens to IAST’s structural challenges as AI coding agents start generating significant portions of codebases?</p><p>AI agents produce code quickly and in volume. They also produce characteristic failure modes:</p><ul><li>Missing bounds checks</li><li>Improper input validation</li><li>Hardcoded values that should be configurable</li><li>Subtly incorrect cryptographic usage</li></ul><p>These aren’t typos. They’re the kinds of structural issues that come from an agent that has learned to produce code that compiles and passes basic tests without having internalized the reasoning behind security constraints.</p><p>IAST needs code to be deployed, instrumented, and exercised before it can find anything.</p><p>As AI-generated code volume scales up, the structural limitations that already exist become more consequential.</p><ul><li>More code</li><li>The same coverage constraints</li><li>A test suite that wasn’t written to model attacker behavior against any of it.</li></ul><p>Static analysis, by contrast, can be integrated directly into the AI coding loop, analyzing each generated file at the moment of creation before it’s committed.</p><p>As AI coding agents become standard, the case for static analysis as a gate in that loop gets stronger, not weaker. The underlying principle here is straightforward: static analysis doesn’t care who wrote the code.</p><p>In a perfect world, AI-generated code would arrive clean, well-structured, and free of security issues. We’re not in that world yet. AI coding agents today produce real violations.</p><p>Sometimes the same classes of violations that human developers produce. Sometimes new ones characteristic of how models generate code.</p><p>The answer is the same regardless of the source. Run static analysis on everything, every commit, man or machine.</p><p>What makes this particularly powerful in the Parasoft context is that remediation can be compliance-aware, not just generically correct. It’s not enough to fix a violation in a way that happens to compile.</p><p>For codebases operating under MISRA, AUTOSAR, or other standards, a fix that introduces a different violation of the same standard, or trades one problem for another, isn’t a fix at all. Parasoft’s code-fix agent addresses this directly. It remediates findings in the context of the specific standard being enforced, then reruns analysis to verify that the fix actually achieves compliance rather than just eliminating the flagged line. The goal is code that doesn’t just change, but code that demonstrably conforms.</p><p>Parasoft has published research on this directly. A technical whitepaper comparing Parasoft C/C++test with GitHub Copilot evaluated automated fixes for CWE violations across 1,856 open-source C/C++ projects.</p><p>Parasoft’s compliance-aware prompts, which include rule documentation and chain-of-thought reasoning, outperformed GitHub Copilot’s generic Fix command in 64% of cases when reasoning was applied and 57% without.</p><p>Manual review confirmed that Parasoft fixes were more complete, more robust, and more consistently adherent to coding standards. The difference isn’t just which tool finds more violations. It’s which tool understands what a correct fix looks like in a specific compliance context.</p><h3>Get Off the Treadmill</h3><p>The software industry has spent decades trying to test quality in at the end. The <a href="https://en.wikipedia.org/wiki/List_of_software_bugs">list of consequential software bugs</a> is long enough to make the point on its own. Security is following the same pattern:</p><ul><li>Instrument the running application.</li><li>Find the vulnerable code.</li><li>Patch it.</li><li>Repeat.</li></ul><p>That’s not a security program. That’s a treadmill.</p><p>The teams actually improving their security posture aren’t the ones with the best detection tools. They’re the ones investing in writing better code in the first place with standards enforcement and static analysis embedded where it can influence code while the developer still has the context to fix it well. Deming’s point wasn’t that inspection is worthless. It’s that if inspection is your primary quality strategy, you’ve already lost.</p><p><strong>IAST is a useful instrument on the treadmill. The goal is to get off the treadmill.</strong></p><p>Build quality in. Verify it at runtime. And don’t let anyone tell you that detecting problems at the end is a substitute for preventing them at the beginning.</p><p><em>Originally published at </em><a href="https://www.parasoft.com/blog/iast-vs-sast-why-runtime-testing-isnt-enough/"><em>https://www.parasoft.com</em></a><em> on June 23, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=007d3fe5eb8e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/iast-vs-sast-why-runtime-testing-wont-secure-your-code-007d3fe5eb8e">IAST vs. SAST: Why Runtime Testing Won’t Secure Your Code</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is Shift-Left Testing? And Why Most Teams Do It Wrong]]></title>
            <link>https://medium.com/commit-to-code-quality/what-is-shift-left-testing-and-why-most-teams-do-it-wrong-196e430ec248?source=rss-ad27a4c06b0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/196e430ec248</guid>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[static-code-analysis]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[The Code Curmudgeon]]></dc:creator>
            <pubDate>Tue, 09 Jun 2026 21:26:48 GMT</pubDate>
            <atom:updated>2026-06-19T17:00:29.513Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Text on the left: What Is Shift-Left Testing? On the right is a bright colorful graphic of an arrow merged with a dollar sign pointing left." src="https://cdn-images-1.medium.com/max/1024/1*JFay1Y4zZ5O3VLjjMa8iSA.jpeg" /></figure><p>Shift-left testing means catching bugs earlier in the development process, ideally while the code is still being written. The goal is to find and prevent defects early in the development lifecycle when they’re easiest and cheapest to fix and when the code is still fresh in your mind.</p><p>Somewhere along the way, “shift left” became the software industry’s favorite thing to say in planning meetings and the thing most teams do the least well.</p><p>The idea is genuinely good: find defects sooner rather than later when they’re expensive and embarrassing. Simple enough.</p><p>So why do so many shift-left initiatives stall out, produce more friction for developers, and leave quality roughly where it started?</p><p>Usually because shifting left got interpreted as “run the same tests sooner” rather than “build quality in from the start.” That distinction matters a lot.</p><h3>The Core Idea: Bugs Are Cheapest to Fix When the Code Is Fresh</h3><p>The economic case for shift-left testing is well established. Bugs introduced during coding but not caught until system testing are dramatically more expensive to fix than bugs caught during the coding phase itself. The reasons are intuitive:</p><ul><li><strong>Reproduction cost.</strong> The larger and more integrated the test case, the harder it is to isolate which piece of code is actually misbehaving.</li><li><strong>Context loss.</strong> A developer who wrote a function two sprints ago has to re-excavate their own thinking before they can even understand the defect report.</li><li><strong>Blast radius.</strong> A bad design decision made early and caught late is usually baked into multiple layers of code. Fixing is no longer a small edit, it’s a refactor.</li><li><strong>Dependency delays.</strong> Finding a defect in integration testing often means waiting for multiple teams to align, reproduce, triage, and prioritize. Multi-week remediation cycles are common.</li></ul><p>The numbers back this up.</p><p>IBM’s Systems Sciences Institute found that defects cost 6x more to fix in testing than in construction and 15x more when they reach production. The CISQ estimated the cost of poor software quality in the U.S. at $2.41 trillion in 2022. Those are not rounding errors.</p><p>Shift-left testing is a practical response to these economics-the high cost of late-stage bug defects.</p><h3>Where Shift Left Goes Wrong</h3><p>Here’s the version of shift left that doesn’t work: taking your existing integration test suite and scheduling it to run earlier.</p><p>That is not shifting left. That is just running slow, late-cycle tests on immature code. The result?</p><ul><li>A wall of failures that no one has the context to diagnose</li><li>A lot of frustrated developers</li><li>A project manager who decides that shift left was a failed experiment</li></ul><p>The more subtle failure mode is treating shift left purely as a testing problem when it’s actually a development process problem.</p><p>If the goal is just to find more bugs sooner, you have already accepted that bugs are inevitable and unavoidable. That ceiling is too low.</p><p><strong>The real goal of shift-left testing is to reduce the number of defects being introduced in the first place</strong>, not just to catch them faster. Finding fewer bugs should be a success metric, not a cause for concern. If your static analysis tool is surfacing fewer issues over time, that is the shift left working.</p><h3>What Actually Shifts Left</h3><h3>Static Analysis During Coding</h3><p>The furthest left you can push defect detection is into the coding phase itself, before anything is committed or tested. Static analysis tools examine source code without executing it, checking for violations of coding standards, common defect patterns, security weaknesses, and structural problems.</p><p>The key distinction worth understanding here is what separates a genuine bug-finder from a predictive checker.<br> Bug-finders trace actual data dependencies and control flow to identify real, reproducible defects. Predictive checkers flag conditions that “could” create a problem which is still valuable, but requires a different interpretive frame.</p><p>Developers who label predictive checker findings as false positives are often missing the point: the finding is real even if the specific defect hasn’t manifested yet. The right response is to eliminate the condition, not dismiss the warning.</p><p>For compliance-driven organizations (automotive, aerospace, medical devices, defense software), static analysis is the enforcement mechanism for coding standards like MISRA C, AUTOSAR C++14, DO-178C, and others.</p><p>These standards exist because certain coding patterns are inherently unsafe, regardless of whether they have produced a visible bug yet. Static analysis applies them systematically, at scale, without relying on human reviewers to catch everything in a code review.</p><p>When integrated into a developer’s IDE and CI pipeline, static analysis shifts defect detection all the way to the point of code creation. A developer sees the issue in the same session they wrote the code, with full context, and can fix it in minutes rather than days.</p><h3>Unit Testing as Development Practice, Not QA Activity</h3><p>Unit testing that actually shifts left is not something developers do when they finish a feature. It’s something they do while building one.</p><p>Whether teams practice test-driven development (write the test first) or just maintain high unit test coverage as a discipline, the result is the same: defects surface at the function level, immediately, without the noise of a full integration environment.</p><p>The software testing pyramid is the right mental model here. Unit tests are cheap, fast, and specific. They form the base. Functional and API tests sit above them. Slow, expensive UI and manual tests are the narrow top, there to confirm functionality, not hunt bugs. A team that inverts this pyramid, relying primarily on late-cycle tests to catch defects, is not doing shift-left testing regardless of when those tests run.</p><h3>Service Virtualization to Enable Earlier Functional Testing</h3><p>One of the practical barriers to shifting left is that functional testing often requires dependencies that are not available:</p><ul><li>Third-party APIs</li><li>Legacy systems</li><li>Mainframes</li><li>Systems still under development</li></ul><p>Waiting for those dependencies to be ready pushes testing right by default.</p><p>Service virtualization removes that constraint. By simulating dependent systems, teams can run functional tests, API tests, and even performance and security tests against a realistic environment long before the real environment exists. Tests that previously lived in a late integration phase can move all the way to the development desktop.</p><p>That has an interesting side effect for security testing. When the dependent systems are simulated, you can make them behave maliciously: flooding with malformed data, sending unexpected error states, exercising edge cases that would be difficult or impossible to engineer in a real test lab. You get deeper security coverage earlier, not just earlier coverage.</p><p>For the same approach applied specifically to performance testing, see <a href="https://www.parasoft.com/blog/how-to-optimize-performance-testing-with-a-shift-left-approach/">how to optimize performance testing with a shift-left approach</a>.</p><h3>The Danger of Shifting the Burden</h3><p>Aggressive shift-left programs raise a legitimate concern. That concern is that they offload too much responsibility onto developers, who are supposed to be writing features, not running a testing operation.</p><p>The concern is valid. Developer time is expensive and scarce. A shift-left implementation that turns every developer into a part-time QA analyst has missed the point as badly as the team that just runs integration tests earlier.</p><p>The answer is automation and tool integration, not manual effort. Static analysis should run automatically upon commit. Unit tests should execute in the background. Findings should surface directly in the tools developers already use, in the moment the code is being written, not as a separate review queue to process later.</p><p>The friction budget matters. If shift left adds meaningful friction to the development workflow without a clear, immediate payoff in the developer’s own experience, adoption will be passive at best. The tools have to earn their place in the workflow, which means fast feedback, low noise, and findings developers can act on without becoming experts in the analysis tool itself.</p><h3>Shift Left Is Not a One-Time Adjustment</h3><p>Shift-left testing is sometimes framed as a migration, as if teams make the transition once and then they are done with it. That’s not quite right. It is a practice. And practices require ongoing investment.</p><p>Test coverage needs to grow alongside the codebase. Coding standards need to be tuned as the codebase matures and as new standards evolve. Service virtual assets need to be maintained as real dependencies change.</p><p>And teams need metrics that measure what actually matters:</p><ul><li>Defect escape rate</li><li>Time from defect introduction to detection</li><li>Cost per defect in production</li></ul><p>Measuring the number of bugs your static analysis tool finds is less useful than measuring how many bugs are making it into the field.</p><h3>The Bottom Line</h3><p>Shift-left testing works. The economics are clear, the tooling is mature, and the teams doing it well consistently see reduced defect escape rates, shorter remediation cycles, and lower overall cost of quality.</p><p>What does not work is treating it as a scheduling problem. Moving bad testing habits earlier in the cycle does not make them good habits. The shift that matters is the shift from defect detection to defect prevention, from reactive quality gates to proactive quality engineering built into the development process itself.</p><p>Find fewer bugs in production. That is the metric. Everything else is in service of that.</p><p><a href="https://www.parasoft.com/solutions/automated-testing/">Learn about automated testing solutions</a> that make shift-left testing work in practice.</p><p><em>Originally published at </em><a href="https://www.parasoft.com/blog/what-is-shift-left-testing/"><em>https://www.parasoft.com</em></a><em> on June 9, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=196e430ec248" width="1" height="1" alt=""><hr><p><a href="https://medium.com/commit-to-code-quality/what-is-shift-left-testing-and-why-most-teams-do-it-wrong-196e430ec248">What Is Shift-Left Testing? And Why Most Teams Do It Wrong</a> was originally published in <a href="https://medium.com/commit-to-code-quality">Commit to Code Quality</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>