Back to skill

Security audit

GitLab Agent Profile

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because its image-rendering fallback can download and run an npm package without a reviewed installation step; this is a security concern, though the results do not establish malicious intent.

Consider the suspicious verdict before installing. The main reported risk is that running the script without ImageMagick may cause it to download and execute an unpinned package. The scan was partial because several local references could not be resolved, so the evidence is incomplete.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (11)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

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/update-profile-stats.py (reported line 25)May include surrounding context.

python
def glab_json(path: str) -> object:
    try:
        result = subprocess.run(
            ["glab", "api", path],
            check=True,
            text=True,

Tainted flow: 'path' from os.environ.get (line 191, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/update-profile-stats.py (reported line 25)May include surrounding context.

python
def glab_json(path: str) -> object:
    try:
        result = subprocess.run(
            ["glab", "api", path],
            check=True,
            text=True,

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/update-profile-stats.py (reported line 40)May include surrounding context.

python
def current_user() -> str:
    result = subprocess.run(
        [
            "glab",
            "api",

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/update-profile-stats.py (reported line 384)May include surrounding context.

python
webp_output.parent.mkdir(parents=True, exist_ok=True)
    magick = shutil.which("magick")
    if magick:
        subprocess.run([magick, str(svg_output), str(webp_output)], check=True)
        return
    convert = shutil.which("convert")
    if convert:

Tainted flow: 'svg_output' from os.environ.get (line 457, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/update-profile-stats.py (reported line 384)May include surrounding context.

python
webp_output.parent.mkdir(parents=True, exist_ok=True)
    magick = shutil.which("magick")
    if magick:
        subprocess.run([magick, str(svg_output), str(webp_output)], check=True)
        return
    convert = shutil.which("convert")
    if convert:

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/update-profile-stats.py (reported line 388)May include surrounding context.

python
return
    convert = shutil.which("convert")
    if convert:
        subprocess.run([convert, str(svg_output), str(webp_output)], check=True)
        return
    npm = shutil.which("npm")
    if npm:

Tainted flow: 'svg_output' from os.environ.get (line 457, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/update-profile-stats.py (reported line 388)May include surrounding context.

python
return
    convert = shutil.which("convert")
    if convert:
        subprocess.run([convert, str(svg_output), str(webp_output)], check=True)
        return
    npm = shutil.which("npm")
    if npm:

The image-conversion fallback can automatically download and execute an npm package without disclosing that behavior.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The fallback can automatically download and run sharp-cli through npm exec --yes without pinning the package or requiring a reviewed installation step. Although the skill mentions an npm fallback and identifies this Python script as legacy, those facts do not prevent supply-chain code execution if the script is run on a host without ImageMagick.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
97% confidence
Finding

When ImageMagick is unavailable, npm exec --yes sharp-cli can fetch and execute an unpinned package and its dependencies without approval. A compromised package or dependency could execute with the script's permissions and potentially access GitLab credentials or modify repository assets; the legacy status reduces routine exposure but does not make direct execution safe.

Content

Scanner excerpt · scripts/update-profile-stats.py (reported line 392)May include surrounding context.

python
return
    npm = shutil.which("npm")
    if npm:
        subprocess.run(
            [
                npm,
                "exec",

Tainted flow: 'svg_output' from os.environ.get (line 457, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/update-profile-stats.py (reported line 392)May include surrounding context.

python
return
    npm = shutil.which("npm")
    if npm:
        subprocess.run(
            [
                npm,
                "exec",