foundry

ISSUES FOUND max severity CRITICALSkillSpector Caution 33 registry clawhub.ai last scanned 1 scan

7 findings (2 critical, 3 high, 2 medium), mainly data exfiltration, command injection, prompt injection. Most recent scan 2026-02-06.

CRITICAL SECURITY RISK: This skill implements a self-modifying code generation system with arbitrary code execution capabilities. It can write new extensions, tools, and hooks directly to the agent's file system, automatically load them, and learn from its own behavior without user oversight. The combination of self-modification, external content trust, auto-learning, and unbounded autonomous operation creates severe security vulnerabilities. The skill essentially grants the agent the ability to reprogram itself based on external sources and its own experience, with minimal safeguards. Missing referenced files and lack of provenance information compound supply chain risks. This skill should not be used in production environments without significant security hardening.

Scanner's overall assessment (LLM analyzer)

Second scanner: NVIDIA SkillSpector

Independent static run, no language model, over the same files as the Cisco scan above. How the two scanners compare across the whole corpus: Two scanners, one corpus.

What this skill does

Self-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills

Package
1 file, 5.2 KB
SKILL.md
655 words, 12+ sections
Code
None. Instructions only.
Requires
bins: node
Homepage
https://getfoundry.app

SKILL.md covers: Foundry · Installation · Alternative: Manual Config · Configuration · Config Options · What Foundry Does · Tools · Research & Documentation · Writing Capabilities · Self-Modification · Marketplace · Usage Examples

Findings

CRITICAL Arbitrary Code Execution via Self-Modification Command Injectionllm

The skill explicitly enables self-modification capabilities through tools like 'foundry_add_tool' and 'foundry_add_hook' that can write new code into the agent's extension system. This allows the skill to inject arbitrary code that will be executed by the agent without user review or confirmation. The 'foundry_implement' tool performs end-to-end implementation including code execution.

SKILL.md

Tools listed: foundry_implement (Research + implement a capability end-to-end), foundry_add_tool (Add a tool to an existing extension), foundry_add_hook (Add a hook to an existing extension), foundry_write_extension (Write a new OpenClaw extension)
Remediation: Remove self-modification capabilities or require explicit user confirmation before any code is written to the extension system. Implement sandboxing for generated code. Add code review workflows before execution.
CRITICAL Unrestricted File System Write Access Data Exfiltrationllm

The skill can write arbitrary extensions, tools, hooks, and skills to the file system (~/.openclaw/extensions/) without any restrictions or user confirmation. Combined with automatic loading ('Restart the gateway to load'), this creates a path for persistent code execution.

SKILL.md

Installation instructions: 'Extract to ~/.openclaw/extensions/foundry/' and 'Restart the gateway to load'. Tools can write new extensions that are automatically loaded.
Remediation: Require explicit user approval before writing any files to the extensions directory. Implement a review process for generated code. Disable automatic loading of newly written extensions.
HIGH Transitive Trust Abuse via External Documentation Prompt Injectionllm

The skill fetches and follows instructions from external sources (docs.openclaw.ai, GitHub repos, arXiv papers) via 'foundry_research' and 'foundry_docs' tools. These external sources are treated as trusted and their content could influence the agent's behavior or code generation without validation.

SKILL.md

Tools: foundry_research (Search docs.openclaw.ai), foundry_docs (Read specific documentation pages), sources.github: true, sources.arxiv: true. The skill learns from and implements patterns from these external sources.
Remediation: Implement strict validation and sanitization of all external content before using it to generate code or modify behavior. Treat all external sources as untrusted. Add content security policies.
HIGH Tool Poisoning via Auto-Learning Unauthorized Tool Usellm

The 'autoLearn' feature (enabled by default) allows the skill to automatically learn from agent activity and modify its own behavior based on 'failures and successes'. This creates a feedback loop where the skill can alter its own tools and capabilities without oversight.

SKILL.md

Config option: 'autoLearn': true (default), 'sources.experience': true (Learn from own successes/failures). Description states: 'Learn — Record patterns from failures and successes'
Remediation: Disable autoLearn by default. Require explicit user opt-in for learning features. Implement human-in-the-loop review for any learned patterns before they modify tool behavior.
HIGH Unbounded Autonomous Operation Resource Abusellm

The 'foundry_implement' tool performs 'end-to-end' implementation which suggests autonomous multi-step operations (research, write, deploy) without user confirmation at each stage. Combined with auto-learning and self-modification, this enables unbounded autonomous behavior.

SKILL.md

Tool description: 'foundry_implement — Research + implement a capability end-to-end'. Config: 'autoLearn': true enables automatic learning and modification.
Remediation: Break end-to-end operations into discrete steps requiring user confirmation. Implement rate limiting and operation bounds. Add circuit breakers for autonomous operations.
MEDIUM Misleading Capability Scope Social Engineeringllm

The skill description 'Self-writing meta-extension that forges new capabilities' downplays the security implications of arbitrary code generation and self-modification. The poetic language ('The forge that forges itself') obscures the serious security risks of autonomous code execution.

SKILL.md

Description: 'Self-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills'. Tagline: 'The forge that forges itself.'
Remediation: Provide clear, explicit warnings about the security implications of self-modifying code. Use plain language to describe capabilities. Add security disclaimers.
MEDIUM Missing Provenance and Verification Data Exfiltrationllm

The skill references multiple Python files (agent.py, GitHub.py, OpenClaw.py, failures.py, arXiv.py, npm.py, own.py) that are not found in the package. No license is specified, and there's no version pinning for the npm package installation. This creates supply chain risks.

SKILL.md

Referenced files not found: agent.py, GitHub.py, OpenClaw.py, failures.py, arXiv.py, npm.py, own.py. YAML shows: license: Not specified. Installation uses unpinned package: '@getfoundry/foundry-openclaw'
Remediation: Include all referenced files in the package. Specify a license. Pin exact versions for all dependencies. Add package integrity verification (checksums, signatures).

What is in the package

FileKindSize
SKILL.mddoc5.2 KB

External hosts referenced

api.claw.getfoundry.app getfoundry.app github.com registry.npmjs.org

Hostnames that appear in the skill's files. Referencing a host is not a finding; compare against the findings above and the skill's stated purpose.

Package contents recorded 2026-10-22. The scan above ran against the version current at scan time; the two can differ if the skill has since been updated.

What we checked

What we did not check

Sources