Back to skill

Security audit

Mobile CI/CD

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this mobile CI/CD skill benign because the reported findings appear consistent with its purpose, while scanner coverage was partial and some installation and persistence checks remain notes.

The verdict is benign, not risk-free. Consider that Skillspector inspected 4 of 5 components fully, with one Android reference only partially inspected and a degraded tool-misuse analyzer. If you install it, review the unpinned Firebase CLI examples and the CI commands that use elevated privileges.

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
  • 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
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
Findings (18)

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 37)May include surrounding context.

md
[Android on GitHub Actions](references/android-github-actions.md),

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

md
## Anti-patterns

- `pull_request_target` or `workflow_run` that checks out and builds PR code with secrets available.
- Third-party actions referenced by tag or branch, or `curl ... | bash` installers in release jobs.
- Workflow-level `permissions: write-all` or no `permissions:` block at all.
- Keystores, `.p12`, `.p8`, `google-services.json` with production keys, or passwords committed "temporarily".
- Signing release builds on every PR "to make sure signing works".

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

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

md
- uses: gradle/actions/setup-gradle@<sha> # v6
      - name: Enable KVM
        run: |
          echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
          sudo udevadm control --reload-rules
          sudo udevadm trigger --name-match=kvm
      - uses: reactivecircus/android-emulator-runner@<sha> # v2

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-github-actions.md (reported line 159)May include surrounding context.

md
platform :ios do
  lane :beta do
    setup_ci # temporary keychain on CI, no changes to the login keychain

    api_key = app_store_connect_api_key(
      key_id: ENV.fetch("ASC_KEY_ID"),

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-github-actions.md (reported line 159)May include surrounding context.

md
platform :ios do
  lane :beta do
    setup_ci # temporary keychain on CI, no changes to the login keychain

    api_key = app_store_connect_api_key(
      key_id: ENV.fetch("ASC_KEY_ID"),

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% 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 50)May include surrounding context.

md
7. Validate locally where possible: `actionlint` for syntax and expression errors, `zizmor` for
   workflow security findings, and a dry run on a branch with the release job disabled.
8. Deliver the files plus the list of required secrets and the manual setup steps (see Output format).
   Never ask the user to paste secret values into the conversation.

## Pipeline shape

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
- uses: gradle/actions/setup-gradle@<sha> # v6
      - name: Enable KVM
        run: |
          echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
          sudo udevadm control --reload-rules
          sudo udevadm trigger --name-match=kvm
      - uses: reactivecircus/android-emulator-runner@<sha> # v2

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
- name: Enable KVM
        run: |
          echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
          sudo udevadm control --reload-rules
          sudo udevadm trigger --name-match=kvm
      - uses: reactivecircus/android-emulator-runner@<sha> # v2
        with:

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
run: |
          echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
          sudo udevadm control --reload-rules
          sudo udevadm trigger --name-match=kvm
      - uses: reactivecircus/android-emulator-runner@<sha> # v2
        with:
          api-level: ${{ matrix.api-level }}

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
persist-credentials: false

      - name: Select Xcode
        run: sudo xcode-select -s "/Applications/Xcode_${XCODE_VERSION}.app"

      - uses: actions/cache@<sha> # v6
        with:

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
persist-credentials: false

      - name: Select Xcode
        run: sudo xcode-select -s "/Applications/Xcode_${XCODE_VERSION}.app"

      - uses: actions/cache/restore@<sha> # v6
        with:

MCP server referenced without pinned version: 'npx --yes firebase-tools'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx --yes firebase-tools'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

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/flutter-github-actions.md (reported line 254)May include surrounding context.

md
"--obfuscate",
        "--split-debug-info=build/symbols/ios-prod",
        "--build-number=#{ENV.fetch('BUILD_NUMBER')}",
        "--export-options-plist=ios/ExportOptions.plist"
      )
    end

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/flutter-github-actions.md (reported line 254)May include surrounding context.

md
"--obfuscate",
        "--split-debug-info=build/symbols/ios-prod",
        "--build-number=#{ENV.fetch('BUILD_NUMBER')}",
        "--export-options-plist=ios/ExportOptions.plist"
      )
    end

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/flutter-github-actions.md (reported line 267)May include surrounding context.

md
- Plain Ruby in a Fastfile runs with `ios/fastlane` as the working directory, while actions resolve
  paths from `ios/`. Absolute paths (as above) avoid mixing the two up.
- `ios/ExportOptions.plist` sets `method` to App Store distribution, manual signing, and maps the bundle
  id to the `match AppStore <bundle id>` profile.
- The Xcode project's Release configuration for the `prod` scheme uses manual signing with that profile.

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/ios-github-actions.md (reported line 17)May include surrounding context.

md
runner label and Xcode version from that, not from what is cheapest.
- Release signing uses manual signing in the Release configuration with the `match` profile names, or
  `match` updates the project with `update_code_signing_settings`. Decide which before writing lanes.
- Any `Info.plist`, entitlement or capability change needed for CI (for example a new app group) is
  called out to the owner, because the provisioning profiles must be regenerated.

## Workflow: `.github/workflows/ios.yml`

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/ios-github-actions.md (reported line 201)May include surrounding context.

md
certificates repository. A deploy key or a cloud storage backend for `match` is equally fine.
- `MATCH_PASSWORD` decrypts the repository. Losing it means regenerating certificates; store it in a
  password manager as well as in CI.
- `CURRENT_PROJECT_VERSION` and `MARKETING_VERSION` overrides work when `Info.plist` uses
  `$(CURRENT_PROJECT_VERSION)` and `$(MARKETING_VERSION)`, which is the default for current Xcode templates.
  Older projects with hardcoded values need that change first.
- Build numbers must increase for each upload of the same marketing version. Set `BUILD_NUMBER_OFFSET`