Detect File Type - Local

AdvisoryAudited by Static analysis on Apr 30, 2026.

Overview

No suspicious patterns detected.

Findings (0)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

If pointed at a broad or sensitive directory, the tool may read and report metadata for many local files.

Why it was flagged

The recursive option expands a user-supplied directory and processes all files under it, which is expected for batch file-type triage but can touch many local files.

Skill content
if recursive and path.is_dir():
            for root, _dirs, files in os.walk(path):
Recommendation

Use explicit file paths or narrowly scoped directories, especially when an agent is choosing the scan target.

NoteHigh Confidence
ASI08: Cascading Failures
What this means

Very large or unbounded stdin input could consume temporary disk space until the process finishes.

Why it was flagged

Default stdin mode writes incoming stdin to a temporary file until EOF; this is disclosed and cleaned up, but there is no default size cap in spool mode.

Skill content
chunk = sys.stdin.buffer.read(STDIN_SPOOL_CHUNK_BYTES)
                if not chunk:
                    break
                tmp.write(chunk)
Recommendation

For untrusted or potentially large streams, use `--stdin-mode head --stdin-max-bytes N` or bound the input before invoking the tool.

What this means

Installations may resolve to different compatible Magika versions over time.

Why it was flagged

The package depends on an external Python dependency using a version range rather than an exact locked hash; this is normal for a Python package but relevant for supply-chain-sensitive installs.

Skill content
dependencies = [
    "magika>=1.0.0,<2.0.0",
]
Recommendation

Use a locked environment or package hashes if you require reproducible or tightly controlled installations.