Back to skill

Security audit

Gitlab

Security checks for vulnerabilities and agentic risk

Overview

This is a straightforward GitLab CLI helper, but users should be careful because some examples can change repositories or reveal CI/CD variables.

Install only if you want your agent to use your existing glab access for GitLab work. Treat merge, approve, release, variable, and raw API commands as sensitive: confirm the target project and identifier first, and do not expose secret CI/CD variable values in chat or logs.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill documents state-changing GitLab operations like approving, merging, and checking out merge requests without any caution that these commands can alter repository state or trigger downstream automation. In an agent skill context, this increases the chance an automated system executes impactful actions on production repositories without explicit user confirmation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The variable management examples show listing, setting, and retrieving CI/CD variables with no warning that these values may be secrets and should not be echoed, logged, or exposed in transcripts. In a CLI-driven agent environment, demonstrating glab variable get and inline secret setting can directly lead to credential disclosure or unsafe secret handling.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The release creation example publishes a release without warning that it creates externally visible project artifacts and may trigger notifications or downstream consumption. While lower risk than secret exposure or merge operations, it is still a state-changing action that can cause accidental publication if used by an autonomous agent.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.