Back to skill

Security audit

差旅预订助手

Security checks for vulnerabilities and agentic risk

Overview

The skill is presented as a live Booking.com booking helper, but it returns hardcoded hotel, pricing, availability, and review data as successful results and advertises booking management that is not implemented.

Review this skill carefully before installing. It does not appear to take over the system or steal credentials, but its travel results should not be trusted as live Booking.com inventory, pricing, availability, reviews, tax terms, or cancellation policy. Do not rely on it to book or manage reservations unless the publisher replaces the mock paths with verified live API calls, removes unsupported booking claims, and adds clear data-sharing and confirmation behavior.

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
Findings (1)

other

Error
Location
scripts/booking_api.py:235
Finding

Fabricated Hotel, Pricing, Availability, and Review Data Presented as Live Booking.com Results

Content
View full analysis

Vulnerability Details

File Location: scripts/booking_api.py:235-286
Additional Locations: scripts/booking_api.py:310-341, scripts/booking_api.py:378-420, scripts/booking_api.py:446-476, scripts/booking_api.py:523; SKILL.md:17-20
Vulnerability Type: Deceptive fabricated travel and pricing data
Risk Level: High

Vulnerable Code

python
      # TODO: Implement the real Booking API call
      # result = self._request("bookings.getHotels", params)
      
      # Mock response data
      mock_hotels = [
          BookingHotel(
              hotel_id="123456",
              name="Hotel Granvia Tokyo",
              name_cn="Tokyo Station Hotel",
              address="1-9-1 Marunouchi, Chiyoda-ku",
              city="Tokyo",
              country="Japan",
              zip_code="100-0005",
              latitude=35.6812,
              longitude=139.7671,
              review_score=9.2,
              review_count=8542,
              star_rating=4,
              min_rate=25000,
              currency="JPY",
              facilities=["Free WiFi", "Restaurant", "Fitness center"]
          ),
          BookingHotel(
              hotel_id="123457",
              name="Shinjuku Granbell Hotel",
              name_cn="Shinjuku Granbell Hotel",
              address="2-14-5 Kabukicho, Shinjuku-ku",
              city="Tokyo",
              country="Japan",
              zip_code="160-0021",
              latitude=35.6938,
              longitude=139.7034,
              review_score=8.5,
              review_count=6234,
              star_rating=4,
              min_rate=18000,
              currency="JPY",
              facilities=["Free WiFi", "Bar", "24-hour front desk"]
          )
      ]
      
      return {
          "code": 0,
          "msg": "success",
          "data": {
              "total": len(mock_hotels),
         
...[truncated 4637 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove all mock hotels, rooms, prices, reviews, availability flags, and cancellation policies from production execution paths.
  2. Restore and test the actual Booking.com Affiliate or partner API calls for every advertised query operation.
  3. Fail closed when valid credentials are absent. Placeholder credentials such as your_api_key must produce a clear configuration error rather than fallback data.
  4. Keep fixtures only under a dedicated test directory and require an explicit test-mode configuration that cannot be enabled in production accidentally.
  5. Clearly label all test or demonstration responses as synthetic and never return them with the same success contract used for live inventory.
  6. Validate API responses against a strict schema before exposing them to the agent.
  7. Derive price, currency, tax inclusion, availability, meal-plan, and cancellation statements exclusively from explicit API response fields.
  8. Do not perform apparent currency conversion by changing only the displayed symbol. Preserve the source currency unless a trusted exchange-rate service performs and labels the conversion.
  9. Remove the unconditional tax and free-cancellation statement. Render such claims per hotel or room only when confirmed by authoritative policy data.
  10. Validate destinations, hotel identifiers, check-in and check-out dates, guest counts, room counts, language codes, currency codes, and pagination limits before issuing requests.
  11. Add integration tests that verify different destinations and identifiers produce corresponding live results rather than fixed records.
  12. Add provenance metadata to responses, including the upstream provider, retrieval timestamp, source currency, and whether the result is live or cached.
  13. Remove reservation creation, lookup, and cancellation claims from SKILL.md until those operations are implemented and tested. If implemented later, require explicit user confirmation before ...[truncated 206 chars]
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (10)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The declared description promises a Booking.com hotel assistant that supports global hotel search, room lookup, price comparison, booking management, and invocation for booking hotels or managing reservations. The code does support hotel search-related behaviors: searching hotels, getting hotel details, room availability/pricing, and formatting results. However, the actual API calls are marked TODO and replaced with mock data, so the operational behavior is only a simulated search/details/availability/review wrapper rather than a real booking/reservation system. Crucially, there are no methods for creating bookings, modifying bookings, canceling bookings, or otherwise managing reservations, despite those being explicitly declared. Additionally, the code includes hotel review retrieval, which is an undeclared capability, though related to the hotel domain. Overall, the description materially overstates implemented booking and reservation-management functionality, so this is a mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The code aligns with part of the declared purpose: it supports international hotel search, hotel detail lookup, room availability/pricing queries, and review retrieval, which are consistent with hotel search and price comparison. However, the declared description explicitly includes '预订管理' and says to invoke when the user wants to 'book hotels on Booking.com' or manage reservations. In this code chunk, there are no functions for creating bookings, modifying/canceling bookings, retrieving reservation records, or otherwise managing reservations. The code is primarily a read/query adapter plus result-formatting layer, not a full booking or reservation-management assistant. Therefore the description overstates the implemented capabilities in a material way.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill clearly describes network-backed Booking.com API usage, but it does not declare any explicit tool scope such as allowed-tools or permissions. Missing scope declarations weaken least-privilege controls and make it harder for the host environment to constrain or audit outbound access, especially in a skill that handles booking and reservation flows.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill advertises reservation creation/cancellation and third-party API interaction without an explicit privacy or data-sharing warning. In a travel-booking context, users may provide personal and itinerary data, so failing to disclose external transmission and data handling increases the risk of uninformed consent and accidental exposure of sensitive information.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The comments state the file version and then instruct '如非此版本,请拒绝执行', while the file’s natural-language content and defaults are entirely Chinese-centric. This creates a language/locale constraint without offering the user a choice or documenting a justified regional limitation, which matches the locale policy violation criteria.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill metadata advertises Booking.com booking and reservation-management capabilities, but the implementation in this file only returns mock hotel, room, and review data and does not perform real booking or reservation operations. In a travel-booking context, this can mislead users or downstream agents into believing reservations are real, creating integrity and user-harm risks such as missed travel arrangements or false confirmations.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The formatter states that prices include taxes and fees and that free cancellation is supported, but those guarantees are not derived from the underlying result data. In a hotel-booking skill, this is security-relevant because it can cause users to rely on false commercial terms, leading to financial loss, disputes, or unsafe travel decisions.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The function schema sets the default language to "zh" and similar defaults recur throughout the file, which makes the skill prefer a specific language automatically. The policy requires offering language choice or obtaining opt-in unless the locale constraint is clearly justified, and this file does not document such a justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The hotel detail function also defaults language to "zh", continuing a file-wide locale preference without user choice. Because this behavior appears in user-facing function definitions, it constitutes a natural-language locale policy issue rather than an implementation detail.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

These function definitions default returned content to Chinese, and the same default is later applied in function dispatch. Repeating the locale assumption across multiple user-facing operations shows the skill is effectively forcing a language without opt-in.

Content

No source excerpt is available for this finding.