freeBuf
主站

分类

漏洞 工具 极客 Web安全 系统安全 网络安全 无线安全 设备/客户端安全 数据安全 安全管理 企业安全 工控安全

特色

头条 人物志 活动 视频 观点 招聘 报告 资讯 区块链安全 标准与合规 容器安全 公开课

官方公众号企业安全新浪微博

FreeBuf.COM网络安全行业门户,每日发布专业的安全资讯、技术剖析。

FreeBuf+小程序

FreeBuf+小程序

AzureHound:一款针对Microsoft Azure的BloodHound数据收集工具
2022-12-22 21:11:10
所属地 广西

关于AzureHound

AzureHound是一款针对Microsoft Azure的BloodHound数据收集工具和Azure数据管理工具,在该工具的帮助下,广大研究人员可以轻松管理和审查与Azure相关的安全状态。

工具下载

预编译发布版

广大研究人员可以直接访问该项目的【Releases页面】来获取对应操作系统平台的预编译AzureHound代码。

滚动版本

滚动版本中包含了工具的预编译代码,并且可以自动更新至项目的主分支版本,可以点击 【这里】获取。注意,滚动版本的运行可能不稳定。

源码获取

除了上述方法之外,广大研究人员也可以使用下列命令将该项目源码克隆至本地:

git clone https://github.com/BloodHoundAD/AzureHound.git

工具环境

由于该工具基于Go语言开发,因此我们首先需要在本地设备上安装并配置好Go v1.18或更新版本的环境。

工具编译

接下来,我们就可以使用下列命令从源码构建AzureHound项目:

go build -ldflags="-s -w -X github.com/bloodhoundad/azurehound/constants.Version=`git describe tags --exact-match 2> /dev/null || git rev-parse HEAD`"

工具使用

快速使用

将所有的Azure Tenent数据打印到stout:

❯ azurehound list -u "$USERNAME" -p "$PASSWORD" -t "$TENANT"

将所有的Azure Tenent数据保存到文件:

❯ azurehound list -u "$USERNAME" -p "$PASSWORD" -t "$TENANT" -o "mytenant.json"

针对BloodHount Enterprise配置和开启数据收集服务:

❯ azurehound configure

(follow prompts)

 

❯ azurehound start

命令行接口使用

❯ azurehound --help

AzureHound vx.x.x

Created by the BloodHound Enterprise team - https://bloodhoundenterprise.io

 

The official tool for collecting Azure data for BloodHound and BloodHound Enterprise

 

Usage:

  azurehound [command]

 

Available Commands:

  completion  Generate the autocompletion script for the specified shell

  configure   Configure AzureHound

  help        Help about any command

  list        Lists Azure Objects

  start       Start Azure data collection service for BloodHound Enterprise

 

Flags:

  -c, --config string          AzureHound configuration file (default: /Users/dlees/.config/azurehound/config.json)

  -h, --help                   help for azurehound

      --json                   Output logs as json

  -j, --jwt string             Use an acquired JWT to authenticate into Azure

      --log-file string        Output logs to this file

      --proxy string           Sets the proxy URL for the AzureHound service

  -r, --refresh-token string   Use an acquired refresh token to authenticate into Azure

  -v, --verbosity int          AzureHound verbosity level (defaults to 0) [Min: -1, Max: 2]

      --version                version for azurehound

 

Use "azurehound [command] --help" for more information about a command.

可用命令

completion:针对指定的Shell生成自动化脚本;

configure::配置AzureHound;

help:查看命令帮助信息;

list:枚举Azure对象;

start:针对BloodHount Enterprise开启数据收集服务;

参数解释

-h, --help:查看AzureHound帮助信息;

--json:以JSON格式输出日志;

-j, --jwt string:使用JWT完成Azure身份认证;

--log-file string:将输出日志保存到文件;

--proxy string:针对AzureHound服务设置代理URL;

-r, --refresh-token string:使用刷新令牌完成Azure身份认证;

-v, --verbosity int:设置AzureHound的Verbose等级(默认:0) [最小: -1, 最大: 2];

--version:查看AzureHound版本信息;

许可证协议

本项目的开发与发布遵循GPL-3.0开源许可证协议。

项目地址

AzureHound:【GitHub传送门

参考资料

https://go.dev/dl/

# BloodHound # 数据收集 # Azure安全
本文为 独立观点,未经允许不得转载,授权请联系FreeBuf客服小蜜蜂,微信:freebee2022
被以下专辑收录,发现更多精彩内容
+ 收入我的专辑
+ 加入我的收藏
相关推荐
  • 0 文章数
  • 0 关注者
文章目录