Back to skill

Security audit

Gitignore Gen

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward .gitignore generator whose network, file-write, and cache behavior match its stated purpose.

Install only if you are comfortable with the skill contacting GitHub to fetch templates, caching the template list in your home cache directory, and writing or overwriting .gitignore files when you use --force, --append, or a custom output path.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

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/gitignore_gen.py (reported line 180)May include surrounding context.

python
({"docker-compose.yml", "docker-compose.yaml", "dockerfile"}, "Global/Docker"),
        ({".idea"}, "JetBrains"),
        ({".vscode"}, "VisualStudioCode"),
        ({".env"}, "Global/DotEnv"),
    ]

    for patterns, template in rules:

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill documentation describes capabilities that imply filesystem access, environment access, and likely network use, but it does not declare any explicit tool scope such as permissions or allowed-tools. That creates an avoidable trust gap: an agent may invoke the skill with broader privileges than necessary, increasing the risk of unintended file modification, data exposure, or external fetch behavior if the implementation changes or is abused.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/gitignore_gen.py (reported line 16)May include surrounding context.

python
import urllib.error


GITHUB_API = "https://api.github.com/gitignore/templates"
CACHE_DIR = os.path.expanduser("~/.cache/gitignore-gen")
CACHE_FILE = os.path.join(CACHE_DIR, "templates.json")
CACHE_MAX_AGE = 86400  # 24 hours

Static analysis

No suspicious patterns detected.