spec-to-code-compliance

SAFE max severity MEDIUMSkillSpector Caution 0 registry trailofbits last scanned 1 scan

Verdict safe, but 2 findings (2 medium), mainly prompt injection, resource abuse. Most recent scan 2026-02-06.

This skill performs blockchain specification-to-code compliance analysis with a rigorous, structured approach. The primary security concerns are: (1) instruction override attempts through exhaustive behavioral rules that could bypass safety guidelines, (2) transitive trust risks from missing referenced files that could contain malicious instructions, (3) resource exhaustion from unbounded exhaustive analysis requirements, and (4) missing optional metadata. The skill does not contain data exfiltration, credential theft, or command injection threats. The referenced files that ARE present (OUTPUT_REQUIREMENTS.md, COMPLETENESS_CHECKLIST.md, IR_EXAMPLES.md) contain legitimate analysis guidance without malicious content. The main risks are prompt injection patterns and resource abuse rather than active exploitation.

Scanner's overall assessment (LLM analyzer)

Second scanner: NVIDIA SkillSpector

SkillSpector found no issues but could not fully inspect the package, usually because SKILL.md refers to a file that is not present, so it fails closed to CAUTION instead of SAFE. Read it as "not fully checked", not as a finding. How the two scanners compare across the whole corpus: Two scanners, one corpus.

What this skill does

Verifies code implements exactly what documentation specifies for blockchain audits. Use when comparing code against whitepapers, finding gaps between specs and implementation, or performing compliance checks for protocol implementations.

Package
4 files, 33 KB
SKILL.md
1338 words, 12+ sections
Code
None. Instructions only.

SKILL.md covers: When to Use · When NOT to Use · Spec-to-Code Compliance Checker Skill · GLOBAL RULES · Rationalizations (Do Not Skip) · PHASE 0 — Documentation Discovery · PHASE 1 — Universal Format Normalization · PHASE 2 — Spec Intent IR (Intermediate Representation) · PHASE 3 — Code Behavior IR · (WITH TRUE LINE-BY-LINE / BLOCK-BY-BLOCK ANALYSIS) · PHASE 4 — Alignment IR (Spec ↔ Code Comparison) · PHASE 5 — Divergence Classification

Findings

MEDIUM Potential Instruction Override via Unbounded Autonomy Prompt Injectionllm

The skill instructions contain directives that could override safety guidelines through exhaustive analysis requirements. Phrases like 'NEVER infer', 'ALWAYS cite', 'Do NOT rely on prior knowledge', and 'Be literal, pedantic, and exhaustive' combined with 'Rationalizations (Do Not Skip)' table create a framework that could be used to bypass normal reasoning constraints. The skill attempts to redefine the agent's analytical behavior with strict rules that may conflict with safety guidelines.

SKILL.md

GLOBAL RULES section contains: 'Never infer unspecified behavior', 'Always cite exact evidence', 'Always provide a confidence score', 'Do NOT rely on prior knowledge'. Rationalizations table includes entries like 'I'll note this as partial match | Partial = potential vulnerability | Investigate until full_match or mismatch' which prescribe specific behavioral overrides.
Remediation: Rephrase instructions as recommendations rather than absolute commands. Remove language that attempts to override the agent's core reasoning processes. Replace 'NEVER', 'ALWAYS', 'MUST' with 'should', 'recommend', 'prefer' to maintain guidance without creating hard overrides.
MEDIUM Resource Exhaustion Risk from Exhaustive Analysis Requirements Resource Abusellm

The skill mandates exhaustive analysis with requirements like 'analyze EVERY function', 'EVERY Spec-IR item has corresponding Alignment record', 'Minimum threshold met: 10+ items for non-trivial spec', and 'Be literal, pedantic, and exhaustive'. For large codebases or complex specifications, this could lead to unbounded computation, excessive token usage, and potential timeout or resource exhaustion. The COMPLETENESS_CHECKLIST.md contains 30+ mandatory checkboxes that must all be verified.

SKILL.md

GLOBAL RULES state 'Be literal, pedantic, and exhaustive'. OUTPUT_REQUIREMENTS.md mandates 'MUST analyze EVERY function', 'EVERY Spec-IR item has corresponding Alignment record', 'Minimum threshold met: 10+ items'. COMPLETENESS_CHECKLIST.md contains extensive verification requirements with no bounds on analysis scope.
Remediation: Add explicit scope limits and resource budgets. Implement sampling strategies for large codebases. Add early termination conditions. Replace 'EVERY' with 'all significant' or 'representative sample'. Add guidance on prioritizing critical functions over exhaustive coverage.

What is in the package

FileKindSize
SKILL.mddoc10 KB
resources/COMPLETENESS_CHECKLIST.mddoc3.2 KB
resources/IR_EXAMPLES.mddoc15 KB
resources/OUTPUT_REQUIREMENTS.mddoc5.3 KB

Package contents recorded 2026-10-22 at commit a50696e20581. The scan above ran against the version current at scan time; the two can differ if the skill has since been updated.

What we checked

What we did not check

Sources