Dangerous Errors
Podcast Posts Presentations Synthwave About
Podcast Posts Presentations Synthwave About
  • An Optimal Programming Language for LLMs Aug 14, 2026
    Sign with block letters that says, Living in the fast line

    Photo by Jinsoo Choi on Unsplash

    "You hear that Mr. Anderson? That is the sound of inevitability. It is the sound of your token-spend."

    – Agent Smith, The Matrix (approx.)

    How inevitable that a trade known for celebrating efficiency and optimization would eventually shift from spending as much as possible on tokens to tightening that token budget.

    That’s not to say that there’s no place for experimentation and learning. Many developers were driven as much by curiosity about LLMs as they were by a mandate to consume them. But experimentation must at some point turn away from novelty that produces lines of code to more meaningful and measurable outcomes.

    And what better measure than the efficiency of token spend. The instigating institutions, self-interested model providers, extolled optimal coding in terms of vibes and volume. And while that blossomed into substantial spending, it left behind a cruft of software that ignored the craft of software.

    So what would be some good programming language properties for LLM budgets? What languages have a brevity of syntax and semantics such that they would translate to tinier token creation?

    Very Verbose vs. Sufficiently Succinct

    TypeScript is an easy example of an expensive language. It adds so much decoration that disappears when transpiled to JavaScript. All those annotations do is help humans understand the context and constraints around the project's data and functions, or give the compiler something to complain about when types don't match. But they’re tedious for LLMs to consume and create. Why bother with so much text that gets thrown away for production? Humans might need those reminders to jog their memory. But LLM coding prompts just need a concise closing clause like, “...and make it secure.”

    That’s not to say that JavaScript doesn’t helpfully try to cut corners. Unfortunately, cutting things down like only having 53 bits for integers instead of 64 doesn’t translate to token efficiency. It just occasionally surprises humans. Humans don't look at the world through the lens of floating point numbers. LLMs do.

    JavaScript can also be manipulated into minimizing its character set, which we'd hope would translate to tinier tokens. We’ve seen general guidance around this where APIs are encouraged to return sparse markdown instead of HTML in order to avoid spending money on all those angle brackets, tags, and attributes. LLMs don't care about the size or color of a font. They faithfully adhere to the security motto of, "If you see something, say something."1

    Thus, a smaller and shorter input range of characters seems economically favorable. A heading indicated by a leading # ... in markdown is more token efficient than wrapping it within <h1>...</h1>.

    JavaScript's object and type model has some quirks that almost help here. For example, rather than use a literal string like alert, you can craft the same string through clever manipulation of objects and arrays like, (![]+[])[1] + (![]+[])[2] + (![]+[])[4] + (!![]+[])[1] +(!![]+[])[0]. This reduces the set of characters to tokenize. Yet sadly, it explodes the amount of tokens to consume. Such is the curse of premature optimization.

    Still, punctuation feels like a fruitful path to explore for efficient languages. After all, if we can imbue an ancient telegram token like “STOP” into a period, that’s a good optimization. If we can imbue the semi-colon that signifies the termination of a line of code into a newline character, that’s another. Go removed the semi-colon burden from our humans brains by making the compiler toolchain silently add them in wherever the specs says they should go2.

    Lisp and its ilk have plenty of punctuation. Their parenthetical policy encourages simplified and condensed source, for example (Parse (:this (kind (:of :thing)))).

    (Lisp even has mutable dynamic variables denoted by *earmuffs* and constants between +plus-signs+. That's some powerful punctuation!)

    LLMs fly through a cascade of closing characters like that. Lisp's style guide also explains the hierarcy of comments denoted by four, three, or two semi-colons. Again, LLMs just chew through those single characters quickly.

    But if we’re going to rely on syntax to shorten our token spend, we can do better.

    Probably Effective and Reasonable Language

    Sign with block letters that says, Living in the fast line

    Photo by Francesca Fabian on Unsplash

    We can use Perl. Perl must surely be the ideal LLM programming language. It was created for – and excels at – text processing.

    Perl, who's pedigree dates back to the late 80s, predicted and practiced the probabilistic nature of LLMs with its early design slogan, “There’s more than one way to do it.”

    Seeing three different Perl programmers come up with seven different solutions for the same problem is just the small-scale version of running the same prompt through an LLM more than once.

    Like LLMs, Perl is unburdened by expectations of predictability or a dependable nature. Like LLMs, Perl has limitations inherent to context. Take Perl’s list context. It's a stochastic minefield for operators and functions, which perlfunc officially explains as, “In general, they do what you want, unless you want consistency.”

    That sentiment sounds like a cruel reformulation of the quote about technology and magic where, “Any sufficiently advanced list operator is indistinguishable from its context.”3

    So, we have parallels in unpredictability and comparable challenges in explainability. What about efficiency in taming tokens?

    One of the best ways to save on tokens is to not spend them in the first place. In the context of writing code, that means not writing code. Once again, Perl excels in this space by providing a native implementation for unimplemented code with the “yada yada” operator.

    It gets better. That operator is otherwise known as the three-dot ellipsis (...), but sometimes three dots is just the same as two dots for a range operator. Ambiguity and surprise are what make LLMs so powerful as text creation systems!

    Speaking of operators, you’ll never waste lines of code on no-op expressions – Perl doesn’t have them. Except it does if you really need one. This design flexibility reinforces the slogan’s subtext of, “There’s more than one way to spend tokens.”

    Integers in Perl are superior to JavaScript. You get a full 64-bit representation rather than JavaScript’s paltry 53. And don't worry about those extra bits adding bloat. You can famously implement RSA encryption and decryption in three lines of Perl.4

    Notably, in the 90s those three lines of code were briefly considered a munition restricted by U.S. export controls. Perl was abetting government sanctions well before modern models got their cybersecurity capabilities on a gradient descent into danger.

    And where TypeScript wastes text on semantic hints like whether a string represents a name or an email or something else that humans have to remember when writing code, Perl eschews those descriptors.

    In fact, one of the emergent properties of a slogan that encourages, “...more than one way to do it,” is that reading someone else's Perl code ranges from frustrating to near-impossible for humans. But not for an LLM.

    One Token Over the Line of Code

    LLMs don’t need to explain their work, they don’t need to produce human-readable code when the reviewers and consumers of that code are merely other LLMs. All those abstractions of types and decorators and comments are just crutches for human brains that can’t handle the precision of floating point numbers.

    Humans long ago realized that measuring their success in creating software was poorly correlated to lines of code. There were so-called "code golf" competitions where they used their knowledge of language quirks to implement a function in the fewest characters possible. But that was an exercise driven by intellectual curiosity that had nothing to do with cost-savings.

    But what if all that syntax isn't as important as what the code actually does? What if the semantics of symbols meant compilers could apply better security to data flows, control flows, and memory manipulation? Maybe TypeScript makes collaboration and maintenance easier. Maybe Rust makes heap allocation mistakes harder.

    Maybe it was our natual written and spoken language all along that made better software. Perhaps not completely natural, as betrayed by the stilted and formal language of RFCs and similar specs. But it's close.

    Even the emphasis of capital letters in words like SHOULD, MAY, and MUST mostly works on humans about as well as LLMs. But it's that mostly qualifier that leads to security flaws. And it's the ambiguity of language that leads to disparities between designs and implementations. And those disparities impact software quality.

    So maybe we need a better language for humans and for programs. Maybe math, where operators operate predictably and statements can carry proofs that guarantee behavior. Those kind of concrete properties could be a boon to real-world security. No human mistakes, no LLM hallucinations. Surely there's nothing irrational or imaginary to such a choice.

    Meanwhile, I'll continue to enjoy typing text in whatever language by hand. Ultimately, the only tokens I care about are the ones that represent creatures on maps in role-playing games.


    1. Which is why LLMs spot prompts in the most unexpected places and adjust their behavior accordingly. Cybersecurity folks call this prompt injection. LLMs surely just call this attention to detail. ↩︎

    2. Although things get fiddly with if statements. ↩︎

    3. More riffs on that here. ↩︎

    4. Incidentally, this is also why people have noted that an obfuscated code contest for Perl would be redundant. ↩︎

  • ASW Recap for July 2026 Aug 7, 2026
    Sundial

    Photo by Mark Vihtelic on Unsplash

    We’ve just crossed through the halfway point of the year.

    Is your vuln backlog half empty or half full?

    Do you have a better strategy than half-heartedly applying patches?

    What if we turned half-measures based on checklists into full-fledged designs rooted in secure principles?

    After all –

    I don’t know half of this year’s CVEs half as well as I should, and I like less than half of vuln patching emphasis half as well as it deserves.

    Defense-in-Depth Strategies for Securing Mobile Applications (ep. 390)

    Mobile apps need resilient design strategies to ensure their business logic and workflows remain secure. We dive into a defense-in-depth discussion with Ryan Lloyd about the threats that mobile apps face, the threat models devs should reason through, and the unsurprising reasons why mobile development requires server-side controls.

    I particularly like talking about flaws in business logic and workflows because their discovery requires creative thinking about potential misuse and abuse. After all, the attack payloads are almost always valid and technically correct traffic. They just happen to be hitting weaknesses in a state machine, edge cases in expectations, or a surprising sequence of steps that developers didn't anticipate.

    This interview was sponsored by GuardSquare.

    Discovering & Securing Your AI Agent Attack Surface (ep. 391)

    While LLMs and agents are new to appsec and everyone else, a lot of AI security requirements translate to well-known API security requirements. Jeremy Snyder frames the OWASP LLM Top 10 into five layers in order to understand and prioritize their attack surface.

    Similar to securing APIs, having a solid foundation of observability and identity makes it easier to avoid unexpected activity from agents and to set boundaries on their behavior. That's especially important for constraining prompt injection and excessive agency.

    Prompt injection is the unexpected activity that most orgs are likely to get an unpleasant surprise from. But unbounded consumption runs a close second. And that unbounded consumption can come from surprising areas. We talked a bit about using LLMs to evaluate intent and output handling, but burning more tokens to check security outcomes from burning other tokens isn't always the most reliable or efficient solution. And that's where we're looking for more interesting and useful appsec approaches.

    MacOS Security Design Features, Flaws, And Futures (ep. 392)

    Appsec often frames usability and security requirements as at odds with each other. Apple's software has famously emphasized the importance of usability while also establishing a solid security foundation.

    Patrick Wardle talks about how he's seen malware shift from Windows to macOS, how Apple's aggressive stance on deprecation benefits security, and the areas of the OS where he sees plenty of opportunity for more security research. In fact, you'll be able to catch more of his research at this year's Black Hat and DEF CON!

    We discuss how developers make defensible design choices and a few security principles that any app developer should keep in mind regardless of their programming language or operating system.

    Inside the OWASP Agent Security Regression Harness Project (ep. 393)

    Orgs need to be able to use agents, MCPs, and LLMs in ways that don't lead to unexpected actions and undesirable outcomes. The OWASP Agent Security Regression Harness project is an approach for defining customizable scenarios and testing whether those systems fail against known security threats.

    Mert Saltimaz talks about the background of the project, how orgs can use it as they bring more LLMs into their environment, and how the project intends to grow. Importantly, we also talk about the security controls and designs that orgs can build around the systems and data that models interact with in addition to evaluating the security of the agents and agent harnesses themselves.

  • ASW Recap for June 2026 Jul 3, 2026
    Stonehenge on a summer day

    Photo by Quan-You Zhang on Unsplash

    June brings us the summer solstice, leading to shorter days and longer nights.

    There’s also an appsec solstice, except things just get longer – lists of CVEs, top ten lists, lists of JavaScript frameworks, lists of AI frameworks.

    And the only kinds of days that get shorter are the number that appsec requires for patching vulns.

    Maybe we spend too much time chasing bugs in the dark instead of illuminating better designs.

    BadHost, Dead CTFs, Exploding NPMs, and the Verizon DBIR (ep. 385)

    We kick off the month with an episode dedicated to appsec news since we ran so many interviews from RSAC at the end of May.

    Kalyani Pawar stops by to talk about the parsing problems that led to the BadHost vuln, which exposed tons of LLMs, MCPs, and agents to potential compromise. Then we wonder where to look for security education and practice as more and more LLMs infiltrate the camaraderie of the CTF community.

    We talk about the tradeoffs in trust between using public packages vs. having agents write replacements from scratch. In other words, do you reuse an open source solution that’s already addressed your needs? Or do you burn tokens to re-implement a solution from scratch? The situation isn’t quite that dichotomy of decisions, but so many people are looking for excuses to have agents write code that avoiding packages has been a topic of conversation.

    Finally, we examine a few appsec details from the Verizon DBIR that reveal how attackers are compromising orgs – and how orgs should use that information to protect themselves.

    Scanner Results Are a Starting Point. Here's What Comes Next. (ep. 386)

    Most AppSec teams are working through more findings than their teams can validate. But that already feels like a losing proposition and a bad strategy, especially when dealing with dependencies. It’s just a form of BugOps – chasing CVEs because they’re a quantity that can be tracked and reduced.

    Somewhere in that process are a few vulns worth worrying about, the ones that are actually exploitable in production with consequences you should care about. This conversation with Federico Kirschbaum explores why automated testing often stops short of the hardest part of the job: proving priority.

    We dig into how business logic flaws and authorization vulnerabilities get missed by tools that scan without reasoning, what exploit validation looks like at runtime, and how security engineers are (slowly) preferring to filter findings to those that developers should actually act on.

    The segment is sponsored by XBOW.

    Why Does It Matter Who or What Created the Code? (ep. 387)

    Agents and LLMs are creating and reviewing code. They're a new tool to help developers write software and they're a new abstraction layer for expressing what code should do.

    But if we're focused on determining whether code is secure, where do we focus our attention on ensuring a secure outcome?

    Matias Madou talks about the challenges of finding metrics and developing benchmarks to help answer these questions. We walk through many of the questions we'd like to see answered and our desire to see appsec finally shift out of a BugOps-style find-and-fix mode into a future of secure design.

    How AI Is Reshaping Identity Security at the Infrastructure Layer (ep. 388)

    Appsec has seen machine identities from daemons and processes to services, microservices, and cloud accounts. And now we have agents.

    Ev Kontsevoy talks about what it means to have engineers and agents interacting in an environment, and why a focus on actions is more effective than roles.

    One of the biggest challenges in securing agents alongside all of the other identities that organizations manage is how fragmented that management has become. But a unified engineering view of identities is just a start. Once you're able to shift to a practice where access is granted based on attributes and limited durations, then your environment becomes more resilient to mistakes and unexpected actions, not to mention the security concerns that arise with agents acting on their own.

    Reducing Attack Surface & Evaluating Efficiency in Agents (ep. 389)

    Squidbleed reveals another vuln that's been lurking for decades, but its real lesson is in managing a codebase’s attack surface. Regardless of whatever programming language you use, removing code is one of the best security steps you can take, followed by changing default configs to turn off uncommon features and ancient protocols.

    The Linux kernel's removal of strncpy is another example of managing attack surface by replacing a notoriously misused and ambiguous function with more specific versions that better match the developers intent. It was a six-year journey for the kernel, but one that should remove a class of vulns and, importantly, improve performance.

    Then it's on to agents as Tyler Shields and I discuss the newly released OWASP AISVS and yet another example of evaluating LLMs as code reviewers.

  • ASW Recap for May 2026 Jun 5, 2026
    An Enigma machine, used for enciphering messages during World War II

    Photo by Christian Lendl on Unsplash

    The halting problem is a famous example of a decision problem in computing.

    It asserts that, given a piece of software, it’s impossible to know if appsec will ever stop making checklists about it.

    Keeping Up With the OWASP GenAI Project (ep. 381)

    Speed is the most common theme among developers and appsec teams working with LLMs and agents, from trying to keep up with patterns for deploying agents to dealing with more code at a faster pace to how the latest models impact code quality and security. The OWASP GenAI Project is helping organizations keep up with these changes and engaging the appsec community for sharing effective ways to keep systems secure. Scott Clinton shares the latest progress on the project, its roadmap for the year, and how appsec practitioners can shape its future.

    Why Basic Security Practices Still Work (ep. 382)

    If you have to ditch your entire appsec strategy because you expect 2026 to bring more vulns more quickly, then you probably didn’t have a good strategy in the first place. Rob Allen shares how the mentality of “assume breach” doesn’t have to be a defeatist attitude and can instead be a way to change a catastrophic breach into a more contained one. We also talk about proactive security and what an “avoid breach” attitude could look like, including how to apply the macro lessons of default deny and network isolation to writing secure code.

    This was a sponsored interview.

    The State of AI & AppSec (ep. 383)

    This year has seen a growing gap between long-established secure design fundamentals and burgeoning chaos of LLM-driven vuln discovery. Keith Hoodlet returns to share his latest observations on what the recent news about Mythos, models, and harnesses means for appsec. He walks through the problems of misalignment, the potential development doom that looms behind a volume of vulns, and what modern code creation looks like. Along the way we touch on the economics of tokens and the principles behind secure software. Keith gave a preview of his upcoming presentation (May 22nd) on these topics.

    AppSec Conversations on Agents, LLMs, and OWASP from RSAC (ep. 384)

    We showcase recordings from this year's RSAC Conference.

    Scott Clinton, Co-Chair and co-founder of the OWASP GenAI Security Project, shares insights from the project’s latest research, including new landscape guides and evolving approaches to securing generative and agentic AI systems. The conversation explores critical gaps in genAI data security, the rise of agent-assisted development, and the immense growth of the OWASP community and sponsor ecosystem. Looking ahead, he outlines the most urgent risks and priorities shaping AI and agentic security in 2026.

    Then Merritt Maxim discusses how AI is affecting Identity and Access Management. Expect to hear this topic a lot throughout 2026, especially as the industry tries to figure out what’s different or special about securing agent identities.

    We close with a chat with Janet Worthington about the impact of agents on the SDLC and how orgs are updating their controls to deal with code generated by humans and LLMs alike.

  • ASW Recap for April 2026 May 1, 2026
    Golden Gate bridge

    Photo by KEITH WONG on Unsplash

    This tax season, give your org an appsec tax refund.

    Skip that list of phishing terms.

    Remove that password strength calculator.

    Hide that hardening guide.

    And instead,

    Make passkeys palatable,

    Deliver smart defaults,

    Defeat classes of vulns with a good design.

    Like Standard AppSec News, But With AI (ep. 377)

    We started off with a roundup of appsec news. Source code leak, but with AI. Supply chain compromise, but with AI. Better CMS design, but with AI.

    The AI angle is inescapable, but that doesn't mean appsec fundamentals have changed. As always, John Kinsella highlights the interesting bits and adds advice for teams figuring out how to use LLMs in their workflows.

    The axios supply chain compromise was this year's XZ Utils -- a reminder that security still needs to work on making it easier to deploy known solutions and that many of those solutions should be expected as the default state for modern software development.

    I try to curate the articles we cover each week along a common theme for discussion.

    The theme this week was my (unattainable?) wish to see appsec use vuln discovery as a motivation for building secure software that avoids classes of vulns. For example, if some code has a SQL query built with string concatenation, why not enforce a coding style and policy that requires only parameterized queries? It seems like we still wait for grep, a fuzzer, or an agent to find such patterns instead of avoiding them in the first place.

    Securing Software's Journey with the OWASP SPVS (ep. 378)

    It’s one thing to write secure code, it’s another to release it into the wild. It's yet another thing entirely to run someone else’s code on your systems.

    Farshad Abasi and Cameron Walters created the OWASP SPVS (Secure Pipeline Verification Standard) to organize the steps and processes needed to establish a secure ecosystem for building, releasing, and maintaining software. They explain how it complements other guidance like ASVS, which focuses on the lifecycle of a specific app, and SLSA, which offers similar levels of controls for creating and consuming software artifacts.

    They also explain why they went with a full project instead of creating yet one more top 10 list (thank you), why this 1.5 version bump gained over 130 new controls because of AI (whaaat!?), and how to implement effective controls without being overwhelmed by the amount of them.

    They're also looking for more feedback and more contributors. Check out the project and see how you can help!

    The Human Aspect of Red Teams (ep. 379)

    Red team exercises set goals to see if a particular outcome can be accomplished through a simulated attack, but the ultimate outcome should be educating the org about how to improve tools and processes that make attacks more difficult to succeed.

    Gwyddon "Data" Owen shares his experience building a red team, creating an exercise, and leveraging the results to improve security. And while the adoption of LLMs will accelerate a red team's activities, there are still plenty of foundational security controls that orgs can establish that would require a red team to be more than just fast, but fast and very, very careful.

    Top 10 Web Hacking Techniques of 2025 and a Hint for 2026 (ep. 380)

    Portswigger's list of web hacking techniques is a long-running celebration of curiosity and research from the web hacking community. James Kettle shares his thoughts on the entries from 2025 and how he expects LLMs and agents to influence what the list will look like for next year. He also shares some insights on using LLMs for his own blackbox research, giving us a peek into the work he'll be sharing at Black Hat USA this summer.

1 2 3 4 5 ... 30

Dangerous Errors

  • zombie
  • mutantzombie
  • mutantzombie.bsky.app
  • SecurityWeekly

Cybersecurity and more | © Mike Shema