Scans a Python package repository for compiled/binary files using Fromager-style detection and malcontent YARA analysis, then triages findings with rules and AI reasoning into a risk report.
Ships in odh-ai-helpers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Scans a Python package repository for compiled or binary files using Fromager-style extension and magic-header detection, then runs malcontent YARA-based analysis on any detected binaries. Produces a self-contained "Binary Scan" report section with triaged findings and a risk assessment.
RISK_RATING:<value> so
the orchestrator can parse it without reading the full report.binary-scan.json). Schema: {total, findings[{path, match_type, suffix, size, magic?}]}. When provided, skip running scan_binaries.py.malcontent-results.json). Schema: {status, Files?}. Status values:
"success", "unavailable", "timeout", "failed", "invalid", "skipped".
When provided, skip running run_malcontent.py.If binary_scan is provided and the file exists, read and parse it as JSON.
Use the total and findings fields directly. Skip running scan_binaries.py
and skip creating the staging directory (STAGING_DIR) since binaries are already
analyzed. Each finding has: path (relative to repo root), match_type
("extension" or "magic_header"), suffix, size, and optionally magic
(ELF, MachO, ar_archive, etc.).
If total is 0, skip to the Output section and note "No binary files detected"
in the report.
If binary_scan is not provided, run the binary scanner to find compiled files
using Fromager-style extension and magic-header detection:
STAGING_DIR=$(mktemp -d -t malcontent-staging-XXXXXX)
./scripts/scan_binaries.py --stage-to "$STAGING_DIR" "<repo-path>"
This outputs JSON to stdout with total and findings fields. Each finding has:
path, match_type (extension or magic_header), suffix, size, and optionally
magic (ELF, MachO, ar_archive, etc.).
The --stage-to flag copies detected binaries into a staging directory preserving
relative paths for malcontent analysis in the next step.
If the scanner finds zero binaries, skip to the Output section and note "No binary files detected" in the report.
If malcontent_results is provided and the file exists, read and parse it as JSON:
status is "success": use the Files dict as malcontent output (keyed by
file path, native malcontent --format json structure). Proceed to Step 3
(Triage).status is "unavailable", "timeout", "failed", or "invalid":
treat malcontent as unavailable. Do not re-run malcontent. The CI runner
already attempted execution under controlled conditions, and re-running in the
agent container would likely hit the same failure. Proceed to
triage using only the binary scan metadata (extension, magic header, size).
Note the degraded status and any error message from the JSON in the report.status is "skipped": no binaries were detected upstream. If
binary_scan.total == 0, this is consistent; skip to Output. If
binary_scan.total > 0, this is a data inconsistency from the CI pipeline.
treat malcontent as unavailable and triage using binary scan metadata only;
note the inconsistency in the report.status value not listed above: treat malcontent as unavailable
and triage using binary scan metadata only, noting the unrecognized status.If malcontent_results is NOT provided but binary_scan WAS provided, treat
malcontent as unavailable and triage using binary scan metadata only.
If neither binary_scan nor malcontent_results is provided, run malcontent
analysis on the staged binaries:
./scripts/run_malcontent.py "$STAGING_DIR"
malcontent_exit=$?
Check the exit code before proceeding:
mal) is not installed. Do not fail. Proceed to
triage using only the binary scan metadata (extension, magic header, size).
Note "malcontent unavailable" in the report output.When malcontent is unavailable or fails, the binary scan findings alone still provide value — file paths, types, and sizes are sufficient for the deterministic triage rules that do not depend on malcontent risk levels.
Review binary findings in context. Read relevant source files to understand the purpose of detected binaries. Triage proceeds in two stages: deterministic rules first, then AI reasoning for anything unresolved.
Apply the following rules before any AI reasoning. These handle the most common clear-cut cases and make the triage reproducible.
| Condition | Verdict |
|---|---|
Binary is under third_party/, vendor/, or extern/ and malcontent risk ≤ medium | PASS — vendored dependency |
Binary is under test/, tests/, benchmarks/, or examples/ and malcontent risk ≤ medium | PASS — test data |
Binary suffix is .ptx, .cubin, .fatbin, or path contains triton/ or cuda | PASS — GPU kernel |
| Malcontent risk is critical | BLOCK |
Malcontent flags remote_access, exfiltration, or backdoor capabilities | BLOCK |
| Binary has no malcontent findings and is only detected by extension/magic header | PASS — opaque-only |
| Malcontent timed out | REVIEW — partial results, manual inspection recommended |
When multiple findings produce different verdicts, the overall precedence is BLOCK > REVIEW > PASS — the most severe verdict wins.
Any finding not resolved by Stage 1 proceeds to Stage 2.
For findings that remain unresolved after deterministic rules, classify each as:
Remove the staging directory if it was created (Step 1 Option B). When both
binary_scan and malcontent_results were pre-computed, no STAGING_DIR exists
and this step is a no-op.
if [ -n "${STAGING_DIR}" ] && [ -d "${STAGING_DIR}" ]; then
rm -rf -- "${STAGING_DIR}"
fi
Produce the following markdown section:
## Binary Scan
**Binaries detected:** {N}
**Malcontent status:** {ran successfully | unavailable — findings based on binary scan only | timed out — partial results}
### BLOCK Findings
| File | Type | Size | Malcontent Risk | Capabilities | Triage |
|------|------|------|-----------------|--------------|--------|
| src/lib/backdoor.so | ELF | 24KB | critical | remote_access, exfiltration | BLOCK — critical risk with network capabilities |
### REVIEW Findings
(same table format)
### PASS Findings
(same table format, brief — included for completeness but de-emphasized)
The risk_rating for this phase is one of:
If output_file is provided, write the file with the first line as
RISK_RATING:<value> followed by a blank line and then the markdown section
above. If output_file is not provided, return the report section inline.
| Scenario | Behavior |
|---|---|
| Binary scan finds zero binaries | Note "No binary files detected", risk_rating = no_issues |
| Malcontent unavailable (exit code 2) | Triage binary findings using scan metadata only (extension, magic header, size); note malcontent was unavailable |
| Malcontent times out (exit code 1) | Report partial results; note timeout; REVIEW verdict for affected binaries |
| Malcontent produces invalid JSON (exit code 1) | Triage binary findings using scan metadata only; note malcontent output error |
Pre-computed binary_scan file path provided but file missing, unreadable, or invalid JSON | Report binary scan unavailable, risk_rating = needs_review |
Pre-computed malcontent_results file path provided but file missing, unreadable, or invalid JSON | Proceed with binary scan metadata only; note malcontent output error |
Pre-computed malcontent_results has degraded status (unavailable/timeout/failed/invalid) | Do not re-run malcontent; triage with binary scan metadata only; note the degraded status |
Pre-computed malcontent_results has status "skipped" but binary_scan.total > 0 | Data inconsistency; treat malcontent as unavailable; triage with binary scan metadata; note inconsistency |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/odh-ai-helpers:python-packaging-binary-auditfrom odh-ai-helpers
odh-ai-helpers@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin odh-ai-helpers70 skills in this plugin
/acli-setup-checkVerify acli installation and authentication. Checks if acli is installed, authenticated to Jira, and can query projects. Use when troubleshooting acli issues or setting up acli for the first time./adr-reviewReview an Architectural Decision Record (ADR) using a team of six specialist reviewer subagents and produce a consolidated report as both PDF and PPTX slide deck. Use this skill whenever the user asks to review, critique, audit, or get feedback on an ADR, architecture decision, design doc, or RFC — whether the input is a Markdown file, a .docx document, or pasted text. Trigger even if the user does not explicitly say "ADR"; phrases like "review this architecture decision", "critique this design doc", or "run the reviewer panel on this" should also invoke this skill./ai-bug-fix-triageTriage JIRA bugs against repository code to classify AI fixability. Use when reviewing a backlog of bugs to determine which ones an AI agent can fix./aipcc-commit-suggestGenerate AIPCC Commits style commit messages or summarize existing commits/aipcc-cve-reportGenerate CVE remediation instructions for the user's target RHAI product release or content channel from Jira JQL, ticket keys or a ticket description. Verify fixed packages in the RHAI package index and a matching RHAI base image (RHAIBI), or prepare a focused AIPCC build-request prompt./coderabbit-reviewUse when you need to evaluate CodeRabbit PR comments and fix or reply3 plugins in one repository ship this exact skill · first indexed Jul 10, 2026
Other plugins' skills for the same job