Back to skill

Security audit

workspace-retention-audit

Security checks for vulnerabilities and agentic risk

Overview

ClawScan’s verdict is benign with high confidence: the scanners report a coherent skill, and the listed alerts are mostly consistent with its workspace inventory purpose or appear to be broad pattern matches.

The verdict is benign, and the main alerts appear to be contextual pattern matches. Before installing, consider whether you are comfortable with the tool scope being undeclared; the verdict notes environment proportionality, and benign does not mean risk-free.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/workspace_inventory.py (reported line 54)May include surrounding context.

python
for name in parts:
        _, ext = os.path.splitext(name)
        tokens = set(name.replace("-", "_").replace(".", "_").split("_"))
        if (name in _ACTIVE or tokens & _ACTIVE or name.startswith(".env")
                or name.startswith(("id_rsa", "id_ed25519", "id_ecdsa"))
                or any(word in name for word in ("credential", "secret", "password"))
                or ext in {".pem", ".key", ".p12", ".pfx", ".crt", ".cer"}

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

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

Content

Scanner excerpt · scripts/workspace_inventory.py (reported line 58)May include surrounding context.

python
or name.startswith(("id_rsa", "id_ed25519", "id_ecdsa"))
                or any(word in name for word in ("credential", "secret", "password"))
                or ext in {".pem", ".key", ".p12", ".pfx", ".crt", ".cer"}
                or name in {"authorized_keys", "known_hosts", ".netrc", ".npmrc",
                            ".pypirc", "user.md", "agents.md", "memory.md", "soul.md",
                            "identity.md", "heartbeat.md", "boot.md", "bootstrap.md",
                            "tools.md"}):

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 · scripts/workspace_inventory.py (reported line 58)May include surrounding context.

python
or name.startswith(("id_rsa", "id_ed25519", "id_ecdsa"))
                or any(word in name for word in ("credential", "secret", "password"))
                or ext in {".pem", ".key", ".p12", ".pfx", ".crt", ".cer"}
                or name in {"authorized_keys", "known_hosts", ".netrc", ".npmrc",
                            ".pypirc", "user.md", "agents.md", "memory.md", "soul.md",
                            "identity.md", "heartbeat.md", "boot.md", "bootstrap.md",
                            "tools.md"}):

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · tests/test_inventory.py (reported line 60)May include surrounding context.

python
def test_protection_overrides_generated_names(self):
        protected = ["cache/private.sqlite", "cache/private.db", "cache/private.db-wal",
                     "cache/private.sqlite-shm", "cache/credentials.blob", "cache/.env.local",
                     "cache/key.pem", "cache/token.blob", "cache/identity.blob",
                     "cache/memory/chunk.blob", "cache/user/profile.blob",
                     "cache/agents/runtime.blob", "cache/state/current.blob",

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, file_write, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% 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 · scripts/workspace_inventory.py (reported line 40)May include surrounding context.

python
".clj", ".cljs", ".dart", ".jl", ".nim", ".pl", ".pm",
               ".f90", ".f95", ".m", ".mm", ".asm", ".s"}
_CONFIG_EXT = {".json", ".toml", ".yaml", ".yml", ".ini", ".cfg", ".conf",
               ".xml", ".properties", ".plist", ".lock"}
_DATA_EXT = {".csv", ".tsv", ".jsonl", ".ndjson", ".parquet", ".arrow", ".dat",
             ".bin", ".pkl", ".pickle", ".npy", ".npz", ".h5", ".hdf5",
             ".png", ".jpg", ".jpeg", ".gif", ".svg", ".mp4", ".mp3",

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · LICENSE (reported line 12)May include surrounding context.

text
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE