Back to skill

Security audit

Chain of Consciousness

Security checks for vulnerabilities and agentic risk

Overview

This appears to be a legitimate local provenance/audit-trail skill, with privacy and supply-chain cautions but no evidence of hidden or malicious behavior.

Install this only if you want durable local audit logs of agent activity. Treat chain files and exports as potentially sensitive project records, review them before sharing, avoid logging secrets or personal data, and prefer installing the Python package in a sandbox or pinned environment.

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:31
Finding

Unpinned Third-Party Package Installed and Executed from PyPI

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:31-35; duplicated in README.md:18-22
Vulnerability Type: Unpinned and unverified third-party dependency
Risk Level: Medium

Vulnerable Code

SKILL.md:31-35:

markdown
The `chain-of-consciousness` Python package must be installed. If not available, install it:

```bash
pip install chain-of-consciousness
text

`README.md:18-22`:

```markdown
1. Install the Python package:

```bash
pip install chain-of-consciousness
text

### Technical Analysis

The installation instructions retrieve the latest available release of `chain-of-consciousness` from the package index without an exact version constraint, cryptographic hash verification, or a lockfile. The project does not include the dependency's source code, so its installation and runtime behavior cannot be verified as part of this audit.

The installed package is subsequently trusted as both the `coc` command-line tool and the `chain_of_consciousness` Python module. Python packages can execute code during installation or when imported and invoked. Because the command does not identify an immutable, reviewed artifact, the effective code may change after this skill has been reviewed.

This is a supply-chain weakness rather than evidence that the current PyPI package is malicious. Exploitation requires compromise of the package, its publisher account, the package repository or delivery path, or publication of a future unsafe release.

### Attack Path

1. An attacker compromises the dependency's publisher account or distribution infrastructure and publishes a malicious release under the expected package name.
2. A user or autonomous agent follows the documented `pip install chain-of-consciousness` instruction.
3. Because no version or artifact hash is pinned, pip selects and downloads the attacker-controlled release.
4. Malicious code executes during installation or later when the `coc` CLI
...[truncated 782 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin the dependency to an exact, reviewed version, for example chain-of-consciousness==X.Y.Z.
  2. Generate and publish a requirements or lock file containing cryptographic hashes for all direct and transitive dependencies.
  3. Install with hash enforcement, such as python3 -m pip install --require-hashes -r requirements.txt.
  4. Review the source and release artifact corresponding to the pinned version, including installation hooks, imported modules, network behavior, and CLI subprocess behavior.
  5. Link the reviewed source commit and document a repeatable method for verifying that the PyPI artifact matches it.
  6. Run installation and execution in a dedicated virtual environment or sandbox under a least-privileged account.
  7. Apply the same secured installation instructions consistently in both SKILL.md and README.md.
  8. Establish a controlled dependency-update process that repeats code review and hash generation before accepting a new release.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (11)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 194)May include surrounding context.

md
**What it cannot do:**
- Cannot access files outside your working directory beyond what you explicitly specify
- Cannot make purchases, send emails, or take irreversible actions
- Cannot access credentials, environment variables, or secrets
- Does not store or transmit any data externally (chains are local files)

**Limitations:**

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The README states that the skill maintains records of what the agent learned, decided, and created, but it does not warn that this may capture sensitive prompts, internal reasoning summaries, user data, secrets, or proprietary artifacts. Because the feature is framed as routine audit functionality, users may enable it without understanding the privacy and confidentiality implications of persistent logging and later export.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.md (reported line 28)May include surrounding context.

  1. Copy the skill to your workspace:
bash
mkdir -p ~/.openclaw/workspace/skills/chain-of-consciousness
cp SKILL.md ~/.openclaw/workspace/skills/chain-of-consciousness/SKILL.md

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 29)May include surrounding context.

bash
mkdir -p ~/.openclaw/workspace/skills/chain-of-consciousness
cp SKILL.md ~/.openclaw/workspace/skills/chain-of-consciousness/SKILL.md
  1. Restart your OpenClaw session:

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Saying the agent will 'automatically use provenance tracking when appropriate' implies background activation without clear user consent or notice about logging behavior. Automatic collection of decision and activity history increases the risk of covert retention of sensitive operational context, especially in environments where agents process credentials, customer data, or confidential business information.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The README promotes exporting the provenance trail without warning that exported logs may contain sensitive historical records about agent actions, decisions, and generated artifacts. Export increases the attack surface by making data easier to copy, share, exfiltrate, or mishandle outside the original storage boundary.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill explicitly tells the agent to maintain an auditable record of what it learned, decided, and created. That creates a durable natural-language log of potentially sensitive user-derived information and internal decision content, which can later be inspected, exported, or shared beyond the original interaction context.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation guidance is extremely broad: it instructs use at the start of a task, during work, at completion, and whenever audit/provenance is relevant. In practice this can cause near-default invocation across many user tasks, increasing the chance that sensitive conversational content, intermediate reasoning, or artifacts are persistently recorded without clear necessity or consent.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

The examples normalize recording user preferences and schedule details directly into the chain. Because the chain is designed for persistence and later verification/export, these examples encourage retention and possible disclosure of personal information that is not necessary for cryptographic provenance.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill recommends exporting the full chain for sharing, but earlier guidance encourages placing learned and decided content into that chain. This combination creates a clear exfiltration path where accumulated sensitive data can be disclosed to other agents or external parties during routine verification or sharing.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

The Python API example reinforces a bad pattern by storing user schedule and meeting preferences in a persistent provenance record. This makes the privacy risk more dangerous because it suggests programmatic integration, which can scale the retention of sensitive context across many sessions or users.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.