Back to skill

Security audit

Model Usage

Security checks for vulnerabilities and agentic risk

Overview

This skill coherently summarizes local CodexBar cost data and does not show hidden execution, persistence, exfiltration, or destructive behavior.

Install only if you are comfortable with CodexBar reading local Codex and Claude usage logs to calculate costs, and review the third-party CodexBar brew cask source before installing it in a sensitive environment.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (2)

Lp3

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding
The skill invokes shell commands (`codexbar`, `python`) and reads local files/stdin, but it does not declare any tool scope such as `permissions` or `allowed-tools`. That creates an authorization gap where an agent may execute shell/file operations without an explicit, reviewable boundary, increasing the chance of unintended command execution or access to local cost logs and arbitrary input files.

subprocess module call

Medium
Category
Dangerous Code Execution
Content
def run_codexbar_cost(provider: str) -> List[Dict[str, Any]]:
    cmd = ["codexbar", "cost", "--format", "json", "--provider", provider]
    try:
        output = subprocess.check_output(cmd, text=True)
    except FileNotFoundError:
        raise RuntimeError("codexbar not found on PATH. Install CodexBar CLI first.")
    except subprocess.CalledProcessError as exc:
Confidence
70% confidence
Finding
subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Static analysis

No suspicious patterns detected.