agent-platform-access-audit
यह क्या करती है
यह BigQuery में Cloud Audit Logs की क्वेरी करके दिखाती है कि एजेंट ने कौन से संसाधन छुए, किस पहचान के तौर पर काम किया, और अनुरोध क्यों अस्वीकार हुए। यह Google Cloud में AI एजेंट पर नज़र रखने वाली सुरक्षा और प्लेटफ़ॉर्म टीमों के लिए है।
कब इस्तेमाल करें
- ✓जब आपको जानना हो कि किस Google Cloud संसाधन को AI एजेंट ने एक्सेस किया।
- ✓जब आपको PERMISSION_DENIED त्रुटि दिखे और जानना हो कि वह perimeter की समस्या है या IAM की।
- ✓जब आप किसी समय-सीमा में एजेंट ने जिन शीर्ष पहचानों के रूप में काम किया, उन्हें देखना चाहें।
Skill का लिंक
https://github.com/google/skills/blob/main/skills/cloud/agent-platform-access-audit/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“पिछले हफ़्ते मेरे AI एजेंट ने Google Cloud में क्या एक्सेस किया, और कुछ अनुरोध क्यों अस्वीकार हुए?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह ज़रूरी टूल और APIs जाँचती है, audit logs पर BigQuery क्वेरी चलाती है, और नतीजों को एक्सेस, प्रभाव का दायरा और अस्वीकृति के कारणों में समूहित करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Agent Access Audit
Use this skill to audit AI agent resource accesses, blast radius, and policy denials in Google Cloud using Cloud Audit Logs.
Usage Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
Prerequisites
Only refer to this section if a command fails. Proceed directly with the
workflow below, and only if a gcloud or bq command fails with an
authentication, API, billing, or PERMISSION_DENIED error, tell the user what
they need to do (do NOT configure or grant these yourself):
Google Cloud CLI:
gcloudandbqinstalled (installation guide).Authentication: Active credentials via
gcloud auth loginorgcloud auth application-default login.Active Billing Account: The Google Cloud project must have an active billing account attached (required for running
bq queryjobs against_AllLogs).Enabled APIs:
logging.googleapis.com,bigquery.googleapis.com, andagentregistry.googleapis.com. If any required API is disabled, provide the exact enablement command:gcloud services enable logging.googleapis.com bigquery.googleapis.com agentregistry.googleapis.com --project={PROJECT_ID}IAM roles on the project:
roles/logging.privateLogViewer,roles/bigquery.dataViewer,roles/bigquery.jobUser, androles/agentregistry.viewer.
Execution workflow
Follow these steps in order before answering any audit question:
Step 1: Resolve the project ID ({PROJECT_ID})
If the user explicitly provides a Google Cloud project ID in the prompt, use that project ID.
If the project ID is omitted from the prompt, run:
gcloud config get-value projectIf
gcloud config get-value projectreturns empty or(unset), stop and ask the user which Google Cloud project ID to query. Never leave{PROJECT_ID}as a literal placeholder in a SQL query.
Step 2: Resolve the exact SPIFFE principal ({PRINCIPAL_SUBJECT})
Cloud Audit Logs record the agent's SPIFFE runtime identity (principal://...),
not its human-readable display name, since multiple agents in a project can
share the same display name while having different SPIFFE identities.
If the user provides a
principal://...URI in the prompt: Use that exact string as{PRINCIPAL_SUBJECT}.If the user provides an agent display name (for example,
financial-advisor) instead of aprincipal://...URI: Look up the agent's location via Cloud Asset Inventory and then search Agent Registry to retrieve its SPIFFE principal before querying_AllLogs:LOCATION=$(gcloud asset search-all-resources \ --scope=projects/{PROJECT_ID} \ --query='displayName:"{AGENT_NAME}"' \ --format="value(location)" \ --limit=1) echo "Resolved location: $LOCATION" gcloud agent-registry agents search \ --location="${LOCATION:-global}" \ --project={PROJECT_ID} \ --search-string="displayName:{AGENT_NAME}" \ --format=jsonExtract the SPIFFE URI from
attributes["agentregistry.googleapis.com/system/RuntimeIdentity"]["principal"]:- Single match: Use its
principal://...value as{PRINCIPAL_SUBJECT}. - IMPORTANT: Identity does NOT start with
principal://(for example, starts withsa://or is missing): Stop immediately and do NOT runbq queryor check_AllLogs. Inform the user that the agent's runtime identity is not a SPIFFE ID (for example, it uses a shared service accountsa://...), and that Agent Access Audit requires an agent with aprincipal://...SPIFFE identity. - Multiple matches with different
principal://...URIs: List the matching agents alongside theirname,location, andprincipal://...URIs, and ask the user which specific agent to audit before runningbq query. - No matches (or no agent specified): Stop and ask the user to provide
the agent's
principal://...identity URI.
- Single match: Use its
SQL Parameterization Rule: Never pass a display name (such as `principal_subject = 'financia
अक्सर पूछे जाने वाले सवाल
क्या यह कोई एक्सेस सेटिंग बदलती है?
नहीं। यह लॉग पढ़ने वाला ऑडिट है, और यह अनुमतियाँ न देती है न बदलती है।
कौन से टूल इंस्टॉल होने चाहिए?
Google Cloud CLI और bq, सक्रिय क्रेडेंशियल के साथ, और प्रोजेक्ट पर बिलिंग खाता।
यह perimeter की त्रुटियों को permission त्रुटियों से कैसे अलग करती है?
यह VPC Service Controls perimeter उल्लंघनों को IAM permission denials से अलग करती है।
जानकारी
लेखक का मूल विवरण
Audits AI agent data access, blast radius, and blocked policy operations in Google Cloud by querying Cloud Audit Logs via BigQuery. Use when investigating what resources or services an agent accessed, identifying top originating principals the agent is acting as, or triaging PERMISSION_DENIED errors to distinguish VPC Service Controls perimeter violations from IAM permission denials. Don't use for configuring Cloud Monitoring alert policies, modifying IAM policies or VPC Service Controls perimeters, querying non-audit application logs, or performing write operations.
repo: google/skills
लोकप्रियता
- GitHub स्टार
- 22k
- रैंकिंग में स्थान
- #10198
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
finding-google-skills
22kआपके एजेंट को किसी सेटअप काम के लिए सही Google गाइड खोजने में मदद करती है, जैसे hosting, databases, storage, sign-in या AI model serving।
gcloud
22kयह आपके एजेंट को Google Cloud gcloud कमांड लिखने और जाँचने में मदद करती है, कुछ भी चलाने से पहले सटीक सिंटैक्स देखकर, ताकि फ़्लैग का अंदाज़ा न लगे।
google-cloud-recipe-auth
22kआपके एजेंट को Google Cloud की पहचान और पहुँच समझाती है, जिसमें यह शामिल है कि लोग और सेवाएँ कैसे साइन इन करते हैं और उन्हें कौन सी अनुमतियाँ मिलती हैं।
google-cloud-recipe-onboarding
22kएक नए डेवलपर को Google Cloud पर पहले कदमों में मदद करती है, जिसमें प्रोजेक्ट चुनना, बिलिंग जोड़ना और पहला संसाधन डिप्लॉय करना शामिल है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।