IH-BIN-002mediumBinaries

Compiled file that cannot be scanned

Compiled bytecode or object files (.pyc, .class, .wasm, .node and similar) run like code but cannot be read by a text scanner. A .pyc next to a clean .py can hold different code, and Python may load it.

What does IH-BIN-002 flag?

Flags compiled files such as .pyc, .class, .wasm and .node inside a skill, because they run like code but cannot be read by a text scanner.

  • Python bytecode (.pyc), Java classes (.class), WebAssembly (.wasm), Node native addons (.node) and similar object files.

Why it matters

A .pyc next to a clean .py can hold different code, and Python may load it. Nobody reviewing the source will see what the compiled file does.

Examples

Illustrative shapes with placeholders in angle brackets. They show what the rule looks at; they are not runnable and not taken from real malware.

Python bytecode
Flagged
scripts/__pycache__/tool.cpython-312.pyc
Native addon
Flagged
addon.node
Source file
Not flagged
scripts/tool.py

Can IH-BIN-002 fire on a safe skill?

  • A __pycache__ folder left by accident from a local test run of an honest skill.

How do I fix an IH-BIN-002 finding?

  • Remove compiled files and __pycache__ folders from the skill.
  • Ship source only, and let the runtime compile it locally.

How do I tune or allow IH-BIN-002?

If a compiled file is required and you trust its origin, exclude that path with ignoreGlobs.

{
  "ignoreGlobs": [
    "docs/known-example.md"
  ]
}

Every key is described in Configuration. To print this rule from the CLI, run ironheights rules show IH-BIN-002.

What can IH-BIN-002 miss?

  • What the compiled code does.
  • Compiled payloads hidden inside archives or other file types.

No finding means no rule matched. It is not proof of safety. Files larger than 1 MiB are skipped without being read; the verdict is then incomplete, not no findings, but the file is still not checked. See Limitations.

Scores and thresholds shown are the CLI defaults; your config can change them. List every rule from the terminal with ironheights rules list.

All 44 rules