Back to skill

Security audit

swift-dev

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports a broad safety concern in recursively removing file metadata and a possible recording teardown hang, while several referenced files were only partly analyzed.

Consider avoiding installation until the metadata-removal guidance has been reviewed and the incomplete analysis has been resolved. ClawScan’s verdict is suspicious, not malicious; several alerts were judged likely to be benign in context, but coverage was partial, so the scan does not establish that every referenced item is safe.

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

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| Run on an iPhone | `ios-devices-and-signing.md` (Developer Mode, `devicectl`, automatic signing flags) |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
screenshots, app containers, logs, Developer Mode, CLI signing, ASC API keys | `ios-devices-and-signing.md` |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| CI | GitHub Actions: `ci-github-actions.md` (runner and exact Xcode, compilation cache, required-check gate, simulators on runners) |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
d have only 3 cores, which exposes cooperative-pool deadlocks a dev Mac hides (`ci-github-actions.md`).

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
and UI tests on runners, signing and notarization in CI, debugging slow runs | `ci-github-actions.md` |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
ins - claim the `facetime` URL scheme and activate the audio session yourself (`ios-audio-and-callkit.md`). UI tests in the Simulator can also press the Action

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| `AVAudioSession`, mic permission, interruptions, CallKit outgoing calls, LiveKit, screen-locked audio | `ios-audio-and-callkit.md` |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
model`. Mark non-UI fields `@ObservationIgnored`. Architecture options and DI: `architecture.md`.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| App structure, controllers, DI | `architecture.md` |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| WindowGroup, scenePhase, NavigationStack, sheets, toolbars, Settings deep link, Liquid Glass | `ios-swiftui.md` |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| Table, sidebar, inspector, menus and commands, forms, popovers, 27-SDK SwiftUI changes | `macos-swiftui.md` |

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
80% confidence
Finding

Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.

Content

Scanner excerpt · references/app-intents.md (reported line 124)May include surrounding context.

md
(Same attributes for macOS 13.3/26.0, watchOS and tvOS; `ForegroundContinuableIntent` has no visionOS line and is `unavailable` in every app-extension context (`iOSApplicationExtension`, `macOSApplicationExtension`, ...), so an intent that also compiles into a widget or control extension cannot adopt it. Implementing the deprecated `openAppWhenRun` produces no warning - only uses of it do - so grep for it.)

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
80% confidence
Finding

Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.

Content

Scanner excerpt · references/spm-and-builds.md (reported line 66)May include surrounding context.

md
- **Misspelled feature names are silently ignored.** `-enable-upcoming-feature BogusFeatureX` compiles with no warning. Check names against `swiftc -print-supported-features` (JSON listing upcoming, experimental and optional features) - but it omits the `ApproachableConcurrency` bundle, which the compiler accepts, so a missing entry is not proof of a typo.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/app-intents.md (reported line 169)May include surrounding context.

md
| `.requiresAuthentication` | some device must be unlocked; starting on an unlocked Apple Watch is enough even if the iPhone is locked |
| `.requiresLocalDeviceAuthentication` | the device running the intent must be unlocked, "even if the request originated from an already authenticated Apple Watch or remote device" - use it when the intent reads data-protected files |

An `.alwaysAllowed` intent that reads a Keychain item while locked still needs that item stored `kSecAttrAccessibleAfterFirstUnlock` (keychain.md).

`static var allowedExecutionTargets: IntentExecutionTargets` is new in iOS 27 / macOS 27: `.default` (any available target), `.main`, `.appIntentsExtension`, `.widgetKitExtension`. Use it when an intent compiled into several targets must run in a specific one:

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ci-github-actions.md (reported line 295)May include surrounding context.

  • Manual signing keychain (Developer ID, or a key whose role cannot cloud-sign), per GitHub's recipe plus what a real pipeline needed:
    bash
    [ -n "$P12_BASE64" ] || { echo "signing certificate secret is empty" >&2; exit 1; }
    KC="$RUNNER_TEMP/signing.keychain-db"
    KC_PW=$(openssl rand -base64 24)
    echo "$P12_BASE64" | base64 --decode > "$RUNNER_TEMP/cert.p12"
    security create-keychain -p "$KC_PW" "$KC"
    

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ci-github-actions.md (reported line 299)May include surrounding context.

md
KC_PW=$(openssl rand -base64 24)
  echo "$P12_BASE64" | base64 --decode > "$RUNNER_TEMP/cert.p12"
  security create-keychain -p "$KC_PW" "$KC"
  security set-keychain-settings -lut 21600 "$KC"
  security unlock-keychain -p "$KC_PW" "$KC"
  security list-keychains -d user -s "$KC" login.keychain-db
  security import "$RUNNER_TEMP/cert.p12" -k "$KC" -P "$P12_PASSWORD" -f pkcs12 \

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ci-github-actions.md (reported line 300)May include surrounding context.

md
echo "$P12_BASE64" | base64 --decode > "$RUNNER_TEMP/cert.p12"
  security create-keychain -p "$KC_PW" "$KC"
  security set-keychain-settings -lut 21600 "$KC"
  security unlock-keychain -p "$KC_PW" "$KC"
  security list-keychains -d user -s "$KC" login.keychain-db
  security import "$RUNNER_TEMP/cert.p12" -k "$KC" -P "$P12_PASSWORD" -f pkcs12 \
    -T /usr/bin/codesign -T /usr/bin/security

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/keychain.md (reported line 118)May include surrounding context.

md
ent.` (`errSecMissingEntitlement`). Per TN3137, an app whose provisioning profile authorizes its app ID gets access; a bare CLI tool needs an app-like bundle with an embedded profile or must use the file-based keychain.
- **The file-based keychain worked from the same unsigned tool** (add, duplicate add -> `-25299`, read, delete; no prompt, because the creating process is on the item's ACL). The trade-off: ACL-based access control instead of access groups, no accessibility classes, no iCloud sync. Unverified: a rebuilt ad-hoc binary (new code signature) gets the "wants to access your keychain" prompt for items an earlier build created. It is also the only option for `launchd` daemons - the data protection keychain exists only in a user login session.
- Mac Catalyst and iOS apps on the Mac always use the data protection keychain.
- Keychain Access shows data protection items under "Local Items" / "iCloud", and only password items; the `security` CLI mostly sees the file-based keychain.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ci-github-actions.md (reported line 298)May include surrounding context.

md
KC="$RUNNER_TEMP/signing.keychain-db"
  KC_PW=$(openssl rand -base64 24)
  echo "$P12_BASE64" | base64 --decode > "$RUNNER_TEMP/cert.p12"
  security create-keychain -p "$KC_PW" "$KC"
  security set-keychain-settings -lut 21600 "$KC"
  security unlock-keychain -p "$KC_PW" "$KC"
  security list-keychains -d user -s "$KC" login.keychain-db

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ci-github-actions.md (reported line 301)May include surrounding context.

md
security create-keychain -p "$KC_PW" "$KC"
  security set-keychain-settings -lut 21600 "$KC"
  security unlock-keychain -p "$KC_PW" "$KC"
  security list-keychains -d user -s "$KC" login.keychain-db
  security import "$RUNNER_TEMP/cert.p12" -k "$KC" -P "$P12_PASSWORD" -f pkcs12 \
    -T /usr/bin/codesign -T /usr/bin/security
  security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KC_PW" "$KC"

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ci-github-actions.md (reported line 301)May include surrounding context.

md
security create-keychain -p "$KC_PW" "$KC"
  security set-keychain-settings -lut 21600 "$KC"
  security unlock-keychain -p "$KC_PW" "$KC"
  security list-keychains -d user -s "$KC" login.keychain-db
  security import "$RUNNER_TEMP/cert.p12" -k "$KC" -P "$P12_PASSWORD" -f pkcs12 \
    -T /usr/bin/codesign -T /usr/bin/security
  security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KC_PW" "$KC"

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ios-devices-and-signing.md (reported line 116)May include surrounding context.

md
xcrun simctl status_bar "$UDID" clear

xcrun simctl addmedia "$UDID" fixture.png          # photos, videos, contacts before a picker test
xcrun simctl keychain "$UDID" reset                # clean keychain; add-root-cert ca.pem trusts a local CA

APP=build/Build/Products/Debug-iphonesimulator/MyApp.app
BUNDLE=$(plutil -extract CFBundleIdentifier raw "$APP/Info.plist")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ios-devices-and-signing.md (reported line 116)May include surrounding context.

md
xcrun simctl status_bar "$UDID" clear

xcrun simctl addmedia "$UDID" fixture.png          # photos, videos, contacts before a picker test
xcrun simctl keychain "$UDID" reset                # clean keychain; add-root-cert ca.pem trusts a local CA

APP=build/Build/Products/Debug-iphonesimulator/MyApp.app
BUNDLE=$(plutil -extract CFBundleIdentifier raw "$APP/Info.plist")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/keychain.md (reported line 21)May include surrounding context.

md
import Foundation
import Security

/// Generic-password items in the data protection keychain, the same store on iOS and macOS.
nonisolated enum Keychain {
    struct Failure: Error, CustomStringConvertible {
        let status: OSStatus

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/keychain.md (reported line 70)May include surrounding context.

md
kSecClass as String: kSecClassGenericPassword,
            kSecAttrService as String: service,
            kSecAttrAccount as String: account,
            // Ignored on iOS; on macOS selects the iOS-style store instead of the login keychain file.
            kSecUseDataProtectionKeychain as String: true,
        ]
    }