fix(security): remediate zod and fast-uri audit findings (#2708)
npm run security:auditfails on main:
- GHSA-mrhx-c7xc-m3w5 (high): zod <4.6.6 can exhaust memory validating oversized constrained collections. The direct dependency resolved to 4.4.3, and @aws/agent-inspector pulls zod@3.25.76 through @ag-ui/core@^0.0.52. zod 3 has no patched release.
- GHSA-w74x-v6f9-j3xg, GHSA-xhq7-xmqj-769h, GHSA-wjr9-j795-jxcr, GHSA-333x-w4r6-6crp (moderate/low): fast-uri <3.1.9.
- The temporary GHSA-vfj7-8cjw-p6xm (braces) exception is no longer used by the audit report, and the script fails on stale exceptions.
Bump zod to ^4.6.6 and override every copy to the root version. The nested @ag-ui/core copy is never loaded at runtime: agent-inspector ships only a prebuilt browser bundle. Raise the fast-uri override to ^3.1.9.
Drop the braces exception. evaluateAuditReport now takes the exception map as an option so the tests keep covering the time-boxed exception logic with a fixture instead of the live list.
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
AgentCore CLI
Create, develop, and deploy AI agents to Amazon Bedrock AgentCore
Overview
Amazon Bedrock AgentCore enables you to deploy and operate AI agents securely at scale using any framework and model. AgentCore provides tools and capabilities to make agents more effective, purpose-built infrastructure to securely scale agents, and controls to operate trustworthy agents. This CLI helps you create, develop locally, and deploy agents to AgentCore with minimal configuration.
🚀 Jump Into AgentCore
Installation
Quick Start
Use the terminal UI to walk through all commands interactively, or run each command individually:
Supported Frameworks
Supported Model Providers
Commands
Project Lifecycle
createdevdeployinvokeResource Management
addremoveHarness
A harness bundles a runtime, model, tools, skills, memory, and observability into one declarative config. Use it when you want infra without writing agent code.
add harnessadd tool--harness <name> --type <type> --name <name>)add skill--harness <name>+--path/--s3/--git)export harnessapp/Observability
logstraces listtraces getstatusEvaluations
add evaluatoradd online-evalrun evalrun batch-evaluationrun recommendationevals historypause online-evalresume online-evalstop batch-evaluationlogs evalsConfig Bundles
add config-bundlecb versionscb diffcb create-branchA/B Tests
run ab-testview ab-testpause ab-testresume ab-teststop ab-testpromote ab-testagentcore.jsonarchive ab-testKnowledge Bases
add knowledge-baseInsights —
[preview]Failure-pattern analysis across agent sessions. Insights configs run continuously alongside online evals and surface clusters of bad outcomes.
add online-insightsrun insightsview insightspause online-insightsresume online-insightsarchive insightsPolicies & Guardrails
Policy engines apply Cedar-based pre/post-call policies to agent invocations — including Bedrock content filters (
VIOLENCE,HATE,SEXUAL,MISCONDUCT,INSULTS), prompt-attack detection, and sensitive-information redaction.add policy-engineadd policyPayments
Pay-per-call agent transactions via the x402 protocol. When a tool call returns
402 Payment Required, the payments system signs and submits payment then retries automatically.add payment-manageradd payment-connectorDatasets
Curated session datasets for batch evaluation and recommendation runs.
add datasetdataset downloaddataset publish-versiondataset remove-versionWeb Search Gateway Targets
Add a managed web-search target to a gateway:
See Gateway for full target setup including Lambda, MCP, OpenAPI, Smithy, and API Gateway.
Utilities
validatepackagefetch accessfeedbackupdateProject Structure
App Structure
Configuration
Projects use JSON schema files in the
agentcore/directory:agentcore.json- Project resources (agents, memory, credentials, gateways, evaluators, online evals/insights, knowledge bases, harnesses, policy engines and policies, payment managers and connectors, capacity providers, config bundles, datasets, runtime endpoints)deployed-state.json- Runtime state in agentcore/.cli/ (auto-managed)aws-targets.json- Deployment targets (account, region)Capabilities
Documentation
Reference
Resources & features
Evaluation & quality
Operations
Examples
See the AgentCore Samples repository for end-to-end examples using the CLI, including multi-agent workflows, MCP gateway targets, and framework integrations.
Feedback & Issues
Have a quick comment or suggestion? Send it from your terminal:
The CLI will display the AWS Customer Agreement and prompt for consent before submitting. See docs/feedback.md for usage details.
For bugs, regressions, or feature requests that need discussion, open an issue on GitHub instead.
Security
See SECURITY for reporting vulnerabilities and security information.
License
This project is licensed under the Apache-2.0 License.