List tenants in az-ad collection uses different audience than the rest of the objects
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- azure, go
- 领域
- api, authentication, cloud
调研方向
从 cmd/list-azure-ad.go 第 101-102 行附近开始,并将 client/tenants.go 第 61-69 行附近与其他 az-ad 收集请求进行比较。验证租户列表请求使用 Graph API audience,然后重现 PowerShell JWT 命令,并确认 az-ad 能够在没有 invalid-audience 错误的情况下列出租户。
由索引模型根据 Issue 内容生成。
描述
Summary
The az-ad collection tries to list tenants:
But the ListAzureADTenants function uses the resourceManager audience for its request:
This leads to an error when using JWT auth because the az-ad collection needs the Graph API audience.
2025-05-13T10:52:37-05:00 INF collecting azure ad objects...
2025-05-13T10:52:37-05:00 ERR unable to continue processing tenants error="invalid audience"
The rest of the collection steps in az-ad work as expected because they all have the Graph API audience.
Steps to reproduce
$env:GRAPH_JWT = (Get-AzAccessToken -ResourceUrl "https://graph.microsoft.com").Token
./AzureHound.exe --jwt $env:GRAPH_JWT --list az-ad --tenant "contoso.onmicrosoft.com" -o "./entraid.json"
- 主要语言
- Go
- 星标
- 979
- 派生
- 150
- 平均合并
- 1 小时 45 分钟
- 30 天内合并 PR
- 1
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SpecterOps/AzureHound 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
SpecterOps/AzureHound#197 ·
-
Improvement: Add a Feature to Allow Users to Specify Custom User Agents可能已有人在做 @ChrisJr404 于 177 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 45/100
SpecterOps/AzureHound#135 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 42/100
SpecterOps/AzureHound#112 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
SpecterOps/AzureHound#91 ·
-
难度 4/5 3-5 天 新手友好度 35/100
SpecterOps/AzureHound#80 · 1 条评论 ·
查看 SpecterOps/AzureHound 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
schema-drift
难度 2/5 1-3 小时 新手友好度 72/100
stefanhoth/paperless-ngx-cli#61 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
slavakurilyak/awesome-ai-agents#888 ·
维护者通常 1 天内回复
-
enhancement nav-pilot
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
kind/enhancement
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复