Back to skill

Security audit

mobile-swift

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill benign with medium confidence: findings were judged purpose-related, though some reference checks were incomplete.

The verdict is benign, but confidence is medium. Skillspector reports partial analysis because some local path-like references could not be resolved, so evidence is incomplete; consider that limitation when deciding whether to install.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
Findings (6)

Session Persistence

Medium
Category
Rogue Agent
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.

Content

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

md
6. Write the code, then the tests in the same change. Swift Testing for unit tests, XCTest only for UI
   and performance tests.
7. Build with zero concurrency warnings, run the tests, run SwiftLint and the formatter.
8. List every `Info.plist` key, entitlement, background mode and privacy manifest entry the change adds.
   These have signing and App Review consequences and must be called out explicitly.

## Rules

Session Persistence

Medium
Category
Rogue Agent
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.

Content

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

md
Call these out in the change summary every time, with the exact key or entitlement name.

- `Info.plist` usage strings: `NSBluetoothAlwaysUsageDescription`, `NSCameraUsageDescription`,
  `NSLocationWhenInUseUsageDescription` and others. For Bluetooth, camera and microphone a missing
  string terminates the app on first access.
- `UIBackgroundModes` entries such as `bluetooth-central` or `location`. App Review asks for justification.

Session Persistence

Medium
Category
Rogue Agent
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.

Content

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

md
- [ ] New code in the right package with the narrowest access level
- [ ] Swift Testing unit tests added; XCTest only for UI and performance
- [ ] Zero warnings, tests pass, SwiftLint and formatter clean
- [ ] `Info.plist`, entitlements, background modes and privacy manifest changes listed explicitly

## Related skills

Session Persistence

Medium
Category
Rogue Agent
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.

Content

Scanner excerpt · references/packages.md (reported line 4)May include surrounding context.

md
# Packages and tooling reference

Load this when creating or changing Swift packages, access levels, lint and format configuration,
`Info.plist`, entitlements or the privacy manifest.

## Layout

Session Persistence

Medium
Category
Rogue Agent
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.

Content

Scanner excerpt · references/packages.md (reported line 123)May include surrounding context.

md
- CI runs the formatter in lint mode (`swiftformat --lint .`) and fails on differences.
- Formatting-only changes go in their own commit.

## Info.plist and entitlements

Every addition here must be listed in the change summary because it affects signing, App Review or
user prompts.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
- Singletons (`static let shared`) reached from deep inside views and models instead of injection.
- `try?` that silently drops an error the user should see.
- One giant app target with every file `public` "just in case".
- Adding a third-party SDK without checking it ships its own privacy manifest and signature.

## Checklist