Skip to main content

foldscan

Scan what the agent will run, not what the file shows.

foldscan is an open-source scanner for malicious AI-agent skills. Before any rule runs, it unpacks archives, removes padding, decodes layered encodings and maps look-alike letters to Latin, so a hidden command is matched the same way as a plain one.

Site and docs: https://foldscan.vercel.app

Install

pipx install foldscan

Optional extras: foldscan[yara] for YARA signatures, foldscan[judge] for the optional model judge, foldscan[ocr] for text in images.

Use

foldscan scan ./my-skill --format table
foldscan scan skill.zip --format sarif --output foldscan.sarif
foldscan rules
foldscan explain FS-UNI-CONFUSABLE

The target can be a skill directory, an archive or a single SKILL.md. Output formats: table, json, markdown, sarif.

Dependency and tool folders (.git, node_modules, Python virtualenvs, site-packages, tool caches) are skipped by default and each one is listed as an FS-COV-VENDORED note. Pass --include-vendored to scan them too.

Exit codes: 0 clean, 1 findings at or above --fail-on (default high), 2 coverage incomplete, 3 usage error, 4 feature not available, 70 internal error.

How it decides

  • Seven stages: inventory, unpack, normalize, analyze, prose, optional judge, verdict.
  • Every rule maps to an OWASP Agentic Skills Top 10 ID.
  • Rules set the minimum severity. The optional model judge can raise a finding and can never lower or remove one. It is off by default, and foldscan sends nothing anywhere unless you turn it on.
  • Anything that could not be analyzed is reported as incomplete coverage, never as clean.

What it does not claim

  • Static analysis cannot prove what a remote URL serves at run time. foldscan flags the fetch.
  • Heavy packing and obfuscation can defeat static analysis. Sandboxed detonation is on the roadmap.
  • No findings means nothing was found in what foldscan analyzed. The coverage report lists what that was.

License

Apache-2.0.

Metadata

Release files for foldscan 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foldscan 0.1.2
File Size Uploaded Provenance Actions
foldscan-0.1.2.tar.gz 56.5 kB Without provenance Details for foldscan-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for foldscan 0.1.2
File Interpreter ABI Platform Actions
foldscan-0.1.2-py3-none-any.whl Python 3 none any Details for foldscan-0.1.2-py3-none-any.whl

Total release size: 122.1 kB

Release files / foldscan-0.1.2.tar.gz

Download URL foldscan-0.1.2.tar.gz
Size 56.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2135a03bbc94eec297d623eb88e60c2238ac92404386f9af84748b4eac1f954c
BLAKE2b-256 checksum
How to use checksums
7551014dcf7487e1efb769b64c2efbb9710a9c21ec4186197e157b86dde56b28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / foldscan-0.1.2-py3-none-any.whl

Download URL foldscan-0.1.2-py3-none-any.whl
Size 65.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3f8a2cdff5a55fbc8501ed11c8358123e430a904368e11df78fd39777eda228
BLAKE2b-256 checksum
How to use checksums
99122d72639afd99b0058a4a79fb57803800d9c0cb1c8dfc339e757c8b785ca2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for foldscan 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page