Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

A Free Model vs 30 Security Advisory Records: An Accuracy Test You Can Rerun

A single wrong severity label can push a bad dependency upgrade into production. An advisory said "moderate." The package in our tree was critical. The model guessed low. I did not trust the model after that. I wanted a repeatable accuracy test. So I built one. I ran the test through MonkeyCode's free model access and free server option. Disclosure: This article was prepared as part of…

A single incorrect severity classification can lead to critical package upgrades being deployed in production. An advisory classified as moderate by the model identified the package as critical, but the model's prediction was inaccurate. The reporter wanted to test the model's accuracy repeatedly, so they created a repeatable accuracy test using MonkeyCode's free model and server options.

The problem with advisory summaries is that vendors use different terminology, which makes it challenging for a model to map them to the correct action. The model does not need to be perfect, but it must be safe. The reporter scored false negatives more severely than false positives. They used 30 hand-checked test records, each representing a public advisory, to measure the model's performance.

Each record contained a description, expected package, severity, and action. The test harness was a short script that read a JSONL file, called a JSON-only completion for each record, and compared the parsed result to the expected fields. The script used the PROMPT to force JSON output with specific keys and values. The scoring function checks the predicted and expected values and returns a dictionary with boolean values for package, severity, and action.

The model had a high precision score for critical advisories but missed several moderates. The failure modes identified were vendor word mapping, package name collisions, and truncated descriptions. The reporter recommends not automating the output of this test to open merge requests, as it should only be used for triage and not as a security scanner replacement.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Reading an IP Address Like a Security Analyst: A Field Guide

Every device on the internet is reachable through an IP address. Behind each address hides a story: a country, an organization, a network operator, and sometimes a threat actor.

  • IP addresses reveal nation, organization, and network operator.
  • Security analysts decode hidden narrative of potential threats.
  • IP Intel Toolkit aids analysis of large IP datasets.

A Generated SQL Query Got Faster by Returning Fewer Rows. Test That Before You Merge It

Have you ever watched a generated SQL refactor run faster and assumed it must be correct? That assumption breaks down when the speedup comes from an inner join that silently drops rows the old left…

  • Generated SQL query may appear faster due to returning fewer rows.
  • Fewer rows can result in lost data during join conversion.
  • Test new query against golden result check before merging.

More from Tuesday 18 August →