Back to skill

Security audit

Commit Message Linter

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward local commit-message linter whose file reads, optional config write, and git command use match its stated purpose.

Install this only if you are comfortable with a local tool reading commit messages and commit-message files in the repositories where you run it. The optional init command writes a local config file, and any git hook must be added by you manually.

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)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
85% confidence
Finding

The skill instructs users to run a Python script, read commit-message files, generate configuration files, and use shell commands, but the manifest does not declare any tool scope such as permissions or allowed-tools. This creates a transparency and governance gap: an agent or platform may expose file and shell capabilities without the user being explicitly informed through the skill metadata, increasing the risk of unintended file access or command execution.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/lint_commits.py (reported line 276)May include surrounding context.

python
def get_commits_from_git(rev_range: str = "HEAD~1..HEAD") -> list:
    """Get commit messages from git log."""
    try:
        output = subprocess.check_output(
            ["git", "log", "--format=%H%n%B%n---COMMIT-END---", rev_range],
            stderr=subprocess.PIPE, text=True
        )

Static analysis

No suspicious patterns detected.