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://site-ashy-two-46.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.1

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.1
File Size Uploaded Provenance Actions
foldscan-0.1.1.tar.gz 56.6 kB Without provenance Details for foldscan-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 122.1 kB

Release files / foldscan-0.1.1.tar.gz

Download URL foldscan-0.1.1.tar.gz
Size 56.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0ebe7bd9fb9d33e28fb740f7c6699447e25fdf70602ae20c03dac481ecbcba16
BLAKE2b-256 checksum
How to use checksums
961cab0869336a37cebeb5bdb00add922c943300ada396da948c58fce6aa40a6
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.1-py3-none-any.whl

Download URL foldscan-0.1.1-py3-none-any.whl
Size 65.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35f36af4ef6f6016fc9a07a954f01398623cd48daf7a18ae651323d0028147a9
BLAKE2b-256 checksum
How to use checksums
ab6a8e4bc864600ab3e1ce975768ca8cdf00f63f2b1a72b99e8d2f71edc69d8b
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.1

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