← Lab /AI/ML

80% of AI agent skills deviate from their declared behavior

Most agent skills misrepresent their capabilities and that BIV can detect malicious skills with high accuracy.

AI/ML arXiv 12 May 2026 Measurement Prototype evidence Threat model

Published as “Behavioral Integrity Verification for AI Agent Skills”

Why it matters

Enables registry operators and security reviewers to audit third-party agent skills at scale and to flag malicious or undocumented capabilities before installation.

Summary

80.0% of OpenClaw skills deviate from their declared behavior, with 81.1% of those deviations due to developer oversight and 18.9% to adversarial intent; BIV’s malicious-skill detector achieves an F1 of 0.946 on a 906-skill benchmark, showing strong detection performance on a large real-world corpus (49,943 skills). The evidence comes from a registry-scale static analysis combined with LLM-assisted extraction, but the paper notes a 7.2% false-positive rate and that dynamic or obfuscated behavior is missed.

What they found 6

  1. 80.0% of skills deviate from declared behavior

    “80.0% of skills deviate from declared behavior”

  2. 81.1% of deviations are due to developer oversight

    “81.1% trace to developer oversight”

  3. 18.9% of deviations are adversarial

    “18.9% to adversarial intent”

  4. 5.0% of skills carry predicted multi-stage attack chains

    “5.0% of skills carrying predicted multi-stage attack chains”

  5. BIV reaches F1 = 0.946 on malicious-skill detection benchmark

    “BIV reaches an F1 of 0.946”

  6. Detection recall 0.978, precision 0.917, false-positive rate 7.2% (36/502)

    “BIV reaches aggregate recall 0.978, precision 0.917, and FPR 7.2% (36/502)”

Caveats 4

  • On the MaliciousAgentSkillsBench source, BIV’s precision drops to 0.57 (Rec 0.86, Prec 0.57, F1 0.69), indicating a substantial false-positive burden for that subset.
  • BIV is static-only, so dynamic dispatch and obfuscated payloads escape extraction and the deviation count is a lower bound.
  • Flagged skills are classifier-predicted candidates for re-view rather than runtime-confirmed exploits, and the pipeline is not robust against an adversary who has read this paper.
  • The headline registry-scale rates are classifier-derived estimates; human-labeled gold at registry scale remains future work, and absolute levels may shift under stratified manual re-validation.

What’s new here 4

  • Formulates behavioral integrity verification as a typed set comparison over a 29-capability taxonomy.
  • Combines deterministic code analysis with LLM-assisted extraction to handle code, instructions, and metadata jointly.
  • Produces a single structured evidence tuple that powers multiple downstream tasks (taxonomy, root-cause classification, malicious-skill detection).
  • Introduces a relaxed-veto override in the LLM judge that leverages high-risk undeclared capabilities to improve recall without exploding false positives.

Threat model stated by the source

Adversaryattacker controlling third-party skill artifact
Capabilitycan embed malicious code, instructions, and misleading metadata
Assumesthe pipeline and its LLM backends are trusted; vetting occurs before any runtime use