<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sunny Chokshi</title>
    <description>The latest articles on DEV Community by Sunny Chokshi (@sunnychokshi).</description>
    <link>https://dev.to/sunnychokshi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4213445%2F1d1e097a-1d0d-4e9d-9239-5fc0f59c3e59.png</url>
      <title>DEV Community: Sunny Chokshi</title>
      <link>https://dev.to/sunnychokshi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sunnychokshi"/>
    <language>en</language>
    <item>
      <title>Detection rate alone ranks the worst LLM code reviewers first</title>
      <dc:creator>Sunny Chokshi</dc:creator>
      <pubDate>Wed, 28 Oct 2026 19:31:01 +0000</pubDate>
      <link>https://dev.to/sunnychokshi/detection-rate-alone-ranks-the-worst-llm-code-reviewers-first-5825</link>
      <guid>https://dev.to/sunnychokshi/detection-rate-alone-ranks-the-worst-llm-code-reviewers-first-5825</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3owbpasnvmtupyysmqpg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3owbpasnvmtupyysmqpg.png" alt="100% detection rate can tell you little. qwen2.5-coder 0.5B flagged 540 of 540 snippets, balanced accuracy 0.500. gpt-oss 20B reached 0.952." width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I tested 16 open LLM code reviewers, the first table in my paper showed which of them separate secure code from vulnerable code at all. It is worth reading on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;I used 180 Python snippets across nine cryptographic misuse classes, ten pairs per class. Each pair has a vulnerable snippet and a secure twin that does the same task correctly. I ran 16 open models, from 0.5B to 120B parameters, with three repeats per snippet, which gives 8,640 scored calls. For each model I report the true positive rate (TPR, vulnerable snippets flagged), the false positive rate (FPR, secure twins flagged), and balanced accuracy, the average of TPR and one minus FPR. A model that flags everything scores 0.5.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why detection rate misleads
&lt;/h2&gt;

&lt;p&gt;Judged on TPR alone, codellama 7B, devstral 24B, and qwen2.5-coder 0.5B would rank near the top, each at or near 100%. Their FPRs tell a different story. codellama 7B and qwen2.5-coder 0.5B flagged 539 and 540 of 540 scored calls. devstral 24B flagged 82.6% of the secure twins. Three more models (codellama 34B, qwen2.5-coder 1.5B and 3B) also flagged more than 70% of secure code. The 0.5B model also left out the requested verdict line in all but 37 of its 540 replies.&lt;/p&gt;

&lt;p&gt;With the secure twins in the table, the order changes. Of the 16 models, gpt-oss 20B had the highest balanced accuracy, 0.952, with a TPR of 93.7% and an FPR of 3.3%. Ranked by TPR alone, these models would sit at or near the top.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does model size help?
&lt;/h2&gt;

&lt;p&gt;Size and score go together to some degree, but size does not settle the ranking. Over all 16 models, parameter count and balanced accuracy are related (Spearman 0.76). Across families it did not order the results: codellama 34B (0.609) and devstral 24B (0.587) were among the weakest of the larger models. Even within gpt-oss, the 120B model (0.931) scored below the 20B (0.952).&lt;/p&gt;

&lt;p&gt;What I take from this test: a detection rate on its own rewarded models that said "vulnerable" almost every time. I would report the false positive rate next to it and use secure twins that match the vulnerable code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;p&gt;The snippets are short Python functions, reviewed one at a time, so the result speaks to a single-snippet review pass. The models are open models run with temperature 0. I tested only open-weight models and only Python, so I make no claim about closed models or other languages. TPR counts a vulnerable verdict given for any reason, and I did not check whether each detection named the right misuse. This is a preprint, it is not peer reviewed, and it carries the notice that it has been submitted to the IEEE for possible publication.&lt;/p&gt;

