Back to skill

Security audit

Mapbox Android Patterns

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Mapbox Android integration guide, with expected Mapbox token, repository, and location examples but no hidden execution or persistence.

Installers should treat this as a Mapbox Android coding reference. When using the location examples, add clear in-app disclosure, request runtime permission only when needed, avoid background or continuous tracking unless necessary, and remove listeners when tracking is no longer active.

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

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

}

text

### Access Token

```xml
<!-- app/res/values/mapbox_access_token.xml -->

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.

}

text

### Access Token

```xml
<!-- app/res/values/mapbox_access_token.xml -->

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 the Mapbox Maps SDK in my Android app. How do I add the dependency and configure the access token?",
      "expectations": [
        "Must add the Mapbox Maven repository in settings.gradle.kts: url = uri(\"https://api.mapbox.com/downloads/v2/releases/maven\")",
        "Add the dependency: implementation(\"com.mapbox.maps:android:11.x.x\")",

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill recommends enabling continuous user-location display and camera follow without any privacy notice, consent guidance, or minimization advice. While this is standard SDK functionality, presenting it as a quick pattern without warning can lead downstream developers to implement persistent location tracking in ways that surprise users or violate platform/privacy expectations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

This markdown skill includes instructions to request ACCESS_FINE_LOCATION and enable user-location display, which affects sensitive personal data. The section explains how to enable the feature but does not warn users about the privacy implications or the need to clearly disclose location use to end users.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · AGENTS.md (reported line 16)May include surrounding context.

md
"id": 1,
      "prompt": "I'm setting up the Mapbox Maps SDK in my Android app. How do I add the dependency and configure the access token?",
      "expectations": [
        "Must add the Mapbox Maven repository in settings.gradle.kts: url = uri(\"https://api.mapbox.com/downloads/v2/releases/maven\")",
        "Add the dependency: implementation(\"com.mapbox.maps:android:11.x.x\")",
        "Token goes in a resources file app/res/values/mapbox_access_token.xml with the string resource name mapbox_access_token",
        "Shows the correct XML: <string name=\"mapbox_access_token\">YOUR_TOKEN</string>"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

md
"id": 1,
      "prompt": "I'm setting up the Mapbox Maps SDK in my Android app. How do I add the dependency and configure the access token?",
      "expectations": [
        "Must add the Mapbox Maven repository in settings.gradle.kts: url = uri(\"https://api.mapbox.com/downloads/v2/releases/maven\")",
        "Add the dependency: implementation(\"com.mapbox.maps:android:11.x.x\")",
        "Token goes in a resources file app/res/values/mapbox_access_token.xml with the string resource name mapbox_access_token",
        "Shows the correct XML: <string name=\"mapbox_access_token\">YOUR_TOKEN</string>"

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · evals/evals.json (reported line 8)May include surrounding context.

json
"id": 1,
      "prompt": "I'm setting up the Mapbox Maps SDK in my Android app. How do I add the dependency and configure the access token?",
      "expectations": [
        "Must add the Mapbox Maven repository in settings.gradle.kts: url = uri(\"https://api.mapbox.com/downloads/v2/releases/maven\")",
        "Add the dependency: implementation(\"com.mapbox.maps:android:11.x.x\")",
        "Token goes in a resources file app/res/values/mapbox_access_token.xml with the string resource name mapbox_access_token",
        "Shows the correct XML: <string name=\"mapbox_access_token\">YOUR_TOKEN</string>"

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The document provides code for continuous user-location tracking and one-time location retrieval but does not mention privacy implications, consent, data minimization, or platform permission requirements beyond a brief comment. In a developer-facing integration guide, this omission can encourage unsafe implementation of location features, leading to unauthorized collection or exposure of sensitive location data.

Content

No source excerpt is available for this finding.