T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:24
- Finding
- Mutable Remote Installer Is Executed Directly Through a Shell<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:24-28` **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High ```bash Or install directly via curl: ```bash curl -fsSL https://portal.patrickbot.io/downloads/latest/install.sh | bash ``` ``` ### Technical Analysis The installation instructions pipe a script retrieved from a mutable external URL directly into Bash. The remote script is neither inspected nor verified against a version-pinned hash or a signature rooted in a trusted key bundled with the Skill. TLS protects the connection in transit, but it does not guarantee that the server, domain, publishing pipeline, or current remote script is trustworthy. The effective code executed by this Skill can consequently change after the reviewed package has been published or audited. This behavior is not necessary for the declared executive-analysis functionality. A versioned, locally reviewable, and cryptographically verified installer would provide the same installation capability with substantially less risk. ### Attack Path 1. An attacker compromises the download server, domain, TLS endpoint, or release publishing pipeline. 2. The attacker replaces `downloads/latest/install.sh` with a malicious script. 3. A user or Agent follows the documented installation command. 4. `curl` writes the attacker-controlled response directly to Bash. 5. Bash executes the payload immediately with all privileges available to the invoking user or Agent. ### Impact Assessment Successful exploitation provides arbitrary command execution under the invoking account. The payload could read or modify files accessible to that account, steal credentials or the Patrick license, alter Agent configuration, install persistence, or download additional payloads. The reviewed code does not invoke `sudo`, so root access is not obtained unless the command is independently run by a privileged account. ]]>
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove the `curl | bash` installation method. - Publish immutable, versioned installer artifacts instead of using `/latest/`. - Download the installer to a local file without executing it. - Verify a detached cryptographic signature using a trusted public key distributed independently with the Skill. - Abort installation if signature or version verification fails. - Allow users to inspect the verified script before executing it. - Document the exact files, network endpoints, and permissions used by the installer. ]]>