&lt;p&gt;The same paper goes on to test what happens when the same misuse is written indirectly. I covered one result from that part in my &lt;a href="https://sunny-chokshi.github.io/blog/hex-key-size-false-alarms.html" rel="noopener noreferrer"&gt;earlier post on a hex key size&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read and cite
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://doi.org/10.5281/zenodo.23351769" rel="noopener noreferrer"&gt;Preprint on Zenodo (doi:10.5281/zenodo.23351769)&lt;/a&gt; · &lt;a href="https://sunny-chokshi.github.io/papers/does-indirection-hurt.html" rel="noopener noreferrer"&gt;Paper page and PDF&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related work in the same line, an earlier benchmark: &lt;a href="https://doi.org/10.5281/zenodo.23067051" rel="noopener noreferrer"&gt;CryptoBench (doi:10.5281/zenodo.23067051)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Cite as: Chokshi, S. (2026). Does Indirection Hurt? Paired Evidence on LLM Review of Indirectly Written Cryptographic API Misuse [Preprint]. Zenodo. &lt;a href="https://doi.org/10.5281/zenodo.23351769" rel="noopener noreferrer"&gt;https://doi.org/10.5281/zenodo.23351769&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Dataset: Chokshi, S. (2026). CryptoBench: A benchmark of cryptographic API misuse for evaluating LLM code reviewers [Dataset]. Zenodo. &lt;a href="https://doi.org/10.5281/zenodo.23067051" rel="noopener noreferrer"&gt;https://doi.org/10.5281/zenodo.23067051&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sunny Chokshi, PhD student, Information Technology, University of the Cumberlands. Research: adversarial robustness of LLMs in cybersecurity. &lt;a href="https://orcid.org/0009-0003-4738-7759" rel="noopener noreferrer"&gt;ORCID&lt;/a&gt; · &lt;a href="https://github.com/sunny-chokshi" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://sunny-chokshi.github.io/blog/reviewer-that-flags-everything.html" rel="noopener noreferrer"&gt;https://sunny-chokshi.github.io/blog/reviewer-that-flags-everything.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>llm</category>
      <category>machinelearning</category>
      <category>codereview</category>
    </item>
    <item>
      <title>A hex literal made LLM code reviewers raise false alarms</title>
      <dc:creator>Sunny Chokshi</dc:creator>
      <pubDate>Wed, 28 Oct 2026 19:30:33 +0000</pubDate>
      <link>https://dev.to/sunnychokshi/a-hex-literal-made-llm-code-reviewers-raise-false-alarms-8ai</link>
      <guid>https://dev.to/sunnychokshi/a-hex-literal-made-llm-code-reviewers-raise-false-alarms-8ai</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F93nsk6i5mk1e17c9srif.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F93nsk6i5mk1e17c9srif.png" alt="0xC00 equals a 3072-bit key. Secure, yet it drew false alarms. Minus 4.5 points balanced accuracy, plus 9.1 points false positives, 16 models, 90 snippet pairs." width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I wanted to know whether an LLM code reviewer follows what the code does or what the code looks like. Cryptographic API misuse is a clean place to ask, because the same insecure choice can be written in many ways.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;I used 90 pairs of Python snippets across nine misuse classes. Each pair holds a vulnerable snippet and a secure twin. For 80 pairs I wrote a plain form, with the misuse at the call site under its familiar name, and an indirect form that reaches the same choice through an alias, constant, default, or configuration value. I ran 16 open models.&lt;/p&gt;

&lt;p&gt;The secure twins already showed a problem. Two models flag nearly every snippet, and four more flag over 70% of secure code. A reviewer that flags nearly everything tells me little about the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What indirection did to the scores
&lt;/h2&gt;

&lt;p&gt;Indirection lowered the balanced accuracy of the seven strongest models by 4.5 points over the 80 pairs (pair-cluster 95% CI 1.3 to 7.6). On the 47 pairs that survive a post hoc stimulus audit, the drop was 5.3 points (CI 2.1 to 8.5).&lt;/p&gt;

&lt;p&gt;Where the drop comes from needs care. After the audit it is mainly extra flags on correct code. False positives rose 9.1 points (CI 4.2 to 14.6), mostly in three models. Detection of real misuse fell 3.6 points over all 80 pairs (CI 1.0 to 6.5), but only 1.5 points on the audited pairs, and that interval (CI -1.6 to 4.8) includes zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the false alarms sit
&lt;/h2&gt;

&lt;p&gt;Exploratory splits point at where the false alarms come from. Most of the net false-alarm rise sits in pairs where the safe value has left its usual spelling or place at the call site. A 3072-bit key size written as 0xC00 is the example I keep coming back to. My reading is that the models react to an unfamiliar spelling instead of the value. The paper does not test that directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;p&gt;The snippets are Python and I wrote them. The models are open models. The audit was post hoc and the splits are exploratory. This is a preprint, it is not peer reviewed, and it carries the notice that it has been submitted to the IEEE for possible publication.&lt;/p&gt;

&lt;p&gt;Open question for the next study: do the extra flags go away if the reviewer is told to normalize values before judging? I have not tested that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read and cite
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://doi.org/10.5281/zenodo.23351769" rel="noopener noreferrer"&gt;Preprint on Zenodo (doi:10.5281/zenodo.23351769)&lt;/a&gt; · &lt;a href="https://sunny-chokshi.github.io/papers/does-indirection-hurt.html" rel="noopener noreferrer"&gt;Paper page and PDF&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related work in the same line, an earlier benchmark: &lt;a href="https://doi.org/10.5281/zenodo.23067051" rel="noopener noreferrer"&gt;CryptoBench (doi:10.5281/zenodo.23067051)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Cite as: Chokshi, S. (2026). Does Indirection Hurt? Paired Evidence on LLM Review of Indirectly Written Cryptographic API Misuse [Preprint]. Zenodo. &lt;a href="https://doi.org/10.5281/zenodo.23351769" rel="noopener noreferrer"&gt;https://doi.org/10.5281/zenodo.23351769&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Dataset: Chokshi, S. (2026). CryptoBench: A benchmark of cryptographic API misuse for evaluating LLM code reviewers [Dataset]. Zenodo. &lt;a href="https://doi.org/10.5281/zenodo.23067051" rel="noopener noreferrer"&gt;https://doi.org/10.5281/zenodo.23067051&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sunny Chokshi, PhD student, Information Technology, University of the Cumberlands. Research: adversarial robustness of LLMs in cybersecurity. &lt;a href="https://orcid.org/0009-0003-4738-7759" rel="noopener noreferrer"&gt;ORCID&lt;/a&gt; · &lt;a href="https://github.com/sunny-chokshi" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://sunny-chokshi.github.io/blog/hex-key-size-false-alarms.html" rel="noopener noreferrer"&gt;https://sunny-chokshi.github.io/blog/hex-key-size-false-alarms.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>llm</category>
      <category>cryptography</category>
      <category>codereview</category>
    </item>
  </channel>
</rss>
