Back to skill

Security audit

SwiftUI Empty App Init

Security checks for vulnerabilities and agentic risk

Overview

This skill is a narrow SwiftUI app initializer that creates local project files with XcodeGen and does not show hidden persistence, credential access, or exfiltration behavior.

Install this only when you want the agent to create a new minimal SwiftUI project in the current directory. Review the target directory first because the skill is designed to write project files there, but the artifact does not request unusual privileges or hidden background behavior.

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

Session Persistence

Medium
Category
Rogue Agent
Content
- Contain exactly one **app target**
- Use the SwiftUI `@main App` lifecycle
- Contain a minimal `ContentView` placeholder
- Contain a minimal `Info.plist` (avoid unnecessary scene or delegate keys)
- Contain **no Swift packages**
- Contain **no test targets** unless explicitly requested
Confidence
75% confidence
Finding
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Static analysis

No suspicious patterns detected.