Back to skill

Security audit

Mapbox iOS Patterns

Security checks for vulnerabilities and agentic risk

Overview

This is a Mapbox iOS documentation helper with expected setup and location examples, and I found no hidden execution, persistence, or data theft behavior.

Installers should treat this as developer documentation. Use only public Mapbox tokens, avoid committing real tokens, and when using the location examples in an app, provide a clear purpose string, user consent, and privacy disclosure for precise location use.

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
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (13)

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 · AGENTS.md (reported line 15)May include surrounding context.

// Version: 11.0.0+

text

### Access Token

```xml
<!-- 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 · SKILL.md (reported line 36)May include surrounding context.

// Version: 11.0.0+

text

### Access Token

```xml
<!-- 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 · evals/evals.json (reported line 6)May include surrounding context.

json
"evals": [
    {
      "id": 1,
      "prompt": "I'm setting up Mapbox Maps SDK in my iOS app. Where do I put the access token?",
      "expectations": [
        "Token goes in Info.plist with the key MBXAccessToken",
        "Shows the correct plist entry: <key>MBXAccessToken</key> <string>pk.your_token</string>",

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 · AGENTS.md (reported line 18)May include surrounding context.

md
"id": 1,
      "prompt": "I'm setting up Mapbox Maps SDK in my iOS app. Where do I put the access token?",
      "expectations": [
        "Token goes in Info.plist with the key MBXAccessToken",
        "Shows the correct plist entry: <key>MBXAccessToken</key> <string>pk.your_token</string>",
        "Token is NOT set in code (unlike Mapbox GL JS web apps where mapboxgl.accessToken is set in JavaScript)",
        "Notes the token should be a public token (starts with pk.)"

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 · AGENTS.md (reported line 107)May include surrounding context.

md
"id": 1,
      "prompt": "I'm setting up Mapbox Maps SDK in my iOS app. Where do I put the access token?",
      "expectations": [
        "Token goes in Info.plist with the key MBXAccessToken",
        "Shows the correct plist entry: <key>MBXAccessToken</key> <string>pk.your_token</string>",
        "Token is NOT set in code (unlike Mapbox GL JS web apps where mapboxgl.accessToken is set in JavaScript)",
        "Notes the token should be a public token (starts with pk.)"

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 · AGENTS.md (reported line 248)May include surrounding context.

md
"id": 1,
      "prompt": "I'm setting up Mapbox Maps SDK in my iOS app. Where do I put the access token?",
      "expectations": [
        "Token goes in Info.plist with the key MBXAccessToken",
        "Shows the correct plist entry: <key>MBXAccessToken</key> <string>pk.your_token</string>",
        "Token is NOT set in code (unlike Mapbox GL JS web apps where mapboxgl.accessToken is set in JavaScript)",
        "Notes the token should be a public token (starts with pk.)"

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

md
"id": 1,
      "prompt": "I'm setting up Mapbox Maps SDK in my iOS app. Where do I put the access token?",
      "expectations": [
        "Token goes in Info.plist with the key MBXAccessToken",
        "Shows the correct plist entry: <key>MBXAccessToken</key> <string>pk.your_token</string>",
        "Token is NOT set in code (unlike Mapbox GL JS web apps where mapboxgl.accessToken is set in JavaScript)",
        "Notes the token should be a public token (starts with pk.)"

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

md
"id": 1,
      "prompt": "I'm setting up Mapbox Maps SDK in my iOS app. Where do I put the access token?",
      "expectations": [
        "Token goes in Info.plist with the key MBXAccessToken",
        "Shows the correct plist entry: <key>MBXAccessToken</key> <string>pk.your_token</string>",
        "Token is NOT set in code (unlike Mapbox GL JS web apps where mapboxgl.accessToken is set in JavaScript)",
        "Notes the token should be a public token (starts with pk.)"

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

md
"id": 1,
      "prompt": "I'm setting up Mapbox Maps SDK in my iOS app. Where do I put the access token?",
      "expectations": [
        "Token goes in Info.plist with the key MBXAccessToken",
        "Shows the correct plist entry: <key>MBXAccessToken</key> <string>pk.your_token</string>",
        "Token is NOT set in code (unlike Mapbox GL JS web apps where mapboxgl.accessToken is set in JavaScript)",
        "Notes the token should be a public token (starts with pk.)"

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 · evals/evals.json (reported line 8)May include surrounding context.

json
"id": 1,
      "prompt": "I'm setting up Mapbox Maps SDK in my iOS app. Where do I put the access token?",
      "expectations": [
        "Token goes in Info.plist with the key MBXAccessToken",
        "Shows the correct plist entry: <key>MBXAccessToken</key> <string>pk.your_token</string>",
        "Token is NOT set in code (unlike Mapbox GL JS web apps where mapboxgl.accessToken is set in JavaScript)",
        "Notes the token should be a public token (starts with pk.)"

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 · evals/evals.json (reported line 9)May include surrounding context.

json
"id": 1,
      "prompt": "I'm setting up Mapbox Maps SDK in my iOS app. Where do I put the access token?",
      "expectations": [
        "Token goes in Info.plist with the key MBXAccessToken",
        "Shows the correct plist entry: <key>MBXAccessToken</key> <string>pk.your_token</string>",
        "Token is NOT set in code (unlike Mapbox GL JS web apps where mapboxgl.accessToken is set in JavaScript)",
        "Notes the token should be a public token (starts with pk.)"

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This markdown file describes requesting location permission, continuously following the user's movement, and printing precise latitude/longitude, but it does not include any user-facing warning about privacy implications or handling of sensitive location data. For markdown files, SQP-2 applies when the description omits warnings about behaviors that could affect user data or privacy.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

This markdown file includes code that requests location permission and follows the user's live location, but the surrounding text only notes adding permission to Info.plist and does not warn users about the privacy implications of collecting location data. For markdown files, SQP-2 applies when descriptions omit warnings about behavior that could affect user privacy.

Content

No source excerpt is available for this finding.