Integrity failures

From thejefflarson/soundcheck · View interactive version

Integrity failures is an AI agent skill from the GitHub repository thejefflarson/soundcheck. Detects unsafe deserialization, unverified software updates, and tampered CI artifacts. Use when writing deserialization code, processing pickled or marshalled data, implementing software update mechanisms, consuming CI/CD artifact downloads, or handling data from untrusted sources that gets reconst

How to use this skill

Skill file

Software and Data Integrity Failures Security Check (A08:2025)

What this checks

Protects against arbitrary code execution and tampered artifacts. Deserializing

untrusted data with code-executing formats gives attackers remote code execution;

unsigned software updates allow supply-chain compromise.

Scope note: a Dependabot or Renovate PR that bumps a dependency version and merges

after CI passes is not an "unverified software update" — it is a supply-chain

strength the supply-chain skill endorses. Do not flag dependency-update auto-merge

here. The unsigned-update patterns below cover updaters that download and execute

an artifact (installer, plugin, model, release binary) with no signature or digest

check, not version bumps gated on CI.

Vulnerable patterns

Fix immediately

Flag the vulnerable code and explain the risk. Translate the principles below to the

audited file's language and serialization library — use that stack's documented

safe-loader, schema-validation, and signature-verification APIs.

For each finding, establish these properties:

  1. No code-executing deserializer touches untrusted input. Replace it with a

data-only format — JSON, safe-mode YAML, protobuf, CBOR without tags — so

parsing alone cannot trigger constructor or callback execution.

  1. **Every deserialized object from untrusted input is validated against an

explicit schema** — field names, types, allowed values — before any field is

read by business logic. Applies to JSON, YAML, XML, form bodies, message-queue

payloads, and binary formats alike; format doesn't matter.

  1. Artifacts are signature- or digest-verified before trust. Software updates,

plugin loads, CI-artifact downloads: check a cryptographic signature against a

trusted public key, or a digest against a pinned hash, before executing or

loading.

  1. Keys and pinned hashes come from outside the source tree — environment

variable, secrets manager, OS keystore, or a build-time constant baked into

the binary. A value received as a function parameter with no visible origin

does not demonstrate this.

Verification

Confirm these properties hold for every relevant pattern present:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.