Back to skill

Security audit

Flex

Security checks for vulnerabilities and agentic risk

Overview

This is a straightforward local CSS flexbox generator, with disclosed local storage and no evidence of hidden network, credential, or persistence behavior.

Before installing, be aware that saved layouts are kept in ~/.flex/data.jsonl and exports using --output can overwrite an existing file at the chosen path. Use stdout or a dedicated CSS export path if you want to avoid accidental replacement.

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
  • Rogue AgentSelf-Modification, Session Persistence
  • 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 (3)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill advertises shell execution and write access to a persistent user directory but does not declare any explicit tool scope such as allowed-tools or permissions. That creates a trust and containment gap: an agent may invoke filesystem-writing behavior without a clear policy boundary, increasing the chance of unintended file modification or broader command execution than expected.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
84% confidence
Finding

The skill stores layout data persistently in ~/.flex/data.jsonl, which creates session persistence across runs. While expected for a CLI layout tool, persistent storage can retain sensitive project names, layout metadata, or user-supplied content longer than intended, and that data may later influence agent behavior or be read by other local processes.

Content

Scanner excerpt · SKILL.md (reported line 12)May include surrounding context.

md
# Flex — CSS Flexbox Layout Generator

A CLI tool for generating CSS Flexbox layouts. Create flex containers, configure alignment, justify, wrap, gap, and order properties, then export production-ready CSS code.

## Prerequisites

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The export command writes directly to a user-supplied path with mode 'w', which will silently truncate and overwrite any existing file the current user can access. In an agent/CLI skill context, that is dangerous because an unintended or manipulated --output value can destroy user data or overwrite project files without any confirmation or path restriction.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.