lean
Fail
Audited by Gen Agent Trust Hub on Oct 7, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
setup.shscript andreferences/lean.mddocumentation execute theelan-init.shinstallation script fromelan-lang.orgby piping the download directly to the shell (sh). This follows the standard, official installation procedure for the Lean toolchain manager. - [EXTERNAL_DOWNLOADS]: The skill downloads required binaries and scripts from official sources, including
tla2tools.jarfrom the TLA+ GitHub releases and theelaninstaller from the Lean project's official domain. - [COMMAND_EXECUTION]: The skill utilizes local shell commands to build models and run model checkers, specifically using
lake buildfor Lean 4 projects andjavafor the TLA+ TLC model checker. - [INDIRECT_PROMPT_INJECTION]: The skill performs analysis on repository code, which serves as a potential vector for indirect prompt injection.
- Ingestion points: The agent is instructed to read source code, tests, and comments from the target repository in the
SKILL.mdfile (Steps 1 and 2). - Boundary markers: There are no specific instructions to use delimiters or ignore embedded instructions when reading repository content.
- Capability inventory: The agent writes formal model files to the filesystem and executes them using the Lean and TLA+ toolchains.
- Sanitization: The skill lacks explicit sanitization or validation of the content extracted from the repository before it is used to generate executable models.
Recommendations
- HIGH: Downloads and executes remote code from: https://elan.lean-lang.org/elan-init.sh - DO NOT USE without thorough review
Audit Metadata