Back to skill

Security audit

Lifecycle Carbon Calculator

Security checks for vulnerabilities and agentic risk

Overview

This skill provides a construction carbon calculator and does not show hidden, destructive, or unrelated behavior.

Install this only in a dedicated Python virtual environment and consider pinning pandas in a requirements file before use. The carbon factors appear to be sample data, so validate them against authoritative EPD or project-specific sources before relying on results for compliance or reporting.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:461
Finding
Unpinned Third-Party Dependency Installation## Vulnerability Details **File Location**: `SKILL.md`, lines 461-465 **Vulnerability Type**: Unpinned third-party dependency and insufficient supply-chain verification **Risk Level**: Medium ### Vulnerable Code ```markdown ## Dependencies ```bash pip install pandas ``` ``` ### Technical Analysis The installation instruction retrieves the latest version of `pandas` and its transitive dependencies available when the command is executed. The project does not specify an approved version, lock transitive dependencies, verify package hashes, or require an isolated environment. Consequently, installations are not reproducible and may consume an unexpectedly changed or compromised package release. If the package distribution account, package index, or a transitive dependency is compromised, installation may execute attacker-controlled package build or installation logic in the context of the user running `pip`. No evidence indicates that `pandas` itself is malicious. The risk arises from unconstrained dependency resolution and the absence of integrity verification. ### Attack Path 1. A user follows the dependency instructions in `SKILL.md`. 2. The user runs `pip install pandas`. 3. `pip` resolves the current `pandas` release and its transitive dependencies without consulting a reviewed lockfile or verifying project-provided hashes. 4. An unexpectedly changed or compromised release is downloaded from the configured package index. 5. Malicious package build or installation logic executes with the permissions of the user running `pip`. 6. The malicious dependency could access or modify resources available to that user. Exploitation therefore requires compromise or manipulation of the dependency supply chain, or use of an untrusted package index. ### Impact Assessment Successful exploitation could execute arbitrary code with the privileges of the account running the installation command. Depending on that account ...[truncated 358 chars]
Remediation
## Remediation Suggestions 1. Pin `pandas` and every transitive dependency to reviewed versions in a lockfile. 2. Record and verify cryptographic hashes by installing with `pip install --require-hashes -r requirements.txt`. 3. Generate the lockfile from a trusted package index and review dependency updates before adoption. 4. Recommend installation inside a dedicated virtual environment rather than a global or privileged Python environment. 5. Configure pip to use an explicitly trusted HTTPS index and avoid untrusted additional indexes. 6. Add automated dependency vulnerability and integrity scanning to the maintenance process.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep

Static analysis

No suspicious patterns detected.