Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

amapgeo

v1.0.0

提供基于高德开放平台的地理编码、逆地理编码、POI搜索、路径规划及距离测量的地理信息服务。

0· 82·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for aaronjager92/amap-geoservice.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "amapgeo" (aaronjager92/amap-geoservice) from ClawHub.
Skill page: https://clawhub.ai/aaronjager92/amap-geoservice
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install amap-geoservice

ClawHub CLI

Package manager switcher

npx clawhub@latest install amap-geoservice
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
high confidence
!
Purpose & Capability
The skill's stated purpose (高德地图地理服务) matches the code and SKILL.md: it calls Amap endpoints for geocoding, POI, directions, distance, etc. However the registry metadata claims no required environment variables or credentials while both SKILL.md, config.example.txt and scripts/amap_geo.py require AMAP_API_KEY (and optionally AMAP_SECRET_KEY). That metadata omission is disproportionate and inconsistent.
Instruction Scope
The runtime instructions are narrowly scoped to configuring an Amap API key/secret, optionally copying config.txt, and running the included Python script which queries only restapi.amap.com endpoints. The instructions do not ask the agent to read unrelated system paths or exfiltrate data. They do require setting environment variables or a local config file.
Install Mechanism
There is no install spec in the registry (instruction-only), but the package actually contains a Python script that requires 'requests' and a Python interpreter. The skill suggests 'pip install requests' but the metadata does not declare Python or pip as required binaries. This gap is a packaging/metadata inconsistency (not direct malicious download activity).
!
Credentials
The code legitimately needs AMAP_API_KEY and may use AMAP_SECRET_KEY for signatures. Those are reasonable and minimal for the stated purpose, but the skill metadata declares no required env vars/primary credential — the missing declaration reduces transparency. No unrelated credentials are requested.
Persistence & Privilege
The skill does not request always:true, does not attempt to modify other skills or system-wide settings, and does not persist credentials beyond reading a local config file or environment variables. No special platform privileges are requested.
What to consider before installing
This package appears to implement Amap geocoding/POI/directions and requires you to provide an AMAP_API_KEY (and optionally AMAP_SECRET_KEY) plus Python and the 'requests' package. The immediate red flag is that the registry metadata lists no required env vars or binaries while the included SKILL.md and script clearly require them — that mismatch reduces transparency. Before installing: (1) confirm the skill author/source since homepage is missing, (2) verify you are comfortable providing an Amap API key (it grants the skill ability to make API calls under your quota), (3) review the included scripts yourself or run them in an isolated environment, and (4) ask the publisher to correct the registry metadata to declare the required env vars and runtime (python + requests). If you lack the ability to audit code, prefer not to install from unknown sources or run under restricted credentials and network isolation.

Like a lobster shell, security has layers — review code before you run it.

latestvk972eezyfqvmv633fq3h1sqtq583wzwt
82downloads
0stars
1versions
Updated 4w ago
v1.0.0
MIT-0

高德开放平台地理信息服务

🤖 支持平台:飞书 / 微信(文字)

地理编码、POI搜索、路径规划、导航距离等地理信息服务


⚠️ 首次使用必读

使用前必须配置高德开放平台 API Key,否则无法运行!

配置方式:

  1. 获取 Key:https://console.amap.com/dev/key/app
  2. 设置环境变量:export AMAP_API_KEY="your-key"AMAP_SECRET_KEY="your-secret"(如需签名)
  3. 或创建配置文件:cp config.example.txt config.txt 并填入 Key
  4. 验证:python3 scripts/amap_geo.py --action geo --address "北京市朝阳区"

详见下方「首次使用配置」章节。


功能

当用户询问以下内容时,自动调用高德地理信息 API:

  1. 地理编码:地址 → 经纬度
  2. 逆地理编码:经纬度 → 地址
  3. POI搜索:搜索地点、周边检索
  4. 路径规划:步行/驾车/公交路线
  5. 距离测量:两点间距离

触发方式

用户发送以下任一方式都会触发:

  • 北京市朝阳区的经纬度
  • 附近有什么医院
  • 从国贸到中关村怎么走
  • 北京到上海多远
  • 搜索附近的餐厅
  • 定位一下

首次使用配置

1. 获取高德 API Key

  1. 注册高德开放平台:https://console.amap.com/dev/key/app
  2. 创建应用,获取 Web服务 API Key
  3. 配置签名密钥(可选,用于高级功能)

2. 关于数字签名

高德部分 API 需要数字签名验证

签名算法:MD5(key + params + secret) → 32位小写MD5值

步骤:
1. 将所有请求参数(除sign外)按key字母顺序排序
2. 拼接为:key1value1key2value2...
3. 在拼接字符串前加上 API Key,末尾加上 SecretKey
4. 对整个字符串计算 MD5

是否需要签名?

  • 基础服务(地理编码、POI搜索):只需 API Key
  • 高级服务(路径规划等):需要签名
  • 脚本会自动判断并添加签名

3. 配置方式

方式一:环境变量(推荐)

export AMAP_API_KEY="your-api-key"
export AMAP_SECRET_KEY="your-secret-key"  # 如需签名

方式二:配置文件

cp config.example.txt config.txt
# 编辑 config.txt,填入你的 Key

4. 验证

# 地理编码
python3 scripts/amap_geo.py --action geo --address "北京市朝阳区"

# POI搜索
python3 scripts/amap_geo.py --action poi --keywords "餐厅" --city "北京"

# 路径规划
python3 scripts/amap_geo.py --action direction --from "116.4074,39.9042" --to "116.4274,39.9042"

使用方式

命令行参数

# 地理编码(地址→坐标)
python3 scripts/amap_geo.py --action geo --address "北京市朝阳区"

# 逆地理编码(坐标→地址)
python3 scripts/amap_geo.py --action regeo --location "116.4074,39.9042"

# POI搜索
python3 scripts/amap_geo.py --action poi --keywords "餐厅" --city "北京"

# 周边搜索
python3 scripts/amap_geo.py --action around --location "116.4074,39.9042" --keywords "银行"

# 路径规划(驾车)
python3 scripts/amap_geo.py --action direction --from "116.4074,39.9042" --to "116.4274,39.9042"

# 距离测量
python3 scripts/amap_geo.py --action distance --from "116.4074,39.9042" --to "116.4274,39.9042"

返回格式

输出格式化文本,便于阅读。


技术细节

API 端点

功能端点说明
地理编码/v3/geocode/geo地址→坐标
逆地理编码/v3/geocode/regeo坐标→地址
POI搜索/v3/place/text关键字搜索
周边搜索/v3/place/around圆形区域搜索
驾车路径/v3/direction/driving驾车路线
步行路径/v3/direction/walking步行路线
公交路径/v3/direction/transit公交路线
距离测量/v3/direction/material直线距离

签名算法

签名 = MD5(api_key + sorted_params + secret_key)

文件结构

amap_geoservice/
├── SKILL.md              # 本文件
├── config.example.txt    # 配置示例
├── scripts/           # 脚本目录
│   └── amap_geo.py    # 主脚本
└── references/        # 参考文档
    └── README.md        # 详细说明

常见问题

Q: 提示"签名错误"

A: 检查 SecretKey 是否正确配置

Q: 提示"服务无效"

A: 检查 API Key 类型是否为 Web服务,且已开通对应服务

Q: POI搜索无结果

A: 尝试更精确的关键字,或使用城市adcode限定范围


常用城市 AdCode

城市AdCode
北京110000
上海310000
广州440100
深圳440300
成都510100
武汉420100
杭州330100

贡献

欢迎提交 Issue 和 PR!

Comments

Loading comments...