integrity
This skill should be used when the user asks to "check for integrity issues", "analyze deserialization", "find supply chain vulnerabilities", "review CI/CD…
от florianbuetow★ 22 звезды на GitHub
Установить integrity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Software and Data Integrity Failures
Analyze source code, CI/CD configurations, and dependency manifests for integrity violations. Detect insecure deserialization, unverified auto-updates, missing subresource integrity, CI/CD pipeline injection, and untrusted dependency sources. Produce actionable findings with severity ratings, code locations, and concrete remediation steps.
Supported Flags
All flags from ../../shared/schemas/flags.md are supported:
| Flag | Relevant Behavior |
|---|---|
--scope <value> |
Determines which files to analyze (default: changed) |
--depth <value> |
quick: pattern scan only. standard: full read + analysis. deep: trace data flows and dependency chains cross-file. expert: red team simulation with DREAD scoring |
--severity <value> |
Filter findings by minimum severity |
--format <value> |
Output format: text, json, sarif, md |
--fix |
Chain into remediation after analysis |
--quiet |
Findings only, no explanations |
--explain |
Add learning context to each finding |
Framework Context
OWASP Top 10 2021 - A08: Software and Data Integrity Failures
Code and infrastructure that does not protect against integrity violations. This category covers a broad set of concerns around trusting the provenance and authenticity of software, data, and infrastructure:
- Relying on plugins, libraries, or modules from untrusted sources, repositories, or CDNs
- Insecure CI/CD pipelines that allow unauthorized code or configuration changes
- Auto-update functionality that downloads and applies updates without integrity verification
- Insecure deserialization where untrusted data is deserialized into objects, enabling remote code execution, replay attacks, injection, or privilege escalation
STRIDE Mapping: Tampering, Elevation of Privilege
CWE References: CWE-502 (Deserialization of Untrusted Data), CWE-829 (Inclusion of Functionality from Untrusted Control Sphere), CWE-494 (Download of Code Without Integrity Check), CWE-915 (Improperly Controlled Modification of Dynamically-Determined Object Attributes), CWE-353 (Missing Support for Integrity Check)
Detection Patterns
Read references/detection-patterns.md before
performing analysis. It contains detailed Grep heuristics, language-specific code
examples, scanner coverage, and false positive guidance for each vulnerability pattern.
Workflow
1. Determine Scope
Parse --scope flag and resolve to a concrete file list:
- Apply scope resolution per
../../shared/schemas/flags.md. - Filter to files relevant to integrity:
- Serialization/deserialization code (data processing, API handlers)
- CI/CD configuration files (
.github/workflows/*.yml,.gitlab-ci.yml,Jenkinsfile,.circleci/config.yml,azure-pipelines.yml,bitbucket-pipelines.yml) - Dependency manifests and lockfiles (
package.json,package-lock.json,yarn.lock,requirements.txt,Pipfile.lock,go.sum,Cargo.lock,pom.xml,build.gradle) - HTML files with CDN script/link tags
- Update/installer scripts and auto-update mechanisms
- Pre/post-install hooks in package configurations
- Dockerfile and container build configurations
- Include infrastructure-as-code files that reference external resources or images.
2. Check for Scanners
Detect available scanners in order of preference:
| Scanner | Detect | Relevant Rules |
|---|---|---|
| semgrep | which semgrep |
Insecure deserialization, unsafe YAML/pickle loading |
| trivy | which trivy |
Dependency vulnerabilities, misconfigurations, secret detection |
| osv-scanner | which osv-scanner |
Known vulnerabilities in dependencies across ecosystems |
| checkov | which checkov |
CI/CD misconfigurations, IaC integrity issues |
| bandit | which bandit |
Python-specific: pickle, yaml, marshal (B301, B506) |
If no scanner is available, proceed with Claude analysis using Grep patterns from
references/detection-patterns.md. Note in output: "No scanner available -- findings
based on code pattern analysis only."
3. Run Scanners
For each available scanner:
- Execute against the scoped file list.
- Parse JSON output.
- Filter to integrity-related rules only.
- Normalize findings to the schema in
../../shared/schemas/findings.md. - Set
scanner.confirmed: truefor scanner-detected findings.
4. Claude Analysis
Regardless of scanner availability, perform manual code analysis:
- Read
references/detection-patterns.mdfor the full pattern catalog. - Use Grep with the regex patterns to locate suspicious constructs.
- Read surrounding code context (30-50 lines) to assess each match.
- Trace data flows from untrusted sources to deserialization sinks.
- At
--depth deepor higher: follow imports, trace dependency chains, analyze CI/CD workflow trigger conditions and secret exposure, map update mecha
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/detection-patterns.md
FAQ
Что делает скилл integrity?
This skill should be used when the user asks to "check for integrity issues", "analyze deserialization", "find supply chain vulnerabilities", "review CI/CD security", "check SRI", or mentions "deserialization", "integrity", "pipeline security", "code signing", or "supply chain" in a security context. Maps to OWASP Top 10 2021 A08: Software and Data Integrity Failures.
Как установить скилл integrity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл integrity запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…