Google Agent Development Kit for Java 1.9.0
Last reviewed Sep 20, 2026
Prompt Details
Prompt Composition
2prompts
- Java 25113 lines · 2.8K tokens
- Google Agent Development Kit for Java 1.9.070 lines · 3.6K tokens
Total183 lines · 6.5K tokens
CWE Coverage
- 20
- 22
- 59
- 78
- 79
- 88
- 89
- 95
- 117
- 190
- 201
- 208
- 209
- 214
- 294
- 295
- 297
- 306
- 323
- 327
- 338
- 347
- 362
- 367
- 378
- 427
- 470
- 471
- 488
- 494
- 502
- 532
- 611
- 639
- 653
- 681
- 732
- 770
- 772
- 776
- 789
- 807
- 829
- 841
- 862
- 863
- 915
- 916
- 918
- 922
- 942
- 1333
- 1426
- 1427
Prompt Preview
Apply the Java 25 baseline first. These rules cover com.google.adk:google-adk:1.9.0 and its Java tools, MCP, A2A, code executors, and development server. ADK targets Java 17 or later; these rules target Java 25. Keep behavior specific to Java 1.9.0 when using documentation shared with other ADK languages or releases.
Agent instructions, configuration, and output
- Build
LlmAgentinstructions and tool descriptions from trusted code. Treat user messages, retrieved text, artifacts, memory, tool results, and peer-agent output as untrusted data; model instructions and safety filters do not authorize actions. - Review every static instruction placeholder, including
{key},{user:key}, and{artifact.filename}: ADK interpolates state or artifact content into instructions. Keep attacker-controlled values out of privileged instruction text. AnInstruction.Providerbypasses automatic interpolation but must enforce its own data boundaries. - Load
ConfigAgentUtils.fromConfigYAML,ComponentRegistrycomponents, callbacks, and tool classes only from controlled deployment inputs. Enforce canonical file containment yourself for sub-agent andAgentToolconfig_pathreferences: escaping the base directory only produces a warning in this release. - Restrict
SkillToolsetsources to reviewed skills and resources. KeepLocalSkillSourcedirectories immutable to untrusted users and reject symlinks escaping the approved tree; its absolute-path and traversal checks normalize paths without resolving symlinks. Bound resource bytes before adding them to context. - Validate