near-ai
Pass
Audited by Gen Agent Trust Hub on Feb 17, 2026
Risk Level: SAFEPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [PROMPT_INJECTION] (LOW): The implementation of
WeatherAgentinrules/arch-agent-structure.mdis susceptible to Indirect Prompt Injection (Category 8). \n - Ingestion points: The
user_inputprovided to therunmethod is directly interpolated into a prompt for the LLM to parse intent. \n - Boundary markers: The prompt template (
Parse this user request: "{user_input}") lacks delimiters or clear instructions to isolate untrusted user data from the intent-parsing logic. \n - Capability inventory: The agent has the capability to execute local methods like
get_current_weatherusing arguments derived from the LLM's output. \n - Sanitization: The code uses
json.loadsand direct dictionary unpacking (**intent["parameters"]) to invoke tools without validating the schema, keys, or data types of the parameters generated by the AI. \n- [EXTERNAL_DOWNLOADS] (LOW): The skill documentation requires thenearaiPython package and utilizesnear.aiendpoints for AI inference. While these are necessary for the skill's primary purpose, they are not included in the predefined trusted repository or domain lists. \n- [CREDENTIALS_UNSAFE] (SAFE): The code inrules/ai-inference-endpoints.mdcorrectly demonstrates usingos.getenvfor sensitive credentials such asNEAR_PRIVATE_KEY, which is the standard practice for avoiding hardcoded secrets.
Audit Metadata