Skip to content

Skill scan misses malicious __pycache__ / .pyc bytecode (reports safe) #421

Description

@nedlir

In traverse_skill_tree, .pyc files are discovered as assets but UTF-8 decode fails, so only Binary file. Hash: is sent for analysis.

A skill can ship clean decoy .py files plus a mismatched UNCHECKED_HASH .pyc. Python loads the .pyc at import time; Agent Scan still reports SAFE.

PoC: https://github.com/nedlir/skills-scanner-bypass

to test, build the payload with build.py, then the skill will execute whatever payload added)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions