Back to skill

Security audit

Model Usage

Security checks for vulnerabilities and agentic risk

Overview

This skill is a narrow local reporting helper for CodexBar model cost usage, with no evidence of hidden exfiltration, persistence, or destructive behavior.

Install this only if you are comfortable letting the skill summarize local CodexBar cost data derived from Codex or Claude session logs. Review and trust the CodexBar CLI/Homebrew cask dependency separately, since the skill depends on that external tool for collecting the underlying usage data.

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
92% confidence
Finding
The skill invokes shell commands and reads local files, but it does not declare any explicit tool scope such as permissions or allowed-tools. That creates a mismatch between the skill's documented capabilities and its effective behavior, increasing the risk of overbroad execution or accidental access to local data when the skill is triggered.

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.