Add A2AS Certificate#1
Conversation
Summary of ChangesHello @a2as-team, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request integrates an A2AS (Agent to Agent Security) certificate into the repository by adding a Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces an A2AS certificate in "a2as.yaml" to declare the agent's behavior and operational boundaries. A medium-severity race condition vulnerability has been identified where the agent's behavior of cloning repositories into the "/tmp" directory using predictable names could be exploited to write files to arbitrary locations. Additionally, issues were found with an incorrect issuance date and a mismatch in the agent's instruction format compared to the source code, which need correction to ensure the certificate's accuracy and reliability.
| scope: [app/agent.py, app/__init__.py] | ||
| issued: | ||
| by: A2AS.org | ||
| at: '2026-02-11T16:41:38Z' |
| code, generating test plan, generating unit tests, etc.', The codebase is cloned from a GitHub repository and stored | ||
| on /tmp directory., Always use the Gemini CLI tool to analyze the codebase and complete the user's request.] |
There was a problem hiding this comment.
The agent's instructions specify cloning a GitHub repository into the "/tmp" directory using a predictable name, which creates a Time-of-Check-to-Time-of-Use (TOCTOU) race condition. This could allow an attacker to write files to arbitrary locations. It is critical to use secure methods for temporary file and directory creation. Additionally, the instruction for root_agent is defined as a multi-line flow-style list of strings, which is inconsistent with its app/agent.py implementation. To accurately reflect the code and improve readability, it's recommended to use a YAML literal block scalar (|). The instruction content should also be updated to mitigate the security vulnerability.
Add A2AS Certificate for Agent Transparency and Security
Summary
This PR adds an agent certificate using the A2AS format - an open standard for agentic AI security. The certificate declares operational boundaries, agentic actions, and resources. It acts as a transparency artifact for your agent.
This repository has been certified and added to the registry.
Info and visualization available via the link or badge:
A2AS.org/certified/agents/derrickchwong/gemini-cli-on-adk
About A2AS Certificates
A2AS certificates are declarative manifests for agent behavior. They describe what an agent is designed to do:
Certificates are human-readable and machine-readable, and can be used as a transparency and security artifact.
The A2AS standard is a project from the A2AS.org initiative led by experts from big tech and security companies.
Benefits For This Project
This A2AS certificate can help to:
What This PR Does
This PR doesn't change any code:
a2as.yamlto the repository rootOptional Next Steps
When the agent changes, the A2AS certificate is expected to be updated.
A2AS project maintainers can help with updating the certificate as your agent evolves.
If you find this relevant, you can add the A2AS Shield to your README.md file: