python-packaging-binary-audit

python-packaging-binary-audit is a skill for Claude Code from opendatahub-io/ai-helpers. It costs 48 tokens per session (2,342 once invoked), scanned B, original, Apache-2.0.

A security audit for Python package repositories that looks for compiled or binary files and examines detected files with pattern-based malware rules.

In plain words
What is it for?
Use it to scan an already-cloned Python repository, analyze detected binaries, and produce a structured report with triaged findings and a risk rating.
Why use it?
Binary files can hide code that is difficult to review as normal Python source. The audit gathers scan results and turns them into a risk assessment.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the odh-python-packaging plugin — 11 skills shipped together

Good fit Use it to scan an already-cloned Python repository, analyze detected binaries, and produce a structured report with triaged findings and a risk rating.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opendatahub-io/ai-helpers/python-packaging-binary-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add opendatahub-io/ai-helpers --skill python-packaging-binary-audit
Clone the repo
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers

Made for: Claude Code.

Or install odh-python-packaging, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-packaging-binary-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/python-packaging-binary-audit/github.svg)](https://agentmods.dev/skills/opendatahub-io/ai-helpers/python-packaging-binary-audit)
Your own site
<a href="https://agentmods.dev/skills/opendatahub-io/ai-helpers/python-packaging-binary-audit"><img src="https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/python-packaging-binary-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-packaging-binary-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/opendatahub-io/ai-helpers/python-packaging-binary-audit"><img src="https://agentmods.dev/badge/skills/opendatahub-io/ai-helpers/python-packaging-binary-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,342 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.02342
Opus 5.5 $0.00019 $0.00937
Sonnet 5.5 $0.00010 $0.00468
Haiku 4.5 $0.00005 $0.00234

Measured 3mo ago against content hash 6ed74c7f7bbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

python-packaging-binary-audit scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/run_malcontent.py, scripts/scan_binaries.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf -- "${STAGING_DIR}"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/odh-python-packaging/skills/python-packaging-binary-audit/SKILL.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Packaging Binary Audit

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.

Inputs

  • repo_path (required): Local filesystem path to an already-cloned repository
  • output_file (optional): Write the report section to this file path instead of returning it inline. The first line of the file must be RISK_RATING:<value> so the orchestrator can parse it without reading the full report.
  • binary_scan (optional): File path to pre-computed binary scanner JSON output (binary-scan.json). Schema: {total, findings[{path, match_type, suffix, size, magic?}]}. When provided, skip running scan_binaries.py.
  • malcontent_results (optional): File path to pre-computed malcontent JSON output (malcontent-results.json). Schema: {status, Files?}. Status values: "success", "unavailable", "timeout", "failed", "invalid", "skipped". When provided, skip running run_malcontent.py.

Step 1: Obtain Binary Scan Results

Option A - Pre-computed results (CI mode)

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.

Option B - Run binary scanner locally (standalone mode)

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>"

Read the full file on GitHub · 208 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 208 lines · 48 tokens per session scan B 6ed74c7f7bbf

Subscribe to this mod's changes

python-packaging-binary-audit is a skill published in the GitHub repository opendatahub-io/ai-helpers (40 stars, last pushed 2d ago), licensed Apache-2.0. It adds 48 tokens to every session and 2,342 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

python-packaging-binary-audit compared with skills from other repositories

python-packaging-binary-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-packaging-binary-auditopendatahub-io/ai-helpersSkill402d agoApache-2.0B48Claude Code
linkerd-patternswshobson/agentsSkill43k2d agoMITA41Claude Code
spark-training-gotchaswshobson/agentsSkill43k2d agoMITA63Claude Code
parallel-feature-developmentwshobson/agentsSkill43k2d agoMITA105Claude Code
nft-standardswshobson/agentsSkill43k2d agoMITA48Claude Code
cost-optimizationwshobson/agentsSkill43k2d agoMITA48Claude Code
istio-traffic-managementwshobson/agentsSkill43k2d agoMITA40Claude Code