A naive scoring approach adds up every triggered rule and averages the result. That approach has an obvious flaw: a single, unmistakable backdoor pattern can get diluted into a low overall score simply because a skill also happens to trigger a dozen harmless, low-severity matches elsewhere. A useful risk score has to protect the signal that actually matters.
Three severity tiers, not one flat score
We categorize every detection rule into one of three severity levels before it ever contributes to a score. Low-severity signals are common, largely benign patterns, accessing a standard system path, for instance, that provide context but aren't concerning on their own. Medium-severity signals are dual-use behaviors legitimate in some contexts but also common in malware, like manual socket creation or unusual data encoding. High-severity signals are strong, largely unambiguous indicators, environment variable exfiltration or anti-analysis techniques, where a single trigger should meaningfully move the needle regardless of what else is present.
The formula, and why it's weighted this way
Our static risk score is calculated as 0.8 times the maximum severity triggered, plus 0.2 times the average severity across all triggers. That 80/20 split is deliberate. It ensures that a single high-severity finding, an unmistakable credential-exfiltration pattern, dominates the score the way it should, while the smaller average component still lets a skill with many consistently suspicious lower-severity patterns rank higher than one with just a single isolated, possibly coincidental match.
Weighting toward the maximum severity found, rather than averaging every signal equally, prevents a critical high-risk indicator from being diluted by numerous low-severity matches, which is exactly the failure mode a flat, unweighted scoring model runs into.
Applying the same logic to runtime evidence
The same principle carries over to dynamic, runtime-based scoring, with an added dimension: how the evidence was obtained. A pattern that was only mentioned in a skill's instructions and never actually attempted gets weighted less than one the sandbox observed being executed, which in turn gets weighted less than one corroborated by two independent runtime artifacts pointing the same direction. Executed, corroborated behavior earns the maximum score. Weak, supporting-only evidence is deliberately capped well below the threshold that would trigger a malicious verdict, so a single ambiguous signal can't push a benign skill over the line on its own.
Why thresholds matter as much as the formula
A 0 to 100 score is only useful once you've decided where malicious begins. In our own evaluation, tuning that threshold mattered enormously: one tool's optimal cutoff turned out to already match its simplest default rule, meaning no tuning helped, while another improved substantially once we moved its threshold higher, trading a handful of missed detections for a meaningful drop in false positives. The right threshold isn't universal. It has to be set against your own tolerance for missed detections versus noise.
FAQ
Why not just flag any skill that triggers even one rule? Because with static rules alone, that approach reliably over-flags large numbers of completely benign skills, since many individual patterns, a network call, a file read, are common in legitimate code and only meaningful in combination or context.
Does a high static score always mean a skill is malicious? No. Static scores are best treated as a triage signal for further review or sandboxed validation, not a final verdict on their own, precisely because static analysis lacks the runtime context to confirm intent.
How often should severity weights be revisited? As often as your false positive and false negative rates suggest they should be. A weighting scheme that fit your environment six months ago may need adjustment as the skill ecosystem and the patterns attackers use both continue to evolve.
Related reading: "One Verdict Isn't Enough: The Case for Hybrid Agent Skill Scanning," "The Missing Layer: Why LLM Reasoning Changes Agent Skill Security"











