# 使用 Homebrew 安装 trailscraper

查看 trailscraper 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:trailscraper
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install trailscraper
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:trailscraper
- **软件包管理器:** Homebrew
- **版本:** 0.10.0
- **来源摘要:** Tool to get valuable information out of AWS CloudTrail
- **主页:** <https://github.com/flosell/trailscraper>
- **仓库:** <https://github.com/flosell/trailscraper>
- **最后更新:** 2026-05-15T13:33:37Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- trailscraper (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.10.0
## 项目历史与用法

TrailScraper is a small security-oriented command-line tool for extracting useful information from AWS CloudTrail and working with IAM policies. Its documented workflow centers on selecting or downloading CloudTrail records, then generating or extending IAM policy statements from the observed API activity.

### 项目历史

The project presents itself as both a CloudTrail analysis tool and a general-purpose IAM policy toolbox. Its README documents Homebrew, pip, and container installation paths, and notes that container images from version 0.7.0 onward moved to GitHub Container Registry while older images remained on DockerHub.

Official release metadata shows TrailScraper continuing as a low-volume but maintained utility through the 2020s, with releases from the 0.5 series in 2018 through 0.10.0 at the end of 2025.

### 采用历史

TrailScraper's adoption appears concentrated in AWS security and infrastructure workflows rather than broad developer use. The official README leads with `brew install trailscraper`, `pip install trailscraper`, and Docker examples, indicating that its audience is operators who want the tool available in local shells, CI jobs, or short-lived containers.

### 使用方式

The CLI is used to query CloudTrail directly, download CloudTrail logs from S3, filter downloaded records, and pipe selected records into policy generation. Its examples include account, region, organization-trail, time-window, and assumed-role filters, then show JSON IAM policy output.

### 为什么软件包爱好者会关心

For package-manager users, TrailScraper is notable as a focused AWS least-privilege helper that can be installed without cloning a security toolkit. Its Homebrew and container install paths make it convenient for ephemeral audits, Terraform-permission discovery, and shell pipelines around AWS credentials.

### 时间线

- 2018: Official GitHub releases include the 0.5 series.
- 2021: The README notes that current container images starting with 0.7.0 are published on GitHub Container Registry.
- 2025: Official GitHub releases list version 0.10.0.

### Related projects

- TrailScraper operates in the same AWS security niche as IAM policy generation, CloudTrail log analysis, and infrastructure-as-code permission discovery tools. Its README also points users to cfn-flip when they want generated policies converted from JSON to CloudFormation YAML.

### 来源

- <https://api.github.com/repos/flosell/trailscraper/releases>
- <https://github.com/flosell/trailscraper#readme>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: ~/.aws

## Combined YAML source

View the package source record on GitHub. [combined/trailscraper.yml](https://github.com/mxcl/pkgdb/blob/main/combined/trailscraper.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
